* config/darwin.h: Don't include darwin-sections.def to declare
[official-gcc.git] / gcc / ChangeLog
blob176c4b705d3c840f13f091969f9ed5ce25b424aa
1 2005-12-18  Geoffrey Keating  <geoffk@apple.com>
3         * config/darwin.h: Don't include darwin-sections.def to declare
4         global variables; instead create darwin_section_enum.
5         (darwin_section_enum): New.
6         (darwin_sections): New.
7         * config/darwin.c: Don't include darwin-sections.def to define
8         global variables.
9         (darwin_sections): New.
10         (output_objc_section_asm_op): Rewrite to take advantage of
11         darwin_sections.
12         (darwin_init_sections): Rewrite to use darwin_sections.
13         (machopic_output_indirection): Update for darwin_sections array.
14         (machopic_select_section): Likewise.
15         (machopic_select_rtx_section): Likewise.
16         (machopic_asm_out_constructor): Likewise.
17         (machopic_asm_out_destructor): Likewise.
18         (darwin_file_end): Likewise.
19         * config/rs6000/rs6000.c (machopic_output_stub): Likewise.
20         * config/i386/i386.c (machopic_output_stub): Likewise.
22 2005-12-18  Richard Guenther  <rguenther@suse.de>
24         PR tree-optimization/25481
25         * tree-ssa-structalias.c (handle_ptr_arith): Handle
26         accesses we don't have a varinfo for.
28 2005-12-17  Jon Grimm  <jgrimm2@us.ibm.com>
29             Janis Johnson  <janis187@us.ibm.com>
30             Ben Elliston  <bje@au.ibm.com>
32         * optabs.c (init_floating_libfuncs): Handle decimal float modes.
33         (init_optabs): Handle libfuncs for decimal float.
34         * genopinit.c (gen_insn): Handle MODE_DECIMAL_FLOAT.
35         * stor-layout.c (int_mode_for_mode): Likewise.
36         * simplify-rtx.c (simplify_immed_subreg): Likewise.
37         (simplify_unary_operation_1): Skip optimisations for decimal float
38         modes.
39         * varasm.c (output_constant_pool_2): Handle MODE_DECIMAL_FLOAT.
40         * emit-rtl.c (gen_const_vector): Add assertion check.
41         (init_emit_once): Populate const_tiny_rtx with constants in each
42         decimal float mode.
43         * expmed.c (extract_high_half, expand_mult_highpart_optab,
44         expand_mult_highpart): Assert that mode is not a scalar float
45         mode.
46         * expr.c (convert_move): Handle conversion between decimal and
47         binary floats of the same size.
48         * convert.c (convert_to_real): Consider decimal float types when
49         folding.
50         * dwarf2out.c (base_type_die): Use DW_ATE_decimal_float to
51         describe decimal floating point types.
52         
53 2005-12-18  Ulrich Weigand  <uweigand@de.ibm.com>
55         PR rtl-optimization/21041
56         * reload.c (find_reloads_subreg_address): Replace paradoxical
57         subreg of MEM by widened access only if the resulting memory
58         is properly aligned, even on !STRICT_ALIGNMENT targets.
60 2005-12-18  Andreas Krebbel  <krebbel1@de.ibm.com>
62         * tree-cfg.c (tree_flow_call_edges_add): Check for empty basic blocks.
64 2005-12-18  Steven Bosscher  <stevenb@suse.de>
66         * gcse.c (gcse_main, bypass_jumps): Fix non-GNU-isms from
67         the 2005-12-17 patch to renumber the entry and exit blocks.
69 2005-12-18  Gabriel Dos Reis  <gdr@integrable-solutions.net>
71         * doc/objc.texi (Type encoding): Fix typo.
73 2005-12-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
75         * tree-tailcall.c (find_tail_calls): Use XNEW.
76         * tree-ssa-dom.c (allocate_edge_info): Use XCNEW.
77         (free_all_edge_infos): Use explicit cast to convert from void *.
78         (vrp_free): Likewise.
79         (dom_opt_finalize_block): Likewise.
80         (record_equivalences_from_incoming_edge): Likewise.
81         (thread_across_edge): Likewise.  Use XCNEWVEC.
82         (record_cond): Use XCNEW.
83         (record_conditions): Use XNEWVEC.
84         (record_edge_info): Use XCNEWVEC.
85         (lookup_avail_expr): Use XNEW.
86         (record_range): Likewise.  Use GGC_NEW.
87         * tree-nested.c (var_map_hash): Use explicit cast to convert from
88         void *.
89         (var_map_eq): Likewise.
90         (lookup_field_for_decl): Likewise.
91         (convert_nonlocal_reference): Likewise.
92         (convert_local_reference): Likewise.
93         (convert_nl_goto_reference): Likewise.
94         (convert_nl_goto_receiver): Likewise.
95         (convert_call_expr): Likewise.
96         (convert_tramp_reference): Likewise.
97         (lookup_tramp_for_decl): Likewise.Use GGC_NEW.
98         (convert_nl_goto_reference): Likewise.
99         (lookup_field_for_decl): Use GGC_NEW.
100         (create_nesting_tree): Use GGC_CNEW.
101         * tree-ssa-phiopt.c (blocks_in_phiopt_order): Use XNEWVEC.
102         * tree-ssa-alias.c (init_alias_info): Use XCNEW.
103         (create_alias_map_for): Likewise.
104         (setup_pointers_and_addressables): Use XCNEWVEC.
105         (get_ptr_info): Use GGC_NEW.
106         (used_part_map_eq): Use explicit cast to convert from void *.
107         (up_lookup): Likewise.
108         (up_insert): Use XNEW.
109         (get_or_create_used_part_for): Use XCNEW.
110         (get_tmt_for): Likewise.
111         * tree-ssa-operands.c (ssa_operand_alloc): Use GGC_NEW.
112         * tree-ssa-pre.c (phi_trans_add): Use XNEW.
113         (bitmap_set_new): Use explicit cast to convert from void *.
114         (set_new): Likewise.
115         (insert_into_set): Likewise.
116         (pool_copy_list): Likewise.
117         (phi_translate): Likewise.
118         (create_value_expr_from): Likewise.
119         (insert_aux): Use XCNEWVEC.
120         (compute_avail): Use XNEWVEC.
121         * tree-ssa-live.c (calculate_live_on_entry): Likewise.
122         (sort_coalesce_list): Likewise.
123         (build_tree_conflict_graph): Use XCNEWVEC.
124         * tree-ssa-dce.c (tree_dce_init): Use XNEWVEC.
125         * tree-ssa-copy.c (init_copy_prop): Likewise.
126         (fini_copy_prop): Likewise.
127         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use XNEW
128         and XCNEWVEC.
129         (record_equiv): Use XNEW.
130         (uncprop_into_successor_phis): Use explicit cast to convert from
131         void *.
132         (uncprop_initialize_block): Likewise.
134 2005-12-18  Dorit Nuzman  <dorit@il.ibm.com>
136         PR tree-optimization/24378      
137         * tree-vect-transform.c (vect_transform_loop): Create single-predecessor
138         basic-block after loop-versioning. 
140 2005-12-18  Jeff Law  <law@redhat.com>
142         * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Code
143         to simplify SWITCH_EXPR_CODE moved from here to ...
144         * tree-ssa-forwprop.c (simplify_switch_expr): Here.
145         (tree-ssa-forward_propagate_single_use_vars): Call
146         simplify_switch_expr when appropriate.
148 2005-12-17  Andrew Pinski  <pinskia@physics.uc.edu>
150         * doc/objc.texi (Type encoding): Add documentation about encoding
151         complex types and _Bool.
153 2005-12-17  Paul Brook  <paul@codesourcery.com>
155         * config/m68k/m68k.md (m68k_output_function_prologue): Always call
156         dwarf2out_def_cfa. Only add space for frame pointer to cfa_offset
157         when frame_pointer_needed. 
159 2005-12-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
161         * tree-vn.c (vn_add): Use XNEW.
162         * tree-ssa-ccp.c (ccp_initialize): Use XNEWVEC.
163         (ccp_fold): Likewise.
164         (fold_stmt_r): Use explicit cast to convert from void *.
165         * tree-outof-ssa.c (new_temp_expr_table): Use XCNEWVEC.
166         (new_temp_expr_table): Likewise.
167         * gimplify.c (lookup_tmp_var): Use XNEW.
168         (gimplify_asm_expr): Use explcit cast to convert from void *.
169         * tree-into-ssa.c (get_ssa_name_ann): Likewise.
170         (get_def_blocks_for): Use XNEW.
171         (add_to_repl_tbl): Likewise.
172         (mark_def_sites): Use explicit cast to convert from void *.
173         (def_blocks_free): Likewise.
174         (mark_def_sites_initialize_block): Likewise.
175         (update_ssa): Use XNEWVEC.
176         * tree-dfa.c (create_var_ann): Use GGC_NEW.
177         (create_stmt_ann): Likewise.
178         (create_tree_ann): Likewise.
179         (referenced_var_insert): Likewise.
180         (set_default_def): Likewise.
181         (referenced_var_lookup_if_exists): Use explicit cast to convert
182         from void *.
183         (referenced_var_lookup): Likewise.
184         (default_def): Likewise.
185         (set_default_def): Likewise.
186         * tree-cfg.c (create_bb): Likewise.
187         (edge_to_cases_cleanup): Likewise.
188         (verify_node_sharing): Likewise.
189         (record_switch_edge): Use XNEW.
190         (cleanup_dead_labels): Use XCNEWVEC.
191         (tree_duplicate_sese_region): Use XNEWVEC.
192         * tree-scalar-evolution.c (get_instantiated_value): Likewise.
193         * tree-ssa.c (verify_ssa): Use XCNEWVEC.
194         (int_tree_map_eq): Use explicit cast to convert from void *.
195         * libgcov.c (gcov_exit): Use explicit cast to convert from void *.
196         (__gcov_execl): Likewise.
197         (__gcov_execlp): Likewise.
198         (__gcov_execle): Likewise.
199         * tree-eh.c (struct_ptr_eq): Likewise.
200         (struct_ptr_hash): Likewise.
201         (lookup_stmt_eh_region_fn): Likewise.
202         (outside_finally_tree): Likewise.
203         (find_goto_replacement): Likewise.
204         (make_eh_edge): Likewise.
205         (mark_eh_edge): Likewise.
206         (add_stmt_to_eh_region_fn): Use GGC_NEW.
207         (record_in_finally_tree): Use XNEW.
208         (maybe_record_in_goto_queue): Use XRESIZEVEC.
209         (lower_try_finally_copy): Use XCNEWVEC.
211 2005-12-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
213         * tree-inline.c (copy_body_r): Use explicit cast when converting
214         from void *.
215         (copy_bb): Likewise.
216         (copy_edges_for_bb): Likewise.
217         (remap_decl_1): Likewise.
218         (estimate_num_insns_1): Likewise.
219         * cgraph.c (hash_node): Use explicit cast when converting from
220         void *.
221         (eq_node): Likewise.
222         (cgraph_create_node): Use GGC_CNEW.
223         (cgraph_create_edge): Use GGC_NEW.
224         (cgraph_remove_node): Use explicit cast when converting from void *.
225         (hash_varpool_node): Likewise.
226         (eq_varpool_node): Likewise.
227         (cgraph_varpool_node): Use GGC_CNEW.
228         * lambda.h (lambda_vector_new): Use GGC_CNEWVEC.
229         * tree-scalar-evolution.c (new_scev_info_str): Use XNEW.
230         (eq_scev_info): Use explicit cast when converting from void *.
231         (find_var_scev_info): Likewise.
232         (set_instantiated_value): Likewise.
233         (gather_stats_on_scev_database_1): Likewise.
234         * cfgloop.h (simple_loop_desc): Use explicit cast when converting
235         from void *.
236         * c-pch.c (c_common_write_pch): Use XNEWVEC.
237         (c_common_read_pch): Likewise.
238         * prefix.c (save_string): Use XNEWVEC.
239         (translate_name): Use explicit cast when converting from void *.
240         * c-ppoutput.c (print_line): Use explicit cast when converting
241         from void *.
242         (pp_dir_change): Likewise.
243         * c-cppbuiltin.c (builtin_define_std): Likewise.
244         (builtin_define_with_value): Likewise.
245         (builtin_define_with_value_n): Likewise.
246         (builtin_define_with_int_value): Likewise.
247         (builtin_define_type_max): Likewise.
248         * c-incpath.c (add_env_var_paths): Use XNEWVEC.
249         (add_path): Use XNEW.
250         * c-format.c (check_format_info_main): Use GGC_NEW.
251         (format_type_warning): Use explicit cast when converting from void *.
252         * c-typeck.c (alloc_tagged_tu_seen_cache): Use XNEW instead of
253         xmalloc. 
254         (start_init): Likewise.
255         * tree-flow-inline.h (first_referenced_var): Use explicit cast
256         when converting from void *.
257         (next_referenced_var): Likewise.
258         * c-pragma.c (push_alignment): Use GGC_NEW instead of ggc_alloc.
259         * gensupport.c (lookup_predicate): Use explicit cast to convert
260         from void *.
261         (init_predicate_table): Use XCNEW instead of xcalloc.
262         * genpreds.c (process_define_predicate): Likewise.
264 2005-12-17  Danny Berlin <dberlin@dberlin.org>
265             Kenneth Zadeck <zadeck@naturalbridge.com>
267         * basic-block.h: Changed basic block numbering so that the entry
268         block is 0 and the exit block is 1.  Changed insn iterators so
269         that they are tolerant of blocks with no insns.
270         * regrename.c (copyprop_hardreg_forward): Changed basic block
271         numbering so that the entry block is 0 and the exit block is 1.
272         * sched-ebb.c (sehedule_ebbs): Ditto.
273         * tracer.c (branch_ratio_cutoff): Ditto.
274         * cfgloopmanip.c (fix_loop_structure): Ditto.
275         * cfghooks.c (verify_flow_info): Ditto.
276         * cfg.c (compact_blocks): Ditto.
277         * reorg.c (dbr_schedule): Ditto.
278         * flow.c (calculate_global_regs_live, libcall_dead_p): Ditto.
279         * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
280         calculate_dominance_info): Ditto.
281         * cfganal.c (create_edge_list, print_edge_list,
282         flow_depth_first_order_compute, flow_dfs_compute_reverse_init,
283         flow_dfs_compute_reverse_add_bb, flow_dfs_compute_reverse_execute,
284         dfs_enumerate_from): Ditto.
285         * global.c (global_alloc, set_up_bb_rts_numbers): Ditto.
286         * ifcvt.c (find_if_case_2): Ditto.
287         * cfgbuild.c (control_flow_insn_p, count_basic_blocks,
288         find_basic_blocks): Ditto.
289         * predict.c (predict_loops, tree_bb_level_predictions,
290         predict_paths_leading_to, propagate_freq): Ditto.
291         * lcm.c (compute_antinout_edge, compute_laterin,
292         compute_available): Ditto.
293         * function.c (thread_prologue_and_epilogue_insns): Ditto.
294         * gcse.c (gcse_main, bypass_jumps): Ditto.
295         * profile.c (compute_branch_probabilities,
296         compute_value_histograms, branch_prob): Ditto.
297         * tree-flow-inline.h (bsi_start, bsi_after_labels,
298         bsi_last): Ditto.
299         * tree-ssa-phiopt.c (tree_ssa_phiopt,
300         blocks_in_phiopt_order): Ditto.
301         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
302         compute_out, link_btr_uses, migrate_btr_defs): Ditto.
303         * tree-dfa.c (collect_dfa_stats): Ditto.
304         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Ditto.
305         * cfglayout.c (fixup_reorder_chain): Ditto.
306         * bb-reorder.c (reorder_basic_blocks, duplicate_computed_gotos,
307         partition_hot_cold_basic_blocks): Ditto.
308         * var-tracking.c (vt_find_locations): Ditto.
309         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find, get_loop_body): Ditto.
310         * sched-rgn.c (compute_trg_info, init_regions, schedule_insns): Ditto.
311         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, make_edges
312         label_to_block_fn, print_loop_ir, tree_flow_call_edges_add): Ditto.
313         * tree-ssa-reassoc.c (init_reassoc): Ditto.
314         * cfgrtl.c (entry_of_function, rtl_verify_flow_info,
315         rtl_flow_call_edges_add, rtl_flow_call_edges_add): Ditto.
316         * df.c (df_analyze_1, hybrid_search, iterative_dataflow): Ditto
317         and removed unused reverse orders.
318         * df.h (): Ditto.
319         * combine.c: Fix document typo.
321 2005-12-17  Jan Hubicka  <jh@suse.cz>
323         * tree-flow-inline.h (set_default_def, default_def): Kill.
324         * tree-dfa.c (default_defs): New global variable.
325         (default_def, set_default_def): New functions.
326         * tree-ssa.c (init_tree_ssa, delete_tree_ssa): Add default_def hash.
327         * tree-flow.h (struct var_ann_d): Kill default_def field.
328         (set_default_def, default_def): Update prototype.
329         (default_defs): Declare.
331 2005-12-16  Jeff Law  <law@redhat.com>
333         * tree-ssa-dom.c (update_rhs_and_lookup_avail_expr): Kill.
334         (simplify_rhs_and_lookup_avail_expr): Kill.  Remnants moved
335         into tree-ssa-forwprop.c.
336         (eliminate_redundant_computations): Do not call
337         simplify_rhs_and_lookup_avail_expr anymore.
338         * tree-ssa-forwprop.c (simplify_not_neg_expr): New function
339         extracted from remnants of simplify_rhs_and_lookup_avail_expr.
340         (tree_ssa_forward_propagate_single_use_vars): Call
341         simplify_not_neg_expr appropriately.
343 2005-12-16  Bernd Trog  <berndtrog@yahoo.com>
345         PR target/20016
346         * config/avr/t-avr: Add -Os to TARGET_LIBGCC2_CFLAGS.
348 2005-12-17  Kazu Hirata  <kazu@codesourcery.com>
350         PR rtl-optimization/25456
351         * struct-equiv.c (struct_equiv_improve_checkpoint): Replace
352         info->x_start with p->x_start.
354 2005-12-17  Alan Modra  <amodra@bigpond.net.au>
356         * simplify-rtx.c (simplify_binary_operation_1 <IOR>): Correct bug
357         introduced 2005-12-16.
359 2005-12-16  Steven Bosscher  <stevenb@suse.de>
361         PR rtl-optimization/23837
362         * optabs.c (expand_binop): For a multi-word rotate, never emit
363         a REG_NO_CONFLICT block.
365 2005-12-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
367         PR middle-end/25457
368         * reorg.c (mostly_true_jump): Remove unused variable 'insn'.
370         PR target/25447
371         * config/pa/pa.c (pa_scalar_mode_supported_p): Handle
372         MODE_DECIMAL_FLOAT.
374 2005-12-16  Steven Bosscher  <stevenb@suse.de>
376         * loop-invariant.c (move_loop_invariants): Add missing hunk from
377         the previous patch, to nullify df.
379 2005-12-16  Steven Bosscher  <stevenb@suse.de>
381         * reorg.c (mostly_true_jump): Clean up code depending on
382         LABEL_OUTSIDE_LOOP_P and loop notes.  Remove code doing
383         poor man's branch prediction, instead rely on REG_BR_PROB
384         notes to be available.
386 2005-12-16  Jakub Jelinek  <jakub@redhat.com>
388         PR rtl-optimization/24899
389         * loop.c (strength_reduce): Don't reduce giv that is not always
390         computable and where add_val or mult_val can trap.
392         * doc/invoke.texi (-fdump-tree-*): Remove note about C/C++ only.
394 2005-12-16  Nathan Sidwell  <nathan@codesourcery.com>
396         * config/mt/mt.h (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Correct
397         names of ms1-16-002 files.
399 2005-12-16  Alan Modra  <amodra@bigpond.net.au>
401         PR driver/20425
402         * gcc.c (for_each_path): New function.
403         (add_to_obstack, file_at_path): New functions.
404         (struct file_at_path_info, struct add_to_obstack_info): New.
405         (build_search_list): Rewrite using for_each_path.  Constify struct
406         path_prefix pointer.  Add do_multi param.  Adjust all callers.
407         (find_a_file): Similarly, but just change existing param to bool.
408         (putenv_from_prefixes): Add do_multi param, make "paths" const.
409         (do_spec_path): Delete.
410         (struct spec_path_info): New.
411         (spec_path): New function.
412         (do_spec_1): Use for_each_path for %D and %I.
413         (find_file): Adjust for find_a_file changes.
414         (main): Search multilibs for specs.  Print multilib lib path for
415         -print-search-dirs.  Likewise add multilibs to LIBRARY_PATH_ENV.
416         (read_specs): Search multilibs for %include and %include_noerr.
417         (is_directory): Remove second string param.  Change last param
418         to a bool.  Don't use concat.  Remove SMALL_ARG_MAX test, always
419         check path is a dir.  Update all callers.
420         * doc/hostconfig.texi (SMALL_ARG_MAX): Remove mention.
421         * system.h (SMALL_ARG_MAX): Poison.
422         * config.gcc: Don't define SMALL_ARG_MAX.
423         * config.host: Likewise.
424         * config.build: Likewise.
426 2005-12-16  Paolo Bonzini  <bonzini@gnu.org>
428         * combine.c (combine_simplify_rtx <case NOT, NEG, TRUNCATE,
429         FLOAT_TRUNCATE, FLOAT_EXTEND, PLUS, MINUS, AND, IOR, XOR,
430         ABS, VEC_SELECT, POPCOUNT, PARITY, FFS, FLOAT>,
431         simplify_logical): Move simplifications that do not require
432         additional infrastructure...
433         * simplify-rtx.c (simplify_unary_operation_1,
434         simplify_binary_operation_1): ... here.
436 2005-12-16  Andreas Krebbel  <krebbel1@de.ibm.com>
438         PR 24823
439         * flow.c (mark_used_dest_regs): New function.
440         (mark_used_regs): Call mark_used_dest_regs.
442 2005-12-16  Jeff Law  <law@redhat.com>
444         * tree-ssa-dse.c (dse_optimize_stmt): Correctly handle PHI nodes which
445         represent a use and definition of the same SSA_NAME.
447 2005-12-16  Jon Grimm  <jgrimm2@us.ibm.com>
448             Janis Johnson  <janis187@us.ibm.com>
449             Ben Elliston  <bje@au.ibm.com>
451         * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): New.
452         (TARGET_INITIALIZER): Add TARGET_DECIMAL_FLOAT_P.
453         * target.h (struct gcc_target): Add decimal_float_supported_p.
454         * targhooks.c (default_scalar_mode_supported_p): Handle
455         MODE_DECIMAL_FLOAT.
456         * builtins.def: Add new builtins for 32, 64 and 128 bit variants
457         of inf, nan, finite, isinf and isnan.
458         * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128,
459         BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR,
460         BT_FN_DFLOAT32, BT_FN_DFLOAT64, BT_FN_DFLOAT128,
461         BT_FN_INT_DFLOAT32, BT_FN_INT_DFLOAT64, BT_FN_INT_DFLOAT128,
462         BT_FN_DFLOAT32_CONST_STRING, BT_FN_DFLOAT64_CONST_STRING,
463         BT_FN_DFLOAT32_CONST_STRING, BT_FN_DFLOAT32_DFLOAT32,
464         BT_FN_DFLOAT64_DFLOAT64, BT_FN_DFLOAT128_DFLOAT128): New.
465         * c-decl.c (declspecs_add_type): Verify combos on type qualifiers.
466         Pedwarn if decimal floating point types are used.  Error if
467         decimal floating point is not supported by the target.
468         (finish_declspecs): Return type from DFP typespec_word.
469         * c-typeck.c (c_common_type): Choose the decimal floating point
470         type with the greater precision when determining a common type.
471         (convert_arguments): Warn if there is a mismatch between argument
472         and prototype for decimal float types.  Warn of conversions with
473         binary float types and of precision narrowing due to prototype.
474         * c-parser.c (reswords): Add _Decimal32, _Decimal64, _Decimal128.
475         (c_token_starts_typename): Handle RID_DFLOAT32/64/128.
476         (c_token_starts_declspecs): Likewise.
477         (c_parser_attributes): Likewise.
478         * c-common.h (enum rid): Add new enumeration values RID_DFLOAT32,
479         RID_DFLOAT64, RID_DFLOAT128.
480         (T_D32, TEX_D32, T_D64, TEX_D64, T_D128, TEX_D128): New macros.
481         * c-common.c (c_common_type_for_mode): Handle decimal float modes.
482         (shorten_compare): Convert DFP/BFP operands to a common type.
483         (c_common_modes_and_builtins): Register built-in decimal float
484         types if the target supports them.
485         (handle_mode_addtribute): Handle MODE_DECIMAL_FLOAT.
486         * builtins.c (fold_builtin_1): Handle 32, 64 and 128 bit cases of
487         inf, nan, finite, isinf and isnan builtins.
488         * c-cppbuiltin.c (builtin_define_decimal_float_constants): New.
489         (builtin_define_float_constants): Assert non-decimal radix.
490         (c_cpp_builtins): Register built-in __DEC_EVAL_METHOD__ define.
491         Call builtin_define_decimal_float_constants for each type.
492         * c-lex.c (interpret_float): Decode decimal float types from CPP_N
493         flags.  Use real_from_string3, which can handle binary or decimal
494         floats.
495         * c-tree.h (enum c_typespec_keyword): Add cts_dfloat32,
496         cts_dfloat64, cts_dfloat128.
497         * tree.c (build_common_tree_nodes_2): Add decimal float types.
498         * tree.h (enum tree_index): Add new enumeration values
499         TI_DFLOAT32_TYPE, TI_DFLOAT64_TYPE, TI_DFLOAT128_TYPE,
500         TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE, TI_DFLOAT128_PTR_TYPE.
501         (dfloat32_type_node): New macro.
502         (dfloat64_type_node, dfloat128_type_node): Likewise.
503         (dfloat32_ptr_type_node, dfloat64_ptr_type_node): Likewise.
504         (dfloat128_ptr_type_node): Likewise.
505         * c-pretty-print.c (pp_c_floating_constant): Append 32, 64 and 128
506         bit decimal floating point types with "df", "dd" and "dl".
507         * c-format.h (enum format_lengths): Add new enumeration values
508         FMT_LEN_H, FMT_LEN_D and FMT_LEN_DD.
509         * c-format.c (printf_length_specs, scanf_length_specs): Add
510         entries for H, D, DD.
511         (print_char_table, scan_char_table): Use new entries.
512         (asm_fprintf_char_table, gcc_diag_char_table,
513         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Adjust for longer
514         length arrays.
515         * defaults.h (DECIMAL32_TYPE_SIZE): Define.
516         (DECIMAL64_TYPE_SIZE): Likewise.
517         (DECIMAL128_TYPE_SIZE): Likewise.
518         (TARGET_DEC_EVAL_METHOD): Likewise.
519         * doc/extend.texi (Decimal Float): New node.
520         (Constructing Calls): Document decimal float built-ins.
521         * doc/tm.texi: Document TARGET_DECIMAL_FLOAT_SUPPORTED_P hook.
522         * Makefile.in (USER_H): Add $(srcdir)/ginclude/decfloat.h.
523         * ginclude/decfloat.h: New file.
525 2005-12-16  Alan Modra  <amodra@bigpond.net.au>
527         * reload.c (find_reloads): Fix comment typo.
528         * recog.h (recog_memoized): Correct comment.
530 2005-12-16  Kazu Hirata  <kazu@codesourcery.com>
532         * basic-block.h, config/i386/winnt.c, config/pa/pa.c,
533         config/s390/s390.c, dfp.c, expr.c, fold-const.c, params.def,
534         reload.c, struct-equiv.c, tree-ssa-ccp.c, tree-ssa-pre.c,
535         tree-ssa-reassoc.c, tree-ssa-structalias.c: Fix comment typos.
536         * doc/invoke.texi, doc/tm.texi: Fix typos.
538 2005-12-16  Ben Elliston  <bje@au.ibm.com>
540         * real.c (decimal_quad_format): Correct values for emin, emax.
542 2005-12-15  DJ Delorie  <dj@redhat.com>
544         * config/m32c/predicates.md (m32c_psi_scale): New.
545         * config/m32c/m32c.c (m32c_expand_neg_mulpsi3): New.
546         * config/m32c/muldiv.md (mulpsi3): Support negative constants.
548 2005-12-16  Jan Hubicka  <jh@suse.cz>
550         PR rtl-optimization/25224
551         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free copy
552         tables.
554 2005-12-15  Zdenek Dvorak <dvorakz@suse.cz>
555             Steven Bosscher <stevenb@suse.de>
557         * loop-invariant.c (df): New global variable.
558         (find_defs, check_dependencies, find_invariant_insn, record_uses,
559         find_invariants_bb, find_invariants_body, find_invariants,
560         find_invariants_to_move, move_invariants, free_inv_motion_data,
561         move_single_loop_invariants, move_loop_invariants): Do not pass df in
562         arguments.
564 2005-12-15  Jakub Jelinek  <jakub@redhat.com>
566         * varasm.c (default_unique_section_1): Use special section
567         names for SECCAT_DATA_REL{,_RO}{,_LOCAL}.
569 2005-12-16  Ben Elliston  <bje@au.ibm.com>
571         * doc/invoke.texi (Warning Options): Document -Walways-true being
572         enabled by -Wall.
574 2005-12-15  Joseph S. Myers  <joseph@codesourcery.com>
576         PR other/25028
577         * libgcc2.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Define.
578         * libgcc2.c (__floatdixf, __floatundixf, __floatditf,
579         __floatunditf): Use #error if type sizes don't match requirements
580         of implementation.
581         (__floatdisf, __floatdidf): Unify.  Possibly use XFmode or TFmode
582         as wider floating-point type.  Use #error if type sizes don't
583         match requirements of implementation.  Avoid overflow in computing
584         Wtype_MAXp1_F * Wtype_MAXp1_F.  When special casing conversion,
585         shift one more bit.  Cast 1 to DWtype or UDWtype for shifting.
586         (__floatundisf, __floatundidf): Likewise.
587         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Define.
588         * config/ia64/ia64.c (ia64_init_libfuncs): Use
589         _U_Qfcnvfxt_quad_to_quad and _U_Qfcnvxf_quad_to_quad for
590         TFmode-TImode conversions.
591         * doc/tm.texi (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Document.
593 2005-12-14  Craig Rodrigues  <rodrigc@gcc.gnu.org>
595         * freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS):
596         Use builtin_define_with_int_value() instead of
597         adding a new check for every new major FreeBSD version.
599 2005-12-14  Andrew Pinski  <pinskia@physics.uc.edu>
601         * config/t-darwin (darwin-c.o): Depend on $(TREE_H) instead of tree.h.
603 2005-12-15  Richard Sandiford  <richard@codesourcery.com>
605         * config/arm/predicates.md (call_memory_operand): New.
606         * config/arm/arm.md (*call_mem, *call_value_mem): Use it.
608 2005-12-15  Andrew Haley  <aph@redhat.com>
610         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Guard
611         against prev_cache_entry == NULL when moving a cache entry to the
612         head of the list.
613         
614 2005-12-15  Nathan Sidwell  <nathan@codesourcery.com>
616         * config/mt/mt.c (mt_override_options): Require lower case
617         architectures.  Revert accidental default to ms2.
618         * config/mt/mt.h (ASM_SPEC, LIBSPEC, STARTFILE_SPEC,
619         ENDFILE_SPEC): Require lower case architectures.  Revert default
620         to ms2.
622         * doc/invoke.texi (MT Options): Rename and update.
623         * doc/md.texi (MorphoTech family): Rename and update.
625 2005-12-15  Olivier Hainque  <hainque@adacore.com>
627         * stor-layout.c (layout_type): Don't complain about a too small
628         an array element type size compared to its alignment when the
629         size overflows.
631 2005-12-15  Jan Hubicka  <jh@suse.cz>
633         PR target/24969
634         * i386.c (classify_argument): Properly adjust offset of bitfield for
635         substructures.
637 2005-12-15  Richard Sandiford  <richard@codesourcery.com>
639         * final.c (final_scan_insn): Flip in_cold_section_p when changing
640         between the hot and cold sections.  Use current_function_section
641         to get the new section.
642         * dwarf2out.c (output_line_info): Use in_cold_section_p to
643         determine whether we are assembling hot or cold code.
644         (secname_for_decl, dwarf2out_var_location): Likewise.
645         (dwarf2out_init, dwarf2out_finish): Use switch_to_section.
646         * varasm.c (last_text_section): Delete.
647         (in_cold_section_p): New variable.
648         (hot_function_section): New function.
649         (current_function_section): Pass in_cold_section_p as the
650         reloc argument to select_section.  Use it to decide between
651         unlikely_function_section and hot_function_section.
652         (assemble_start_function): Use switch_to_section.  Set
653         in_cold_section_p instead of last_text_section.
654         (assemble_end_function): Use switch_to_section.
655         (switch_to_section): Don't set last_text_section.
656         * config/darwin/darwin.c (machopic_select_section): Trust the reloc
657         argument to make the right choice between hot and cold sections.
659 2005-12-15  Nathan Sidwell  <nathan@codesourcery.com>
661         Second part of MS1->MT renaming
662         * config/mt/mt.md (doloop_end): Call mt_add_loop.
663         (movqi, movhi): Call mt_set_memflags.
664         (*movdf_internal): Call mt_split_words. 
665         (reload_inqi, reload_outqi, reload_inhi, reload_outhi): Call
666         mt_set_memflags.
667         (cmpsi): Store to mt_compare_op[01].
668         (beq, bne, bge, bgt, ble, blt, bgeu, bgtu, bleu, bltu, bunge,
669         bungt, bunle, bunlt): Call mt_emit_cbranch.
670         (prologue): Call mt_expand_prologue.
671         (epilogu): Call mt_expend_epilogue.
672         (eh_return): Call mt_expand_eh_return.
673         (eh_epilogue): Call me_emit_eh_epilogue.
674         (conditional_trap): Store to mt_compare_op[01].
675         * config/mt/crti.asm: Adjust comment.
676         * config/mt/crtn.asm: Adjust comment.
677         * config/mt/mt.c (MT_INT_ARG_FIRST): Renamed.
678         (mt_compare_op0, mt_compare_op1): Renamed.
679         (current_frame_info, zero_frame_info): Adjust type.
680         (mt_ucmpsi3_libcall): Renamed.
681         (mt_flag_delayed_branch): Renamed.
682         (mt_struct_value_rtx, mt_return_addr_rtx): Renamed.
683         (mt_nops_required, mt_nop_reasons): Renamed.
684         (mt_asm_output_opcode, mt_get_attr_type, mt_final_prescan_insn,
685         mt_debug_stack, mt_print_operand_simple_address,
686         mt_print_operand_address, mt_print_operand): Renamed, adjusted.
687         (mt_init_cumulative_args, mt_function_arg_slotno, mt_function_arg,
688         mt_function_arg_advance, mt_arg_partial_bytes,
689         mt_pass_by_reference, mt_function_arg_boundary,
690         mt_reg_ok_for_base_p, mt_legitimate_simple_address_p,
691         mt_legitimate_address_p): Renamed, adjusted.
692         (mt_cpu): Renamed.
693         (mt_init_machine_status, mt_override_options, mt_builtin_saveregs,
694         mt_va_start, mt_compute_frame_size, mt_emit_save_restore,
695         mt_emit_save_fp, mt_emit_save_regs, mt_interrupt_function_p, 
696         mt_expand_prologue, mt_epilogue_uses, mt_expand_epilogue,
697         mt_expand_eh_return, mt_emit_eh_prologue,
698         mt_handl_interrupt_attribute): Renamed, adjusted.
699         (mt_attribute_table): Renamed, adjusted.
700         (mt_initial_elimination_offset, mt_generate_compare,
701         mt_emit_cbranch, mt_set_memflags_1, mt_set_memflags,
702         mt_secondary_reload_class, mt_function_value, mt_split_words,
703         mt_pass_in_stack, mt_add_loop, mt_loop_nesting, mt_block_length,
704         mt_scan_loop, mt_reorg_loops): Renamed, adjusted.
705         (mt_labels): Renamed.
706         (mt_add_branches, mt_check_delay_slot, mt_reorg_hazard,
707         mt_machine_reorg): Renamed, adjusted.
708         (mt_attribute_table: Renamed.
709         (TARGET_ATTRIBUTE_TABLE, TARGET_STRUCT_VALUE_RTX,
710         TARGET_PASS_BY_REFERENCE, TARGET_MUST_PASS_IN_STACK,
711         TARGET_ARG_PARTIAL_BYTES, TARGET_MACHINE_DEPENDENT_REORG): Adjust.
712         * config/mt/mt.opt (march): Set mt_cpu_string.
713         * config/mt/mt.h (mt_ucmpsi3_libcall, mt_cpu): Renamed.
714         (TARGET_CPU_CPP_BUILTINS): Adjust.
715         (TARGET_MS1_64_001, TARGET_MS1_16_002, TARGET_MS1_16_003,
716         TARGET_MS2): Adjust.
717         (TARGET_VERSION, OVERRIDE_OPTIONS, SECONDARY_RELOAD_CLASS): Adjust.
718         (MT_MIN_INT): Renamed.
719         (RETURN_ADDR_RTX): Adjust.
720         (struct mt_frame_info): Renamed.
721         (current_frame_info): Adjust type.
722         (INITIAL_ELIMINATION_OFFSET): Adjust.
723         (MT_NUM_ARG_REGS): Renamed.
724         (REG_PARM_STACK_SPACE, FUNCTION_ARG, INIT_CUMULATVE_ARGS,
725         FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY, FUNCTION_VALUE,
726         LIBCALL_VALUE, EPILOGUE_USES, EXPAND_BUILTIN_VA_START,
727         GO_IF_LEGITIMATE_ADDRESS, REG_OK_FOR_BASE_P, ASM_OUTPUT_OPCODE,
728         FINAL_REPSCAN_INSN, PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Adjust.
729         (mt_compare_op0, mt_compare_op1): Renamed.
730         * config/mt/mt-protos.h: Rename prototypes.
732 2005-12-15  Richard Guenther  <rguenther@suse.de>
734         * tree-flow.h (okay_component_ref_for_subvars): Remove.
735         (get_ref_base_and_extent): Declare.
736         * tree-dfa.c (okay_component_ref_for_subvars): Remove.
737         (get_ref_base_and_extent): New function.
738         * tree-ssa-alias.c (find_used_portions): Use it.
739         * tree-ssa-structalias.c (get_constraint_for_component_ref):
740         Likewise.
741         * tree-ssa-operands.c (get_expr_operands): Likewise.
743 2005-12-15  Paolo Bonzini  <bonzini@gnu.org>
745         * combine.c: Remove force_to_mode's fourth parameter.
746         (force_to_mode): Do not handle REG.
747         (canon_reg_for_combine): New.
748         (make_field_assignment): Use it where the removed argument was non-NULL.
750 2005-12-15  Alan Modra  <amodra@bigpond.net.au>
752         PR target/25406
753         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Handle
754         error_mark_node.  Make alignment params unsigned.
755         * config/rs6000/rs6000-protos.h
756         (rs6000_special_round_type_align): Update prototype.
757         (rs6000_machopic_legitimize_pic_address): Remove arg names.
759 2005-12-14  Ulrich Weigand  <uweigand@de.ibm.com>
761         PR rtl-optimization/25310
762         * reload1.c (eliminate_regs_in_insn): Handle lowpart SUBREGs
763         of the eliminable register when substituting into a PLUS.
765 2005-12-14  Jakub Jelinek  <jakub@redhat.com>
767         PR debug/25023
768         * config/i386/i386.c (ix86_force_to_memory): Always use
769         SImode push for HImode in -m32.
770         (ix86_free_from_memory): Likewise.
772 2005-12-14  Richard Sandiford  <richard@codesourcery.com>
774         * gcc/config/arm/arm.md: Provide a big-endian version of the
775         (zero_extend:SI (subreg:QI ...)) splitter.
777 2005-12-14  J"orn Rennecke <joern.rennecke@st.com>
779         * struct-equiv.c (note_local_live): Handle hard regs with different
780         hard_regno_nregs.
782 2005-12-14  Jeff Law  <law@redhat.com>
784         * tree-ssa-ccp.c (fold_stmt_r): DATA argument is now a pointer
785         to a structure containing state rather than a pointer to bool.
786         (case ARRAY_REF): New code to handle folding some array references.
787         (case ADDR_EXPR): Note when we are processing expressions found
788         within an ADDRE_EXPR.
789         (fold_stmt, fold_stmt_inplace): Pass in a structure to fold_stmt_r
790         for state variables rather than just a pointer to a boolean.
791         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Remove
792         handling of constant string references.
794 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
796         * config/s390/s390.md ("*tstdi_extimm", "*tstsi_extimm"): Merge.
797         ("*tstdi_cconly_extimm", "*tstsi_cconly_extimm"): Merge.
798         ("*tstdi_cconly2", "*tstsi_cconly2"): Merge.
799         Move other tst* patterns to retain partial order.
801 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
803         * config/s390/s390.md ("d0", "1"): New mode attributes.
804         ("<shift>di3", "<shift>si3"): Merge.
805         ("*<shift>di3_and", "*<shift>si3_and"): Merge.
806         ("ashrdi3", "ashrsi3"): Merge.
807         ("*ashrdi3_cc", "*ashrsi3_cc"): Merge.
808         ("*ashrdi3_cc_and", "*ashrsi3_cc_and"): Merge.
809         ("*ashrdi3_cconly", "*ashrsi3_cconly"): Merge.
810         ("*ashrdi3_cconly_and", "*ashrsi3_cconly_and"): Merge.
811         ("*ashrdi3", "*ashrsi3"): Merge.
812         ("*ashrdi3_and", "*ashrsi3_and"): Merge.
814 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
816         * config/s390/s390.md ("extend<mode>di2", "extend<mode>si2"): Merge.
817         ("*extendqidi2_extimm", "*extendqisi2_extimm"): Merge.
818         ("*extendqidi2", "*extendqisi2") Merge.
819         ("*extendqidi2_short_displ", "*extendqisi2_short_displ"): Merge.
820         ("zero_extendhidi2", "zero_extendqidi2"): Merge.
821         ("*zero_extend<mode>di2_extimm", "*zero_extend<mode>si2_extimm"): Merge.
822         Move some patterns to retain partial ordering.
824 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
826         * config/s390/s390.md ("atype", "length"): Rewrite.
827         ("*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): Add mode.
829 2005-12-14  Sebastian Pop  <pop@cri.ensmp.fr>
831         * tree-ssa-operands.c (build_ssa_operands): Update leading comment.
833 2005-12-14  J"orn Rennecke <joern.rennecke@st.com>
835         * struct-equiv.c (rtx_equiv_p): Allow arbitrary RVALUE values for
836         PARALLELs with a mode.
838 2005-12-14  Sebastian Pop  <pop@cri.ensmp.fr>
840         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Adjust the type of
841         cond_expr parameter.
843 2005-12-14  Sebastian Pop  <pop@cri.ensmp.fr>
845         * loop-unswitch.c (unswitch_loop): Free zero_bitmap before returning.
847 2005-12-14  J"orn Rennecke <joern.rennecke@st.com>
849         PR bootstrap/25397:
851         * struct-equiv.c (struct_equiv_init): Fix off-by-one error in clearing
852         of STACK_REGS bits.
854         * struct-euiv.c (rtx_equiv_p): Remove SUBREG case.
856 2005-12-14  Jakub Jelinek  <jakub@redhat.com>
858         PR target/25254
859         PR target/24188
860         * config/i386/i386.c (x86_64_elf_select_section): If DECL is not
861         DECL_P, call get_section rather than get_named_section.  Supply
862         section flags to it.
864 2005-12-14  Ben Elliston  <bje@au.ibm.com>
866         * c-common.c (c_common_truthvalue_conversion): Generalise warning
867         for addresses converted to booleans; not just function addresses.
868         * c-typeck.c (build_binary_op): Warn for address comparisons which
869         can never be NULL (eg. func == NULL or &var == NULL).
870         * common.opt (Walways-true): New option.
871         * c-opts.c (c_common_handle_option): Set it with -Wall.
872         * doc/invoke.texi: Document it.
874 2005-12-13  Paul Brook  <paul@codesourcery.com>
876         * config/m68k/fpgnulib.c (__unordsf2, __unorddf2, __unordxf2,
877         __floatunsidf, __floatunsisf, __floatunsixf): New functions.
879 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
881         * sim/common/sim-signal.c (sim_signal_to_target): Add missing ':'.
882         * sim/common/sim-signal.h (sim_signal_to_target): Return an int.
884         * config/mt/t-mt (crti.o, crtn.o): Add multilib options.
885         (EXTRA_MULTILIB_PARTS): Define.
887 2005-12-13  J"orn Rennecke <joern.rennecke@st.com>
889         PR rtl-optimization/20070 / part1
890         * flow.c (update_life_info): If PROP_POST_REGSTACK is set, call
891         count_or_remove_death_notes with kill == -1.
892         (mark_set_1): Don't add REG_DEAD / REG_UNUSED notes for stack
893         registers if PROP_POST_REGSTACK is set.
894         (mark_used_reg): Likewise.
895         (count_or_remove_death_notes): If kill is -1, don't remove REG_DEAD /
896         REG_UNUSED notes for stack regs.
897         * cfgcleanup.c (condjump_equiv_p): Change parameters and processing
898         to match rtx_equiv_p machinery.  Change caller.
899         (outgoing_edges_match): Likewise.
900         (try_crossjump_to_edge): Use struct_equiv_block_eq
901         instead of flow_find_cross_jump.
902         * basic-block.h (PROP_POST_REGSTACK, STRUCT_EQUIV_START): Define.
903         (STRUCT_EQUIV_RERUN, STRUCT_EQUIV_FINAL): Likewise.
904         (STRUCT_EQUIV_NEED_FULL_BLOCK, STRUCT_EQUIV_MATCH_JUMPS): Likewise.
905         (STRUCT_EQUIV_MAX_LOCAL): Likewise.
906         (struct struct_equiv_checkpoint, struct equiv_info): Likewise.
907         (insns_match_p): Update prototype.
908         (flow_find_cross_jump): Remove prototype.
909         (struct_equiv_block_eq, struct_equiv_init): Declare.
910         (rtx_equiv_p, condjump_equiv_p): Likewise.
911         * struct-equiv.c: Include reload.h.
912         (IMPOSSIBLE_MOVE_FACTOR): Define.
913         (assign_reg_reg_set, struct_equiv_make_checkpoint): New functions.
914         (struct_equiv_improve_checkpoint): Likewise.
915         (struct_equiv_restore_checkpoint, rtx_equiv_p): Likewise.
916         (set_dest_equiv_p, set_dest_addr_equiv_p, struct_equiv_init): Likewise.
917         (struct_equiv_merge, find_dying_input): Likewise.
918         (resolve_input_conflict, note_local_live): Likewise.
919         (death_notes_match_p): Change parameters and processing
920         to match rtx_equiv_p machinery.  Change caller.
921         (insns_match_p): Likewise.
922         (flow_find_cross_jump): Replace with:
923         (struct_equiv_block_eq).
925         Back out this change:
926         2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
927           * recog.c (verify_changes): Make it static.
928           * recog.h: Remove the corresponding prototype.
930 2005-12-13  J"orn Rennecke <joern.rennecke@st.com>
932         * rtlhooks.c (gen_lowpart_general): Handle SUBREGs of floating point
933         values.
935 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
937         * config/mt/t-mt (MULTILIB_OPTIONS): Add ms2
938         (MULTILIB_DIRNAMES): Add ms2.  Prefix ms1 dirs with 'ms1'.
939         * config/mt/mt.c (ms1_final_prescan): Use TARGET_MS2,
940         TARGET_MS1_64_001 appropriately.
941         (ms1_machine_reorg): Use TARGET_MS2.
943 2005-12-13  Jakub Jelinek  <jakub@redhat.com>
945         PR debug/25023
946         PR target/25293
947         * expr.c (emit_move_resolve_push): Handle PRE_MODIFY
948         and POST_MODIFY with CONST_INT adjustment equal to PUSH_ROUNDING.
949         Fix POST_INC/POST_DEC handling if PUSH_ROUNDING is not identity.
950         * config/i386/i386.md (pushhi2, pushqi2): Use pushl instead of pushw.
951         Set mode to SI, adjust constraints.
952         (pushhi2_rex64, pushqi2_rex64): Set mode to DI.
953         * config/i386/i386.h (PUSH_ROUNDING): Round up to 4 instead of 2 for
954         32-bit code.
956 2005-12-13  Carlos O'Donell <carlos@codesourcery.com>
958         * c-cppbuiltin.c (builtin_define_float_constants): Add
959         fp_cast parameter, pass to builtin_define_with_hex_fp_value.
960         Define __FLT_HAS_DENORM__, __DBL_HAS_DENORM__, __LDBL_HAS_DENORM__.
961         (builtin_define_with_hex_fp_value): Use fp_cast when building macro.
962         (c_cpp_builtins): If flag_single_precision_constant then set fp_cast
963         to "((double)%sL)" otherwise "%s".
965 2005-12-13  Paul Brook  <paul@codesourcery.com>
967         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=gnu for
968         apcs/atpcs.
970 2005-12-11 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
972         * tree-flow.h: Allow compilation with a C++ compiler.
973         (struct edge_prediction): Prefix all field names  with "ep_".
974         * predict.c (tree_predicted_by_p): Likewise for struct edge_prediction.
975         (tree_predict_edge, combine_predictions_for_bb): Likewise.
976         (remove_predictions_associated_with_edge): Likewise.
977         
978 2005-12-12  Jeff Law  <law@redhat.com>
980         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Remove
981         reassociation code.
982         * passes.c (init_optimization_passes): Run reassociation again
983         after loop optimizations.
985 2005-12-12  Daniel Berlin  <dberlin@dberlin.org>
987         * tree-ssa-dom.c (thread_across_edge): Canonicalize condition
988         if necessary.
989         (optimize_stmt): Ditto.
990         (canonicalize_comparison): New function.
991         * tree-ssa-operands.c (swap_tree_operands): Make external.
992         (get_expr_operands): Stop auto-canonicalization.
993         * tree-ssa-reassoc.c: Rewrite.
994         (init_optimization_passes): 
995         * tree-flow.h (swap_tree_operands): Prototype.
996         * Makefile.in (tree-ssa-reassoc.o): Update dependencies.
998 2005-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1000         * pa.c (pa_output_function_epilogue): Set cfun->machine->in_nsubspa to
1001         indicate function epilogue has been output.
1002         (pa_asm_output_mi_thunk): Likewise.
1003         (output_deferred_plabels): Put plabels in readonly data section when
1004         not generating PIC code.
1005         (som_output_text_section_asm_op): Use .NSUBSPA to output debug
1006         information.  Add assert.
1007         (som_output_comdat_data_section_asm_op): New function.
1008         (pa_som_asm_init_sections): Use som_output_comdat_data_section_asm_op
1009         instead of output_section_asm_op for COMDAT sections.
1011 2005-12-12  J"orn Rennecke <joern.rennecke@st.com>
1013         * cfgcleanup.c (condjump_equiv_p, try_crossjump_to_edge):
1014         Fix whitespace in vincinity of to-be-installed changes.
1015         * struct-equiv.c (merge_memattrs, death_notes_match_p): Fix whitespace.
1016         (insns_match_p): Likewise.
1018 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
1020         * config.gcc (ms1): Replace with ...
1021         (mt): ... this.
1022         * config/ms1: Rename to ...
1023         * config/mt: ... here.  Rename ms1 files to mt.
1024         * config/mt/mt.c: Adjust gt-mt.h #include.
1025         * config/mt/t-mt (LIB1ASMSRCS, LIB2FUNCS_EXTRA): Adjust.
1026         (crti.o, crtn.o): Adjust file names.
1028 2005-12-12  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1030         * varray.h: Allow compilation with a C++ compiler.
1031         (union varray_data_tag): Prefix all field names with "vdt_".
1032         (VARRAY_CHAR, VARRAY_UCHAR, VARRAY_SHORT, VARRAY_USHORT,
1033         VARRAY_INT, VARRAY_UINT, VARRAY_LONG, VARRAY_ULONG,
1034         VARRAY_WIDE_INT, VARRAY_UWIDE_INT, VARRAY_GENERIC_PTR,
1035         VARRAY_GENERIC_PTR_NOGC, VARRAY_CHAR_PTR, VARRAY_RTX,
1036         VARRAY_RTVEC, VARRAY_TREE, VARRAY_BITMAP, VARRAY_REG, VARRAY_BB,
1037         VARRAY_ELT_LIST, VARRAY_EDGE, VARRAY_TREE_PTR): Adjust definition.
1038         (VARRAY_PUSH_CHAR, VARRAY_PUSH_UCHAR, VARRAY_PUSH_SHORT,
1039         VARRAY_PUSH_USHORT, VARRAY_PUSH_INT, VARRAY_PUSH_UINT, 
1040         VARRAY_PUSH_LONG, VARRAY_PUSH_ULONG, VARRAY_PUSH_WIDE_INT, 
1041         VARRAY_PUSH_UWIDE_INT, VARRAY_PUSH_GENERIC_PTR, 
1042         VARRAY_PUSH_GENERIC_PTR_NOGC, VARRAY_PUSH_CHAR_PTR, 
1043         VARRAY_PUSH_RTX, VARRAY_PUSH_RTVEC, VARRAY_PUSH_TREE, 
1044         VARRAY_PUSH_BITMAP, VARRAY_PUSH_REG, VARRAY_PUSH_BB, 
1045         VARRAY_PUSH_EDGE, VARRAY_PUSH_TREE_PTR): Likewise.
1046         (VARRAY_TOP_CHAR, VARRAY_TOP_UCHAR, VARRAY_TOP_SHORT, 
1047         VARRAY_TOP_USHORT, VARRAY_TOP_INT, VARRAY_TOP_UINT, 
1048         VARRAY_TOP_LONG, VARRAY_TOP_ULONG, VARRAY_TOP_WIDE_INT, 
1049         VARRAY_TOP_UWIDE_INT, VARRAY_TOP_GENERIC_PTR, 
1050         VARRAY_TOP_GENERIC_PTR_NOGC, VARRAY_TOP_CHAR_PTR, VARRAY_TOP_RTX, 
1051         VARRAY_TOP_RTVEC, VARRAY_TOP_TREE, VARRAY_TOP_BITMAP, 
1052         VARRAY_TOP_REG, VARRAY_TOP_BB, VARRAY_TOP_EDGE, 
1053         VARRAY_TOP_TREE_PTR): Likewise.
1054         * varray.c (varray_grow): Likewise.
1055         (varray_clear): Likewise.
1057 2005-12-12  Alan Modra  <amodra@bigpond.net.au>
1059         PR target/25299
1060         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Increase
1061         alignment to doubleword if the first field is a double array.
1062         * config/rs6000/linux64.h (TARGET_ALIGN_NATURAL): Define.
1064 2005-12-11  Daniel Berlin  <dberlin@dberlin.org>
1066         * tree-ssa-structalias.c (process_constraint): Remove code to
1067         transform addressofs into scalar.
1068         (create_variable_info_for): In whole-program IPA, globals don't
1069         point to ANYTHING by default.
1071 2005-12-11  Daniel Berlin  <dberlin@dberlin.org>
1073         * timevar.def (TV_IPA_PTA): New.
1074         * tree-pass.h (pass_ipa_pta): New
1075         * tree-ssa-structalias.c: Include cgraph.h
1076         (in_ipa_mode): New.
1077         (predbitmap_obstack): New.
1078         (EXECUTE_IF_IN_NONNULL_BITMAP): New.
1079         (struct constraint_stats): Add num_edges.
1080         (new_var_info): Don't call bitmap_clear.
1081         (struct constraint_edge): Update docs.
1082         (new_constraint_edge): Remove src param.
1083         (struct constraint_graph): Add zero_weight_succs,
1084         zero_weight_preds.  Update docs.
1085         (constraint_expr_equal): Reformat.
1086         (constraint_edge_equal): Update for removal of src.
1087         (constraint_edge_less): Ditto.
1088         (constraint_edge_vec_find): Ditto.
1089         (erase_graph_self_edge): Update for removal of src and and zero
1090         weight bitmap.
1091         (clear_edges_for_node): Ditto.
1092         (add_graph_edge): Ditto.
1093         (get_graph_weights): Ditto.
1094         (allocate_graph_weights): Ditto.
1095         (merge_graph_nodes): Ditto.
1096         (int_add_graph_edge): Ditto.
1097         (valid_graph_edge): Ditto.
1098         (valid_weighted_graph_edge): Ditto.
1099         (build_constraint_graph): Ditto.
1100         (scc_visit): Ditto.
1101         (collapse_nodes): Ditto.
1102         (process_unification_queue): Ditto.
1103         (topo_visit): Ditto.
1104         (solve_graph): Ditto.
1105         (do_structure_copy): Ditto.
1106         (perform_var_substitution): Ditto.
1107         Init and release obstack.
1108         (handle_ptr_arith): Try to resolve directly.
1109         (find_func_aliases): Don't call update_alias_info here
1110         Handle RETURN_EXPR, and CALL_EXPR's in IPA mode.
1111         (do_sd_constraint): Add code for propagating faster.
1112         Update.
1113         (do_ds_constraint): Ditto.
1114         (count_num_arguments): New function.
1115         (create_function_info_for): Ditto.
1116         (create_variable_info_for): Handle FUNCTION_DECL.
1117         (intra_create_variable_infos): Use make_constraint_to_anything.
1118         (init_alias_vars): Init obstacks here.
1119         (need_to_solve): Handle zero weight graph changes.
1120         (compute_points_to_sets): Call update_alias_info here.
1121         (delete_points_to_sets): Free zero weight preds/succs here.
1122         (gate_ipa_pta): New.
1123         (ipa_pta_execute): New
1125 2005-12-11  Daniel Berlin  <dberlin@dberlin.org>
1127         * tree-ssa-structalias.c (var_anyoffset): Removed.
1128         (anyoffset_tree): Ditto.
1129         (anyoffset_id): Ditto.
1130         (do_deref): Take vector of constraints, no return value.
1131         Update to work on vector.                
1132         (get_constraint_for): Ditto.
1133         (get_constraint_for_component_ref): Ditto.
1134         (do_structure_copy): Ditto.
1135         (handle_ptr_arith): Ditto.
1136         (find_func_aliases): Ditto.
1137         (set_uids_in_ptset): Remove anyoffset handling.
1138         (init_base_vars): Ditto.
1140 2005-12-10  Mark Mitchell  <mark@codesourcery.com>
1142         PR c++/25010
1143         * ipa-inline.c (cgraph_clone_inlined_nodes): Do not assume that
1144         DECL_EXTERNAL functions have no bodies.  Tidy.
1146 2005-12-10  Andreas Schwab  <schwab@suse.de>
1148         * except.c (switch_to_exception_section): Only define if
1149         TARGET_UNWIND_INFO is not defined.
1151 2005-12-10  Richard Sandiford  <richard@codesourcery.com>
1153         * config/darwin.h (HAS_INIT_SECTION): Remove definition.
1154         (INIT_SECTION_ASM_OP): Restore empty definition from before 2005-12-07.
1156 2005-12-10  Richard Sandiford  <richard@codesourcery.com>
1158         * output.h (init_section, fini_section): Delete.
1159         * varasm.c (init_section, fini_section): Delete.
1160         (init_varasm_once): Don't initialize them.
1161         * doc/tm.texi (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Say that
1162         there are no corresponding varasm.c variables.
1164 2005-12-10  Richard Sandiford  <richard@codesourcery.com>
1166         * dwarf2out.c (default_eh_frame_section): Delete, moving handling
1167         of EH_FRAME_SECTION_NAME into...
1168         (switch_to_eh_frame_section): ...here.  Try to set eh_frame_section
1169         if it is still null.
1170         * except.c (default_exception_section): Delete, moving most
1171         of the code to...
1172         (switch_to_exception_section): ...this new function.  Set
1173         exception_section if it is still null, then switch to it.
1174         (output_function_exception_table): Use switch_to_exception_section.
1175         * varasm.c (exception_section, eh_frame_section): Update comments.
1176         (get_section): Hoist use of SECTION_NAMED.
1177         (init_varasm_once): Don't set exception_section and eh_frame_section.
1178         * output.h (default_exception_section): Delete.
1179         (default_eh_frame_section): Delete.
1181 2005-12-09  Bernd Schmidt  <bernd.schmidt@analog.com>
1183         * config/bfin/bfin.c: Include "cgraph.h".
1184         (bfin_load_pic_reg): Omit loading pic reg if in a local function.
1185         Return the reg that holds the pointer to the GOT.
1186         (bfin_expand_prologue): Use return value of bfin_load_pic_reg when
1187         doing stack checking.
1189 2005-12-09  Diego Novillo  <dnovillo@redhat.com>
1191         * tree.c (recompute_tree_invariant_for_addr_expr): Rename from
1192         recompute_tree_invarant_for_addr_expr.
1193         Update uses everywhere.
1195 2005-12-09  Aldy Hernandez  <aldyh@redhat.com>
1197         * config/ms1/t-ms1 (MULTILIB_OPTIONS): Define.
1198         (MULTILIB_DIRNAMES): Define.
1200 2005-12-09  Ulrich Weigand  <uweigand@de.ibm.com>
1202         PR target/25311
1203         * config/s390/s390.c (struct s390_address): New field literal_pool.
1204         (s390_decompose_address): Compute literal_pool field.  Do not 
1205         assume register %r13 is always (and solely) used as pool base.
1206         (s390_extra_constraint_str): Use literal_pool field.
1208 2005-12-09  Thiemo Seufer  <ths@networkno.de>
1210         * config/mips/mips.c (override_options): Don't allow too small
1211         integers in FP registers.
1213 2005-12-09  Ulrich Weigand  <uweigand@de.ibm.com>
1215         * config/s390/s390.c (s390_function_ok_for_sibcall): Use
1216         targetm.binds_local_p to check for local function calls.
1218 2005-12-09  Alan Modra  <amodra@bigpond.net.au>
1220         PR debug/24908
1221         * dwarf2out.c (dwarf2out_frame_debug_expr): Don't assert that
1222         call_used_regs can't be used to save reg in another reg.
1224 2005-12-08  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1225             Christophe Jaillet  <christophe.jaillet@wanadoo.fr>
1227         * ipa-type-escape.c (analyze_variable): Use gcc_assert instead of
1228         abort.
1229         * except.c (output_ttype): Likewise.
1230         * tree-object-size.c (collect_object_sizes_for): Likewise.
1231         (check_for_plus_in_loops_1): Likewise.
1232         (check_for_plus_in_loops): Likewise.
1233         (compute_object_sizes): Use gcc_unreachable instead of abort.
1235 2005-12-08  Nathan Sidwell  <nathan@codesourcery.com>
1237         * config/ms1/ms1.md (UNSPEC_LOOP): New constant.
1238         (loop_end, loop_init, doloop_end): New insns.
1239         * config/ms1/ms1.h (LOOP_FIRST, LOOP_LAST): New.
1240         (SPECIAL_REG_FIRST, FIRST_PSEUDO_REGISTER): Adjust.
1241         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
1242         (REG_CLASS_CONTENTS, REGISTER_NAMES): Adjust.
1243         * config/ms1/ms1.c: #include basic-block.h
1244         (struct machine_function): Add has_loops field.
1245         (ms1_add_loop): New.
1246         (MAX_LOOP_DEPTH, MAX_LOO_LENGTH): New.
1247         (struct loop_info, struct loop_work): New.
1248         (ms1_loop_nesting, ms1_block_length, ms1_scan_loop): New workers.
1249         (ms1_reorg_loops): New loop optimization.
1250         (ms1_machine_reorg): Call it.
1251         * config/ms1/ms1-protos.h (ms1_add_loop): Declare.
1253 2005-12-08  Zdenek Dvorak  <dvorakz@suse.cz>
1255         PR tree-optimization/25248
1256         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Do not use
1257         evolution_of_loop from the failed attempt.  Remove handling
1258         of MULT_EXPR.
1260 2005-12-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1262         * tree.h (DECL_EXTERNAL): Clarify documentation.
1264 2005-12-08  Andreas Krebbel  <krebbel1@de.ibm.com>
1265             Jakub Jelinek  <jakub@redhat.com>
1267         PR target/25268
1268         * config/s390/s390.c (s390_decompose_shift_count): Remove BITS
1269         argument.  Don't drop outer ANDs.
1270         (s390_extra_constraint_str, print_shift_count_operand): Adjust callers.
1271         * config/s390/s390-protos.h (s390_decompose_shift_count): Adjust
1272         prototype.
1273         * config/s390/predicates.md (setmem_operand): Remove.
1274         (shift_count_operand): Rename to...
1275         (shift_count_or_setmem_operand): ... this.  Adjust
1276         s390_decompose_shift_count caller.
1277         * config/s390/s390.md (<shift>di3_31_and, <shift>di3_64_and,
1278         ashrdi3_cc_31_and, ashrdi3_cconly_31_and, ashrdi3_31_and,
1279         ashrdi3_cc_64_and, ashrdi3_cconly_64_and, ashrdi3_64_and,
1280         <shift>si3_and, ashrsi3_cc_and, ashrsi3_cconly_and, ashrsi3_and,
1281         rotl<mode>3_and, setmem_long_and): New insns.
1282         (<shift>di3_31, <shift>di3_64, ashrdi3_cc_31, ashrdi3_cconly_31,
1283         ashrdi3_31, ashrdi3_cc_64, ashrdi3_cconly_64, ashrdi3_64,
1284         <shift>si3, ashrsi3_cc, ashrsi3_cconly, ashrsi3, rotl<mode>3,
1285         <shift>di3, ashrdi3): Use shift_count_or_setmem_operand instead
1286         of shift_count_operand.
1287         (setmem_long): Use shift_count_or_setmem_operand instead of
1288         setmem_operand.
1290 2005-12-08  Daniel Jacobowitz  <dan@codesourcery.com>  
1291             Andreas Tobler  <a.tobler@schweiz.ch>
1293         * Makefile.in (ALL_GTFILES_H): Replace sed statement with more portable
1294         tr expression.
1296 2005-12-07  J"orn Rennecke <joern.rennecke@st.com>
1298         * expr.c (force_operand): Use convert_to_mode for conversions.
1300 2005-12-07  J"orn Rennecke <joern.rennecke@st.com>
1302         * reload.h (reg_equiv_invariant): Declare.
1303         * reload.c (refers_to_regno_for_reload_p): Allow R to be a pseudo
1304         register also when reg_equiv_invariant[R] is set.
1306 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
1307             Andreas Tobler  <a.tobler@schweiz.ch>
1309         * config/darwin.h: Guard section variables with #ifndef USED_FOR_TARGET.
1311 2005-12-07  Daniel Berlin  <dberlin@dberlin.org>
1313         * tree-ssa-pre.c (bitmap_set_and): New function.
1314         (bitmap_set_and_compl): New function.
1315         (bitmap_set_empty_p): New function.
1316         (insert_extra_phis): New function.
1317         (compute_avail): Use insert_extra_phis.
1319 2005-12-07  Adrian Straetling  <straetling@de.ibm.com>
1321         * config/s390/s390.c (s390_expand_atomic): New function.
1322         Adjust comment of helper functions.
1323         * config/s390/s390-protos.h (s390_expand_atomic): Declare.
1324         * config/s390/s390.md ("ATOMIC"): New code macro.
1325         ("atomic"): Corresponding new code attribute.
1326         ("sync_lock_test_and_set[hq]i", 
1327         "sync_{new_,old_,}{and,ior,xor,add,sub,nand}[hq]i"): New pattern.
1329 2005-12-07  Adrian Straetling  <straetling@de.ibm.com>
1331         * config/s390/s390.c (s390_expand_mask_and_shift, 
1332         struct alignment_context, init_alignment_context, 
1333         s390_expand_cs_hqi): New.
1334         * config/s390/s390-protos.h (s390_expand_cs_hqi): Declare.
1335         * config/s390/s390.md ("sync_compare_and_swaphi",
1336         "sync_compare_and_swapqi"): New pattern.
1338 2005-12-07  Daniel Berlin <dberlin@dberlin.org>
1340         Fix PR tree-optimization/25291
1341         * tree-ssa-operands.c (add_call_clobber_ops): Remove
1342         redundant and crashing check.
1344 2005-12-08  Alan Modra  <amodra@bigpond.net.au>
1346         PR target/25212
1347         * config/rs6000/rs6000.c (legitimate_indexed_address_p): Relax
1348         tests further when !strict && reload_in_progress.
1349         (print_operand): Check that both operands of indexed address are regs.
1350         (print_operand_address): Likewise.
1351         * config/rs6000/rs6000.h (INT_REG_OK_FOR_INDEX_P): Simplify.
1352         (INT_REG_OK_FOR_BASE_P): Correct.
1354 2005-12-07  J"orn Rennecke <joern.rennecke@st.com>
1356         Preparation for PR rtl-optimization/20070 / part1
1357         * basic-block.h (insns_match_p, flow_find_cross_jump): Declare.
1358         * cfgcleanup.c (condjump_equiv_p): New function, broken out of
1359         outgoing_edges_match.
1360         (outgoing_edges_match): Use condjump_equiv_p.
1361         (merge_memattrs, insns_match_p, flow_find_cross_jump): Move from here
1362         into..
1363         * struct-equiv.c: New file.
1364         (death_notes_match_p) New function, broken out of insns_match_p.
1365         * Makefile.in (OBJS-common): Add struct-equiv.o.
1366         (struct-equiv.o): New target.
1368 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
1370         * coretypes.h: Revert previous change.
1371         * config/darwin.h: Revert previous reversion.
1372         * config/avr/avr.h (progmem_section): Guard with #ifndef IN_LIBGCC2.
1374 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
1376         * coretypes.h (section): Provide dummy definition for target files.
1377         * config/darwin.h: Revert previous change.
1379 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
1381         * doc/sourcebuild.texi (all.build, install-normal): Remove.
1382         * configure.ac: Remove all.build and install-normal from target_list
1383         * configure: Regenerate.
1384         * Makefile.in (install): Don't depend on install-normal.
1386 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
1388         * Makefile.in: Document the use of stamps.
1390 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
1392         * doc/gty.texi: Remove instructions for adding a dependency on s-gtype.
1393         * Makefile.in: Add code to compute some dependencies on s-gtype
1394         automatically.  Remove the declaration of those dependencies.
1396 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
1398         * gcc/reload.c (push_secondary_reload): Fix typo:
1399         s/insn_constraint/scratch_constraint/.
1401 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
1403         * config/darwin.h: Guard section variables with #ifndef IN_LIBGCC2.
1405 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
1407         * config/alpha/alpha.c (alpha_start_function): Use switch_to_section.
1408         (alpha_elf_select_rtx_section): Return the selected section rather
1409         than emitting assembly code.
1410         (alpha_write_linkage): Emit a ".link" directive directly and then
1411         set in_section to NULL.
1412         (vms_asm_out_constructor): Use switch_to_section.
1413         (vms_asm_out_destructor): Likewise.
1414         (unicosmk_output_common): Set in_section to NULL instead of calling
1415         the dummy common_section function.
1416         (unicosmk_text_section): Delete in favor of...
1417         (unicosmk_output_text_section_asm_op): ...this new function.
1418         (unicosmk_data_section): Delete in favor of...
1419         (unicosmk_output_data_section_asm_op): ...this new function.
1420         (unicosmk_init_sections): New function.
1421         (unicosmk_output_deferred_case_vectors): Use switch_to_section.
1422         (unicosmk_output_ssib): Set in_section to NULL instead of calling
1423         the dummy ssib_section function.
1424         (unicosmk_section_buf): Delete.
1425         * config/alpha/alpha-protos.h (unicosmk_text_section): Delete.
1426         (unicosmk_data_section): Delete.
1427         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
1428         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, sbss_section, sdata_section)
1429         (SECTION_FUNCTION_TEMPLATE): Delete.
1430         * config/alpha/unicosmk.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP)
1431         (READONLY_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1432         (common_section, COMMON_SECTION, ssib_section, SSIB_SECTION): Delete.
1433         (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
1434         (TARGET_ASM_INIT_SECTIONS): Define.
1435         * config/alpha/vms.h (LINK_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP)
1436         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1437         (link_section, literals_section): Delete.
1438         (ASM_OUTPUT_DEF): Emit the ".literal" directive directly and then
1439         set in_section to NULL.
1441         * config/arm/aof.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Delete.
1442         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, ZERO_INIT_SECTION): Delete.
1443         (COMMON_SECTION): Delete.
1444         (TARGET_ASM_INIT_SECTIONS): Define.
1445         (ASM_OUTPUT_COMMON): Set in_section to NULL rather than calling
1446         the dummy common_section function.
1447         * config/arm/aout.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
1448         * config/arm/arm.c (get_jump_table_size): Use pointer comparison
1449         between readonly_data_section and text_section to check whether
1450         read-only data is being put in the text section.
1451         (arm_output_function_epilogue): Use switch_to_section.
1452         (arm_elf_asm_constructor): Likewise.
1453         (thumb_call_via_reg): Replace call to in_text_section with
1454         a comparison between in_section and text_section.
1455         (arm_file_end): Use switch_to_section.
1456         (aof_text_section): Delete in favor of...
1457         (aof_output_text_section_asm_op): ...this new function.
1458         (aof_data_section): Delete in favor of...
1459         (aof_output_data_section_asm_op): ...this new function.
1460         (aof_asm_init_sections): New function.
1461         (zero_init_section): Moved from config/arm/aof.h.
1462         (aof_dump_imports, aof_file_start): Use switch_to_section.
1463         * config/arm/arm.h (thumb_call_via_label): Update comment.
1464         * config/arm/arm-protos.h (aof_text_section, aof_data_section): Delete.
1465         (common_section): Delete.
1466         * config/arm/pe.h (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
1467         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
1468         global switch_to_section function instead of the old port-local one.
1469         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION)
1470         (SWITCH_TO_SECTION_FUNCTION): Delete.
1471         (drectve_section): Redefine as a macro.
1472         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS):
1473         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use get_named_section and
1474         switch_to_section.
1476         * config/avr/avr.c (progmem_section): New variable.
1477         (avr_output_progmem_section_asm_op): New function.
1478         (avr_asm_init_sections): New function.
1479         (avr_output_addr_vec_elt): Use switch_to_section.
1480         * config/avr/avr.h (progmem_section): Declare.
1481         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1482         (READONLY_DATA_SECTION): Delete.
1483         (TARGET_ASM_INIT_SECTIONS): Define.
1484         (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
1485         * config/avr/avr-protos.h (progmem_section): Delete.
1487         * config/bfin/bfin.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
1489         * config/c4x/c4x.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1490         (INIT_SECTION_FUNCTION, FINI_SECTION_FUNCTION): Delete.
1492         * config/darwin-sections.def: New file.
1493         * config/darwin.c: Define all sections in darwin-sections.def.
1494         (output_objc_section_asm_op, darwin_init_sections): New functions.
1495         (machopic_output_indirection): Use switch_to_section.
1496         (machopic_select_section): Return the selected section rather than
1497         emitting assembly code.  Replace the static function table with
1498         inline conditional expressions.  Update the tests of last_text_section
1499         and move them into the FUNCTION_DECL block.
1500         (machopic_select_rtx_section): Return the selected section rather than
1501         emitting assembly code.
1502         (machopic_asm_out_constructor, machopic_asm_out_destructor)
1503         (darwin_file_end): Use switch_to_section.
1504         * config/darwin.h: Use darwin-sections.def to declare sections.
1505         (INIT_SECTION_ASM_OP): Remove empty definition.
1506         (HAS_INIT_SECTION): Define this instead.
1507         (SECTION_FUNCTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1508         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
1509         (TARGET_ASM_EH_FRAME_SECTION): Delete.
1510         (TARGET_ASM_INIT_SECTIONS): Define.
1511         * config/darwin-protos.h (darwin_init_sections): Declare.
1512         (machopic_picsymbol_stub_section, machopic_picsymbol_stub1_section)
1513         (machopic_symbol_stub_section, machopic_symbol_stub1_section): Delete.
1514         (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
1515         (constructor_section, destructor_section, mod_init_section): Delete.
1516         (mod_term_section): Delete.
1517         (darwin_exception_section, darwin_eh_frame_section): Delete.
1518         (machopic_select_section): Return a section.
1519         (machopic_select_rtx_section): Likewise.
1520         (text_coal_section, text_unlikely_section, text_unlikely_coal_section)
1521         (const_section, const_coal_section, const_data_section): Delete.
1522         (const_data_coal_section, data_coal_section, cstring_section): Delete.
1523         (literal4_section, literal8_section, constructor_section): Delete.
1524         (mod_init_section, mod_term_section, destructor_section): Delete.
1525         (objc_class_section, objc_meta_class_section, objc_category_section)
1526         (objc_class_vars_section, objc_instance_vars_section): Delete.
1527         (objc_cls_meth_section, objc_inst_meth_section): Delete.
1528         (objc_cat_cls_meth_section, objc_cat_inst_meth_section): Delete.
1529         (objc_selector_refs_section, objc_selector_fixup_section): Delete.
1530         (objc_symbols_section, objc_module_info_section): Delete.
1531         (objc_image_info_section, objc_protocol_section): Delete.
1532         (objc_string_object_section, objc_constant_string_object_section)
1533         (objc_class_names_section, objc_meth_var_names_section): Delete.
1534         (objc_meth_var_types_section, objc_cls_refs_section): Delete.
1535         (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
1536         (machopic_symbol_stub_section, machopic_picsymbol_stub_section)
1537         (darwin_exception_section, darwin_eh_frame_section): Delete.
1538         * config/t-darwin (darwin.o): Depend on config/darwin-sections.def.
1540         * config/frv/frv.c (frv_asm_out_constructor): Use switch_to_section.
1541         (frv_asm_out_destructor): Likewise.
1542         * config/frv/frv.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1543         (SDATA_SECTION_FUNCTION, FIXUP_SECTION_FUNCTION): Delete.
1544         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use switch_to_section and
1545         get_named_section.
1546         (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
1547         * config/frv/frv-protos.h (fixup_section, sdata_section, sbss_section)
1548         (data_section): Delete.
1550         * config/i386/cygming.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1551         (DRECTVE_SECTION_FUNCTION): Delete.
1552         (drectve_section): Redefine as a macro that sets in_section after
1553         emitting the directive.
1554         (SWITCH_TO_SECTION_FUNCTION): Delete.
1555         * config/i386/darwin.h (ASM_OUTPUT_ALIGN): Replace call to
1556         in_text_section with comparison between in_section and text_section.
1557         * config/i386/i386.c (x86_64_elf_select_section): Return the section
1558         rather than emitting assembly code.  Use get_named_section.
1559         (x86_output_aligned_bss, ix86_file_end): Use switch_to_section and
1560         get_named_section.
1561         (machopic_output_stub): Use switch_to_section.
1562         * config/i386/nwld.c (nwld_named_section_asm_out_constructor)
1563         (nwld_named_section_asm_out_destructor): Use get_section and
1564         switch_to_section.
1566         * config/ia64/ia64.c (ia64_select_rtx_section): Return the section
1567         rather than emitting assembly code.
1568         (ia64_rwreloc_select_section): Likewise.
1569         (ia64_rwreloc_select_rtx_section): Likewise.
1570         * config/ia64/ia64-protos.h (sdata_section, sbss_section): Delete.
1571         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1572         switch_to_section.
1573         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1574         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Delete.
1576         * config/iq2000/iq2000.c (iq2000_select_rtx_section): Return the
1577         section rather than emitting assembly code.
1578         (iq2000_select_section): Likewise.
1579         * config/iq2000/iq2000.h (rdata_section, sdata_section): Delete.
1580         (sbss_section): Delete.
1582         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use switch_to_section
1583         and get_named_section.
1584         * config/m32r/m32r-protos.h (sbss_section, sdata_section): Delete.
1586         * config/mcore/mcore-elf.h (EXPORTS_SECTION_ASM_OP): Delete.
1587         (SUBTARGET_EXTRA_SECTIONS, SUBTARGET_EXTRA_SECTION_FUNCTIONS): Delete.
1588         (EXPORT_SECTION_FUNCTION, SUBTARGET_SWITCH_SECTIONS): Delete.
1589         (MCORE_EXPORT_NAME): Emit the exports directive directly, then set
1590         in_section to NULL.
1591         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
1592         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
1593         global switch_to_section function instead of the old port-local one.
1594         * config/mcore/mcore.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1595         (SWITCH_SECTION_FUNCTION): Delete.
1596         * config/mcore/mcore-pe.h (SUBTARGET_SWITCH_SECTIONS): Delete.
1597         (DRECTVE_SECTION_ASM_OP, SUBTARGET_EXTRA_SECTIONS): Delete.
1598         (SUBTARGET_EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION): Delete.
1599         (MCORE_EXPORT_NAME): Emit ".section .drectve" directly, then set
1600         in_section to NULL.
1601         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
1602         global switch_to_section function instead of the old port-local one.
1603         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
1605         * config/mips/mips.c (mips_file_start): Update comment.
1606         (mips_output_aligned_bss): Use switch_to_section and get_named_section.
1607         (mips_output_aligned_decl_common): Use switch_to_section.
1608         (mips_select_rtx_section): Return the section rather than emitting
1609         assembly code.  Use get_named_section.
1610         (mips_function_rodata_section: Likewise get_section.
1611         (build_mips16_function_stub): Use switch_to_section.
1612         * config/mips/mips.h (ASM_OUTPUT_IDENT): Use switch_to_section.
1613         (SDATA_SECTION_ASM_OP): Delete.
1614         * config/mips/vxworks.h (EXTRA_SECTIONS): Delete.
1615         (EXTRA_SECTION_FUNCTIONS): Delete.
1617         * config/mmix/mmix.c (mmix_file_start, mmix_file_end)
1618         (mmix_asm_output_aligned_local): Use switch_to_section.
1620         * config/pa/pa.c (som_readonly_data_section, som_one_only_data_section)
1621         (som_one_only_readonly_data_section): New variables.
1622         (pa_output_function_epilogue): Set in_section to NULL instead of
1623         calling forget_section.
1624         (output_deferred_plabels): Use select_section.
1625         (pa_asm_output_mi_thunk): Likewise.  Set in_section to NULL instead
1626         of calling forget_section.
1627         (pa_asm_output_aligned_bss, pa_asm_output_aligned_common)
1628         (pa_asm_output_aligned_local): Use select_section.
1629         (som_text_section_asm_op): Delete in favor of...
1630         (som_output_text_section_asm_op): ...this new function.
1631         (pa_som_asm_init_sections): New function.
1632         (pa_select_section): Return the section rather than emitting
1633         assembly code.
1634         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1635         (SOM_READONLY_DATA_SECTION_FUNCTION): Delete.
1636         (SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION): Delete.
1637         (SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): Delete.
1638         * config/pa/pa-protos.h (som_text_section_asm_op): Delete.
1639         (som_readonly_data_section, som_one_only_readonly_data_section)
1640         (som_one_only_data_section, forget_section): Delete.
1641         * config/pa/som.h (TEXT_SECTION_ASM_OP): Delete.
1642         (TARGET_ASM_INIT_SECTIONS): Define.
1643         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
1645         * config/rs6000/rs6000.c (read_only_data_section): New variable.
1646         (private_data_section, read_only_private_data_section): New variables.
1647         (sdata2_section, toc_section): New variables.
1648         (rs6000_file_start): Use switch_to_section.
1649         (rs6000_assemble_integer): Use comparisons against in_section
1650         instead of calling in_toc_section and in_text_section.  Use
1651         unlikely_text_section_p.
1652         (rs6000_elf_output_toc_section_asm_op): New function, derived
1653         from the old rs6000/sysv4.h toc_section function.
1654         (rs6000_elf_asm_init_sections): New function.
1655         (rs6000_elf_select_rtx_section, rs6000_elf_select_section): Return
1656         the section rather than emitting assembly code.
1657         (machopic_output_stub): Use switch_to_section.
1658         (toc_section): Delete dummy function.
1659         (rs6000_elf_asm_out_constructor, rs6000_elf_asm_out_destructor): Use
1660         switch_to_section and get_section.
1661         (rs6000_xcoff_output_readonly_section_asm_op): New function.
1662         (rs6000_xcoff_output_readwrite_section_asm_op): New function.
1663         (rs6000_xcoff_output_toc_section_asm_op): New function, derived from
1664         the old rs6000/xcoff.h toc_section function.
1665         (rs6000_xcoff_asm_init_sections): New function.
1666         (rs6000_xcoff_select_section, rs6000_xcoff_select_rtx_section): Return
1667         the section rather than emitting assembly code.
1668         (rs6000_xcoff_file_start): Use switch_to_section.
1669         (rs6000_xcoff_file_end): Likewise.
1670         * config/rs6000/rs6000-protos.h (toc_section, sdata_section): Delete.
1671         (sdata2_section, sbss_section, private_data_section): Delete.
1672         (read_only_data_section, read_only_private_data_section): Delete.
1673         * config/rs6000/sysv4.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1674         (TOC_SECTION_FUNCTION, SDATA_SECTION_FUNCTION, SDATA2_SECTION_FUNCTION)
1675         (SBSS_SECTION_FUNCTION, INIT_SECTION_FUNCTION): Delete.
1676         (FINI_SECTION_FUNCTION): Delete.
1677         (TARGET_ASM_INIT_SECTIONS): Define.
1678         (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
1679         * config/rs6000/xcoff.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1680         (READ_ONLY_DATA_SECTION_FUNCTION, PRIVATE_DATA_SECTION_FUNCTION)
1681         (READ_ONLY_PRIVATE_DATA_SECTION_FUNCTION, TOC_SECTION_FUNCTION)
1682         (READONLY_DATA_SECTION): Delete.
1683         (TARGET_ASM_INIT_SECTIONS): Define.
1684         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.  Set in_section
1685         to NULL rather than no_section.
1686         (TARGET_ASM_EXCEPTION_SECTION): Delete.
1688         * config/sh/sh.c (sh_file_start): Use switch_to_section.
1690         * config/sparc/sparc.c (emit_pic_helper): Use switch_to_section.
1691         (sparc_output_deferred_case_vectors): Likewise.  Remove argument
1692         from call to current_function_section.
1694         * config/stormy16/stormy16.c: Include ggc.h and gt-storm16.h.
1695         (bss100_section): New variable.
1696         (xstormy16_asm_output_aligned_common): Use switch_to_section.
1697         (xstormy16_asm_init_sections): New function.
1698         (xstormy16_asm_out_destructor, xstormy16_asm_out_constructor): Use
1699         switch_to_section and get_section.
1700         (xstormy16_output_addr_vec): Use switch_to_section.  Remove argument
1701         from calls to current_function_section.
1702         * config/stormy16/stormy16.h (EXTRA_SECTIONS): Delete.
1703         (XSTORMY16_SECTION_FUNCTION, EXTRA_SECTION_FUNCTIONS): Delete.
1704         (TARGET_ASM_INIT_SECTIONS): Define.
1705         * config/stormy16/stormy16-protos.h (bss100_section): Delete.
1707         * config/svr3.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
1708         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, INIT_SECTION_FUNCTION)
1709         (FINI_SECTION_FUNCTION): Delete.
1711         * config/v850/v850.c: Include gt-v850.h.
1712         (rosdata_section, rozdata_section, tdata_section, zdata_section)
1713         (zbss_section): New variables.
1714         (v850_output_aligned_bss): Use switch_to_section.
1715         (v850_asm_init_sections): New function.
1716         (v850_select_section): Return the section rather than emitting
1717         assembly code.
1718         * config/v850/v850.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1719         (ZDATA_SECTION_ASM_OP, ZBSS_SECTION_ASM_OP, TDATA_SECTION_ASM_OP)
1720         (ROSDATA_SECTION_ASM_OP, ROZDATA_SECTION_ASM_OP): Delete.
1721         (TARGET_ASM_INIT_SECTIONS): Define.
1722         * config/v850/v850-protos.h (sdata_section, rosdata_section): Delete.
1723         (sbss_section, tdata_section, zdata_section, rozdata_section): Delete.
1724         (zbss_section): Delete.
1726         * config/vax/vaxv.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
1728         * config/vx-common.h (vxworks_exception_section): Delete.
1729         (TARGET_ASM_EXCEPTION_SECTION): Delete.
1731         * config/xtensa/xtensa.c (xtensa_select_rtx_section): Return the
1732         section rather than emitting assembly code.
1733         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Use
1734         switch_to_section.
1736         * Makefile.in (GTFILES): Add $(srcdir)/output.h.
1737         * coretypes.h (section): New union and typedef.
1738         * dbxout.c (FORCE_TEXT): Use switch_to_section.  Remove argument
1739         from call to current_function_section.
1740         (dbxout_function_end, dbxout_init, dbxout_source_file, dbxout_finish)
1741         (dbxout_symbol_location): Use switch_to_section.
1742         * dwarf2out.c (named_section_eh_frame_section): Delete, moving
1743         most of the code into...
1744         (default_eh_frame_section): ...here.  Return a section.
1745         (collect2_eh_frame_section): Delete, moving most of the code into..
1746         (switch_to_eh_frame_section): ...this new function.
1747         (debug_info_section, debug_abbrev_section, debug_aranges_section)
1748         (debug_macinfo_section, debug_line_section, debug_loc_section)
1749         (debug_pubnames_section, debug_str_section, debug_ranges_section): New
1750         variables.
1751         (output_call_frame_info): Call switch_to_eh_frame_section instead of
1752         eh_frame_section.  Use switch_to_section and get_section.
1753         (dwarf2out_begin_prologue): Use switch_to_section.
1754         (AT_string_form): Check the flags in debug_str_section instead of
1755         DEBUG_STR_SECTION_FLAGS.
1756         (output_comp_unit): Use switch_to_section, get_section, and
1757         debug_info_section.
1758         (output_line_info, secname_for_decl): Use unlikely_text_section_p.
1759         (dwarf2out_begin_block): Use switch_to_section.  Remove argument
1760         from call to current_function_section.
1761         (dwarf2out_var_location): Use unlikely_text_section_p.
1762         (dwarf2out_source_line): Use switch_to_section.  Remove argument
1763         from call to current_function_section.
1764         (dwarf2out_start_source_file, dwarf2out_end_source_file)
1765         (dwarf2out_define, dwarf2out_undef: Use switch_to_section and
1766         debug_macinfo_section.
1767         (dwarf2out_init): Initialize the new section variables.  Use them
1768         instead of calls to named_section_flags.  Use switch_to_section.
1769         (output_indirect_string): Use switch_to_section and debug_str_section.
1770         (dwarf2out_finish): Use switch_to_section and the new section
1771         variables.
1772         * except.c (default_exception_section): Return the section instead
1773         of emitting assembly code.
1774         (output_function_exception_table): Use the global exception_section
1775         variable instead of the target hook.  Use switch_to_section.  Remove
1776         argument from call to current_function_section.
1777         * final.c (HAVE_READONLY_DATA_SECTION): Delete.
1778         (shorten_branches): Use pointer comparisons to detect whether the
1779         text section is the same as readonly_data_section.
1780         (profile_function): Use switch_to_section.  Remove argument from
1781         call to current_function_section.
1782         (final_scan_insn): Likewise.  Update use of last_text_section.
1783         * gengtype.c (open_base_files): Add an include of output.h.
1784         * output.h (text_section, data_section, readonly_data_section)
1785         (ctors_section, dtors_section, bss_section, init_section)
1786         (fini_section, sdata_section): Turn into section pointers.
1787         (in_text_section, in_unlikely_text_section, exports_section)
1788         (drectve_section, named_section, mergeable_string_section)
1789         (last_text_section_name): Delete.
1790         (default_exception_section, default_eh_frame_section): Return sections.
1791         (SECTION_DECLARED, SECTION_NAMED): New macros.
1792         (SECTION_MACH_DEP): Bump value.
1793         (section_common, named_section, unnamed_section): New structures.
1794         (unnamed_section_callback): New typedef.
1795         (section): New union.
1796         (sbss_section, exception_section, eh_frame_section): New variables.
1797         (in_section, last_text_section): Turn into section pointers.
1798         (get_unnamed_section, get_section, get_named_section): New functions.
1799         (mergeable_constant_section, function_section): Return a section.
1800         (unlikely_text_section): Likewise.
1801         (current_function_section): Likewise.  Remove the decl argument.
1802         (unlikely_text_section_p, switch_to_section): New functions.
1803         (output_section_asm_op): New function.
1804         (set_named_section_flags, named_section_flags, named_section_real)
1805         (named_section_first_declaration): Delete.
1806         (default_select_section, default_elf_select_section): Return a section.
1807         (default_elf_select_section_1, default_function_rodata_section)
1808         (default_no_function_rodata_section, default_select_rtx_section)
1809         (default_elf_select_rtx_section): Likewise.
1810         * rtl.h (in_data_section): Delete.
1811         * sdbout.c (sdbout_one_type): Use switch_to_section.
1812         * system.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Poison.
1813         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Poison.
1814         (TARGET_ASM_EH_FRAME_SECTION): Poison.
1815         * target-def.h (TARGET_ASM_INIT_SECTIONS): New macro.
1816         (TARGET_ASM_EXCEPTION_SECTION, TARGET_ASM_EH_FRAME_SECTION): Delete.
1817         (TARGET_ASM_OUT): Update after above changes.
1818         * target.h (init_sections): New hook.
1819         (exception_section, eh_frame_section): Delete.
1820         (select_section, select_rtx_section, function_rodata_section): Return
1821         a section rather than emitting assembly code.
1822         * varasm.c (text_section, data_section, readonly_data_section)
1823         (ctors_section, dtors_section, bss_section, init_section)
1824         (fini_section): Turn into section pointers.
1825         (sdata_section, sbss_section, exception_section): New variables.
1826         (eh_frame_section): New variable.
1827         (in_section): Make global and turn into a section pointer.
1828         (last_text_section): Turn into a section pointer.
1829         (unnamed_sections): New variable.
1830         (in_named_name, last_text_section_name): Delete.
1831         (EXTRA_SECTION_FUNCTIONS): Delete.
1832         (in_named_entry): Delete.
1833         (section_htab): New variable, replacing...
1834         (in_named_htab): ...this deleted variable.
1835         (section_entry_eq, section_entry_hash): New functions, based on...
1836         (in_named_entry_eq, in_named_entry_hash): ...these deleted functions.
1837         (get_unnamed_section, get_section): New functions.
1838         (unlikely_text_section): Return a section instead of emitting
1839         assembly code.
1840         (in_text_section, in_unlikely_text_section, in_data_section): Delete.
1841         (get_named_section_flags, named_section_first_declaration): Delete.
1842         (unlikely_text_section_p): New function.
1843         (named_section_real, named_section): Delete.
1844         (get_named_section): New function.
1845         (asm_output_bss, asm_output_aligned_bss): Use switch_to_section.
1846         (function_section): Return a section rather than emitting
1847         assembly code.
1848         (current_function_section): Likewise.  Remove argument.  Use
1849         last_text_section if nonnull, otherwise use function_section.
1850         (default_function_rodata_section): Return a section rather than
1851         emitting assembly code.  Use get_section.
1852         (default_no_function_rodata_section): Return a section rather than
1853         emitting assembly code.
1854         (variable_section): Use switch_to_section and get_named_section.
1855         (mergeable_string_section): Return a section rather than emitting
1856         assembly code.  Use get_section.  Make static.  Don't take special
1857         countermeasures for empty strings.
1858         (mergeable_constant_section): Return a section rather than emitting
1859         assembly code.  Use get_section.
1860         (default_named_section_asm_out_destructor): Use switch_to_section
1861         and get_section.
1862         (default_dtor_section_asm_out_destructor): Use switch_to_section.
1863         (default_named_section_asm_out_constructor): Use switch_to_section
1864         and get_section.
1865         (default_ctor_section_asm_out_constructor): Use switch_to_section.
1866         (assemble_start_function): Likewise.  Set last_text_section to
1867         NULL rather than no_section.  Change the type of save_section.
1868         (assemble_zeros, assemble_variable): Use the section flags to detect
1869         whether or not a section is text.
1870         (assemble_static_space): Use switch_to_section.
1871         (assemble_trampoline_template): Likewise.
1872         (output_constant_def_contents): Use switch_to_section and
1873         get_named_section.
1874         (output_constant_pool_1): Use switch_to_section.  Use the section
1875         flags to see whether sections contain mergeable data.
1876         (init_varasm_once): Initialize section_htab instead of in_named_htab.
1877         Initialize new section variables.  Call TARGET_ASM_INIT_SECTIONS.
1878         (default_elf_asm_named_section): Use SECTION_DECLARED to detect
1879         whether a section has already been declared.
1880         (default_select_section, default_elf_select_section): Return a
1881         section rather than emitting assembly code.
1882         (default_elf_select_section_1): Likewise.  Use bss_section for
1883         SECCAT_BSS if nonnull.  Use get_named_section.
1884         (default_select_rtx_section): Return a section rather than
1885         emitting assembly code.
1886         (default_elf_select_rtx_section): Likewise.  Use get_named_section.
1887         (file_end_indicate_exec_stack): Use switch_to_section and get_section.
1888         (output_section_asm_op, switch_to_section): New functions.
1889         * vmsdbgout.c (vmsdbgout_finish): Use switch_to_section and
1890         get_named_section.
1892         * doc/tm.texi: Expand the introduction to the sections documentation.
1893         (TRAMPOLINE_SECTION): Document new interface.
1894         (SDATA_SECTION_ASM_OP): Document new macro.
1895         (READONLY_DATA_SECTION): Delete.
1896         (SDATA_SECTION_ASM_OP): Document new macro.
1897         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1898         (TARGET_ASM_INIT_SECTIONS): Document new hook.
1899         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_FUNCTION_RODATA_SECTION)
1900         (TARGET_ASM_SELECT_RTX_SECTION): Adjust for new interface.
1901         (TARGET_EXCEPTION_SECTION, TARGET_EH_FRAME_SECTION): Delete.
1903 2005-12-07  Alan Modra  <amodra@bigpond.net.au>
1905         * gcc.c (init_gcc_specs): Match braces inside conditionally
1906         compiled strings.
1908 2005-12-06  Geoffrey Keating  <geoffk@apple.com>
1910         * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): New.
1912 2005-12-06  Aldy Hernandez  <aldyh@redhat.com>
1914         PR C++/24138
1915         * tree.c (integer_all_onesp): Always return true if all bits on.
1917         * testsuite/g++.dg/init/array0.C: New.
1919 2005-12-06  Adrian Straetling  <straetling@de.ibm.com>
1921         * doc/md.texi: Adapt to implementation.
1923 2005-12-06  Andreas Schwab  <schwab@suse.de>
1925         * opts.c (decode_options): Fix typo in message.
1927 2005-12-06  Alan Modra  <amodra@bigpond.net.au>
1929         PR other/13873
1930         * longlong.h: Merge PPC tests from upstream.
1932 2005-12-06  Richard Guenther  <rguenther@suse.de>
1934         * fold-const.c (fold_convert): Do not build and fold
1935         CONVERT_EXPR, but always use NOP_EXPR.
1937 2005-12-06  Jan Beulich  <jbeulich@novell.com>
1939         * config/i386/i386.c (builtin_description): Use MASK_SSE2 for
1940         __builtin_ia32_paddq and __builtin_ia32_subq.
1941         (ix86_init_mmx_sse_builtins): Use MASK_SSE|MASK_3DNOW_A for
1942         __builtin_ia32_pshufw.
1943         * config/i386/i386.md (mmx_adddi3, mmx_subdi3): Depend on TARGET_SSE2.
1945 2005-12-05  James E Wilson  <wilson@specifix.com>
1947         PR target/24934
1948         * opts.c (decode_options): Turn off partitioning if flag_unwind_tables
1949         is set.
1951 2005-12-05  Daniel Berlin  <dberlin@dberlin.org>
1952         
1953         * print-tree.c (print_node): Ditto.
1954         * tree-dfa.c (add_referenced_var): Tag's don't have DECL_INITIAL.
1955         * tree-dump.c (dequeue_and_dump): Check for decl_common structure
1956         before accessing DECL_ARTIFICIAL. 
1957         Handle new tag tree codes.
1958         * tree-flow-inline.h (clear_call_clobbered): Update for tag
1959         changes.
1960         (unmodifiable_var_p): Ditto.
1961         * tree-flow.h (mem_tag_kind): Remove.
1962         (struct var_ann_d): Remove mem_tag_kind member.
1963         * tree-gimple.c (is_gimple_reg): Tags are not gimple registers.
1964         * tree-pretty-print.c (dump_generic_node): Handle memory tags.
1965         * tree-ssa-alias.c (init_alias_info): Update for memory tag changes.
1966         (group_aliases): Ditto.
1967         (setup_pointers_and_addressables): Ditto.
1968         (is_escape_site): Ditto.                                          
1969         (may_alias_p): Ditto.
1970         (create_tag_raw): New function.
1971         (create_memory_tag): Use it.
1972         (dump_alias_info): Update for tags.
1973         (may_be_aliased): Ditto.
1974         (add_type_alias): Ditto.
1975         (new_type_alias): Ditto.
1976         (create_sft): Ditto.
1977         (create_structure_vars): Ditto.
1978         * tree-ssa-ccp.c (get_default_value): Ditto.
1979         * tree-ssa-operands.c (get_expr_operands): Ditto.
1980         (add_stmt_operand): Ditto.
1981         (add_call_clobber_ops): Remove duplicated condition.
1982         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
1983         tags.
1984         * tree-tailcall.c (suitable_for_tail_opt_p): Ditto.
1985         * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
1986         * tree.c (init_ttree): Update structures for new tree codes.
1987         (tree_code_size): Update sizes for new tree codes.
1988         (make_node_stat): Don't try to set common things on minimal
1989         structures.
1990         (tree_node_structure): Update for tags.
1991         (is_global_var): Ditto.
1992         * tree.def: Add new tree codes.
1993         * tree.h (MTAG_P): New macro.
1994         (TREE_MEMORY_TAG_CHECK): Ditto.
1995         (SSA_VAR_P): Update for tags.
1996         (struct tree_memory_tag): New structure.
1997         (MTAG_GLOBAL): New macro.
1998         (union tree_node): Add memory tag member.
1999         * treestruct.def (TS_MEMORY_TAG): New.
2000         
2001 2005-12-05  Dale Johannesen  <dalej@apple.com>
2003         * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS):  Fix to match
2004         what was approved (PR 24323).
2006 2005-12-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2008         * doc/c-tree.texi (Function Bodies): Remove description of
2009         RETURN_INIT.
2011 2005-12-05  Joseph S. Myers  <joseph@codesourcery.com>
2013         * doc/libgcc.texi (__floatunsisf, __floatunsidf, __floatunsitf,
2014         __floatunsixf, __floatundisf, __floatundidf, __floatunditf,
2015         __floatundixf, __floatuntisf, __floatuntidf, __floatuntitf,
2016         __floatuntixf, __powisf2, __powidf2, __powixf2, __mulsc3,
2017         __muldc3, __multc3, __mulxc3, __divsc3, __divdc3, __divtc3,
2018         __divxc3): Document.
2020 2005-12-05  Geoffrey Keating  <geoffk@apple.com>
2022         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Preserve
2023         previous behaviour.
2024         * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Define to
2025         hook_bool_void_false.
2026         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
2027         * config/darwin.c (darwin_cxx_determine_class_data_visibility): New.
2029         * config/darwin.c (machopic_select_section): It's not defined
2030         as weak if it's only marked as weak_import.
2031         
2032         * config/darwin-protos.h (darwin_cxx_determine_class_data_visibility):
2033         Prototype.
2035         * varasm.c (default_binds_local_p_1): Weakrefs don't bind locally.
2036         A hidden weak object does bind locally.  Strong linkonce data
2037         counts like any other strong symbol for binding.
2038         (weak_finish_1): Don't specially handle weakrefs, they no longer
2039         arrive here.
2040         (assemble_alias): Weakrefs can't be TREE_PUBLIC yet.
2041         * c-common.c (handle_alias_attribute): Allow static aliases
2042         of variables.
2043         (handle_weakref_attribute): Don't call declare_weak on weakrefs.
2044         * gthr-dce.h: Make weakrefs static.
2045         * gthr-tpf.h: Likewise.
2046         * gthr-solaris.h: Likewise.
2047         * gthr-posix.h: Likewise.
2048         * gthr-posix95.h: Likewise.
2049         * config/darwin.c (darwin_encode_section_info): static weakref
2050         variables are not necessarily defined in this translation unit.
2051         * doc/extend.texi (Function Attributes): Mention that an alias
2052         attribute creates a definition for the thing it's attached to.
2053         Change the documentation for weakref to say that the thing
2054         it's attached to must be static.
2056         * config/rs6000/host-darwin.c (segv_handler): Unblock SEGV so
2057         we don't go into an infinite loop.
2059 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
2061         * config/rs6000/predicates.md (logical_const_operand): Split
2062         out of logical_operand.
2063         (logical_operand): Use it.
2064         * config/rs6000/rs6000.md (cmp -> xor peephole2): Use
2065         logical_const_operand.
2067 2005-12-05  Jan Beulich  <jbeulich@novell.com>
2069         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_CMPNEPS
2070         and IX86_BUILTIN_CMPNESS.
2071         (ix86_init_mmx_sse_builtins): Remove ti_ftype_ti_ti.
2072         * config/i386/i386.h (ALIGN_MODE_128): Don't check TFmode explicitly.
2073         * config/i386/i386.md (movti_internal): Correct type attribute.
2074         Simplify mode attribute.
2075         (movti_rex64, movsf_1, movdf_nointeger, movdf_integer, movtf_internal):
2076         Correct type attribute.
2077         (absxf2): Correct operator.
2078         * config/i386/mmx.md (mov<mode>_internal_rex64, mov<mode>_internal,
2079         movv2sf_internal_rex64, movv2sf_internal): Correct type attribute.
2080         * config/i386/sse.md (mov<mode>_internal, movv2df_internal): Simplify
2081         mode attribute.
2082         (sse2_vmsqrtv2df2): Correct mode attribute.
2084 2005-12-05  Jan Beulich  <jbeulich@novell.com>
2086         * config/ia64/ia64.md (rotlsi3_internal): Don't split if rotating by
2087         16 bits. Provide insn pattern for this case.
2089 2005-12-05  Jan Beulich  <jbeulich@novell.com>
2091         * libgcc2.c (__popcountSI2): Don't use wide type for iterator and
2092         result.
2093         (__popcountDI2): Likewise.
2095 2005-12-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2097         PR target/25166
2098         * pa/pa.c (pa_hpux_init_libfuncs): Add _U_Qfcnvxf_usgl_to_quad and
2099         _U_Qfcnvxf_udbl_to_quad to set of initialized libfuncs.
2100         * pa/quadlib.c (_U_Qfcnvxf_usgl_to_quad, _U_Qfcnvxf_udbl_to_quad): New
2101         functions.
2103 2005-12-04  Joseph S. Myers  <joseph@codesourcery.com>
2105         * c-typeck.c (null_pointer_constant_p): New function.
2106         (build_conditional_expr, build_c_cast, convert_for_assignment,
2107         build_binary_op): Use it.
2109 2005-12-04  Joseph S. Myers  <joseph@codesourcery.com>
2111         * c-common.c (binary_op_error): Do not allow NOP_EXPR.
2112         (c_common_truthvalue_conversion): Handle NOP_EXPR the same as
2113         CONVERT_EXPR.
2114         (check_function_arguments_recurse): Allow both NOP_EXPR and
2115         CONVERT_EXPR but check conversions preserve precision.
2116         * c-typeck.c (pointer_diff): Allow both NOP_EXPR and CONVERT_EXPR
2117         but check conversions preserve precision.
2118         (build_unary_op): Don't allow NOP_EXPR.  Use gcc_unreachable () in
2119         default case.
2121 2005-12-04  Roger Sayle  <roger@eyesopen.com>
2123         PR c/7776
2124         * common.opt (Wstring-literal-comparison): New command line option.
2125         * c-opts.c (c_common_handle_option): Set it with -Wall.
2126         * c-typeck.c (parser_build_binary_op): Issue warning if either
2127         operand of a comparison operator is a string literal, except for
2128         testing equality or inequality against NULL.
2130         * doc/invoke.texi: Document new -Wstring-literal-comparison option.
2132 2005-12-03  Joseph S. Myers  <joseph@codesourcery.com>
2134         * c-common.c (c_sizeof_or_alignof_type): Use fold_convert instead
2135         of building a NOP_EXPR.
2136         (c_alignof_expr): Likewise.  Handle CONVERT_EXPR the same as
2137         NOP_EXPR.
2138         * c-convert.c (convert): Use fold_convert instead of building
2139         NOP_EXPRs and CONVERT_EXPRs directly.  Don't special case
2140         c_objc_common_truthvalue_conversion returning a NOP_EXPR.  Remove
2141         #if 0 code.
2142         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Handle
2143         NOP_EXPR the same as CONVERT_EXPR.
2144         * c-typeck.c (build_function_call): Use fold_convert instead of
2145         building a NOP_EXPR directly.
2146         (build_compound_expr): Handle NOP_EXPR the same as CONVERT_EXPR.
2148 2005-12-03  Alan Modra  <amodra@bigpond.net.au>
2150         PR rtl-optimization/25197
2151         * dwarf2out.c (dwarf2out_frame_debug_expr <rule 12>): Assert we
2152         have a reg.
2154 2005-12-02  Stuart Hastings  <stuart@apple.com>
2156         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove -fpic
2157         warning.
2159 2005-12-03  Joseph S. Myers  <joseph@codesourcery.com>
2161         * c-typeck.c (default_function_array_conversion,
2162         build_function_call): Allow for CONVERT_EXPR as well as NOP_EXPR.
2163         (build_conditional_expr): Apply integer_zerop to orig_op1 and
2164         orig_op2.  Don't check them for NOP_EXPR.
2165         (build_c_cast, convert_for_assignment): Don't check for NOP_EXPR
2166         around integer zero.
2168 2005-12-03  Alan Modra  <amodra@bigpond.net.au>
2170         * config/rs6000/rs6000.c (rs6000_stack_t): Remove toc_save_p,
2171         toc_save_offset, toc_size, lr_size.
2172         (rs6000_stack_info): Use memset rather than bss struct copy to init.
2173         Test rs6000_ra_ever_killed last in condition setting lr_save_p.
2174         Adjust for removal of unused rs6000_stack_t fields.
2175         (debug_stack_info): Adjust.
2176         (rs6000_ra_ever_killed): Expand FIND_REG_INC_NOTE.  Test for calls
2177         first, and don't bother checking for set/inc of lr on sibcalls.
2178         (rs6000_emit_epilogue): Tidy code restoring stack pointer.
2180 2005-12-02  Jakub Jelinek  <jakub@redhat.com>
2182         PR target/25199
2183         * config/i386/i386.md (movqi_1): Only force imovx for alternative
2184         5 if operand 1 is not aligned.  Undo previous constraint change.
2185         * config/i386/predicates.md (aligned_operand): Use MEM_ALIGN.
2187 2005-12-02  Richard Guenther  <rguenther@suse.de>
2189         * tree.h (build): Remove prototype.
2190         (build, _buildN1, _buildN2, _buildC1, _buildC2): Remove macros.
2191         * tree.c (build): Remove.
2192         (build0_stat): Update comment.
2194 2005-12-02  Richard Guenther  <rguenther@suse.de>
2196         * tree-ssa-loop-im.c (schedule_sm): Use buildN instead of build.
2197         * tree-complex.c (update_complex_assignment, expand_complex_div_wide):
2198         Likewise.
2199         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref,
2200         maybe_fold_offset_to_component_ref): Likewise.
2201         * tree-ssa-dom.c (thread_across_edge,
2202         simplify_rhs_and_lookup_avail_expr,
2203         find_equivalent_equality_comparison, record_equivalences_from_stmt):
2204         Likewise.
2205         * gimple-low.c (lower_function_body, lower_return_expr): Likewise.
2206         * tree-eh.c (do_return_redirection, honor_protect_cleanup_actions,
2207         lower_try_finally_switch): Likewise.
2208         * tree-if-conv.c (add_to_dst_predicate_list,
2209         replace_phi_with_cond_modify_expr, ifc_temp_var): Likewise.
2210         * gimplify.c (internal_get_tmp_var, gimple_build_eh_filter,
2211         voidify_wrapper_expr, build_stack_save_restore, gimplify_bind_expr,
2212         gimplify_return_expr, gimplify_decl_expr, gimplify_switch_expr,
2213         gimplify_case_label_expr, gimplify_exit_expr, gimplify_self_mod_expr,
2214         shortcut_cond_r, shortcut_cond_expr, gimplify_cond_expr,
2215         gimplify_init_ctor_eval, gimplify_init_constructor,
2216         gimplify_variable_sized_compare, gimplify_boolean_expr,
2217         gimplify_cleanup_point_expr, gimple_push_cleanup, gimplify_target_expr,
2218         gimplify_expr, gimplify_body, gimplify_function_tree,
2219         force_gimple_operand): Likewise.
2220         * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
2221         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for,
2222         mx_register_decls): Likewise.
2223         * tree-nested.c (init_tmp_var, save_tmp_var, get_static_chain,
2224         get_frame_field, finalize_nesting_tree_1): Likewise.
2225         * tree-inline.c (setup_one_parameter): Likewise.
2226         * tree-vect-transform.c (vectorizable_condition): Likewise.
2227         * tree-outof-ssa.c (insert_copy_on_edge, insert_backedge_copies):
2228         Likewise.
2229         * tree-profile.c (tree_gen_edge_profiler): Likewise.
2230         * tree-cfg.c (factor_computed_gotos, gimplify_val): Likewise.
2231         * c-parser.c (c_parser_if_body, c_parser_switch_statement): Likewise.
2232         * tree-chrec.h (build_polynomial_chrec): Likewise.
2234 2005-12-02  Richard Guenther  <rguenther@suse.de>
2236         * config/alpha/alpha.c (alpha_va_start, alpha_gimplify_va_arg_1i,
2237         alpha_gimplify_va_arg): Use buildN and fold_buildN where applicable.
2238         * config/frv/frv.c (frv_expand_builtin_va_start): Likewise.
2239         * config/s390/s390.c (s390_va_start, s390_gimplify_va_arg): Likewise.
2240         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
2241         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
2242         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg):
2243         Likewise.
2244         * config/sh/sh.c (sh_va_start, sh_gimplify_va_arg_expr,
2245         sh_adjust_unroll_max): Likewise.
2246         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
2247         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
2248         * config/xtensa/xtensa.c (xtensa_va_start, xtensa_gimplify_va_arg_expr):
2249         Likewise.
2250         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
2251         Likewise.
2252         * config/mips/mips.c (mips_va_start, mips_gimplify_va_arg_expr):
2253         Likewise.
2255 2005-12-02  Richard Guenther  <rguenther@suse.de>
2257         * tree-vrp.c (build_assert_expr_for, process_assert_insertions_for,
2258         simplify_cond_using_ranges): Use buildN instead of build.
2259         * tree-tailcall.c (adjust_accumulator_values,
2260         adjust_return_value): Likewise.
2261         * tree-sra.c (generate_one_element_ref, generate_copy_inout,
2262         generate_element_copy, generate_element_zero,
2263         generate_one_element_init): Likewise.
2264         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Likewise.
2265         * lambda-code.c (gcc_loop_to_lambda_loop, lbv_to_gcc_expression,
2266         lle_to_gcc_expression, lambda_loopnest_to_gcc_loopnest,
2267         perfect_nestify): Likewise.
2269 2005-12-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2271         * pa.c (pa_secondary_reload): Revise initialization of variable regno.
2273 2005-12-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2275         * ggc.h (GGC_RESIZEVEC): New.
2277 2005-12-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2279         * gcc.c (execute): Improve readability.
2281 2005-12-02  Richard Guenther  <rguenther@suse.de>
2283         * tree-cfg.c (mark_used_vars): New function.
2284         (dump_function_to_file): Dump only used VAR_DECLs.
2286 2005-12-02  Richard Guenther  <rguenther@suse.de>
2288         * convert.c (convert_to_integer): Fix compare for nonpositive
2289         constant to use tree_int_cst_sgn <= 0.
2291 2005-12-02  Richard Guenther  <rguenther@suse.de>
2293         * convert.c (convert_to_integer): Use fold_convert instead
2294         of fold_build1 (NOP_EXPR, ...).  Use tree_int_cst_sgn < 0
2295         instead of comparing against 0.  Use build_int_cst instead
2296         of converting integer_zero_node.
2298 2005-12-02  Richard Guenther  <rguenther@suse.de>
2300         * tree-pretty-print.c (op_symbol): Handle LROTATE_EXPR
2301         and RROTATE_EXPR.
2303 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
2305         PR target/21017
2306         * combine.c (simplify_logical <IOR>): Simplify more patterns to
2307         rotates.
2309 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
2311         PR middle-end/25176
2312         * function.c (expand_function_end): Emit blockage for unwinder
2313         after return label.
2315 2005-12-01  Roger Sayle  <roger@eyesopen.com>
2317         * tree.h (TREE_OVERFLOW): Make this flag/predicate specific to
2318         constant nodes, i.e. INTEGER_CST, REAL_CST, etc...
2319         * tree-vrp.c (compare_values): Only check TREE_OVERFLOW for
2320         integer constant comparisons.
2322 2005-12-02  Jon Grimm  <jgrimm2@us.ibm.com>
2323             Janis Johnson  <janis187@us.ibm.com>
2324             David Edelsohn  <dje@watson.ibm.com>
2325             Ben Elliston  <bje@au.ibm.com>
2327         * dfp.h, dfp.c: New files.
2328         * Makefile.in (DECNUM, DECNUMINC, LIBDECNUMBER): New variables.
2329         (DECNUM_H): Likewise.
2330         (LIBDEPS, LIBS, BACKEND): Append $(LIBDECNUMBER).
2331         (INCLUDES): Append $(DECNUMINC).
2332         (OBJS-common): Add dfp.o.
2333         (dfp.o): New rule.
2334         * real.h (EXP_BITS): Pinch one bit to ..
2335         (struct real_value): Add decimal field.
2336         (real_format): Change table size, update documentation.
2337         (REAL_MODE_FORMAT): Update for to handle float, decimal float.
2338         (real_from_string3): Declare.
2339         (decimal_single_format): Declare.
2340         (decimal_double_format): Declare.
2341         (decimal_quad_format): Declare.
2342         (REAL_VALUE_TO_TARGET_DECIMAL32): New.
2343         (REAL_VALUE_TO_TARGET_DECIMAL64): New.
2344         (REAL_VALUE_TO_TARGET_DECIMAL128): New.
2345         * real.c: Include dfp.h.
2346         (normalize): Early return for decimal floats.
2347         (do_add): Zero decimal field.
2348         (do_compare): Call do_decimal_compare for decimal floats.
2349         (do_fix_trunc): Likewise, call decimal_do_fix_trunc.
2350         (real_arithmetic): Call decimal_real_arithmetic for decimal
2351         floating point operands.
2352         (real_identical): If a and b are of differing radix, return false.
2353         (real_to_integer): Call decimal_real_to_integer if the value is a
2354         decimal float.
2355         (real_to_integer2): Likewise, call decimal_real_to_integer2.
2356         (real_to_decimal): Likewise, call decimal_real_to_decimal.
2357         (real_to_hexadecimal): Place "N/A" in the return string for
2358         decimal float.
2359         (real_from_string3): New variant, given a mode.
2360         (real_maxval): Use decimal_real_maxval for decimal floats.
2361         (round_for_format): Use decimal_round_for_format for decimals.
2362         (real_convert): Use decimal_real_convert where appropriate.
2363         (significand_size): Handle base 10.
2364         (encode_decimal_single, decode_decimal_single,
2365         encode_decimal_double, decode_decimal_double, encode_decimal_quad,
2366         decode_decimal_quad): New functions.
2367         (decimal_single_format): New.
2368         (decimal_double_format): New.
2369         (decimal_quad_format): New.
2370         * machmode.def: Add SD, DD and TD decimal floating point modes.
2371         * machmode.h (FLOAT_MODE_P, SCALAR_FLOAT_MODE_P, MODES_WIDEN_P):
2372         Include MODE_DECIMAL_FLOAT.
2373         (DECIMAL_FLOAT_MODE_P): New.
2374         * mode-classes.def (MODE_DECIMAL_FLOAT): New mode class.
2375         * genmodes.c (struct mode_data): Add counter field.
2376         (struct mode_data): Update comment for format.
2377         (blank_mode): Initialise counter field.
2378         (new_mode): Increment counter field for each mode defined.
2379         (complete_mode): Handle MODE_DECIMAL_FLOAT, update check for mode
2380         using a format.
2381         (make_complex_modes): Handle modes containing `D'.
2382         (DECIMAL_FLOAT_MODE, FRACTIONAL_DECIMAL_FLOAT_MODE): New.
2383         (make_decimal_float_mode): New.
2384         (reset_float_format): Handle MODE_DECIMAL_FLOAT.
2385         (cmp_modes): Compare counter field if other characteristics
2386         similar.
2387         (emit_real_format_for_mode): Support formats for decimal floats.
2388         * doc/rtl.texi (Machine Modes): Document SD, DD and TDmodes.
2389         Document MODE_DECIMAL_FLOAT.
2391 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
2393         * simplify-rtx.c (simplify_plus_minus): Do simplify constants.
2394         Delete dead code.
2396 2005-12-01  Richard Henderson  <rth@redhat.com>
2398         * optabs.c (expand_vec_cond_expr): Use EXPAND_NORMAL.
2400 2005-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2402         * builtins.def (BUILT_IN_PUTC, BUILT_IN_PUTC_UNLOCKED): New.
2404         * config/pa/pa.c (pa_init_builtins): If we detect
2405         DONT_HAVE_FPUTC_UNLOCKED, set builtin fputc_unlocked to
2406         putc_unlocked.
2408 2005-12-01  Richard Guenther  <rguenther@suse.de>
2410         * fold-const.c (fold_binary): Use fold_build2, not
2411         fold (build (...)).
2413 2005-12-01  Nathan Sidwell  <nathan@codesourcery.com>
2415         * config/ms1/ms1.c (ms1_reorg_hazard): Don't count noop moves.
2417         * vec.h (VEC_block_remove): New.
2419 2005-12-01  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2421         PR c/13384
2422         * c-common.c (lvalue_error): Fix wording.
2424 2005-12-01  Richard Guenther  <rguenther@suse.de>
2426         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Fix
2427         thinko in last patch.
2429 2005-12-01  Geoffrey Keating  <geoffk@apple.com>
2431         * config/t-slibgcc-darwin (SHLIB_LINK): Use -single_module rather
2432         than -flat_namespace.
2434 2005-12-01  Ben Elliston  <bje@au.ibm.com>
2436         * mklibgcc.in: Parameterise the script to build soft float
2437         functions by iterating over each type, rather than cloning the
2438         code for each type.
2440 2005-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2442         PR middle-end/25158
2443         * builtins.c (fold_builtin_fputs): Defer check for missing
2444         replacement functions.
2446 2005-11-30  Kean Johnston  <jkj@sco.com>
2448         * config/i386/i386.c: Check the value of SUPPORTS_ONE_ONLY, not
2449         simply its presense in case targets #define SUPPORTS_ONE_ONLY 0.
2451 2005-11-30  Richard Guenther  <rguenther@suse.de>
2453         PR tree-optimization/22501
2454         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
2455         function split out from ...
2456         (forward_propagate_addr_expr): ... here.  Use it to propagate
2457         ADDR_EXPRs to all uses.
2459 2005-11-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2461         * tree.h (CASE_FLT_FN, CASE_INT_FN): New macros.
2462         * builtins.c (expand_builtin_mathfn): Use them.
2463         (expand_builtin_mathfn_2): Likewise.
2464         (expand_builtin_mathfn_3): Likewise.
2465         (expand_builtin_int_roundingfn): Likewise.
2466         (expand_builtin): Likewise.
2467         (integer_valued_real_p): Likewise.
2468         (fold_builtin_int_roundingfn): Likewise.
2469         (fold_builtin_bitop): Likewise.
2470         (fold_builtin_logarithm): Likewise.
2471         (fold_builtin_1): Likewise.
2472         * convert.c (convert_to_integer): Likewise.
2473         * fold-const.c (negate_mathfn_p): Likewise.
2474         (tree_expr_nonnegative_p): Likewise.
2476 2005-11-30  Dale Johannesen  <dalej@apple.com>
2477             Andrew Pinski  <pinskia@physics.uc.edu>
2479         * combine.c (find_split_point):  Sign extend bitmask
2480         when changing bitfield assignment to IOR of AND.
2482 2005-11-30  Nathan Sidwell  <nathan@codesourcery.com>
2484         * config/ms1/ms1.md (decrement_and_branch_until_zero): Add early
2485         clobber to scratch reg.
2486         (*decrement_and_branch_until_zero_no_clobber): Remove.
2487         (decrement_and_branch peephole): Add dummy scratch reg to pattern.
2488         (mulhish3): Use TARGET_MS1_16_003, TARGET_MS2.
2489         * config/ms1/ms1.opt (mmul): Remove.
2490         * config/ms1/ms1.h (ASM_SPEC): Cope with uppercase arch names.
2491         (LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Default to 16-002.
2493 2005-11-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2494             Bernd Schmidt  <bernd.schmidt@analog.com>
2496         * pa/predicates.md (symbolic_operand): Add comment.
2497         * pa/pa.md (reload_insi_r1, reload_indi_r1): New reload expanders.
2498         * pa/pa-protos.h (pa_secondary_reload_class): Delete.
2499         * pa/pa.c (TARGET_SECONDARY_RELOAD): Define.
2500         (pa_secondary_reload_class): Delete.
2501         (pa_secondary_reload): New function derived from SECONDARY_RELOAD_CLASS
2502         and pa_secondary_reload_class.  Reorder some checks.  Update inline
2503         copy of symbolic operand.
2504         * pa/pa.h (SECONDARY_RELOAD_CLASS): Delete.
2506 2005-11-30  Nathan Sidwell  <nathan@codesourcery.com>
2508         * loop-doloop.c (add_test): Only add jump notes if we did emit a
2509         jump.
2511 2005-11-30  Jeff Law  <law@redhat.com>
2513         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Properly
2514         handle SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2516 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2518         * config/ia64/ia64.c (ia64_expand_tls_address): Add ORIG_OP1 argument.
2519         Move ADDEND_{HI,LO} computation into TLS_MODEL_INITIAL_EXEC case.
2520         (ia64_expand_move): Adjust caller.
2522         * config/ia64/ia64.c (ia64_expand_atomic_op): Only use
2523         fetchadd{4,8}.acq instruction if CODE is PLUS or MINUS, for MINUS
2524         negate VAL.
2526 2005-11-30  Paolo Bonzini  <bonzini@gnu.org>
2528         * simplify-rtx.c (simplify_plus_minus): Remove final parameter.
2529         Always produce an output if we can remove NEGs or canonicalize
2530         (minus (minus ...)) expressions.  Provide a fast path for the
2531         two-operand case.
2532         (simplify_gen_binary): Do not call simplify_plus_minus.
2533         (simplify_binary_operation_1): Reassociate at the end of the
2534         function.
2536 2005-11-29  Evan Cheng  <evan.cheng@apple.com>
2538         * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS): Rewrite using high/low
2539         moves and unpack to speed up.
2541 2005-11-29  David S. Miller  <davem@sunset.davemloft.net>
2543         * config/sparc/sparc.c (gen_compare_reg): Kill 2nd and 3rd
2544         argument, they are always sparc_compare_op0 and sparc_compare_op1.
2545         (gen_v9_scc): Update callers.
2546         * config/sparc/sparc.md: Likewise.
2547         * config/sparc/sparc-protos.h: Update extern declaration.
2549         * tree-into-ssa.c (rewrite_into_ssa): Fix comment typo.
2551 2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
2553         * fold-const.c (negate_expr) <case BIT_NOT_EXPR>: Add break after
2554         the if.
2556 2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
2558         * fold-const.c (negate_expr_p): Return true for BIT_NOT_EXPR.
2559         (fold_unary) <case NEGATE_EXPR>: Move -(~a) transformation to ...
2560         (negate_expr): Here.
2562 2005-11-29  Ben Elliston  <bje@au.ibm.com>
2564         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN):
2565         Fix typo in comment.
2567 2005-11-29  Ben Elliston  <bje@au.ibm.com>
2569         * Makefile.in (clean-target): Depend on clean-target-libgcc.
2570         (clean-target-libgcc): Import rule from the top-level Makefile.in.
2572 2005-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2574         PR middle-end/20109
2575         PR middle-end/25120
2576         * builtins.c (init_target_chars): New.
2577         (expand_builtin_printf, expand_builtin_fprintf,
2578         expand_builtin_sprintf, fold_builtin_sprintf,
2579         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
2580         fold_builtin_snprintf_chk, fold_builtin_printf,
2581         fold_builtin_fprintf): Check for matching format strings using
2582         the target charset.
2584 2005-11-29  Paul Brook  <paul@codesourcery.com>
2586         * config.gcc: Do not use fixproto on m68k-elf.
2588 2005-11-28  Roger Sayle  <roger@eyesopen.com>
2590         * expmed.c (div_cost): Replace with...
2591         (sdiv_cost, udiv_cost): New.
2592         (init_expmed): Initialize sdiv_cost and udiv_cost, not div_cost.
2593         Rename the div and mod fields, used to initialize sdiv_pow2_cheap
2594         and smod_pow2_cheap, to sdiv_32 and smod_32 to avoid confusion.
2595         (expand_divmod): Replace use of div_cost with either sdiv_cost
2596         or udiv_cost depending upon the signedness of the operation.
2598 2005-11-28  Alexandre Oliva  <aoliva@redhat.com>
2600         PR libfortran/24991
2601         * config/darwin.c (machopic_indirection_name,
2602         machopic_output_indirection): Follow transparent alias chain.
2604 2005-11-28  Alexandre Oliva  <aoliva@redhat.com>
2606         * varasm.c (ultimate_transparent_alias_target): Add comment.
2608 2005-11-28  Kazu Hirata  <kazu@codesourcery.com>
2610         * config/m68k/m68k.c (notice_update_cc): Use SET_DEST and
2611         SET_SRC instead of XEXP where appropriate.
2613 2005-11-28  Joseph S. Myers  <joseph@codesourcery.com>
2615         * config/fp-bit.c (isnan, isinf, pack_d, unpack_d): Use
2616         __builtin_expect.
2618 2005-11-28  Joseph S. Myers  <joseph@codesourcery.com>
2620         * config/fp-bit.h (LSHIFT): Take shift count parameter.
2621         * config/fp-bit.c (_fpadd_parts): Shift in one go instead of one
2622         bit at a time.
2624 2005-11-28  Bernd Schmidt  <bernd.schmidt@analog.com>
2626         * config/bfin/bfin.c (bfin_secondary_reload): Renamed from
2627         secondary_input_reload_class, made static.  Adapt to new
2628         infrastructure.
2629         (secondary_output_reload_class): Delete.
2630         (TARGET_SECONDARY_RELOAD): New macro.
2631         * config/bfin/bfin.h (SECONDARY_INPUT_RELOAD_CLASS,
2632         SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
2634 2005-11-28  Nathan Sidwell  <nathan@codesourcery.com>
2636         PR c++/21166
2637         * c-decl.c (finish_struct):  Only set DECL_PACKED on a field
2638         when its natural alignment is > BITS_PER_UNIT.
2639         * stor-layout.c (finalize_type_size): Revert my patch of 2005-08-08.
2640         * c-common.c (handle_packed_attribute): Ignore packing on a field
2641         whose type is naturally char aligned.
2643 2005-11-28  Richard Guenther  <rguenther@suse.de>
2645         * c-common.c (strict_aliasing_warning): Handle all
2646         component-ref like accesses.
2648 2005-11-28  Roger Sayle  <roger@eyesopen.com>
2649             Uros Bizjak  <uros@kss-loka.si>
2651         PR middle-end/20219
2652         * fold-const.c (fold binary) <RDIV_EXPR>: Optimize
2653         sin(x)/tan(x) as cos(x) and tan(x)/sin(x) as 1.0/cos(x)
2654         when flag_unsafe_math_optimizations is set and
2655         we don't care about NaNs or Infinities.
2657         Move x/expN(y) and x/pow(y,z) transformation into common
2658         flag_unsafe_math_optimizations section.
2660 2005-11-27  Mark Mitchell  <mark@codesourcery.com>
2662         * gcc.c (main): Change type of argv to "char **".
2664 2005-11-28  Alan Modra  <amodra@bigpond.net.au>
2666         * doc/invoke.texi (powerpc msdata-data): Static data doesn't go in
2667         small data sections.
2668         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Make global.
2669         * config/rs6000/rs6000-protos.h: (rs6000_elf_in_small_data_p): Declare.
2670         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Rename to..
2671         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ..this, adding extra parm.  Don't
2672         output locals to sbss if !rs6000_elf_in_small_data_p.
2673         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above.
2675 2005-11-28  Alan Modra  <amodra@bigpond.net.au>
2677         PR target/24997
2678         * config/rs6000/rs6000.c (legitimate_indexed_address_p): Allow pattern
2679         generated by reload.
2680         * config/rs6000/predicates.md (indexed_or_indirect_operand): Use
2681         indexed_or_indirect_address.
2682         (indexed_or_indirect_address): Don't test for base reg.  Call
2683         address_operand last.  Make it a special predicate.
2685 2005-11-27  Kazu Hirata  <kazu@codesourcery.com>
2687         * config/m68k/m68k.c (notice_update_cc): Remove useless code.
2689 2005-11-27  Andrew Pinski  <pinskia@physics.uc.edu>
2691         PR middle-end/24575
2692         * fold-const.c (negate_expr_p): Add case for signed divides if overflow
2693         is undefined.
2694         (negate_expr): Likewise.
2696 2005-11-27  Andreas Schwab  <schwab@suse.de>
2698         * config/m68k/m68k.c: Reindent and fix whitespace, remove
2699         redundant parens.
2701 2005-11-27  Steven Bosscher  <stevenb@suse.de>
2703         * cfgcleanup.c (try_crossjump_to_edge): Always split SRC2 if it
2704         has EH predecessor edges.
2706 2005-11-26  Eric Christopher  <echristo@apple.com>
2708         * config/i386/i386.md (*zero_extendqihi2_movzbw): Avoid partial
2709         register stalls by zero extending to the full register.
2711 2005-11-27  Joseph S. Myers  <joseph@codesourcery.com>
2713         * config/floatunsisf.c, config/floatunsidf.c,
2714         config/floatunsixf.c, config/floatunsitf.c: New files.
2715         * config/ia64/t-hpux: Add floatunsitf.c.
2716         * config/ia64/ia64.c (ia64_init_libfuncs): Use
2717         _U_Qfcnvxuf_dbl_to_quad for unsigned DImode-to-TFmode conversion.
2719 2005-11-26  Richard Henderson  <rth@redhat.com>
2721         * c-lex.c (pragma_lex): Rename from c_lex.
2722         * c-pch.c: Update for pragma_lex rename.
2723         * c-pragma.c, c-pragma.h, config/ia64/ia64-c.c: Likewise.
2724         * config/m32c/m32c-pragma.c, config/darwin-c.c: Likewise.
2725         * config/rs6000/rs6000-c.c, config/c4x/c4x-c.c: Likewise.
2726         * config/sol2-c.c, config/v850/v850-c.c: Likewise.
2727         * doc/tm.texi: Likewise.
2729 2005-11-26  Andrew Pinski  <pinskia@physics.uc.edu>
2731         PR middle-end/23669
2732         * fold-const.c (fold_binary): Convert -A/-B to A/B for signed types
2733         when overflow is undefined.
2735 2005-11-26  Hans-Peter Nilsson  <hp@axis.com>
2737         * doc/md.texi (Insn Canonicalizations): Refer to the
2738         function commutative_operand_precedence for further rules.
2740 2005-11-25  Roger Sayle  <roger@eyesopen.com>
2742         PR middle-end/21309
2743         * expmed.c (choose_mult_variant): Return immediately when mult_cost
2744         is less than zero.  Limit mult_cost to a reasonable upper bound for
2745         the synthetic multiplication sequence.
2747 2005-11-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2749         PR middle-end/25022
2750         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
2751         fold_builtin_fputs, fold_builtin_printf, fold_builtin_fprintf):
2752         Lookup the explicit replacement functions for any unlocked
2753         stdio builtin transformations.
2755 2005-11-25  Hans-Peter Nilsson  <hp@axis.com>
2757         * config/cris/cris.md ("reload_out<mode>"): Mark operand 2 as
2758         earlyclobber.
2759         * targhooks.c (default_secondary_reload): Don't require operand 2
2760         for an input reload to be earlyclobber.
2762 2005-11-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2764         * fold-const.c (negate_mathfn_p): Fix comment and add support
2765         for BUILT_IN_CBRT, BUILT_IN_SINH, BUILT_IN_TANH, BUILT_IN_ASINH,
2766         BUILT_IN_ATANH.
2768 2005-11-25  Joseph S. Myers  <joseph@codesourcery.com>
2770         PR middle-end/24998
2771         * config/sparc/sparc.c (sparc_init_libfuncs): Use _Q_utoq and
2772         _Q_ulltoq for unsigned conversions from SImode and DImode to
2773         TFmode.
2775 2005-11-25  Alan Modra  <amodra@bigpond.net.au>
2777         * config/rs6000/ppc64-fp.c (__floatunditf): New function.
2778         (__floatundidf, __floatundisf): Likewise.
2780 2005-11-25  David Edelsohn  <edelsohn@gnu.org>
2782         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Delete.
2783         (rs6000_override_options): Remove initialization of
2784         rs6000_sr_alias_set.
2785         (rs6000_emit_eh_reg_restore): Use gen_frame_mem.
2786         (rs6000_emit_stack_tie): Same.
2787         (emit_frame_save): Same.
2788         (gen_frame_mem_offset): Same.
2789         (rs6000_emit_prologue): Same.
2790         (rs6000_emit_epilogue): Same.
2792 2005-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
2794         PR middle-end/24989
2795         * fold-const.c (fold_build): Convert bool_var != 1 and
2796         bool_var == 0 to !bool_var.
2798 2005-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
2800         PR middle-end/24990
2801         * fold-const.c (fold_binary): Fold (~a) == C to a == ~C
2802         for C being INTEGER_CST.  Likewise for !=.
2804 2005-11-25  Joseph S. Myers  <joseph@codesourcery.com>
2806         PR middle-end/24998
2807         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use _q_utoq for
2808         unsigned conversions from SImode to TFmode.
2810 2005-11-24  Bernd Schmidt  <bernd.schmidt@analog.com>
2812         * expr.c (expand_expr_real_1): Fix error in last change.
2814 2005-11-24  J"orn Rennecke <joern.rennecke@st.com>
2816         * caller-save.c: (this_insn_sets): Move into:
2817         (save_call_clobbered_regs).
2818         (mark_set_regs): Get this_insn_sets from data.
2820         (save_call_clobbered_regs): Take sets of the return value by
2821         sibcalls into account.
2823 2005-11-24  J"orn Rennecke <joern.rennecke@st.com>
2824         PR target/21623:
2826         * regclass.c (FORBIDDEN_INC_DEC_CLASSES): Remove
2827         SECONDARY_INPUT_RELOAD_CLASS and SECONDARY_OUTPUT_RELOAD_CLASS tests.
2828         (init_fake_stack_mems): Remove HAVE_SECONDARY_RELOADS test.
2829         (memory_move_secondary_cost, init_reg_autoinc): Remove
2830         SECONDARY_INPUT_RELOAD_CLASS / SECONDARY_OUTPUT_RELOAD_CLASS tests.
2831         Replace SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with
2832         secondary_reload_class call.
2833         (copy_cost): Likewise.  Add new parameter prev_sri.  Changed all
2834         callers.
2835         * reload.c (entire file): Remove HAVE_SECONDARY_RELOADS checks.
2836         (push_secondary_reload): Use secondary_reload target hook.
2837         (secondary_reload_class, scratch_reload_class): New functions.
2838         (push_reload): Remove SECONDARY_INPUT_RELOAD_CLASS and
2839         SECONDARY_OUTPUT_RELOAD_CLASS tests.  Replace
2840         SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with secondary_reload_class call.
2841         * reload.h (HAVE_SECONDARY_RELOADS): Don't define nor test.
2842         (secondary_reload_class, scratch_reload_class): Declare.
2843         * reload1.c: Include target.h.
2844         (reload_adjust_reg_for_temp): New function.
2845         (reload_adjust_reg_for_icode): Likewise.
2846         (choose_reload_regs): Remove SECONDARY_INPUT_RELOAD_CLASS test.
2847         Replace SECONDARY_INPUT_RELOAD_CLASS use with secondary_reload_class
2848         call.
2849         (emit_input_reload_insns): Likewise.  Rewrite secondary reload checks
2850         for inheritance.  Support case when both secondary & tertiary reloads
2851         are for intermediate registers.
2852         (emit_output_reload_insns): Replace SECONDARY_OUTPUT_RELOAD_CLASS use
2853         with secondary_reload_class call.  Support case when both secondary
2854         & tertiary reloads are for intermediate registers.
2855         * target-def.h (TARGET_SECONDARY_RELOAD): Provide default definition.
2856         (TARGET_INITIALIZER) Add TARGET_SECONDARY_RELOAD.
2857         * target.h (secondary_reload_info): New struct / typedef.
2858         (struct gcc_target): New member secondary_reload.
2859         * targhooks.c Include reload.h, optabs.h and recog.h.
2860         (default_secondary_reload): New function.
2861         * targhooks.h (default_secondary_reload): Declare.
2862         * doc/tm.texi: Document secondary_reload target hook.  Update
2863         description of SECONDARY_*RELOAD_CLASS and reload_{in,out}<mode>.
2864         * doc/md.texi: Likewise.
2866         * sh-protos.h (sh_secondary_reload): Declare.
2867         * sh.c (TARGET_SECONDARY_RELOAD): Override.
2868         (sh_secondary_reload): New function.
2869         * sh.h (SECONDARY_INOUT_RELOAD_CLASS): Don't define.
2870         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
2871         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
2872         (HAVE_SECONDARY_RELOADS): Define.
2873         * sh.md (reload_indf): Rename to:
2874         (reload_indf__frn).
2875         (reload_outdf): Rename to:
2876         (reload_outdf__RnFRm).
2877         (reload_insf): Rename to:
2878         (reload_insf__frn).
2879         (reload_insi): Rename to:
2880         (reload_insi__i_fpul).
2882 2005-11-24  Uros Bizjak  <uros@kss-loka.si>
2884         * configure.ac: Require at least texinfo 4.4.
2885         * configure: Regenerate.
2887         * doc/install.texi (Tools/packages necessary for building GCC):
2888         Update required version of texinfo to at least 4.4.
2889         (Installing GCC: Building): Update required version of texinfo
2890         to at least 4.4.
2891         (Installing GCC: Final installation): Update required version
2892         of texi2dvi to at least 4.4.
2893         (Host/target specific installation notes for GCC): Update required
2894         version of texinfo to at least 4.4.
2896 2005-11-24  Richard Guenther  <rguenther@suse.de>
2897         Dirk Mueller <dmueller@suse.de>
2899         PR c++/14024
2900         * c-common.h (strict_aliasing_warning): Declare.
2901         * c-common.c (strict_aliasing_warning): New function,
2902         split out from ...
2903         * c-typeck.c (build_c_cast): ... here.
2905 2005-11-24  Paolo Bonzini  <bonzini@gnu.org>
2907         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
2908         to order operands.
2909         (swap_commutative_operands_with_target): New.
2911 2005-11-24  Paolo Bonzini  <bonzini@gnu.org>
2913         * gcse.c (hash_scan_set): Look through REG_EQUAL or REG_EQUIV notes
2914         also when doing PRE, rather than only for global CPROP.
2916 2005-11-24  Ben Elliston  <bje@au.ibm.com>
2918         * machmode.h (CLASS_HAS_WIDER_MODES_P): New macro.
2919         * optabs.c (expand_binop): Use CLASS_HAS_WIDER_MODES_P, improve
2920         formatting.
2921         (expand_twoval_unop): Likewise.
2922         (widen_clz): Likewise.
2923         (expand_parity): Likewise.
2924         (expand_unop): Likewise.
2925         (emit_cmp_and_jmp_insn_1): Likewise.
2926         (prepare_float_lib_cmp): Likewise.
2928 2005-11-24  Ben Elliston  <bje@au.ibm.com>
2930         * optabs.c (prepare_cmp_insn): Use SCALAR_FLOAT_MODE_P.
2931         Remove unused `class' variable.
2933 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2935         PR c++/21667
2936         * c-typeck.c (build_array_ref): Avoid code duplicate.  Use common
2937         C/C++ diagnostic function warn_array_subscript_with_type_char.
2938         * c-common.h (warn_array_subscript_with_type_char): Declare.
2939         * c-common.c (warn_array_subscript_with_type_char): Define.
2941 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2943         PR c/21668
2944         * c-decl.c (grokdeclarator): Don't warn for 'extern const' when
2945         compiling at the intersection of C and C++.
2947 2005-11-23  Mark Mitchell  <mark@codesourcery.com>
2949         * doc/invoke.texi: For man pages, include gcc-vers.texi.
2950         List @file in the option summary.  Include the libiberty
2951         documentation for @file.
2952         * gcc.c (main): Call expandargv.
2953         * Makefile.in (gcc-vers.texi): Define srcdir.
2955 2005-11-23  Diego Novillo  <dnovillo@redhat.com>
2957         * passes.c (init_optimization_passes): Document
2958         sequencing of passes.
2960 2005-11-23  Kazu Hirata  <kazu@codesourcery.com>
2962         * config/m68k/predicates.md (pcrel_address, extend_operator,
2963         post_inc_operand, pre_dec_operand): Remove redundant
2964         conditionals.
2965         (const_uint32_operand, const_sint32_operand): Use gcc_assert
2966         instead of abort.
2967         (valid_dbcc_comparison_p): Rewrite in the lisp style.
2969 2005-11-23  Ben Elliston  <bje@au.ibm.com>
2971         * dwarf2.h (enum dwarf_type): Add DW_ATE_decimal_float.
2973 2005-11-22  J"orn Rennecke <joern.rennecke@st.com>
2975         Preparatory work for PR target/21623:
2976         * alpha.c (secondary_reload_class): Rename to:
2977         (alpha_secondary_reload_class).
2978         * alpha.h, alpha-protos.h: Likewise.
2979         * mn10300.c (secondary_reload_class): Rename to:
2980         (mn10300_secondary_reload_class).
2981         * mn10300.h, mn10300-protos.h: Likewise.
2982         * pa.c (secondary_reload_class): Rename to:
2983         (pa_secondary_reload_class).
2984         * pa.h, pa-protos.h: Likewise.
2985         * rs6000.c (secondary_reload_class): Rename to:
2986         rs6000_secondary_reload_class.
2987         * rs6000.h, rs6000-protos.h: Likewise.
2989 2005-11-22  Eric Botcazou  <ebotcazou@adacore.com>
2991         PR middle-end/22561
2992         * tree-ssa-structalias.c (get_constraint_for): Handle ARRAY_RANGE_REF.
2994 2005-11-22  Ian Lance Taylor  <ian@airs.com>
2996         * optabs.c (expand_unop): Call SCALAR_FLOAT_MODE_P on a mode, not
2997         a mode_class.
2998         (prepare_cmp_insn): Likewise.
3000 2005-11-22  Kazu Hirata  <kazu@codesourcery.com>
3002         PR target/23435
3003         * m68k.md (zero_extendsidi2): Force operands[1] to a register
3004         if both operands[0] and operands[1] are memory.
3006 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
3008         PR middle-end/23606
3009         * fold-const.c (fold_unary) <case NOP_EXPR, CONVERT_EXPR>: For
3010         COMPARISON_CLASS_P and an integral types create create a new
3011         expression with the new type and fold that.
3013 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
3015         PR target/24988
3016         * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Remove call
3017         to SUBTARGET_OS_CPP_BUILTINS.
3019 2005-11-22  Richard Earnshaw  <richard.earnshaw@arm.com>
3021         * arm.c (emit_set_insn): New function.
3022         (arm_split_constant): Call it.
3023         (arm_gen_compare_reg, arm_reload_in_hi, arm_reload_out_hi): Likewise.
3024         (arm_legitimize_address): Likewise.  Use plus_constant.
3025         (arm_expand_prologue): Likewise.  Use VOIDmode in SET.
3026         (thumb_expand_prologue): Likewise.
3027         (arm_gen_load_multiple): Use VOIDmode in SET.
3028         (arm_gen_store_multiple): Likewise.
3029         (vfp_emit_fstmx): Likewise.  Use plus_constant.
3030         (emit_multi_reg_push): Likewise.
3031         (emit_sfm): Use plus_constant.
3033 2005-11-23  Alan Modra  <amodra@bigpond.net.au>
3035         PR target/24954
3036         * config/rs6000/predicates.md (easy_vector_constant_add_self): Fix
3037         typo last change.
3039 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
3041         PR middle-end/24950
3042         * expmed.c (store_bit_field): Don't attempt to insv a field
3043         larger than the reg.
3045 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
3047         PR target/24954
3048         * config/rs6000/predicated.md (easy_vector_constant_add_self): Use
3049         explicit sign extension, not a (char) cast.
3051 2005-11-22  Ben Elliston  <bje@au.ibm.com>
3053         * optabs.c: Use SCALAR_FLOAT_MODE_P instead of explicitly testing
3054         GET_MODE_CLASS (x) == MODE_FLOAT.
3055         * config/i386/i386.c: Likewise.
3056         * config/rs6000/xcoff.h: Likewise.
3057         * config/rs6000/linux64.h: Likewise.
3058         * config/rs6000/rs6000.c: Likewise.
3059         * config/rs6000/rs6000.h: Likewise.
3060         * config/rs6000/predicates.md: Likewise.
3061         * config/rs6000/sysv4.h: Likewise.
3063 2005-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3065         * c-cppbuiltin.c (c_cpp_builtins): Define __pic__ and __PIC__ when
3066         flag_pic is set.
3068         * config/alpha/freebsd.h, config/alpha/linux.h,
3069         config/arm/linux-elf.h, config/bfin/bfin.h,
3070         config/cris/linux.h, config/darwin.h, config/freebsd-spec.h,
3071         config/i386/beos-elf.h, config/i386/gnu.h,
3072         config/i386/linux.h, config/i386/linux64.h, config/i386/nto.h,
3073         config/i386/sco5.h, config/m32r/m32r.h, config/m68k/linux.h,
3074         config/m68k/m68k.h, config/mips/linux.h, config/pa/pa-linux.h,
3075         config/rs6000/linux64.h, config/rs6000/sysv4.h,
3076         config/rs6000/vxworks.h, config/s390/linux.h, config/s390/tpf.h,
3077         config/sh/linux.h, config/sh/sh.h, config/sol2.h,
3078         config/sparc/linux.h, config/sparc/linux64.h,
3079         config/xtensa/xtensa.h: Don't define __pic__ or __PIC__.
3081         * doc/invoke.texi: Document that the macros __pic__ and __PIC__
3082         are both defined when either flag -fpic or -fPIC are used.
3084 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
3086         * config/fp-bit.c (clzusi): New function.
3087         (si_to_float, usi_to_float): Use it to compute proper shift.
3088         (usi_to_float): Preserve guard bits when shifting right.
3089         * libgcc-std.ver (GCC_4.2.0): New version.
3090         * libgcc2.c (__floatundixf, __floatunditf, __floatundidf,
3091         __floatundisf): New functions.
3092         * libgcc2.h (__floatundixf, __floatunditf, __floatundidf,
3093         __floatundisf): Declare.
3094         * mklibgcc.in (lib2funcs): Add _floatundidf, _floatundisf,
3095         _floatundixf, and _floatunditf.
3096         * optabs.c (expand_float): If target does not define a pattern for
3097         signed or unsigned conversion, use an unsigned libcall instead of
3098         a signed one.
3099         (init_optabs): Initialize ufloat_optab.
3101 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
3103         * config/rs6000/rs6000.opt (mmulhw): New option.
3104         * doc/invoke.texi (-mmulhw): Document.
3105         * config/rs6000/rs6000.c (rs6000_override_options): Enable -mmulhw
3106         for 405 and 440.
3107         * config/rs6000/rs6000.md: Add half-word multiply and
3108         multiply-accumulate instructions for 405 and 440.
3110 2005-11-21  Joel Sherrill <joel.sherrill@oarcorp.com>
3112         * config/arm/rtems-elf.h: Added definition of LINK_GCC_C_SEQUENCE_SPEC
3113         which matches behavior of gcc 4.0 and older for RTEMS targets.  The
3114         default now includes a linker group which makes the RTEMS one nest.
3116 2005-11-22  Ben Elliston  <bje@au.ibm.com>
3118         * cse.c (fold_rtx): Typo fix.
3119         (find_comparison_args): Pass the mode of arg1, not arg1 itself.
3121 2005-11-21  Richard Henderson  <rth@redhat.com>
3123         * c-common.c, config/darwin-c.c, c-decl.c, c-tree.h, c-objc-common.h,
3124         langhooks-def.h, langhooks.h: Revert 2005-11-18 lookup_name patch.
3126         * c-tree.h (lookup_name): Move declaration ...
3127         * c-common.h (lookup_name): ... here.
3128         * config/darwin-c.c: Include c-common.h.
3129         * config/t-darwin: Update dependencies.
3131 2005-11-22  Ben Elliston  <bje@au.ibm.com>
3133         * optabs.c (expand_abs_nojump): Use SCALAR_FLOAT_MODE_P instead of
3134         explicitly testing GET_MODE_CLASS (x) == MODE_FLOAT.
3135         * genopinit.c (gen_insn): Likewise.
3136         * reload.c (find_equiv_reg): Likewise.
3137         * loop.c (load_mems): Likewise.
3138         * rtlanal.c (may_trap_p_1, canonicalize_condition): Likewise.
3139         * cse.c (find_comparison_args, fold_rtx): Likewise.
3140         * dwarf2out.c (add_const_value_attribute): Likewise.
3141         * expr.c (convert_move): Likewise.
3142         * recog.c (general_operand, register_operand): Likewise.
3143         * reg-stack.c (replace_reg): Likewise.
3144         * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
3145         * c-common.c (handle_vector_size_attribute): Likewise.
3146         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3147         (simplify_binary_operation_1): Likewise.
3148         (simplify_const_binary_operation): Likewise.
3149         (simplify_relational_operation): Likewise.
3150         (simplify_const_relational_operation): Likewise.
3151         (simplify_immed_subreg): Likewise.
3152         * emit-rtl.c (gen_lowpart_common): Likewise.
3153         * expmed.c (expand_mult): Likewise.
3154         * stor-layout.c (layout_type): Likewise.
3156 2005-11-21  Paolo Bonzini  <bonzini@gnu.org>
3158         PR target/24951
3159         * config/rs6000/rs6000.c (output_vec_const_move): Load cst and
3160         cst2 only for SPE vectors.
3162 2005-11-21  David Edelsohn  <edelsohn@gnu.org>
3164         PR target/24953
3165         * config/rs6000/predicates.md (vrsave_operation): Check
3166         UNSPEC_VOLATILE value.
3168 2005-11-21  Jan Hubicka  <jh@suse.cz>
3170         PR tree-optimization/24653
3171         * tree-ssa-ccp.c (ccp_fold): Strip down useless conversions.
3173 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
3175         * config/i386/predicates.md (ax_reg_operand): New predicate.
3176         (memory_displacement_only_operand): New predicate.
3177         * config/i386/i386.md ("modrm" attribute): Return 0 if one
3178         operand is AX register and the other operand is memory operand
3179         with displacement only.
3181 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
3183         * fold-const.c (fold_binary) <RDIV_EXPR>: Optimize A / A to 1.0
3184         if we don't care about NaNs or Infinities.
3186 2005-11-20  Ian Lance Taylor  <ian@airs.com>
3188         PR rtl-optimization/24883
3189         * combine.c (combinable_i3pat): When checking whether the
3190         destination of i3 is used in i3, consider paradoxical subregs.
3192 2005-11-21  Kazu Hirata  <kazu@codesourcery.com>
3194         PR middle-end/20583
3195         * cse.c (cse_insn): Reject invalid forms of CONST earlier.
3197 2005-11-20  Joseph S. Myers  <joseph@codesourcery.com>
3199         * combine.c (try_combine): Do not run subst on i1src and i2src in
3200         the case of generating a PARALLEL for a comparison.
3202 2005-11-20  Richard Henderson  <rth@redhat.com>
3204         PR 24931
3205         * tree-sra.c (struct sra_elt): Add all_no_warning.
3206         (struct sra_walk_fns) <use>: Add use_all argument.
3207         (sra_walk_expr): Pass it.
3208         (sra_walk_modify_expr): Likewise.
3209         (scalarize_ldst): Likewise.
3210         (scan_use): Update for new argument.
3211         (mark_no_warning): New.
3212         (scalarize_use): Use it.
3214 2005-11-20  Bernd Schmidt  <bernd.schmidt@analog.com>
3216         * expr.c (expand_expr_real): Use usmul_optab for widening
3217         signed * unsigned multiplies.
3218         * genopinit.c (optabs): Add usmul_widen_optab.
3219         * optabs.c (init_optabs): Likewise.
3220         * optabs.h (enum optab_index): Add OTI_usmul_widen.
3221         (usmul_widen_optab): Define.
3222         * config/bfin/bfin.md (usmulhisi3): New pattern.
3224         * doc/md.texi (usmulqihi3, usmulhisi3, usmulsidi3): Document.
3226 2005-11-20  Graham Stott <btinternet.com>
3228         * gensupport.c (std_preds): Fixed extraneous `false` in last change.
3230 2005-11-20  Andreas Schwab  <schwab@suse.de>
3232         PR target/24757
3233         * config/ia64/ia64.c (ia64_expand_atomic_op): Fix condition of cmp
3234         insn.
3236 2005-11-19  Richard Henderson  <rth@redhat.com>
3238         PR tree-opt/24665
3239         * tree-gimple.c (is_gimple_id): Export.
3240         * tree-gimple.h (is_gimple_id): Declare.
3241         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): New.
3242         (get_default_value): Use it.
3243         (maybe_fold_stmt_indirect): Likewise.
3245 2005-11-19  James A. Morrison  <phython@gcc.gnu.org>
3247         * tree-vrp.c (compare_ranges): Return false for EQ_EXPR if VR0 is less
3248         than VR1 or vice-versa.
3250 2005-11-19  Hans-Peter Nilsson  <hp@axis.com>
3252         PR middle-end/24912
3253         PR middle-end/24750
3254         * reload.c (find_reloads_address_1): Mention dependency on
3255         gen_reload.
3256         * reload1.c (gen_reload): For IN with an unary operation, try
3257         moving inner expression to OUT if trivial SET is not valid.
3258         Confirm that the result is valid.  Move common code block into...
3259         (emit_insn_if_valid_for_reload): New function.
3261 2005-11-19  Richard Guenther  <rguenther@suse.de>
3263         * fold-const.c (fold_indirect_ref_1): Make sure we fold
3264         ARRAY_REFs of constant strings.
3266 2005-11-19  Jakub Jelinek  <jakub@redhat.com>
3268         * gcc.c (version_compare_spec_function): Use '%s' rather than %qs in
3269         fatal format string.
3271 2005-11-19  Joseph S. Myers  <joseph@codesourcery.com>
3273         * combine.c (make_compound_operation): Swap operands of
3274         commutative operation if necessary before returning.
3276 2005-11-19  Richard Guenther  <rguenther@suse.de>
3278         PR middle-end/23294
3279         * fold-const.c (fold_plusminus_mult_expr): New function.
3280         (fold_binary): Use to canonicalize PLUS_EXPR and MINUS_EXPR
3281         cases, remove now unnecessary code.
3283 2005-11-19  Paolo Bonzini  <bonzini@gcc.gnu.org>
3285         * gensupport.c (old_preds): Rename to std_preds, add special field.
3286         (struct old_pred_table): Rename to struct std_pred_table, add special
3287         field.
3288         (NUM_KNOWN_OLD_PREDS): Rename to NUM_KNOWN_STD_PREDS.
3289         (NUM_OLD_SPECIAL_MODE_PREDS): Remove.
3290         (init_predicate_table): Adjust, and set along the way whether a
3291         predicate is special.
3293 2005-11-18  Mark Mitchell  <mark@codesourcery.com>
3295         * BASE-VER: Change to 4.2.0.
3297 2005-11-18  James E Wilson  <wilson@specifix.com>
3299         * builtins.c (fold_builtin_strstr): Pass s1 through fold_convert before
3300         returning it.
3302 2005-11-18  Mike Stump  <mrs@apple.com>
3304         * c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name.
3305         * config/darwin-c.c (darwin_pragma_unused): Likewise.
3306         * c-decl.c (lookup_name_two) Remove.
3307         * c-tree.h (lookup_name_two): Remove.
3308         * c-objc-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
3309         * langhooks-def.h (LANG_HOOKS_LOOKUP_NAME): Add.
3310         (LANG_HOOKS_DECLS): Add initializer for LANG_HOOKS_LOOKUP_NAME.
3311         * langhooks.h (lang_hooks_for_decls): Add lookup_name.
3313 2005-11-18  Richard Earnshaw  <richard.earnshaw@arm.com>
3315         PR target/24914
3316         * arm.c (arm_hard_regno_mode_ok): Co-processor registers aren't ok
3317         when not generating code to use that co-processor.
3319 2005-11-18  James A. Morrison  <phython@gcc.gnu.org>
3321         * tree-flow.h (reserve_phi_args_for_new_edge, create_phi_node,
3322         add_phi_arg, remove_phi_args, remove_phi_node phi_reverse): Mention that
3323         these functions are now in tree-phinodes.c.
3325 2005-11-18  Jie Zhang  <jie.zhang@analog.com>
3327         * config/bfin/bfin.md (trap): New pattern.
3329 2005-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3331         * tree-ssa-dom.c (extract_range_from_cond): Deal with variable bounds
3332         on types.
3334         * expr.c (expand_expr_real): Don't call record_block_change unless
3335         ib_boundaries_block is non-null
3337         * postreload.c (reload_cse_move2add): Don't try to work with BImode.
3339         * fold-const.c (build_range_check): Use proper type for subtraction
3340         when merging lower bound.
3342 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
3344         PR rtl-optimization/24497
3345         * loop-unroll.c (apply_opt_in_copies): Do not verify equality of
3346         the copied insn.
3348 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
3350         * tree-scalar-evolution.c (expression_expensive_p): New function.
3351         (scev_const_prop): Use compute_overall_effect_of_inner_loop.
3353 2005-11-18  Bernd Schmidt  <bernd.schmidt@analog.com>
3355         * config/bfin/crtlibid.s: New file.
3357 2005-11-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3359         PR target/24348
3360         * config.gcc (hppa*-*-hpux*): Add pa/t-slibgcc-elf-ver to tmake config
3361         when not using sjlj exceptions.
3362         * config/pa/pa64-hpux.h (LIB_SPEC): Add -lpthread in static links.
3363         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
3364         * config/pa/som.h (ASM_PREFERRED_EH_DATA_FORMAT): Delete define.
3365         * config/pa/linux-unwind.h (pa32_fallback_frame_state): Use
3366         DWARF_ALT_FRAME_RETURN_COLUMN instead of column 0 as return column.
3367         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): New define.
3368         * config/pa/pa-linux.h (INCOMING_RETURN_ADDR_RTX,
3369         DWARF_FRAME_RETURN_COLUMN, ASM_PREFERRED_EH_DATA_FORMAT,
3370         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Delete defines.
3371         * config/pa/pa.h (ARG_POINTER_CFA_OFFSET): Delete.
3372         (FRAME_POINTER_CFA_OFFSET, INCOMING_RETURN_ADDR_RTX,
3373         DWARF_FRAME_RETURN_COLUMN, DWARF_ALT_FRAME_RETURN_COLUMN,
3374         ASM_PREFERRED_EH_DATA_FORMAT, ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New
3375         defines.
3376         * config/pa/hpux-unwind.h: New file.
3378 2005-11-17  Alexandre Oliva  <aoliva@redhat.com>
3380         * config/rs6000/rs6000.h (ASM_OUTPUT_WEAKREF): Define.
3381         * defaults.h (ASM_OUTPUT_WEAKREF): Add decl argument.
3382         * varasm.c (do_assemble_alias): Adjust call.
3383         (weak_finish): Don't use ASM_WEAKEN_LABEL if ASM_WEAKEN_DECL
3384         is defined.
3385         * doc/tm.texi (ASM_OUTPUT_WEAKREF): Document it.
3387 2005-11-17  James E Wilson  <wilson@specifix.com>
3389         * tree.def (FUNCTION_DECL): Correct typo in comment.
3391 2005-11-17  Richard Henderson  <rth@redhat.com>
3393         * dwarf2out.c (dw_cfi_oprnd_struct): Reduce dw_cfi_reg_num to int.
3394         (lookup_cfa_1): Apply data alignment to DW_CFA_def_cfa_offset_sf
3395         and DW_CFA_def_cfa_sf.
3396         (def_cfa_1): Use DW_CFA_def_cfa_offset_sf with negative values.
3397         (dbx_reg_number): Don't assert particular registers here.
3398         (based_loc_descr): ... do it here instead.  Fold in ...
3399         (eliminate_reg_to_offset): ... this function.
3400         (compute_frame_pointer_to_cfa_displacement): Fold in the effects
3401         of eliminate_reg_to_offset; use FRAME_POINTER_CFA_OFFSET.
3402         * unwind-dw2.c (execute_cfa_program): Apply data align factor
3403         to DW_CFA_def_cfa_offset_sf and DW_CFA_def_cfa_sf.
3404         * function.c (instantiate_new_reg): Use FRAME_POINTER_CFA_OFFSET.
3405         (instantiate_virtual_regs): Likewise.
3406         * var-tracking.c (adjust_stack_reference): Likewise.
3407         * doc/tm.texi (FRAME_POINTER_CFA_OFFSET): New.
3409 2005-11-17  Bernd Schmidt  <bernd.schmidt@analog.com>
3411         * config/bfin/elf.h (STARTFILE_SPEC): Add "crtlibid%O%s"
3412         * config/bfin/uclinux.h (STARFILE_SPEC): Likewise.
3413         * config/bfin/t-bfin-elf (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Add
3414         crtlibid.o.
3415         ($(T)crtlibid.o): New rule.
3417 2005-11-16  Richard Guenther  <rguenther@suse.de>
3419         PR middle-end/24851
3420         * fold-const.c (extract_array_ref): Return byte offset
3421         in all cases.
3422         (fold_binary): Fold &x[a] CMP &x[b] to
3423         a*sizeof(*x) CMP b*sizeof(*x) to get correct overflow
3424         behavior.
3426 2005-11-16  Richard Henderson  <rth@redhat.com>
3428         PR middle-end/23497
3429         * tree-ssa.c (warn_uninitialized_var): Skip real and imaginary
3430         parts of an SSA_NAME.
3432 2005-11-16  Richard Earnshaw  <richard.earnshaw@arm.com>
3434         PR target/24861
3435         * arm.md (split for movsf with immediate): Restrict split to insns
3436         that set a general register.
3438 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
3440         * config/ia64/unwind-ia64.c (uw_advance_context): New.  Call
3441         uw_update_context.
3442         * unwind-dw2.c (uw_advance_context): Likewise.
3443         * unwind-sjlj.c (uw_advance_context): Likewise.  Also call
3444         _Unwind_SjLj_Unregister.
3445         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Call uw_advance_context.
3447 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
3449         * unwind-sjlj.c (_Unwind_GetCFA): Handle the builtin_setjmp case.
3451 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3453         * config/alpha/alpha.c (alpha_init_builtins): Use type_for_mode
3454         langhook to get a DImode integer type.
3456 2005-11-16  Richard Henderson  <rth@redhat.com>
3457             J"orn Rennecke <joern.rennecke@st.com>
3458             Ulrich Weigand  <uweigand@de.ibm.com>
3460         PR rtl-opt/24160
3461         PR target/24621
3462         * reload1.c (reg_equiv_invariant): New.
3463         (reload): Allocate, initialize, and free it.
3464         (calculate_needs_all_insns): Check it when skipping equivalence
3465         setting insns.
3466         (alter_reg): Likewise.
3467         (eliminate_regs_1): Rename from eliminate_regs.  Add new
3468         may_use_invariant argument; only use reg_equiv_invariant when true.
3469         (eliminate_regs): New.
3470         (eliminate_regs_in_insn): Use eliminate_regs_1; track when we're in
3471         a context for which may_use_invariant may be true.
3473 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3475         * fold-const.c (const_binop): Don't constant fold the operation
3476         if the result has overflowed and flag_trapping_math.
3477         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
3479 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
3481         * config/arm/unwind-arm.c (abort): Add prototype here.
3482         (UCB_FORCED_STOP_ARG): Correct typo in macro argument.
3483         (struct phase1_vrs): Add prev_sp.
3484         (unwind_phase2_forced): Save the original core registers instead of
3485         modifying entry_vrs.  Take a new flag argument for resuming unwinding
3486         and set action flags accordingly.  Always set _US_END_OF_STACK when
3487         get_eit_entry fails.  Unwind before calling the stop function.
3488         (_Unwind_GetCFA): New function.
3489         (__gnu_Unwind_ForcedUnwind): Update call to unwind_phase2_forced.
3490         (__gnu_Unwind_Resume_or_Rethrow): Likewise.
3491         (__gnu_Unwind_Resume): Do not unwind here for forced unwinding;
3492         just call unwind_phase2_forced.
3493         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Move to here.
3494         * config/arm/unwind-arm.h (abort): Remove prototype.
3495         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Change to
3496         prototypes.
3497         (_Unwind_GetCFA): New prototype.
3498         * config/arm/pr-support.c (abort): Add prototype here.
3499         * unwind-c.c (PERSONALITY_FUNCTION) [__ARM_EABI_UNWINDER__]: Handle
3500         forced unwinding.
3501         * config/arm/arm.c (arm_expand_prologue, thumb_expand_prologue): Do
3502         not schedule the prologue with non-call exceptions and EABI.
3504 2005-11-16  Nathan Sidwell  <nathan@codesourcery.com>
3506         * config/arm/unwind-arm.h: Reorder interface function declarations.
3507         (_URC_END_OF_STACK): New enumeration value.
3508         (_US_UNWIND_ACTION_MASK, _US_FORCE_UNWIND, _US_END_OF_STACK): Likewise.
3509         (struct _Unwind_Control_Block): Document reserved field use.
3510         (_Unwind_Stop_Fn): New typedef.
3511         (_Unwind_ForcedUnwind): Declare.
3512         (_Unwind_Resume_or_Rethrow): Declare.
3513         * gcc/config/arm/libunwind.S (UNWIND_WRAPER): Add nargs
3514         argument.  Adjust.
3515         (_Unwind_Resume_or_Rethrow, _Unwind_ForcedUnwind): New.
3516         * config/arm/unwind-arm.c (UCB_FORCED_STOP_FN)
3517         (UCB_FORCED_STOP_ARG): New.
3518         (search_EIT_table): Update boundary condition checks.
3519         (get_eit_entry): Return _URC_END_OF_STACK when cannot unwind.
3520         (unwind_phase2): Replace for with do..while.
3521         (unwind_phase2_forced): New.
3522         (__gnu_Unwind_RaiseException): Replace for with do..while.
3523         (__gnu_Unwind_ForcedUnwind): New.
3524         (__gnu_Unwind_Resume): Set FORCE_UNWIND flag, if forced unwinding.
3525         Use appropriate phase2 unwinder.
3526         (__gnu_Unwind_Resume_or_Rethrow): New.
3527         (__gnu_unwind_pr_common): Cope with forced unwinding.
3529 2005-11-16  David Edelsohn  <edelsohn@gnu.org>
3531         PR target/24772
3532         * config/rs6000/predicates.md (vrsave_operation): SET_SRC is a VEC.
3534         * config/rs6000/rs6000.md (btruncsf2, ceilsf2, floorsf2,
3535         roundsf2): Remove "s" from mnemonic.
3537 2005-11-16  Bernd Schmidt  <bernd.schmidt@analog.com>
3539         * config/bfin/crti.s (__init, __fini): Use appropriate prologue if
3540         __PIC__ is defined.
3541         * config/bfin/crtn.s: Change epilogues to match.
3542         * config/bfin/t-bfin-elf (EXTRA_MULTILIB_PARTS): Define.
3543         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If flag_pic, define
3544         __PIC__ and __pic__.
3546 2005-11-16  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
3548         PR 24357
3549         * doc/invoke.texi: Distinguish between free and fixed form instead of
3550         Fortran and Fortran 90/95.  Remove ratfor from the list of supported
3551         languages.
3552         * gcc.c (default_compilers): Remove double entries, add entries for
3553         suffixes '.F90' and '.F95'.
3555 2005-11-16  Eric Botcazou <ebotcazou@adacore.com>
3557         * config/alpha/alpha.c (alpha_expand_prologue): Fix off-by-one bug
3558         in the stack probing loop.
3560 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
3562         * configure.ac: Use .machine power5 not power5x.
3563         * configure: Regenerate.
3565 2005-11-15  Mike Stump  <mrs@apple.com>
3567         * c-decl.c (lookup_name_two): Add.
3568         * c-tree.h (lookup_name_two): Likewise.
3569         * c-common.c (handle_cleanup_attribute): Use lookup_name_two instead.
3570         * config/darwin-c.c (darwin_pragma_unused): Likewise.
3572 2005-11-16  Alan Modra  <amodra@bigpond.net.au>
3574         PR rtl-optimization/23392
3575         * regrename.c (enum scan_actions) Add mark_access.
3576         (scan_actions_name): Ditto.
3577         (scan_rtx_reg): Handle mark_access.
3578         (scan_rtx_address): Do nothing for mark_access.
3579         (build_def_use): Mark source registers in REG_FRAME_RELATED_EXPR
3580         and regs in REG_INC notes before closing chains for dead regs.
3581         Mark destination regs in REG_FRAME_RELATED_EXPR notes after
3582         opening chains for new writes.
3584 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
3586         * c.opt (ffixed-line-length-none): New.
3588 2005-11-15  Steve Ellcey  <sje@cup.hp.com>
3590         * mklibgcc.in: Change contents of eh_dummy.c.
3592 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
3594         * loop.c (scan_loop): Do not insert temporaries for hard registers.
3596 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
3598         * config/arm/lib1funcs.asm (div0) [L_dvmd_lnx]: Call raise instead
3599         of making syscalls.
3600         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define.  Set r7 also.
3602 2005-11-15  Jan Hubicka  <jh@suse.cz>
3604         * invoke.texi (large-unit-insns): Document.
3605         * ipa-inline.c (cgraph_decide_inlining): Use large-unit-insns param.
3606         * params.def (large-unit-insns): New param.
3608 2005-11-15  Hans-Peter Nilsson  <hp@axis.com>
3610         PR target/24869
3611         * config/cris/cris.md ("*mov_sidesisf_mem"): Do not match
3612         special register for operand 3.  Reindent constraints to align
3613         them vertically.
3615 2005-11-14  David Edelsohn  <edelsohn@gnu.org>
3617         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mmfcrf,
3618         -mpopcntb, -mfprnd. Add -mcpu=power5+.
3619         * configure.ac: Add test for FP rounding instructions.
3620         * configure: Regenerate.
3621         * config.in: Regenerate.
3622         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3623         _ARCH_PPCSQ, _ARCH_PPCGR, _ARCH_PWR4, _ARCH_PWR5, _ARCH_PWR5X if
3624         features enabled.
3625         * config/rs6000/rs6000.opt (mfprnd): New.
3626         * config/rs6000/rs6000.c (processor_target_table): Add power5+.
3627         (POWERPC_MASKS): Add MASK_POPCNTB and MASK_FPRND.
3628         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add -mpower5+.
3629         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mpower5+.
3630         (TARGET_FPRND): New.
3631         * config/rs6000/rs6000.md (UNSPEC_FRIM, UNSPEC_FRIN, UNSPEC_FRIP,
3632         UNSPEC_FRIZ): New.
3633         (btrunc<mode>2): New.
3634         (ceil<mode>2): New.
3635         (floor<mode>2): New.
3636         (round<mode>2): New.
3638 2005-11-14  Geoffrey Keating  <geoffk@apple.com>
3640         * gcc.c (version_compare_spec_function): Use fatal() rather than
3641         abort().
3643         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): New.
3644         (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2).
3645         * config/i386/darwin.h (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2)
3646         as empty.
3647         * config/darwin.h (STARTFILE_SPEC): Use %(darwin_crt2) to possibly
3648         link in crt2.o.
3650         * config/darwin.h (REAL_LIBGCC_SPEC): Link in shared libgcc depending
3651         on -mmacosx-version-min setting.
3653 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
3655         PR 24840
3656         * tree-vrp.c (infer_value_range): Return false if STMT is a
3657         block terminator and its basic block has no successors.
3659 2005-11-14  Mike Stump  <mrs@apple.com>
3661         * config/i386/i386.c (override_options): -masm=intel isn't
3662         supported on darwin.
3663         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
3665 2005-11-15  Joseph S. Myers  <joseph@codesourcery.com>
3667         * crtstuff.c: Undefine gid_t, pid_t, rlim_t, ssize_t, uid_t and
3668         vfork after including auto-host.h.
3670 2005-11-15  Alan Modra  <amodra@bigpond.net.au>
3672         PR rtl-optimization/22002
3673         * combine.c (distribute_notes): Detect cases where a reg dies
3674         two or more times in a bb, including on the insn we are combining,
3675         and place the death note on the correct range.
3677 2005-11-14  Dale Johannesen  <dalej@apple.com>
3679         * expmed.c (store_bit_field):  Add offset unconditionally for
3680         memory targets.
3681         (extract_bit_field):  Don't force extzv or extv operand into
3682         a register if field is too big.
3684 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
3686         * config/arm/arm.c (pic_labelno): New.
3687         (arm_load_pic_register): Use an UNSPEC_PIC_LABEL instead of a
3688         LABEL_REF.  Pass only the labelno to PIC insns.
3689         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
3690         (arm_output_addr_const_extra): Handle UNSPEC_PIC_LABEL.
3691         * arm.md (UNSPEC_PIC_LABEL): New constant.
3692         (pic_add_dot_plus_four, pic_add_dot_plus_eight)
3693         (tls_load_dot_plus_eight): Expect a labelno instead of a LABEL_REF.
3694         Use the correct label prefix.
3696 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
3698         * config/arm/arm.c (legitimize_tls_address): Use correct rtx for
3699         REQ_EQUIV note.
3701 2005-11-14  Richard Earnshaw  <richard.earnshaw@arm.com>
3703         * loop-invariant.c: Include tm_p.h.
3704         * Makefile.in: Updated.
3706 2005-11-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3708         * pa.c (store_reg): Revise generation of frame notes in large frames.
3709         (set_reg_plus_d): Likewise.
3711 2005-11-13  Andrew MacLeod  <amacleod@redhat.com>
3713         PR tree-optimization/24709
3714         * tree-ssa-operands.c (verify_imm_links): Increase limit for infinite
3715         loop check.
3717 2005-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
3719         * gthr-posix95.h: Remove declaration of pthread_mutexattr_settype
3720         and duplicate declaration of pthread_self.
3722 2005-11-13  Eric Botcazou  <ebotcazou@adacore.com>
3723             Ian Lance Taylor  <ian@airs.com>
3725         PR middle-end/24003
3726         * calls.c (expand_call): If TARGET is a MEM and some part of the
3727         argument area has been saved, force TARGET to a register.
3729 2005-11-13  Razya Ladelsky <razya@il.ibm.com>
3731         * ipa-prop.c (ipa_callsite_compute_param ): Removed obsolete type
3732         checking.
3734 2005-11-13  Jason Merrill  <jason@redhat.com>
3736         PR c++/22489
3737         * dwarf2out.c (gen_subprogram_die): Force a declaration die for
3738         lazily declared methods.
3739         (force_decl_die): Stop if forcing out the context already make a
3740         DIE for the decl.
3741         (force_type_die): Likewise.
3743 2005-11-13  Andrew Pinski  <pinskia@physics.uc.edu>
3745         PR middle-end/24820
3746         * builtins.c (integer_valued_real_p): Add break in
3747         REAL_CST having TREE_OVERFLOW set.
3749 2005-11-13  Zdenek Dvorak  <dvorakz@suse.cz>
3751         * tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting
3752         addressing modes during calculation of costs.
3754 2005-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3756         * function.c (assign_stack_local_1): Restrict sanity check
3757         on frame size overflow to 32-bit and above platforms.
3759 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
3761         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define.
3762         * config/cris/cris.c: Include reload.h.
3763         (cris_initial_elimination_offset): New function.
3764         * config/cris/cris-protos.h: (cris_initial_elimination_offset):
3765         Prototype.
3767 2005-11-12  Richard Guenther  <rguenther@suse.de>
3769         * gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table.
3771 2005-11-12  Jan Hubicka  <jh@suse.cz>
3773         * expr.c (expand_expr_real_1): <MAX_EXPR, MIN_EXPR>: Canonicalize
3774         to compare against 0 when possible.
3776 2005-11-12  Jie Zhang  <jie.zhang@analog.com>
3778         * config/bfin/bfin.h (REGISTER_NAMES, SHORT_REGISTER_NAMES,
3779         HIGH_REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
3780         REG_ALLOC_ORDER, enum reg_class): Rearrange I/B/L registers.
3781         * config/bfin/bfin.md: Redefine REG_ constants for I/B/L registers
3782         in the new order.
3784 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
3786         * recog.c (constrain_operands) <case 'g'>: For a match, require
3787         that a non-register matches general_operand when strict >= 0.
3789 2005-11-11  Steven Bosscher  <stevenb@suse.de>
3791         * loop-invariant.c (move_loop_invariants): Fix a thinko in the
3792         previous checkin.
3794 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
3796         * tree-ssa-dse.c (struct address_walk_data, memory_ssa_name_same)
3797         (memory_address_same): New.
3798         (dse_optimize_stmt): Call memory_address_same.
3800 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
3802         PR middle-end/24750
3803         * reload.c (find_reloads_address_1) <case TRUNCATE, SIGN_EXTEND,
3804         ZERO_EXTEND>: New cases.
3806 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
3808         * longlong.h (__clz_tab): Always provide.
3810 2005-11-11  Steven Bosscher  <stevenb@suse.de>
3812         PR 24265
3813         * loop-invariant.c (may_assign_reg_p): Make sure a hard register
3814         can be assigned to.
3815         (find_invariant_insn): Do the cheapest check, may_assign_reg_p,
3816         before check_maybe_invariant.
3817         (move_invariant_reg): Use gen_move_insn instead of replacing
3818         SET_DEST with the temporary for the invariant.
3819         (move_loop_invariants): If checking is enabled, do internal
3820         consistency checks after completing the pass.
3822 2005-11-11  David Edelsohn  <edelsohn@gnu.org>
3824         PR 24644
3825         * common.opt (Wvolatile-register-var): New.
3826         * varasm.c (make_decl_rtl): Only emit warning when option
3827         specified.  Clarify warning message.
3828         * doc/invoke.texi (Wvolatile-register-var): Document new option.
3830         * doc/md.texi (copysign): Document standard named pattern.
3832 2005-11-11  Jie Zhang  <jie.zhang@analog.com>
3834         * config/bfin/bfin.c (bfin_expand_strmov): Correctly move the trailing
3835         bytes when align is 2.
3836         * config/bfin/bfin.md (rep_movsi, rep_movhi): Make LSETUP be followed
3837         by the first instruction of the loop.
3839 2005-11-11  Jason Merrill  <jason@redhat.com>
3841         PR c++/24686
3842         * gimplify.c (gimplify_cleanup_point_expr): Also save and restore
3843         the cleanup list.
3845 2005-11-11  Zdenek Dvorak  <dvorakz@suse.cz>
3847         PR rtl-optimization/22509
3848         * local-alloc.c (memref_used_between_p): Check whether a function call
3849         could not reference the memref.
3851 2005-11-11  Ulrich Weigand  <uweigand@de.ibm.com>
3853         * postreload.c (reload_cse_simplify_operands): Fix bug in sorting
3854         algorithm so as to choose the best, not the worst, alternative.
3855         Reset accumulated register class before processing next alternative.
3857 2005-11-11  Kaz Kojima  <kkojima@gcc.gnu.org>
3859         PR target/24445
3860         * calls.c (expand_call): Copy a return value to a plain register
3861         if needed.
3863 2005-11-10  Alexandre Oliva  <aoliva@redhat.com>
3865         PR target/24778
3866         * varasm.c (assemble_name): Recompute name only for transparent
3867         aliases.
3869 2005-11-10  Hans-Peter Nilsson  <hp@axis.com>
3871         * tree-ssa-structalias.c (heapvar_lookup): Fix typo: stmt to from.
3873 2005-11-04  Jeff Law  <law@redhat.com>
3875         PR middle-end/23181
3876         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Do not
3877         perform reassociation if the parent statement will not die as
3878         a result of the optimization.
3880 2005-11-10  Daniel Berlin  <dberlin@dberlin.org>
3882         * tree-ssa-alias.c (compute_may_aliases): Remove call to
3883         delete_old_heap_vars.
3884         * tree-dfa.c (referenced_var_remove): Remove function.
3885         * tree-ssa.c (init_tree_ssa): Call init_alias_heapvars.
3886         (delete_tree_ssa): Remove call to delete_old_heapvars.
3887         Add call to delete_alias_heapvars.
3888         * tree-flow.h (referenced_var_remove): Remove prototype
3889         (init_alias_heapvars): New prototype.
3890         (delete_alias_heapvars): Ditto.
3891         * Makefile.in (tree-ssa-structalias.o): Add
3892         gt-tree-ssa-structalias.o
3893         (GTFILES): Add tree-ssa-structalias.h and
3894         tree-ssa-structalias.c.
3895         (s-gtype): Add gt-tree-ssa-structalias.h.
3896         * tree-ssa-structalias.c (heapvars): Remove.
3897         (oldheapvars): Remove.
3898         (heapvar_for_stmt): New variable.
3899         (heapvar_lookup): New function.
3900         (heapvar_insert): Ditto.
3901         (get_constraint_for): See if we have an old heapvar
3902         to reuse.
3903         (init_alias_heapvars): New function.
3904         (delete_alias_heapvars): Ditto.
3905         Add include of gt-tree-ssa-structalias.h.
3907 2005-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
3909         PR middle-end/22127
3910         * calls.c (special_function_p): Set ECF_RETURNS_TWICE for getcontext.
3912 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
3914         * tree.c (int_fits_type_p): Only look at the base type
3915         if it has the same precision as the original type.
3917 2005-11-10  Jakub Jelinek  <jakub@redhat.com>
3919         PR other/4372
3920         * varasm.c (assemble_alias): Use %q+D in the error
3921         message instead of %J and %qD.
3923 2005-11-10  Richard Guenther  <rguenther@suse.de>
3925         * gcse.c (free_ldst_entry): Only free hashtable if
3926         it exists.
3928 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3930         * function.c (assign_stack_local_1): Issue an error message if
3931         the frame size overflows in the signed target arithmetics.
3933 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3935         * tree.c (build_qualified_type): Chain the new type to the original
3936         type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
3937         a POINTER_TYPE or a REFERENCE_TYPE respectively.
3938         (build_pointer_type_for_mode): Only return unqualified types.
3939         (build_reference_type_for_mode): Likewise.
3941 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
3943         * Makefile.in (gnucompare): Do comparison of all files using one of
3944         the chosen methods and only afterwards decide if just warning should
3945         be issued or comparison failure raised.
3947 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3949         * ifcvt.c (noce_get_alt_condition): Use prev_nonnote_insn.
3950         (noce_try_abs): Negate if the comparison is reversed.
3951         Look only one instruction backwards for a REG_EQUAL note.
3953 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
3955         PR other/4372
3956         * gthr-dce.h, gthr-posix.h, gthr-posix95.h, gthr-solaris.h,
3957         gthr-tpf.h: Define __gthrw.  For all identifiers that might
3958         be weak, introduce weakrefs or non-weak aliases with __gthrw,
3959         and prefix all uses with __ghtrw.
3961 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
3963         PR other/4372
3964         * tree.h (IDENTIFIER_TRANSPARENT_ALIAS): New.
3965         (TREE_DEPRECATED): Adjust comment.  Check for a DECL.
3966         * c-common.c (handle_weakref_attribute): New.
3967         (c_common_attribute_table): Add weakref.
3968         * configure.ac (HAVE_GAS_WEAKREF): Check for weakref support
3969         in the assembler.
3970         * configure, config.in: Rebuilt.
3971         * defaults.h (ASM_OUTPUT_WEAKREF): Define if HAVE_GAS_WEAKREF.
3972         * doc/extend.texi: Document weakref attribute.
3973         * varasm.c (ultimate_transparent_alias_target): New
3974         (assemble_name): Use it.
3975         (weak_finish_1): Split out of...
3976         (weak_finish): ... and deal with weakrefs in...
3977         (weakref_targets): ... new list.
3978         (globalize_decl): Clean up weakref_targets.
3979         (do_assemble_alias): Handle weakrefs.
3980         (finish_aliases_1): Do not reject weakrefs to external symbols.
3981         (assemble_alias): Handle weakrefs.
3983 2005-11-09  Richard Guenther  <rguenther@suse.de>
3985         PR tree-optimization/24716
3986         * tree-scalar-evolution.c (analyze_evolution_in_loop): Use
3987         t_bool to track results from follow_ssa_edge.
3989 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3991         * final.c (force_source_line): New global variable.
3992         (final_scan_insn): Set it to true instead of clearing last_filename.
3993         (notice_source_line): Return true if force_source_line is true,
3994         unless source info is absent.
3996 2005-11-09  Andrew Pinski  <pinskia@physics.uc.edu>
3998         PR c/24644
3999         * dwarf2-out.c (add_name_and_src_coords_attributes): Don't add
4000         a linkage name for a variable if it a register variable.
4001         * c-decl.c (grokdeclarator): Global register variables
4002         should be set as PUBLIC.
4004 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
4006         PR 24624
4007         * config/s390/s390.c (struct s390_frame_layout): New fields
4008         first_save_gpr_slot and last_save_gpr_slot.
4009         (cfun_grps_save_area_size, s390_frame_info, s390_emit_prologue,
4010         s390_emit_epilogue, s390_initial_elimination_offset): Replaced
4011         first_save_gpr and last_save_gpr with the _slot variants.
4012         (s390_register_info): Calculate first_save_gpr_slot and
4013         last_save_gpr_slot using regs_ever_live.
4015 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
4017         PR 24623
4018         * config/s390/s390.c (s390_regs_ever_clobbered): Only save live eh regs
4019         for a function containing a landing pad.
4021 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
4023         PR 24034
4024         * flow.c (mark_set_1): Handle CLOBBERs like SETs if the register
4025         is live afterwards.
4027 2005-11-08  Bernd Schmidt  <bernd.schmidt@analog.com>
4029         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DEFAULTS,
4030         MULTILIB_DIRNAMES, MULTILIB_EXCEPTIONS): New.
4032 2005-11-09  Nathan Sidwell  <nathan@codesourcery.com>
4034         Add ms2 support
4035         * config/ms1/ms1.md (UNSPEC_BLOCKAGE, UNSPEC_EI, UNSPEC_DI): New
4036         constants.
4037         (call,load,store): New insn types.
4038         (mem_access, branch_access): Adjust reservation conditions.
4039         (define_delay): Adjust condition.
4040         (decrement_and_branch_until_zero): Allow for ms2.  Set branch
4041         type.
4042         (*decrement_and_rbanch_until_zero_no_clobber): Allow for ms2.
4043         (*movqi_internal,*movsi_internal,*movsf_internal): Use load,store
4044         insn type.
4045         (call_internal, call_value_internal, return_internal,
4046         return_interrupt_internal, eh_return_internal, indirect_jump,
4047         tablejump): Set call insn type.
4048         (blockage, ei, di): Use appropriate unspec const.
4049         * config/ms1/ms1.c (ms1_flag_delayed_branch): New.
4050         (ms1_get_attr_type): Adjust to give load & store types.
4051         (ms1_final_prescan_insn): Adjust for new insn types.  Don't look
4052         backwards past a barrier.
4053         (ms1_override_options): Accept ms2 arch.  Copy and reset delayed
4054         branch scheduling.
4055         (struct branch_info, struct label_info): New.
4056         (ms1_labels): New.
4057         (ms1_add_branches, ms1_check_delay_slot, ms1_reorg_hazard): New.
4058         (ms1_machine_reorg): New.
4059         (TARGET_MACHINE_DEPENDENT_REORG): Override.
4060         * config/ms1/crtn.asm: Add nop for ms2 JAL hazard.
4061         * config/ms1/ms1.h (processor_type): Add PROCESSOR_MS2.
4062         (ASM_SPEC, LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Add ms2.
4063         (TARGET_MS2): New.
4065 2005-11-09  Per Bothner  <per@bothner.com>
4066             Uros Bizjak  <uros@kss-loka.si>
4068         PR c/24101
4069         * toplev.c (process_options): Initialize debug_hooks early
4070         in case lang_hooks.post_options ends up calling a debug_hook.
4072 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
4074         * dwarf2out.c (multiple_reg_loc_descriptor): Don't assume
4075         DBX_REGISTER_NUMBER being contiguous.
4077 2005-11-08  James A. Morrison  <phython@gcc.gnu.org>
4078             Diego Novillo  <dnovillo@redhat.com>
4080         PR 23046
4081         * tree-vrp.c (register_edge_assert_for): Do not register
4082         always-false predicates.
4084 2005-11-08  Devang Patel <dpatel@apple.com>
4086         PR tree-optimization/23115
4087         * tree-if-conv.c (find_phi_replacement_condition): Check domninated_by
4088         relation.
4090 2005-11-08  Joseph S. Myers  <joseph@codesourcery.com>
4092         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include
4093         -mcpu=440.
4095 2005-11-08  Daniel Berlin  <dberlin@dberlin.org>
4097         Fix PR tree-optimization/23382
4099         * tree-ssa-alias.c (compute_may_aliases): Call
4100         delete_old_heap_vars.
4101         * tree-dfa.c (referenced_var_remove): New function.
4102         * tree-ssa.c (delete_tree_ssa): Call delete_old_heap_vars.
4103         * tree-flow.h (referenced_var_remove): Add prototype.
4104         (delete_old_heap_vars): Ditto.
4105         * tree-ssa-structalias.c (heapvars): New variable.
4106         (oldheapvars): Ditto.
4107         (get_constraint_for): Put heap vars on heapvars list.
4108         (delete_old_heap_vars): New function.
4110 2005-11-08  Jason Merrill  <jason@redhat.com>
4112         * tree.h (CALL_FROM_THUNK_P): Add CALL_EXPR_CHECK.
4114 2005-11-08  Uros Bizjak  <uros@kss-loka.si>
4116         PR target/19340
4117         * reg-stack.c (reg_to_stack): Update register liveness also
4118         for flag_sched2_use_traces.
4120 2005-11-08  Alan Modra  <amodra@bigpond.net.au>
4122         PR target/23704
4123         * config/rs6000/rs6000.c (rs6000_handle_option <OPT_m64>): Don't
4124         override prior explicit -mno-powerpc-gfxopt.
4126 2005-11-07  Eric Botcazou  <ebotcazou@adacore.com>
4128         * expmed.c (extract_bit_field): Do not use insv/extv/extzv patterns
4129         if the bitsize is zero.
4130         * doc/md.texi (Standard Pattern Names): Document it.
4132         * config/ia64/ia64.c (ia64_pass_by_reference): Delete.
4133         (TARGET_PASS_BY_REFERENCE): Likewise.
4135 2005-11-07  Ian Lance Taylor  <ian@airs.com>
4137         PR rtl-optimization/24683
4138         * config/i386/i386.c (legitimize_pic_address): If constant operand
4139         to PLUS is too large, put it in a register.
4141 2005-11-07  Jie Zhang  <jie.zhang@analog.com>
4143         * configure.ac: Enable checking assembler dwarf2 support for bfin
4144         target.
4145         * configure: Regenerate.
4147 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
4149         PR target/24230
4151         * config/rs6000/rs6000.c (easy_vector_splat_const, easy_vector_same,
4152         gen_easy_vector_constant_add_self): Delete.
4153         (vspltis_constant, easy_altivec_constant, gen_easy_altivec_constant):
4154         New.
4155         (output_vec_const_move): Use gen_easy_altivec_constant.
4156         (rs6000_expand_vector_init): Do not emit a set of a VEC_DUPLICATE.
4157         * config/rs6000/predicates.md (easy_vector_constant): Reorganize tests.
4158         (easy_vector_constant_add_self): Rewritten.
4159         * config/rs6000/rs6000-protos.h (easy_vector_splat_const,
4160         easy_vector_same, gen_easy_vector_constant_add_self): Remove prototype.
4161         (easy_altivec_constant, gen_easy_altivec_constant): Add prototype.
4162         * config/rs6000/altivec.md (easy_vector_constant_add_self splitters):
4163         Macroize and adjust for the other changes.
4165 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
4167         PR c/24599
4169         * c-typeck.c (build_c_cast): Try using a shared constant, and see
4170         if TREE_OVERFLOW or TREE_CONSTANT_OVERFLOW really changed.
4172 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
4174         PR rtl-optimization/23567
4175         * ifcvt.c (noce_mem_write_may_trap_or_fault_p): New function.
4176         (noce_process_if_block): Don't do any optimizations except
4177         if (cond) x = x; if !set_b and write into orig_x may trap
4178         or fault.  Remove the MEM_READONLY_P check.
4180 2005-11-06  Diego Novillo  <dnovillo@redhat.com>
4182         PR 24670
4183         * tree-vrp.c (fix_equivalence_set): New.
4184         (extract_range_from_assert): Call it.
4186 2005-11-05  Ian Lance Taylor  <ian@airs.com>
4188         PR target/22432
4189         * combine.c (apply_distributive_law): Don't distribute across a
4190         vector mode subreg.
4192 2005-11-05  Kazu Hirata  <kazu@codesourcery.com>
4194         * c-typeck.c, config/i386/netware.h, config/m32c/cond.md,
4195         config/ms1/ms1.h, config/rs6000/predicates.md,
4196         config/s390/s390.c, params.def, postreload-gcse.c,
4197         tree-flow-inline.h, tree-ssa-operands.c, tree-vectorizer.c,
4198         tree-vrp.c, tree.c: Fix comment typos.
4199         * doc/invoke.texi: Fix typos.
4201 2005-11-05  Sebastian Pop  <pop@cri.ensmp.fr>
4203         * lambda-code.c (lambda_transform_legal_p): Use DDR_NUM_DIST_VECTS
4204         for testing whether the data_dependence_relation contains distance
4205         vectors.  Iterate over all distance vectors of the ddr.
4206         * lambda.h: Define a vec of lambda_vector pointers.
4207         * tree-data-ref.c (dump_data_dependence_relation,
4208         dump_data_dependence_direction): Iterate over all distance and
4209         direction vectors of the ddr.
4210         (initialize_data_dependence_relation): Initialize DDR_DIR_VECTS and
4211         DDR_DIST_VECTS.
4212         (build_classic_dist_vector, build_classic_dir_vector): Push a set
4213         of distance/direction vectors instead of a single one.
4214         * tree-data-ref.h (dir_vects, dist_vects): Replace dir/dist
4215         lambda_vectors with a vec of lambda_vectors.
4216         (DDR_DIR_VECT, DDR_DIST_VECT): Redefined as operations on vec.
4217         (DDR_DIR_VECTS, DDR_DIST_VECTS, DDR_NUM_DIR_VECTS,
4218         DDR_NUM_DIST_VECTS): New.
4219         * tree-loop-linear.c (gather_interchange_stats): Test for the
4220         existence of distance vectors only after having checked that there
4221         is a dependence.  Iterate over all distance vectors of the ddr.
4222         (linear_transform_loops): Use dump_data_dependence_relation.
4223         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Test for
4224         distance vectors using DDR_NUM_DIST_VECTS.  Iterate over all the
4225         distance vectors of the ddr.
4227 2005-11-05  Bernd Schmidt  <bernd.schmidt@analog.com>
4229         * config/bfin/bfin.c (n_dregs_to_save, n_pregs_to_save,
4230         expand_prologue_reg_save, expand_epilogue_reg_restore): New argument
4231         IS_INTHANDLER; all callers changed.
4232         (n_regs_saved_by_prologue): Take interrupt handler attributes into
4233         account.
4234         (do_link, do_unlink): New argument ALL; all callers changed.
4235         (expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
4236         If function isn't leaf, save and restore all registers.
4237         (bfin_function_ok_for_sibcall): Only true if not an interrupt or
4238         exception handler.
4240 2005-11-05  Jan Hubicka  <jh@suse.cz>
4242         PR rtl-optimization/23490
4243         * doc/invoke.texi (max-predicted-iterations, max-cse-insns,
4244         max-flow-memory-location): Document.
4245         * flow.c: Include params.h
4246         (MAX_MEM_SET_LIST_LEN): Kill.
4247         (add_to_mem_set_list): Use new param.
4248         * cse.c (cse_basic_block): Replace 1000 by new param.
4249         * params.def (PARAM_MAX_PREDICTED_ITERATIONS, PARAM_MAX_CSE_INSNS,
4250         PARAM_MAX_FLOW_MEMORY_LOCATIONS): New.
4251         * predict.c (predict_loops): Use new param.
4252         * predict.def (MAX_PRED_LOOP_ITERATIONS): Remove.
4254         * ipa-inline.c (cgraph_decide_inlining_of_small_function,
4255         cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
4256         Do not hold memory returned by cgraph_node_name across other call.
4258 2005-11-04  Hans-Peter Nilsson  <hp@axis.com>
4260         PR target/23424
4261         * config/cris/predicates.md ("cris_bdap_sign_extend_operand"):
4262         Disable.
4264 2005-11-04  Jeff Law  <law@redhat.com>
4266         PR/21883
4267         * doc/invoke.texi: Document max-jump-thread-duplication-stmts PARAM.
4268         * tree-ssa-dom.c: Include params.h.
4269         (thread_across_edge): If there are too many statements in the
4270         target block, then do not thread through it.
4271         * Makefile.in (tree-ssa-dom.o): Depend on $(PARAMS_H).
4272         * params.def (PARAM_MAX_JUMP_THREAD_DUPLICATION_STMTS): New PARAM.
4274 2005-11-03  Diego Novillo  <dnovillo@redhat.com>
4276         PR 24627
4277         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Use
4278         TODO_update_ssa instead of TODO_update_ssa_no_phi.
4280 2005-11-04  Sebastian Pop  <pop@cri.ensmp.fr>
4282         PR/18595
4283         * tree-scalar-evolution.c (instantiate_parameters_1,
4284         instantiate_parameters, resolve_mixers): Compute the size of an
4285         expression to be instantiated and give up the instantiation if the
4286         size exceeds PARAM_SCEV_MAX_EXPR_SIZE.
4288 2005-11-04  Richard Guenther  <rguenther@suse.de>
4290         * tree-flow.h (ref_contains_indirect_ref): Rename to
4291         array_ref_contains_indirect_ref.
4292         * tree-flow-inline.h (ref_contains_indirect_ref): Likewise.
4293         (array_ref_contains_indirect_ref): Make comment match the code
4294         and vice-versa.
4295         (ref_contains_array_ref): Likewise.
4296         * tree-ssa-structalias.c (find_func_aliases): Remove call to
4297         ref_contains_indirect_ref.
4298         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
4299         Rename calls to ref_contains_indirect_ref.
4301 2005-11-04 Paul Brook  <paul@codesourcery.com>
4303         * config/arm/arm.c (arm_load_pic_register): Pass extra reg to
4304         gen_pic_add_dot_plus_four and gen_pic_add_dot_plus_eight.
4305         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
4306         * config/arm/arm.md: Use match_operand in peephole input templates
4307         and match_dup in peephole output templates.
4309 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
4311         * config/arm/arm.c (arm_init_libfuncs): Use __aeabi_idiv and
4312         __aeabi_uidiv.
4314 2005-11-04  Mark Mitchell  <mark@codesourcery.com>
4315             Daniel Jacobowitz  <dan@codesourcery.com>
4317         * longlong.h (add_ssaaaa): Clobber condition code register
4318         in ARM version.
4319         (sub_ddmmss): Likewise.
4320         (umul_ppmm): Likewise.
4322 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
4323             Paul Brook  <paul@codesourcery.com>
4324             Phil Blundell  <pb@reciva.com>
4326         * configure.ac: Add test for ARM TLS support.
4327         * configure: Regenerated.
4328         * config/arm/arm-protos.h (legitimize_tls_address)
4329         (arm_tls_referenced_p, tls_mentioned_p)
4330         (arm_output_addr_const_extra): New prototypes.
4331         (thumb_legitimize_pic_address): Delete.
4332         * config/arm/arm.c: Include "gt-arm.h".
4333         (enum tls_reloc): New.
4334         (arm_cannot_copy_insn_p, arm_tls_symbol_p, load_tls_operand)
4335         (pcrel_constant_p, get_tls_get_addr, arm_load_tp)
4336         (arm_call_tls_get_addr, legitimize_tls_address)
4337         (arm_tls_referenced_p, arm_tls_operand_p_1, tls_mentioned_p)
4338         (arm_init_tls_builtins, arm_emit_tls_decoration)
4339         (arm_output_addr_const_extra): New functions.
4340         (TARGET_CANNOT_COPY_INSN_P, TARGET_CANNOT_FORCE_CONST_MEM)
4341         (TARGET_HAVE_TLS): Define.
4342         (target_thread_pointer): New.
4343         (arm_override_options): Handle -mtp=.
4344         (legitimize_pic_address): Ignore UNSPECs.
4345         (arm_legitimate_address_p, thumb_legitimate_address_p): Handle PC
4346         relative symbols.
4347         (arm_legitimize_address, thumb_legitimize_address): Handle TLS.
4348         (tls_get_addr_libfunc): New variable.
4349         (symbol_mentioned_p, label_mentioned_p): Ignore UNSPEC_TLS.
4350         (arm_init_builtins): Call arm_init_tls_builtins.
4351         (arm_expand_builtin): Handle ARM_BUILTIN_THREAD_POINTER.
4352         (arm_encode_section_info): Call default_encode_section_info.
4353         * config/arm/arm.h (TARGET_HARD_TP, TARGET_SOFT_TP): Define.
4354         (enum arm_tp_type): New.
4355         (target_thread_pointer): Add declaration.
4356         (LEGITIMATE_CONSTANT_P): Handle TLS.
4357         (LEGITIMATE_PIC_OPERAND_P): Handle TLS.
4358         (OUTPUT_ADDR_CONST_EXTRA): Call arm_output_addr_const_extra.
4359         (enum arm_builtins): Add ARM_BUILTIN_THREAD_POINTER.
4360         * config/arm/arm.md: Add UNSPEC_TLS.
4361         (movsi): Handle TLS.
4362         (pic_add_dot_plus_four, pic_add_dot_plus_eight): Allow for
4363         non-PIC.
4364         (tls_load_dot_plus_eight): New insn and a peephole to create it.
4365         (load_tp_hard, load_tp_soft): New insns.
4366         * arm.opt: Add -mtp=.
4367         * doc/invoke.texi (ARM Options): Document -mtp.
4369 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
4371         * config/arm/lib1funcs.asm: Don't include "libunwind.S".
4372         * config/arm/libunwind.S: Include "lib1funcs.asm".
4373         * config/arm/t-bpabi (LIB1ASMFUNCS): Remove _unwind.
4374         (LIB2ADDEH): Add libunwind.S.
4375         (LIB2ADDEHDEP): Add lib1funcs.asm.
4376         * mklibgcc.in: Handle asm files in libgcc_eh.a.
4378 2005-11-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
4380         PR fortran/18452
4381         * gcc/c.opt: Add a -lang-fortran option.
4382         * gcc/c-opts.c: Add a lang_fortran flag.
4383         (c_common_init_options): Handling the -lang-fortran option.
4384         (c_common_handle_option): Add a case for Fortran options in
4385         preprocessing. Remove cases for -ffixed-form and
4386         -ffixed-line-length. Add a case for -lang-fortran.
4388 2005-11-03  David Edelsohn  <edelsohn@gnu.org>
4390         * config/rs6000/rs6000.c: Include params.h
4391         (optimization_options): Set max-grow-copy-bb-insns default to 16.
4392         (bdesc_2arg): Delete vpkuhss and vpkuwss.
4393         * config/rs6000/altivec.md (UNSPEC_VPKUHSS): Delete.
4394         (UNSPEC_VPKUWSS): Delete.
4395         (altivec_vpkuhss): Delete.
4396         (altivec_vpkuwss): Delete.
4397         * config/rs6000/rs6000.md (plus_eqsi): Remove optimize_size from
4398         final condition.
4399         (neg_eq0<mode>): Remove final condition.
4400         (neg_eq<mode>): Remove condition and split-condition.
4402 2005-11-04  Alan Modra  <amodra@bigpond.net.au>
4404         * config/rs6000/rs6000.c (output_toc): Make "offset" HOST_WIDE_INT.
4405         Use associated print macros.
4407 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
4409         PR c++/17964
4410         * diagnostic.c (diagnostic_set_info_translated): New function.
4411         (diagnostic_set_info): Use it.  Add comment.
4412         * diagnostic.h (diagnostic_set_info_translated): Declare.
4414 2005-11-03  Eric Botcazou  <ebotcazou@adacore.com>
4416         * dwarf2asm.c (dw2_force_const_mem): Add new parameter 'public'.
4417         On USE_LINKONCE_INDIRECT platforms, build a DECL_ONE_ONLY indirect
4418         reference only if 'public' is true.
4419         (dw2_output_indirect_constant_1): On USE_LINKONCE_INDIRECT platforms,
4420         emit the .hidden directive only if the indirect reference is public.
4421         (dw2_asm_output_encoded_addr_rtx): Add new parameter 'public'.
4422         Pass it to dw2_force_const_mem.
4423         * dwarf2asm.h (dw2_asm_output_encoded_addr_rtx): New param 'public'.
4424         * dwarf2out.c (output_cfi): Adjust calls to above function.
4425         (output_call_frame_info): Likewise.
4426         * except.c (output_ttype): Pass TREE_PUBLIC of the type_info object
4427         as 'public' argument to dw2_asm_output_encoded_addr_rtx.
4429 2005-11-03  Zdenek Dvorak  <dvorakz@suse.cz>
4431         PR tree-optimization/24483
4432         * tree-ssa-loop-ivopts.c (aff_combination_add_elt): Move rest
4433         field to elts if possible.
4435 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
4437         PR middle-end/23155
4438         * gimplifier.c (gimplify_expr): Create a temporary for lvalue
4439         CONSTRUCTOR.
4441 2005-11-03  Daniel Berlin  <dberlin@dberlin.org>
4443         Fix PR tree-optimization/24351
4445         * tree-ssa-structalias.c (struct variable_info): Add
4446         collapsed_into.
4447         (get_varinfo_fc): New function to follow collapsing.
4448         (new_var_info): Set collapsed_to to NULL.
4449         (dump_constraint): Follow collapsing.
4450         (build_constraint_graph): Handle collapsing.
4451         (do_simple_structure_copy): Return false if something bad
4452         happened.
4453         (collapse_rest_of_var): New function.
4454         (do_structure_copy): Collapse if do_simple_structure_copy returns
4455         false.
4457 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
4459         PR middle-end/24589
4460         * gimplify.c (gimplify_expr) <case CONSTRUCTOR>: Add the
4461         expressions to a statement list instead of gimplifying them.
4463 2005-11-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
4465         PR rtl-optimization/23585
4466         * rtlanal.c (rtx_addr_can_trap_p_1) <PLUS>: Return 0 for an address
4467         that can't trap plus a constant integer, if the mode has zero size.
4469 2005-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
4471         PR target/24620
4472         * config/s390/s390.md ("*insv<mode>_reg_imm"): Accept any CONST_INT
4473         as operand 2.
4474         ("*insv<mode>_reg_extimm"): Likewise.
4476 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
4478         PR c/24329
4479         * c-pretty-print.c (pp_c_type_specifier): Do not recurse if
4480         c_common_type_for_mode returns an unnamed type.
4482 2005-11-02  Richard Henderson  <rth@redhat.com>
4484         PR target/9350
4485         PR target/24374
4486         * dwarf2out.c (dwarf2out_reg_save_reg): New.
4487         (dwarf2out_frame_debug_expr): Return after dwarf_handle_frame_unspec.
4488         * function.c (assign_parms): Use calls.internal_arg_pointer.
4489         (expand_main_function): Remove FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN
4490         code.
4491         * target-def.h (TARGET_INTERNAL_ARG_POINTER): New.
4492         (TARGET_CALLS): Add it.
4493         * target.h (struct gcc_target): Add calls.internal_arg_pointer.
4494         * targhooks.c (default_internal_arg_pointer): New.
4495         * targhooks.h (default_internal_arg_pointer): Declare.
4496         * tree.h (dwarf2out_reg_save_reg): Declare.
4497         * doc/tm.texi (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Remove.
4498         * config/i386/i386.c (dbx_register_map): Add return column.
4499         (dbx64_register_map, svr4_dbx_register_map): Likewise.
4500         (TARGET_INTERNAL_ARG_POINTER, ix86_internal_arg_pointer): New.
4501         (TARGET_DWARF_HANDLE_FRAME_UNSPEC, ix86_dwarf_handle_frame_unspec): New.
4502         (ix86_function_ok_for_sibcall): Disable if force_align_arg_pointer.
4503         (ix86_save_reg): Save force_align_arg_pointer.
4504         (ix86_emit_save_regs): Make regno unsigned.
4505         (ix86_emit_save_regs_using_mov): Likewise.
4506         (ix86_expand_prologue): Handle force_align_arg_pointer.
4507         (ix86_expand_epilogue): Likewise.
4508         * config/i386/i386.h: (dbx_register_map): Update.
4509         (dbx64_register_map, svr4_dbx_register_map): Update.
4510         (struct machine_function): Add force_align_arg_pointer.
4511         * config/i386/i386.md (UNSPEC_REG_SAVE, UNSPEC_DEF_CFA): New.
4512         (UNSPEC_TP, UNSPEC_TLS_GD, UNSPEC_TLS_LD_BASE): Renumber.
4513         (TARGET_PUSH_MEMORY peepholes): Disable if RTX_FRAME_RELATED_P.
4515 2005-11-02  Jan Hubicka  <jh@suse.cz>
4517         PR target/23303
4518         * i386.md: Add peep2 for simplyfing array accesses.
4520 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
4522         PR target/24615
4523         * config/s390/s390-protos.h (s390_decompose_shift_count): Declare.
4524         * config/s390/s390.c (s390_decompose_shift_count): New function.
4525         (s390_extra_constraint_str) ['Y']: Use s390_decompose_shift_count.
4526         (print_shift_count_operand): Use s390_decompose_shift_count.
4527         * config/s390/predicates.md ("setmem_operand", "shift_count_operand"):
4528         Use s390_decompose_shift_count.  Do not accept any non-base hard regs.
4530 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
4532         PR target/24600
4533         * loop.c (loop_givs_rescan): Use force_operand to expand
4534         complex GIVs.
4536 2005-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
4538         PR 22429
4539         * fold-const.c (build_range_check): Use unsigned when signed
4540         overflow is undefined also.  If etype is subtype, make sure that
4541         the subtraction is in the supertype.
4543 2005-11-02  Richard Henderson  <rth@redhat.com>
4545         PR target/24178
4546         * config/alpha/alpha.c (get_aligned_mem): Honor alignment given
4547         by MEM_ALIGN.
4549 2005-11-01  Richard Henderson  <rth@redhat.com>
4551         PR 21518
4552         * loop.c (scan_loop): Do not propagate computations to a hard
4553         register destination with SMALL_REGISTER_CLASSES.
4555 2005-11-01  Joseph S. Myers  <joseph@codesourcery.com>
4557         * config/rs6000/rs6000.c (rs6000_rtx_costs): Do not add extra
4558         costs for MULT inside PLUS or MINUS.
4560 2005-11-01  Bob Wilson  <bob.wilson@acm.org>
4562         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
4563         (TRAMPOLINE_SIZE): Round up to 60.
4564         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Likewise.
4566 2005-10-31  James E. Wilson  <wilson@specifix.com>
4568         PR debug/24444
4569         * dwarf2out.c (convert_cfa_to_loc_list): Put inside DWARF2_UNWIND_INFO
4570         ifdef.  Put ifdefs around call in gen_subprogram_die.
4571         (compute_frame_pointer_to_cfa_displacement): Likewise.
4572         (gen_subprogram_die): Restore old code for when DWARF2_UNWIND_INFO is
4573         not defined.
4575         PR rtl-optimization/17356
4576         *  cfgrtl.c (purge_dead_edges): Undo last change.  In EDGE_EH code,
4577         add check for CALL_INSN if EDGE_ABRNOMAL_CALL true.
4579 2005-10-31  Jan Hubicka  <jh@suse.cz>
4581         PR middle-end/24093
4582         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Watch negative
4584         PR target/20928
4585         * i386.c (legitimize_pic_address): Deal with large immediates.
4587         PR profile/20815
4588         * coverage.c (coverage_checksum_string): Fix code to stip random seeds
4589         from symbol names while computing checkup.
4591         PR profile/24487
4592         * predict.c (predict_loops): Do not estimate more than
4593         MAX_PRED_LOOP_ITERATIONS in PRED_LOOP_ITERATIONS heuristic.
4594         * predict.def (MAX_PRED_LOOP_ITERATIONS): Define.
4596 2005-10-31  Andrew MacLeod  <amacleod@redhat.com>
4598         PR tree-optimization/19097
4599         * tree-ssa-operands.c (correct_use_link): Don't look for modified stmts.
4601 2005-10-31  J"orn Rennecke <joern.rennecke@st.com>
4603         * optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.
4605 2005-10-31  Andrew Pinski  <pinskia@physics.uc.edu>
4607         PR middle-end/23492
4608         * tree-inline.c (setup_one_parameter): If the init_stmt
4609         is NULL, don't insert the statement.
4611 2005-10-30  Jan Hubicka  <jh@suse.cz>
4613         PR tree-optimization/24172
4614         * tree-inline.c (copy_body_r): Unshare the substituted value first.
4616 2005-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
4618         * config/mmix/mmix.c (mmix_intval): Correct handling of DFmode
4619         constants for hosts with long != 32 bits.
4621 2005-10-28  Andreas Krebbel <krebbel1@de.ibm.com>
4623         PR middle-end/24093
4624         * ipa-inline.c (craph_decide_recursive_inlining): Fix return value.
4626 2005-10-28  Aldy Hernandez  <aldyh@redhat.com>
4628         * config/ms1/ms1.h (TARGET_MS1_64_001): New.
4629         (TARGET_MS1_16_002): New.
4630         (TARGET_MS1_16_003): New.
4632         * config/ms1/ms1.md ("decrement_and_branch_until_zero"): Rewrite.
4633         ("*decrement_and_branch_until_zero_no_clobber"): New.
4634         Add corresponding splitter for decrement_and_branch_until_zero
4635         instruction.
4636         Key all decrement_and_branch_until_zero patterns off of
4637         TARGET_MS1_16_003.
4639 2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
4641         PR middle-end/24362
4642         * tree-complex.c (extract_component): Treat RESULT_DECL
4643         like the rest of the decls.
4645 2005-10-25  Eric Botcazou  <ebotcazou@adacore.com>
4647         * config/ia64/ia64.c (ia64_output_function_profiler): Emit an
4648         indirect call to _mcount if the function needs a static chain.
4650 2005-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
4651             Caroline Tice  <ctice@apple.com>
4653         PR rtl-optimization/24460
4654         * dwarf2out.c (have_switched_text_sections): New boolean variable.
4655         (dwarf2out_switch_text_section): Set it to true instead of
4656         incrementing separate_line_info_table_in_use.
4657         (output_loc_list): Additionally test have_switched_text_sections.
4658         (output_ranges): Likewise.
4659         (dwarf2out_finish): Likewise.
4660         * varasm.c (assemble_start_function): Do not call
4661         insert_section_boundary_note.
4662         (assemble_end_function): If flag_reorder_blocks_and_partition,
4663         switch to the function's section before emitting the .size directive.
4664         * bb-reorder.c (insert_section_boundary_note): Staticify.
4665         (rest_of_handle_reorder_blocks): Call insert_section_boundary_note.
4666         * output.h (insert_section_boundary_note): Delete.
4668 2005-10-24  Andrew Pinski  <pinskia@physics.uc.edu>
4670         PR c/23103
4671         * c-format.c (check_format_types): Use lang_hooks.types_compatible_p
4672         instead of pointer equality when comparing types.
4674 2005-10-24  James E. Wilson  <wilson@specifix.com>
4676         * sched-deps.c (flush_pending_lists): Pass 1 not 0 in first two
4677         add_dependence_list_and_free calls.
4679 2005-10-24  Steven Bosscher  <stevenb@suse.de>
4681         * contrib.texi: Add the names of the LLNL folks who donated
4682         Cray pointer support for gfortran.
4684 2005-10-24  Steven Bosscher  <stevenb@suse.de>
4686         PR tree-optimization/24225
4687         * profile.c (branch_prob): Look from end to start through a
4688         basic block when looking for a locus.
4690 2005-10-24  Richard Henderson  <rth@redhat.com>
4692         * pa.c (store_reg_modify): Set RTX_FRAME_RELATED_P on each set in
4693         parallel.
4694         (hppa_expand_prologue): Likewise.
4696 2005-10-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4698         * pa-linux.h (NO_PROFILE_COUNTERS): Delete define.
4699         (NO_DEFERRED_PROFILE_COUNTERS): Define.
4700         * pa.h (NO_PROFILE_COUNTERS): Define.
4701         * pa.c (NO_DEFERRED_PROFILE_COUNTERS): Define if not defined.
4702         (funcdef_nos): New vector to hold label numbers of deferred profile
4703         counters.
4704         (output_deferred_profile_counters): New function.
4705         (hppa_profile_hook): Push label number onto funcdef_nos.
4706         (pa_hpux_file_end): Call output_deferred_profile_counters if
4707         NO_DEFERRED_PROFILE_COUNTERS is false.
4709         * pa-protos.h (get_deferred_plabel): New prototype.
4710         * pa.c (get_plabel): Rename to get_deferred_plabel.  Return plabel.
4711         Make global.
4712         (output_call): Adjust calls.
4714 2005-10-24  Alan Modra  <amodra@bigpond.net.au>
4716         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Explain
4717         peculiarity of GOT/TOC section usage.
4719 2005-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
4721         PR objc/24435
4722          * c-common.c (constant_string_class_name): Add documentation.
4724 2005-10-23  Kaz Kojima  <kkojima@gcc.gnu.org>
4726         PR target/23832
4727         * recog.c (peephole2_optimize): Increment peep2_current_count
4728         only when the slot is empty.
4730 2005-10-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4732         PR ada/23957
4733         * except.c (output_function_exception_table): Call
4734         assemble_external_libcall if we need a personality function.
4736 2005-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
4738         PR rtl-optimization/24460
4739         * bb-reorder.c (fix_crossing_unconditional_branches): Do not
4740         set the basic block for barriers.
4742 2005-10-21  Janis Johnson  <janis187@us.ibm.com>
4744         * var-tracking.c (vt_initialize): Initialize post.
4746 2005-10-21  Devang Patel  <dpatel@apple.com>
4748         PR/24220
4749         * c-common.c (vector_types_convertible_p): Check vector element type.
4751 2005-10-21  Kaz Kojima  <kkojima@gcc.gnu.org>
4753         * config/sh/sh.c (prepare_move_operands): Handle the address
4754         constant which is a tls symbolic address plus a constant.
4756 2005-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
4758         PR driver/24473
4759         * gcc.c (main): Use the correct counter for erroring out
4760         about mulitple files.
4762 2005-10-21  Alan Modra  <amodra@bigpond.net.au>
4764         PR target/24465
4765         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
4766         use r2 for 64-bit tls .got access.
4768 2005-10-21  Paolo Bonzini  <bonzini@gnu.org>
4770         * dojump.c (do_jump): Handle side-effecting TRUTH_AND_EXPR and
4771         TRUTH_OR_EXPR.
4773 2005-10-20  Steven Bosscher  <stevenb@suse.de>
4775         PR tree-optimization/24307
4776         * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR.
4778 2005-10-20  Alexandre Oliva  <aoliva@redhat.com>
4780         PR middle-end/24295
4781         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Mark
4782         alias targets.
4783         * varasm.c (find_decl_and_mark_needed): After cgraph global info
4784         is ready, stop marking functions, but still mark variables.
4786 2005-10-20  Richard Guenther  <rguenther@suse.de>
4788         PR c++/24439
4789         * fold-const.c (invert_truthvalue): Handle COND_EXPR with
4790         void type operands.
4792 2005-10-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
4794         PR rtl-optimization/23585
4795         * rtlanal.c (rtx_addr_can_trap_p_1): New predicate extracted from...
4796         (rtx_addr_can_trap_p): ... here.  Invoke rtx_addr_can_trap_p_1.
4797         (may_trap_p_1): New predicate extracted from...
4798         (may_trap_p): ... here.  Invoke may_trap_p_1.
4799         (may_trap_or_fault_p): New predicate.
4800         * rtl.h (may_trap_or_fault_p): Declare it.
4801         * reorg.c (steal_delay_list_from_target): Use may_trap_or_fault_p
4802         instead of may_trap_p.
4803         (steal_delay_list_from_fallthrough): Likewise.
4804         (fill_simple_delay_slots): Likewise.
4805         (fill_slots_from_thread): Likewise.
4806         * function.c (pad_to_arg_alignment): Rework comment about
4807         SPARC_STACK_BOUNDARY_HACK.
4808         * config/sparc/sparc.h: Likewise.
4810 2005-10-19  Adrian Straetling  <straetling@de.ibm.com>
4812         * config/s390/s390.c (s390_expand_insv): New.
4813         * config/s390/s390-protos.h (s390_expand_insv): Declare.
4814         * config/s390/s390.md ("UNSPEC_SETHIGH"): Rename to "UNSPEC_ICM".
4815         ("icm_hi"): Remove mode attribute.
4816         ("*sethigh<mode><mode>"): Rewrite to "sethighpart<mode>".
4817         Adjust all uses.
4818         ("*extracthi", "*extractqi"): Remove.
4819         (extv<mode>", "*extzv<mode>"): New.
4820         ("insv", "*insv<mode>_mem_reg", "*insvdi_mem_reghigh",
4821         "*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): New.
4823 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4825         * cfgexpand.c (discover_nonconstant_array_refs_r,
4826         discover_nonconstant_array_refs): Move here from tree-outof-ssa.c
4827         (tree_expand_cfg): Call discover_nonconstant_array_refs.
4828         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
4829         discover_nonconstant_array_refs.
4831 2005-10-19  Steven Bosscher  <stevenb@suse.de>
4833         PR c/23228
4834         * c-decl.c (pop_scope): Don't warn about an unused variable
4835         if it is marked with TREE_NO_WARNING.
4836         (duplicate_decls): Set TREE_NO_WARNING if olddecl and newdecl
4837         somenow mismatch and olddecl is to be replaced.
4839 2005-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
4841         PR middle-end/23199
4842         * cfgrtl.c (safe_insert_insn_on_edge): Use can_copy_p to detect
4843         whether registers live on the edge can be saved/restored.
4845 2005-10-19  Kaz Kojima  <kkojima@gcc.gnu.org>
4847         * config/sh/sh.c (fixup_mova): Skip notes.
4849 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4851         * config/s390/s390-protos.h (s390_hard_regno_rename_ok): Add prototype.
4852         * config/s390/s390.c (s390_hard_regno_rename_ok): New function.
4853         (s390_can_eliminate): Handle BASE_REGNUM elimination.
4854         (s390_initial_elimination_offset): Likewise.
4855         (s390_conditional_register_usage): BASE_REGNUM is no longer a fixed
4856         register on TARGET_ZARCH targets.
4857         * config/s390/s390.h (HARD_REGNO_RENAME_OK): Define
4858         (INITIAL_FRAME_POINTER_OFFSET): Remove.
4859         (REG_ALLOC_ORDER): Move BASE_REGNUM lower.
4860         (ELIMINABLE_REGS): Add BASE_REGNUM elimination rule.
4862 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
4864         * config/s390/s390.md: Comment describing output modifiers updated.
4865         * config/s390/s390.c (print_operand): Likewise.
4867 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
4869         * config/s390/s390.c (override_options): Added check for -mstack-size
4870         64k limitation.
4871         * doc/invoke.texi: Mention that limit in the documenation.
4873 2005-10-18  Paolo Bonzini  <bonzini@gnu.org>
4875         PR #19672
4876         * dojump.c (do_jump): Handle TRUTH_AND_EXPR and TRUTH_OR_EXPR here.
4878 2005-10-18  Daniel Berlin <dberlin@dberlin.org>
4880         Fix PR tree-optimization/24231
4882         * tree-ssa-pre.c (try_look_through_load): Skip abnormal phi names
4883         (compute_avail): Ditto.
4885 2005-10-18  Richard Henderson  <rth@redhat.com>
4887         PR target/24428
4888         * config/i386/i386.c (legitimate_constant_p): Check
4889         SYMBOL_REF_TLS_MODEL directly.  Don't fallthru to SYMBOL_REF
4890         if LABEL_REF.
4891         (legitimate_pic_operand_p): Test SYMBOL_REF_TLS_MODEL directly.
4892         (legitimate_pic_address_disp_p): Reorg CONST checking to make
4893         sure SYMBOL_REF_TLS_MODEL is tested.  Test SYMBOL_REF_TLS_MODEL
4894         directly.
4895         (print_operand_address): Likewise.
4896         * config/i386/predicates.md (x86_64_immediate_operand): Test
4897         SYMBOL_REF_TLS_MODEL properly inside CONST.
4898         (x86_64_zext_immediate_operand): Likewise.
4899         (global_dynamic_symbolic_operand, local_dynamic_symbolic_operand,
4900         initial_exec_symbolic_operand, local_exec_symbolic_operand): Remove.
4901         * config/i386/i386-protos.h: Remove predicates.md entries.
4903 2005-10-18  Danny Smith  <dannysmith@users.sourceforge.net>
4905         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
4906         Check that elements of TYPE_METHODS are FUNCTION_DECLs.
4908 2005-10-17  Alexey Starovoytov  <alexey.starovoytov@sun.com>
4909             Ian Lance Taylor <ian@airs.com>
4911         PR middle-end/23522
4912         * fold-const.c (fold_widened_comparison): Do not allow range based
4913         constant folding when right operand cannot be unwidened.
4915 2005-10-17  Richard Henderson  <rth@redhat.com>
4917         * builtins.c (expand_builtin_synchronize): Build a new-style asm
4918         with a memory clobber.
4920 2005-10-17  James E Wilson  <wilson@specifix.com>
4922         PR rtl-optimization/17356
4923         * cfgrtl.c (purge_dead_edges): Check for EDGE_ABNORMAL_CALL before
4924         checking for EDGE_EH.
4926 2005-10-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
4928         * config/sparc/sparc.c (function_arg_slotno): In 64-bit mode, align
4929         the slot on an even boundary for any type with 16-byte alignment.
4931 2005-10-17  Hans-Peter Nilsson  <hp@axis.com>
4933         PR target/23424
4934         * md.texi (Modifiers) <%>: Clarify that % doesn't work
4935         after register allocation.
4937 2005-10-17  DJ Delorie  <dj@redhat.com>
4939         * config/m32c/m32c.c (m32c_pushm_popm): Don't mark epilogue insns
4940         as frame related.
4942 2005-10-17  Nathan Sidwell  <nathan@codesourcery.com>
4944         PR c++/22551
4945         * c-common.c (c_add_case_label): Revert my 2005-10-14 clearing of
4946         overflow flags.
4948 2005-10-17  Kaz Kojima  <kkojima@gcc.gnu.org>
4950         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_schedule_insns
4951         to 2 if it's already non-zero.
4952         (OVERRIDE_OPTIONS): Clear flag_schedule_insns if flag_exceptions
4953         is set and warn about it if flag_schedule_insns is 1.
4955 2005-10-17  Paul Woegerer  <paul.woegerer@nsc.com>
4957         * config/crx/crx.md: Compare-and-branch instructions need to
4958         invalidate CC.
4960 2005-10-17  Uros Bizjak  <uros@kss-loka.si>
4962         PR target/24315
4963         * config/i386/i386.md (*pushdi2_rex64 splitter)
4964         (*movdi_1_rex64 splitter, *ashldi3_1 splitter)
4965         (*ashrdi3_1 splitter, *lshrdi3_1 splitter): Delay splitting after
4966         flow2 pass only when (optimize > 0 && flag_peephole2).
4968 2005-10-16  Andrew Pinski  <pinskia@physics.uc.edu>
4970         PR driver/22544
4971         * gcc.c (have_c): New static variable.
4972         (have_o): Likewise.
4973         (process_command): Remove declation of have_c.
4974         Set have_o to 1 when handling -o.
4975         (main): Add a fatel error if there are multiple
4976         files specified and -o and -c/-S is passed witout
4977         -combine or multiple languages.
4979 2005-10-16  Daniel Berlin  <dberlin@dberlin.org>
4981         Fix PR tree-optimization/22444
4982         * tree-ssa-alias.c (compute_flow_insensitive_aliasing):
4983         Assert that we don't hit something with subvars.
4984         (setup_pointers_and_addressables): Don't add things with subvars,
4985         because we'll already process the subvars for aliasing purposes.
4987 2005-10-16  Hans-Peter Nilsson  <hp@axis.com>
4989         PR target/23424
4990         * config/cris/cris.md ("*mov_side<mode>", "*mov_sidesisf")
4991         ("*mov_side<mode>_mem", "*mov_sidesisf_mem", "*clear_side<mode>")
4992         ("*ext_sideqihi", "*ext_side<mode>si", "*op_side<mode>")
4993         ("*op_swap_side<mode>", "*extopqihi_side", "*extop<mode>si_side")
4994         ("*extopqihi_swap_side", "*extop<mode>si_swap_side"): Have separate,
4995         swapped, alternatives for the R constraint.
4997         PR middle-end/24341
4998         * builtins.c (get_builtin_sync_mode): Make unlimited
4999         mode_for_size request.
5001 2005-10-15  Richard Henderson  <rth@redhat.com>
5003         * gimplify.c (gimplify_var_or_parm_decl): Split out from ...
5004         (gimplify_expr): ... here.
5005         (gimplify_compound_lval): Use it in initial scan loop.  Allow
5006         fb_lvalue in base expression.
5008 2005-10-15  Richard Henderson  <rth@redhat.com>
5010         PR 23714
5011         * builtins.c (expand_builtin_trap): Export.
5012         * expr.h (expand_builtin_trap): Declare.
5013         * expr.c (expand_assignment): Emit a trap for integral offsets
5014         from registers that weren't reduced to bitpos.
5016         * tree-cfg.c (mark_array_ref_addressable_1): Remove.
5017         (mark_array_ref_addressable): Remove.
5018         * tree-flow.h (mark_array_ref_addressable): Remove.
5019         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Don't call it.
5021 2005-10-15  James E Wilson  <wilson@specifix.com>
5023         PR target/24232
5024         * sched-deps.c (add_dependence_list): New arg UNCOND.  Fix all callers.
5025         (add_dependence_list_and_free): Likewise.
5026         (sched_analyze_2, case MEM): Delete sched_insns_conditions_mutex_p
5027         call.
5029 2005-10-15  Diego Novillo  <dnovillo@redhat.com>
5031         PR 23141
5032         PR 23142
5033         * tree-vrp.c (vrp_meet): Fix the intersection of equivalence
5034         sets VR0->EQUIV and VR1->EQUIV when meeting a range and an
5035         anti-range.
5036         (vrp_visit_phi_node): Only prevent infinite iterations when
5037         the previous result and the new result are both VR_RANGEs.
5039 2005-10-15  Ranjit Mathew  <rmathew@gcc.gnu.org>
5041         * tree-into-ssa.c (mark_def_sites): Correct minor typo in
5042         function comment.
5044 2005-10-14  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5046         PR c/23439
5047         * c-parser.c (c_parser_for_statement): Use location of RID_FOR
5048         to initialize loc.
5050 2005-10-14  Per Bothner  <per@bothner.com>
5052         PR preprocessor/21250
5053         * c-ppoutput.c (print_line): Print internal line 0 as 1.
5055 2005-10-14  Nathan Sidwell  <nathan@codesourcery.com>
5057         PR c++/22551
5058         * c-common.c (c_add_case_label): Clear LOW_VALUE and HIGH_VALUE's
5059         overflow flags.  Refactor some conditionals.
5061 2005-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
5063         PR tree-opt/21304
5064         * tree-dfa.c (add_referenced_var): Only look at decls which
5065         have TREE_CONSTANT or TREE_READONLY set instead of if
5066         !TREE_PUBLIC or !TREE_CONSTANT.
5068 2005-10-13  James E Wilson  <wilson@specifix.com>
5070         * doc/invoke.texi: For -x, add f95-cpp-input.
5071         * doc/install.texi: For --enable-languages doc, change f95 to fortran.
5073 2005-10-12  Sebastian Pop  <pop@cri.ensmp.fr>
5075         PR tree-optimization/24262
5076         * tree-data-ref.c (analyze_offset_expr): Check that init is invariant
5077         in loop all the time.
5079 2005-10-12  Richard Henderson  <rth@redhat.com>
5081         PR c/24255
5082         * tree.h (DECL_TRANSPARENT_UNION): Remove.
5083         * function.c (assign_parm_find_data_types): Don't support it.
5084         * print-tree.c (print_node): Likewise.
5085         * c-common.c (handle_transparent_union_attribute): Likewise.
5086         Use build_duplicate_type.
5087         * tree-inline.c (remap_type_1): Split out of remap_type;
5088         properly remap aggregate fields.
5089         (build_duplicate_type): New.
5090         * doc/extend.texi (Variable Attributes): Remove documentation
5091         for transparent_union.
5093 2005-10-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
5095         PR target/24284
5096         * config/sparc/sparc.c (gen_stack_pointer_inc): Build by hand.
5097         (gen_stack_pointer_dec): Likewise.
5099 2005-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
5101         PR middle-end/21275
5102         PR middle-end/21766
5103         * target.h (struct gcc_target): Add valid_dllimport_attribute_p
5104         target hook.
5105         (struct cxx): Add adjust_class_at_definition target hook.
5106         * target-def.h: (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): New define,
5107         defaulting to hook_bool_tree_true. Add to TARGET_INITIALIZER
5108         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): New define, defaulting to
5109         hook_void_tree. Add to TARGET_CXX.
5110         * tree.h (struct decl_with_vis): Rename non_addr_const_p field to
5111         dllimport_flag.
5112         (DECL_NON_ADDR_CONSTANT_P): Replace with DECL_DLLIMPORT_P macro.
5113         * tree.c (merge_dllimport_decl_attributes): Check DECL_DLLIMPORT_P
5114         instead of attribute. Check for dllexport override.  Warn if
5115         inconsistent dll linkage. Don't lose old dllimport if decl has
5116         had address referenced.   Tweak lookup of dllimport atribute.
5117         (handle_dll_attribute): Check targetm.valid_dllimport_attribute_p
5118         for target specific rules.  Don't add dllimport attribute if
5119         DECL_DECLARED_INLINE_P.  Set DECL_DLLIMPORT_P when adding
5120         dllimport attribute.
5121         (staticp): Replace DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P.
5122         * varasm.c (initializer_constant_valid_p): Replace
5123         DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P
5125         PR target/21801
5126         PR target/23589
5127         * config.gcc (i[34567]86-*-cygwin*): Add winnt-cxx.o to
5128         'cxx_target_objs', winnt-stubs,o to 'extra_objs'.
5129         (i[34567]86-*-mingw32*): Likewise.
5131         * doc/tm.texi (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Document.
5132         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Document.
5134         * config/i386/winnt.c (i386_pe_dllimport_p): Factor out
5135         C++-specific code. Change return value to bool.
5136         (i386_pe_dllimport_p): Likewise.
5137         (associated_type): Simplify and make language-independent
5138         (i386_pe_encode_section_info): Replace override of ambiguous
5139         dllimport symbol refs with a gcc_assert.
5140         (i386_pe_valid_dllimport_attribute_p): Define.
5141         * config/i386/winnt-cxx.c: New file. Define C++ versions of
5142         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
5143         i386_pe_adjust_class_at_definition.
5144         * config/i386/winnt-stubs.c: New file. Define stub versions of
5145         lang-specific functions.
5146         * config/i386/i386-protos.h: Declare winnt-[cxx|stubs].c functions
5147         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
5148         i386_pe_adjust_class_at_definition.
5149         (i386_pe_valid_dllimport_attribute_p): Declare.
5150         * config/i386/cygming.h (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Define.
5151         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Define.
5152         * config/i386/t-cygming: Add rules for winnt-cxx.o, winnt-stubs.o.
5154         PR target/19704
5155         * config/i386/i386.c (ix86_function_ok_for_sibcall): Replace test for
5156         dllimport attribute with test of DECL_DLLIMPORT_P.
5158 2005-10-12  Adrian Straetling <straetling@de.ibm.com>
5160         * combine.c (make_extraction): Correct offset computation.
5162 2005-10-12  Hans-Peter Nilsson  <hp@axis.com>
5164         * config/cris/t-linux (LIMITS_H_TEST): Define.
5166 2005-10-12  Richard Henderson  <rth@redhat.com>
5168         PR rtl-opt/23324
5169         * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p.
5171 2005-10-12  Richard Guenther  <rguenther@suse.de>
5173         * Makefile.in (CGRAPH_H): Depend on $(TREE_H).
5175 2005-10-12  Nathan Sidwell  <nathan@codesourcery.com>
5177         PR c++/19964
5178         * stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
5179         DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
5180         type.
5182 2005-10-12  Richard Guenther  <rguenther@suse.de>
5184         PR c++/23799
5185         * varasm.c (output_constant): Correct typo from previous
5186         patch by DJ.
5188 2005-10-11  Ian Lance Taylor  <ian@airs.com>
5190         PR rtl-optimization/13931
5191         * combine.c: Revert patch of 2003-05-14, and:
5192         (try_combine): Only set elim_i1 and elim_i2 if the destination is
5193         completely killed in the appropriate insn.
5194         (distribute_notes): Don't skip multiple hard register test for
5195         elim_i1 and elim_i2.
5197 2005-10-11  Richard Henderson  <rth@redhat.com>
5199         PR c/24255
5200         * c-typeck.c (convert_for_assignment): Use build_constructor_single
5201         to initialize a transparent union instead of a nop_expr.
5203 2005-10-11  Richard Henderson  <rth@redhat.com>
5205         * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
5206         * tree-ssa-dce.c: Include tree-scalar-evolution.h.
5207         (tree_ssa_dce_loop): Call scev_reset.
5209         PR tree-opt/24300
5210         * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
5211         * tree-ssa-dce.c: Include cfgloop.h.
5212         (tree_ssa_dce_loop, pass_dce_loop): New.
5213         * tree-pass.h (pass_dce_loop): Declare it.
5214         * passes.c (init_optimization_passes): Use it.
5216 2005-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
5218         PR middle-end/24263
5219         * convert.c (convert_to_real): Revert 2005-10-05 patch.
5220         Only apply the optimization for rounding builtins if the inner
5221         cast is also an extension.
5223 2005-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
5225         PR tree-opt/23946
5226         * tree-ssa-ccp.c (execute_fold_all_builtins): Call
5227         mark_new_vars_to_rename instead of update_stmt.
5229 2005-10-11  Bernd Schmidt  <bernd.schmidt@analog.com>
5231         * config/bfin/crti.s (__init, __fini): Renamed from _init, _fini.
5233 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
5235         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use mmxadd type
5236         for setting MMX register to 0 rather than mmx.
5238 2005-10-10  Steve Ellcey  <sje@cup.hp.com>
5240         PR target/12098
5241         * configure.ac: Move gas check from mips specific case to common case.
5242         Do check for GNU as for mips*-*-* and *-*-hpux* targets.
5243         * configure: Regenerate
5244         * doc/install.texi: Update.
5246 2005-10-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
5248         PR target/24284
5249         * config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
5251 2005-10-10  Maciej W. Rozycki  <macro@linux-mips.org>
5253         * gcc.c (do_spec_1): Accept numeric characters in file name
5254         suffixes.
5256 2005-10-10  Nick Clifton  <nickc@redhat.com>
5258         * config/arm/arm.c: Remove extraneous whitespace.  Remove comment
5259         describing the deleted arm_gen_rotated_half_load function.
5261 2005-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
5263         * config/sh/sh.c (emit_fpu_switch): Set TREE_PUBLIC for
5264         __fpscr_values.
5266 2005-10-09  Daniel Jacobowitz  <dan@codesourcery.com>
5268         * config.gcc (arm*-*-linux*): Remove redundant extra_parts and
5269         gnu_ld assignments.
5270         * config/arm/t-linux-eabi (LIB1ASMFUNCS)
5271         (EXTRA_MULTILIB_PARTS): Define.
5272         * config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
5273         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
5274         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
5275         * config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
5276         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
5277         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
5279 2005-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
5281         PR tree-optimization/24226
5282         * tree-cfg.c (remove_bb): Clean up unreachable loops.
5283         * tree-flow.h (free_numbers_of_iterations_estimates_loop): Declare.
5284         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates_loop):
5285         Export.
5287 2005-10-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
5289         * config/sparc/gmon-sol2.c (internal_mcount): Mark as used.
5291 2005-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
5293         PR target/24136
5294         * config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
5295         Rewrite for no need for the early clobber.
5297 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
5299         Merge from csl-arm-branch:
5300         2005-09-07  Paul Brook  <paul@codesourcery.com>
5301         * config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
5302         space to string.
5304         2005-04-30  Paul Brook  <paul@codesourcery.com>
5305         * config/arm/bpabi.h (TARGET_DEFAULT): Define.
5306         * config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
5308         2005-03-07  Daniel Jacobowitz  <dan@codesourcery.com>
5309         * config/arm/arm.c (arm_all_abis): Add aapcs-linux.
5310         (arm_override_options): Use TARGET_AAPCS_BASED.
5311         * config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
5312         (PTRDIFF_TYPE): Use int for AAPCS.
5313         (DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
5314         * config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
5315         (DEFAULT_SHORT_ENUMS): Delete.
5316         * doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
5318         2004-12-15  Daniel Jacobowitz  <dan@codesourcery.com>
5319         * config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
5320         * config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
5321         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
5323         2004-12-03  Mark Mitchell  <mark@codesourcery.com>
5324         * config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
5326         2004-11-22  Mark Mitchell  <mark@codesourcery.com>
5327         * config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
5329         2004-11-19  Mark Mitchell  <mark@codesourcery.com>
5330         * config.gcc (arm*-*-linux-gnueabi): Add it.
5331         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
5332         redefining it.
5333         (TARGET_OS_CPP_BUILTINS): Likeiwse.
5334         * config/arm/linux-eabi.h: New file.
5335         * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
5336         (LINUX_TARET_LINK_SPEC): Likewise.
5337         (LINK_SPEC): Use it.
5338         * config/arm/t-linux-eabi: New file.
5340 2005-10-08  Steven Bosscher  <stevenb@suse.de>
5342         PR other/22202
5343         * params.def (PARAM_MAX_VARIABLE_EXPANSIONS): Remove superfluous
5344         spaces.
5345         (PARAM_SMS_DFA_HISTORY): Likewise.
5347 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
5349         PR middle-end/23150
5350         * calls.c (mem_overlaps_already_clobbered_arg_p): New.
5351         (load_register_parameters): Call it.
5352         (check_sibcall_argument_overlap_1): Likewise.
5353         (store_one_arg): Likewise.
5355 2005-10-07  James E. Wilson  <wilson@specifix.com>
5357         * config/ia64/vect.md (ashl<mode>3, ashr<mode>3, lshr<mode>3): Use
5358         DImode not VECINT24 for operand 2.
5360         PR target/23644
5361         * doc/invoke.texi (IA-64 Options, item -mtune): Renamed from
5362         -mtune-arch.
5364         PR target/24193
5365         * config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
5366         fr_spill): Use destination_operand for operand 0.
5368 2005-10-07  DJ Delorie  <dj@redhat.com>
5370         * varasm.c (output_constant): Limit error to expanding
5371         conversions.
5373 2005-10-07  Richard Guenther  <rguenther@suse.de>
5375         PR middle-end/24227
5376         * fold-const.c (fold_binary): Fix operand types during folding
5377         of X op (A, Y).  Evaluation order of the side-effects of
5378         X and A are frontend-defined, so ensure we honour that even for
5379         tcc_comparison class operands; eased by removing duplicate code.
5381 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
5383         * stor-layout.c (layout_type): Do not allow alignment of array
5384         elements to be greater than their size.
5386 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
5388         * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
5389         host_xmake_file.
5390         (hppa*-*-linux*): Ditto.
5391         (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
5392         * config/host-hpux.c: New.
5393         * config/x-hpux: New.
5394         * config/pa/x-hpux: Remove.
5395         * config/pa/x-linux: Remove.
5396         * config/pa/pa-host.c: Remove.
5398 2005-10-07  Jeff Law  <law@redhat.com>
5400         * tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
5401         determine whether or not to try and thread outgoing edges.
5403 2005-10-07  David Edelsohn  <edelsohn@gnu.org>
5405         * config/rs6000/rs6000.md (eqsi_power): New.
5406         (neg_eq0si): Add TARGET_POWER to final condition.
5407         (neg_eqsi): Same.
5409 2005-10-06  Richard Henderson  <rth@redhat.com>
5411         * config/rs6000/rs6000.c: Revert last change.
5413 2005-10-06  Richard Henderson  <rth@redhat.com>
5415         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New.
5416         (TARGET_CANNOT_FORCE_CONST_MEM): Use it.
5418 2005-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
5420         PR middle-end/22216
5421         PR middle-end/23651
5422         * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
5423         out return_label and naked_return_label.
5425 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
5427         * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
5428         change.
5430 2005-10-06  Richard Henderson  <rth@redhat.com>
5432         PR tree-opt/22237
5433         * tree-inline.c (declare_return_variable): Handle modify_dest not
5434         being a DECL.
5436 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
5438         Fix PR tree-optimization/22488
5439         * tree-ssa-structalias.c (check_for_overlaps): New function.
5440         (create_variable_info_for): Use it.
5442 2005-10-06  Richard Henderson  <rth@redhat.com>
5444         PR debug/24070
5445         * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
5446         (dwarf2out_start_source_file): Print it.
5448 2005-10-06  Geoffrey Keating  <geoffk@apple.com>
5450         * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
5452 2005-10-06  Richard Henderson  <rth@redhat.com>
5454         PR 23706
5455         * mode-switching.c (optimize_mode_switching): Clear transp bit
5456         for block with incomming abnormal edges.
5458         * config/sh/sh.c (fpscr_values, emit_fpu_switch): New.
5459         (fpscr_set_from_mem): Use them.
5460         * config/sh/sh.md (fpu_switch0, fpu_switch1): Remove.
5461         (fpscr postinc splitters): Rewrite as peephole2+split.
5463 2005-10-06  David Edelsohn  <edelsohn@gnu.org>
5465         * config/rs6000/rs6000.md (eq<mode>): Add !TARGET_POWER.
5466         (eq<mode>_compare): Same.
5468 2005-10-06  Richard Guenther  <rguenther@suse.de>
5470         PR tree-optimization/24238
5471         * tree-ssa-alias.c (find_used_portions): Handle RESULT_DECL.
5473 2005-10-06  Daniel Jacobowitz  <dan@codesourcery.com>
5475         * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
5476         here.  Use AC_PATH_PROG for environment variables instead of
5477         test -x.
5478         * configure.ac: Update calls to gcc_AC_CHECK_TOOL.  Use it for
5479         objdump also.
5480         * configure: Regenerated.
5482 2005-10-06  Richard Earnshaw  <richard.earnshaw@arm.com>
5484         PR target/23783
5485         * arm.md (call): If the address isn't a SYMBOL_REF or a register,
5486         then force it into a register.
5487         (call_value): Likewise.
5489 2005-10-06  Richard Henderson  <rth@redhat.com>
5491         PR 24049
5492         * passes.c (init_optimization_passes): Move pass_lower_vector_ssa
5493         under pass_vectorize.  Clear TODO_ggc_collect from the dce pass
5494         under pass_vectorize.
5496 2005-10-05  Devang Patel  <dpatel@apple.com>
5498         PR Debug/23205
5499         * dbxout.c (dbxout_symbol): Check DECL_RTL_SET_P, after
5500         handling constants. Check NAMESPACE_DECL context for constants.
5502 2005-10-05  Eric Christopher  <echristo@apple.com>
5504         * doc/md.texi (Standard Names): Fix name of pushm1 pattern.
5506 2005-10-05  Richard Henderson  <rth@redhat.com>
5508         PR 23714
5509         * tree-cfg.c (mark_array_ref_addressable_1): New.
5510         (mark_array_ref_addressable): New.
5511         * tree-flow.h (mark_array_ref_addressable): Declare.
5512         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Use it.
5514 2005-10-05  Andrew Pinski  <pinskia@physics.uc.edu>
5516         PR middle-end/20606
5517         PR middle-end/24069
5518         * reload.c (subst_reloads): When adding a REG_LABEL to a
5519         jump instruction, also update JUMP_LABEL.
5521 2005-10-05  David Edelsohn  <edelsohn@gnu.org>
5523         * params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.
5524         * bb-reorder.c (copy_bb_p): Use it.
5525         * doc/invoke.texi (param table): Add max-grow-copy-bb-insn.
5527 2005-10-05  Richard Henderson  <rth@redhat.com>
5529         PR target/23602
5530         * toplev.c (process_options): Warn about unsupported combinations
5531         of unwind tables and omit-frame-pointer.
5532         * config/i386/i386.c (override_options): Similarly.  Enable
5533         accumulate-outgoing-args if not explicitly disabled.
5535 2005-10-05  Steve Ellcey  <sje@cup.hp.com>
5537         * vect.md (vec_initv2si): Fix typo of V2SF to V2SI.
5538         Handle big endian vs. small endian.
5539         (vec_initv2sf): Handle big endian vs. small endian.
5540         (*vec_extractv2sf_1): Ditto.
5542 2005-10-05  Dale Johannesen  <dalej@apple.com>
5544         * convert.c (convert_to_real):  Don't convert
5545         (float)floor(double d) to floorf((float)d).
5547 2005-10-05  Daniel Jacobowitz  <dan@codesourcery.com>
5549         * config/arm/arm.md (insv): Use gen_int_mode in more places.
5551 2005-10-05  Andrew MacLeod  <amacleod@redhat.com>
5553         PR tree-optimization/18587
5554         * tree-ssa-operands.c (struct opbuild_list_d, OPBUILD_LAST): Delete.
5555         (build_defs, build_uses, build_v_may_defs, build_v_must_defs,
5556         build_vuses): Change to VEC type.
5557         (opbuild_initialize_virtual, opbuild_initialize_real, opbuild_free,
5558         opbuild_num_elems, opbuild_append_real, opbuild_append_virtual,
5559         opbuild_first, opbuild_next, opbuild_elem_real, opbuild_elem_virtual,
5560         opbuild_elem_uid, opbuild_clear, opbuild_remove_elem): Delete.
5561         (get_name_decl): New.  Return DECL_UID of base variable.
5562         (operand_build_cmp): New.  qsort comparison routine.
5563         (operand_build_sort_virtual): New.  Sort virtual build vector.
5564         (init_ssa_operands, fini_ssa_operands): Use VEC routines.
5565         (FINALIZE_OPBUILD_BASE, FINALIZE_OPBUILD_ELEM): Use VEC_Index.
5566         (FINALIZE_BASE): Use get_name_decl.
5567         (finalize_ssa_defs, finalize_ssa_uses, cleanup_v_may_defs,
5568         finalize_ssa_v_may_defs, finalize_ssa_vuses, finalize_ssa_v_must_defs,
5569         (start_ssa_stmt_operands, append_def, append_use, append_vuse,
5570         append_v_may_def, append_v_must_def): Replace opbuild_* routines with
5571         direct VEC_* manipulations.
5572         (build_ssa_operands): Call operand_build_sort_virtual.
5573         (copy_virtual_operand, create_ssa_artficial_load_stmt,
5574         add_call_clobber_ops, add_call_read_ops): Replace opbuild_* routines
5575         with direct VEC_* manipulations.
5576         * tree-ssa-opfinalize.h (FINALIZE_FUNC): Replace opbuild_* routines
5577         with direct VEC manipulations.
5579 2005-10-05  Paolo Bonzini  <bonzini@gnu.org>
5581         PR tree-optimization/21419
5582         PR tree-optimization/24146
5583         PR tree-optimization/24151
5585         * c-typeck.c (readonly_error): Handle USE being lv_asm.
5586         (build_asm_expr): Call it if outputs are read-only.
5587         * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.
5589 2005-10-05  Billy Biggs  <billy.biggs@gmail.com>
5590             Paolo Bonzini  <bonzini@gnu.org>
5592         PR target/23809
5594         * doc/extend.texi (x86 Built-ins): Document that -msse and friends
5595         enable the instructions and not just the built-ins.
5596         * doc/invoke.texi (x86 Options): Likewise.
5598 2005-10-04  Geoffrey Keating  <geoffk@apple.com>
5600         * config/i386/t-darwin (SHLIB_VERPFX): Fix typo.
5602         * doc/invoke.texi (Option Summary): Correct spelling
5603         of -mmacosx-version-min.
5605 2005-10-04  Devang Patel  <dpatel@apple.com>
5607         * c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
5608         real types.
5610 2005-10-04  Steve Ellcey  <sje@cup.hp.com>
5612         * tree-vect-transform.c (vect_create_epilog_for_reduction):
5613         Use BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN.
5615 2005-10-04  Adrian Straetling  <straetling@de.ibm.com>
5617         * config/s390/s390.md ("TDSI","DP"): New mode macros.
5618         ("TE","tg"): New mode attributes.
5619         ("sync_compare_and_swap<mode>"): Replace with a define_expand.
5620         ("sync_compare_and_swap<mode>_cc"): Replace GPR with TDSI.
5621         ("*sync_compare_and_swap<mode>_cc"): Replace with one pattern for
5622         dword_mode and one for GPRmode.
5624 2005-10-04  Ian Lance Taylor  <ian@airs.com>
5626         PR preprocessor/13726
5627         * c-ppoutput.c (cb_include): Add comments parameter, and print out
5628         any comments passed in.
5630 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
5632         * tree.c (annotate_with_file_line): Fix typo.
5634 2005-10-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5636         PR ada/19382
5637         * builtins.c (fold_builtin_memcmp): When constructing the pointer
5638         type used to access data in the inlined length == 1 case, use
5639         build_pointer_type_for_mode with CAN_ALIAS_ALL set to true.
5640         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
5642 2005-10-04  Uros Bizjak  <uros@kss-loka.si>
5644         * config/i386/i386.h (TARGET_FISTTP): Enable also for
5645         TARGET_SSE3 and only for TARGET_80387.
5646         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
5647         (fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
5648         Do not depend on TARGET_80387.
5650 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
5652         * tree.c (last_annotated_node): Change type to location_t*.
5653         (annotate_with_file_line): Reflect the change of
5654         last_annotated_node type.
5656 2005-10-04  Richard Guenther  <rguenther@suse.de>
5658         PR c/23576
5659         * c-decl.c (grokdeclarator): Don't write to fields
5660         of error_mark_node.
5662 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
5664         PR middle-end/23125
5665         * c-decl.c (finish_decl): Use set_user_assembler_name even for
5666         register variables.
5667         * varasm.c (make_decl_rtl): If a register variable does not
5668         have a set user assmbler name, error out.
5669         Decode the asmspec is now name+1 bypassing '*'.
5671 2005-10-04  Steven Bosscher  <stevenb@suse.de>
5673         PR tree-optimization/23049
5674         * tree-ssa-dom.c (thread_across_edge): Make sure that the condition
5675         of a COND_EXPR is folded before calling fold on the whole rhs of a
5676         conditional assignment.
5677         * doc/tree-ssa.texi: Update the GIMPLE grammar for a valid rhs to
5678         document that a COND_EXPR may appear there.
5680 2005-10-03  Diego Novillo  <dnovillo@redhat.com>
5682         PR 23445
5683         * tree-vrp.c (extract_range_from_assert): If the new numeric
5684         range created out of the assertion contradicts the existing
5685         numeric range of the ASSERT_EXPR variable, make the new range
5686         varying.
5688 2005-10-03  Kaz Kojima  <kkojima@gcc.gnu.org>
5690         * config/sh/sh.c (sh_register_move_cost): Add case for moving
5691         from T_REGS to FP register class.
5693 2005-10-03  Richard Henderson  <rth@redhat.com>
5695         PR 24135
5696         * tree-nested.c (convert_nl_goto_reference): Lookup a translation
5697         before creating a new one.
5699 2005-10-03  David Edelsohn  <edelsohn@gnu.org>
5701         * config/rs6000/t-aix43 (LDFLAGS): New.
5702         * config/rs6000/t-aix52 (LDFLAGS): New.
5704 2005-10-03  Ian Lance Taylor  <ian@airs.com>
5706         * gimplify.c (find_single_pointer_decl_1): New static function.
5707         (find_single_pointer_decl): New static function.
5708         (internal_get_tmp_var): For a formal variable, set restrict base
5709         information if appropriate.
5710         * alias.c (find_base_decl): If a VAR_DECL has a restrict base,
5711         return it.
5712         * tree.h (DECL_BASED_ON_RESTRICT_P): Define.
5713         (DECL_GET_RESTRICT_BASE): Define.
5714         (SET_DECL_RESTRICT_BASE): Define.
5715         (decl_restrict_base_lookup): Declare.
5716         (decl_restrict_base_insert): Declare.
5717         (struct tree_decl_with_vis): Add based_on_restrict_p field.
5718         * tree.c (restrict_base_for_decl): New static variable.
5719         (init_ttree): Initialize restrict_base_for_decl.
5720         (copy_node_stat): Copy restrict base information.
5721         (decl_restrict_base_lookup): New function.
5722         (decl_restrict_base_insert): New function.
5723         (print_restrict_base_statistics): New static function.
5724         (dump_tree_statistics): Call print_restrict_base_statistics.
5726 2005-10-02  Diego Novillo  <dnovillo@redhat.com>
5728         PR 24142
5729         * tree-vrp.c (vrp_meet): Fix call to range_includes_zero_p in
5730         case of anti-ranges.
5732 2005-10-02  Andrew Pinski  <pinskia@physics.uc.edu>
5734         PR c/18851
5735         * c-typeck.c (tagged_tu_seen): Rename to ...
5736         (tagged_tu_seen_cache): this and add val field.
5737         (comptypes): Move functional to comptypes_internal
5738         and free tagged_tu_seen.
5739         (comptypes_internal): New function and call comptypes_internal
5740         instead of comptypes. Speed up by sibcalling
5741         tagged_types_tu_compatible_p.
5742         (alloc_tagged_tu_seen): New function
5743         (free_all_tagged_tu_seen_up_to): New function.
5744         (tagged_types_tu_compatible_p): Return the val of the seen two
5745         types.
5746         Add that the two types are the same to tagged_tu_seen_base
5747         if they are and call comptypes_internal instead of comptypes.
5748         <case UNION_TYPE>: Speed up common type where the fields are
5749         in the same order.
5750         (function_types_compatible_p): Call comptypes_internal instead of
5751         comptypes.
5752         (type_lists_compatible_p): Likewise.
5753         (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/.
5755 2005-10-02  Matthias Klose  <doko@debian.org>
5757         * doc/invoke.texi: Fix typo and speling error.
5759 2005-10-01  Richard Henderson  <rth@redhat.com>
5761         * tree-stdarg.c (execute_optimize_stdarg): Process PHI nodes too.
5763 2005-10-01  Mark Mitchell  <mark@codesourcery.com>
5765         * config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
5766         using --start-group and --end-group.
5768 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
5770         * tree-vrp.c (value_inside_range, range_includes_zero_p): Add
5771         FIXME note regarding quirky semantics.
5773 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
5775         PR 24141
5776         * tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
5777         non-null range as a last resort.
5779 2005-10-01  James A. Morrison  <phython@gcc.gnu.org>
5780             Diego Novillo  <dnovillo@redhat.com>
5782         PR 23604
5783         * tree-vrp.c (extract_range_from_assert): For !=
5784         assertions, only build an anti-range if LIMIT is a
5785         single-valued range.
5787 2005-09-30  Richard Earnshaw  <richard.earnshaw@arm.com>
5789         * arm.md (movqi): On thumb when optimizing, handle loading from
5790         memory by describing this as taking a subreg of a zero-extended load
5791         into an SImode register.
5792         (movhi): Likewise.
5794 2005-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
5796         * reload1.c (merge_assigned_reloads): Do not change any
5797         RELOAD_FOR_OUTPUT_ADDRESS reloads.
5799 2005-09-30  Geoffrey Keating  <geoffk@apple.com>
5801         * Makefile.in (LIPO_FOR_TARGET): Define.
5802         (STRIP_FOR_TARGET): Define.
5804         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
5805         before creating new ones.  Do symlinks before creating the actual
5806         targets.
5808         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
5809         to work out which multilibs are actually being built.
5811 2005-09-30  Kazu Hirata  <kazu@codesourcery.com>
5813         * tree-vect-transform.c, config/ms1/ms1.md,
5814         config/s390/s390.c, config/v850/v850.md: Fix comment typos.
5815         Follow spelling conventions.
5816         * doc/invoke.texi, doc/md.texi: Fix typos.
5818 2005-09-30  Andrew Macleod  <amacleod@redat.com>
5820         PR tree-optimization/21430
5821         * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
5822         use operands, and set stmt pointer if need be.
5823         (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
5824         tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
5825         present.
5827 2005-09-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5829         PR middle-end/24053
5830         * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
5832 2005-09-29  Mark Mitchell  <mark@codesourcery.com>
5834         * optabs.c (expand_binop): Initialize first_pass_p.
5836 2005-09-29  Jakub Jelinek  <jakub@redhat.com>
5838         PR middle-end/24109
5839         * c-decl.c (c_write_global_declarations_1): If any
5840         wrapup_global_declaration_2 call returned true, restart the loop.
5842 2005-09-29  Daniel Berlin  <dberlin@dberlin.org>
5844         Fix PR tree-optimization/24117
5845         * tree-ssa-structalias.c (find_func_aliases): Strip nops
5846         before considering whether to use anyoffset.
5848 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
5850         Revert this patch:
5852         2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
5854         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
5855         to order operands.
5856         (swap_commutative_operands_with_target): New.
5858 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
5860         PR c/21419
5861         * gimplify.c (gimplify_asm_expr): Raise an error if an output is
5862         read-only.
5864 2005-09-29  Steven Bosscher  <stevenb@suse.de>
5866         PR tree-optimization/23911
5867         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
5868         and IMAGPART_EXPR too.
5870 2005-09-28  Mark Mitchell  <mark@codesourcery.com>
5872         PR 17886
5873         * expmed.c (expand_shift): Move logic to reverse rotation
5874         direction when  rotating by constants ...
5875         * optabs.c (expand_binop): ... here.
5876         * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
5877         (ix86_rotrdi3): New pattern.
5878         (rotldi3): Handle 32-bit mode.
5879         (ix86_rotldi3): New pattern.
5881 2005-09-29  Alan Modra  <amodra@bigpond.net.au>
5883         PR target/24102
5884         * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
5885         check for numbers that need no bit twiddle.
5887 2005-09-28  Geoffrey Keating  <geoffk@apple.com>
5889         * config/rs6000/t-darwin8: Uncomment contents, allow -m64
5890         multilib to be built.
5892         * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
5893         (stage1-start): Delete old libgcc and libunwind before moving
5894         anything into the stage directory.
5895         (stage2-start): Likewise.
5896         (stage3-start): Likewise.
5897         (stage4-start): Likewise.
5898         (stageprofile-start): Likewise.
5899         (stagefeedback-start): Likewise.
5900         * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
5901         header in tm_file and CPU-specific t-darwin in tmake_file.
5902         (i[34567]86-*-darwin*): Don't change tm_file.
5903         (powerpc-*-darwin*): Don't change tm_file or tmake_file.
5904         * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
5905         shared library stub for target OS version.
5906         * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
5907         (SHLIB_LINK): Don't make SHLIB_SOLINK.
5908         (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
5909         (libgcc_s.%.dylib): New.
5910         (LIBGCC): Define.
5911         (install-darwin-libgcc-stubs): New.
5912         (INSTALL_LIBGCC): New append.
5913         * config/i386/darwin-libgcc.10.4.ver: New.
5914         * config/i386/darwin-libgcc.10.5.ver: New.
5915         * config/i386/t-darwin: New.
5916         * config/rs6000/darwin-libgcc.10.4.ver: New.
5917         * config/rs6000/darwin-libgcc.10.5.ver: New.
5918         * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
5919         * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
5921 2005-09-28  Paul Brook  <paul@codesourcery.com>
5923         * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
5924         denormals.
5926 2005-09-28  Richard Guenther  <rguenther@suse.de>
5928         PR tree-optimization/23853
5929         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
5930         host_integerp to verify misalignment value.
5932 2005-09-28  Richard Henderson  <rth@redhat.com>
5934         * builtins.c (get_builtin_sync_mode): New.
5935         (expand_builtin_sync_operation): Pass in mode argument.
5936         (expand_builtin_compare_and_swap): Likewise.
5937         (expand_builtin_lock_test_and_set): Likewise.
5938         (expand_builtin_lock_release): Likewise.
5939         (expand_builtin): Update to match.
5941 2005-09-28  Nick Clifton  <nickc@redhat.com>
5943         * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
5944         formatting.  Add check to PLUS case to ensure that the offset is
5945         within an acceptable range.
5947         * config/v850/v850.md (casesi): Disable the generation of the
5948         switch pattern as it is not being handled properly at the moment.
5950         * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
5951         for when the high words are identical.
5953 2005-09-27  Richard Henderson  <rth@redhat.com>
5955         * pretty-print.c (pp_base_format): Fix typo for %>.
5957 2005-09-27  Daniel Berlin  <dberlin@dberlin.org>
5958             Devang Patel  <dpatel@apple.com>
5960         PR tree-optimization/23625
5961         * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
5962         LABEL_EXPR, assertion check.
5964 2005-09-27  J"orn Rennecke <joern.rennecke@st.com>
5966         * optabs.c (no_conflict_move_test): Check if a result of a
5967         to-be-moved insn would be clobbered by an originally
5968         preceding insn.
5970 2005-09-27  Jeff Law  <law@redhat.com>
5972         * passes.c (init_optimization_passes): Replace copy propagation
5973         passes immediately after DOM with phi-only copy propagation
5974         pases.  Add phi-only copy propagation pass after first DOM pass.
5975         * tree-pass.h (pass_phi_only_copy_prop): Declare.
5976         * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
5977         If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
5978         (execute_copy_prop): Accept new PHI_ONLY argument.  Pass it along
5979         to init_copy_prop.  Callers updated.
5980         (do_phi_only_copy_prop): New function.
5981         (pass_phi_only_copy_prop): New pass descriptor.
5983 2005-09-27  Nick Clifton  <nickc@redhat.com>
5985         * libgcc2.c (__popcount_tab): Remove redundant prototype.
5987 2005-09-26  Jason Merrill  <jason@redhat.com>
5989         PR c++/13764
5990         * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
5992         * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
5994 2005-09-26  James E Wilson  <wilson@specifix.com>
5996         * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
5997         copyright.  Add gcc copyright plus libgcc exception.
5998         * config/ia64/crtfastmath.asm: Remove glibc copyright.  Add gcc
5999         copyright.
6000         * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
6002 2005-09-26  Jeff Law  <law@redhat.com>
6004         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
6005         about when to iterate.
6007 2005-09-23  Fariborz Jahanian <fjahanian@apple.com>
6009         PR target/23847
6010         * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
6011         for __complex__ double in -mcpu=G5 mode.
6013 2005-09-26  Sebastian Pop  <pop@cri.ensmp.fr>
6015         PR tree-optimization/23942
6016         * Makefile.in (SCEV_H): Depends on PARAMS_H.
6017         * tree-scalar-evolution.c: Include params.h.
6018         (t_bool): New enum.
6019         (follow_ssa_edge, follow_ssa_edge_in_rhs,
6020         follow_ssa_edge_in_condition_phi_branch,
6021         follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
6022         Change return type to t_bool.  Use a parameter to limit the size of
6023         trees that are walked before stopping
6024         (analyze_evolution_in_loop): Initialize the limit to 0.
6025         (follow_ssa_edge): Give up by returning t_dont_know if the limit
6026         exceeds PARAM_SCEV_MAX_EXPR_SIZE.
6028 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
6030         PR middle-end/23831
6031         * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
6032         simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
6034 2005-09-26    Fariborz Jahanian <fjahanian@apple.com>
6036         * combine.c (make_extraction): Check for valid use of subreg.
6038 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
6040         PR target/24055
6041         * config/i386/i386.md ("*fistdi2_1"): New pattern.
6042         ("*fist<mode>2_1"): Use only HImode and SImode register operands.
6043         ("fist<mode>2_with_temp"): Use only register operands.
6045 2005-09-26  J"orn Rennecke <joern.rennecke@st.com>
6047         * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
6048         CALL_INSN_FUNCTION_USAGE.
6050 2005-09-26  Richard Guenther  <rguenther@suse.de>
6052         PR middle-end/15855
6053         * gcse.c: Include hashtab.h, define ldst entry hashtable.
6054         (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
6055         (ldst_entry): Use the hashtable instead of list-walking.
6056         (find_rtx_in_ldst): Likewise.
6057         (free_ldst_entry): Free the hashtable.
6058         (compute_ld_motion_mems): Create the hashtable.
6059         (trim_ld_motion_mems): Remove entry from hashtable if
6060         removing it from list.
6061         (compute_store_table): Likewise^2.
6062         (store_motion): Free hashtable in case we did not see
6063         any stores.
6065 2005-09-25  Kazu Hirata  <kazu@codesourcery.com>
6067         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
6068         and arg1 if we are passing them to fold_build2.
6070 2005-09-25  Dan Nicolaescu  <dann@ics.uci.edu>
6072         PR 23828
6073         * config/i386/i386.c (ix86_function_regparm): Fix the test for
6074         a nested function.
6076 2005-09-25  Richard Henderson  <rth@redhat.com>
6078         * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
6079         SYMBOL_REF_TLS_MODEL to be correct.
6081 2005-09-24  Richard Henderson  <rth@redhat.com>
6083         * ipa-type-escape.c (discover_unique_type): Remove dead code at
6084         end of function.  Reindent.
6086 2005-09-24  Ian Lance Taylor  <ian@airs.com>
6088         * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
6089         NEGATE_EXPR/BIT_NOT_EXPR case.
6091 2005-09-24  Richard Henderson  <rth@redhat.com>
6093         * c-common.c (handle_mode_attribute): When not modifying in place,
6094         create subtypes for enumerations.
6095         (sync_resolve_return): Use TYPE_MAIN_VARIANT.
6096         * gimplify.c (create_tmp_from_val): Likewise.
6098 2005-09-24  Alexandre Oliva  <aoliva@redhat.com>
6100         * config/i386/i386.md (*tls_global_dynamic_64,
6101         *tls_local_dynamic_base_64): Add missing mode to call.
6102         (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
6104 2005-09-24  Jan Hubicka  <jh@suse.cz>
6106         * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
6107         (cgraph_clone_node): Likewise.
6108         * cgraph.h (cgraph_clone_edge): Update prototype.
6109         (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
6110         duplicated prototypes; add updating argument.
6111         * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
6112         * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
6113         updating profile.
6114         (cgraph_mark_inline_edge): Likewise.
6115         (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
6116         (cgraph_flatten_node): Likewise.
6117         (cgraph_decide_recursive_inlining): Likewise.
6118         (cgraph_decide_inlining_of_small_function): Likewise.
6119         * tree-optimize.c (tree_rest_of_compilation): Likewise.
6121 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
6122             Pete Steinmetz <steinmtz@us.ibm.com>
6124         * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
6125         (rldic.): Set type to "compare".
6126         (rldicr.): Same.
6127         (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR.  Set type to
6128         mfjmpr for MFCTR/MFLR.
6129         (movdf_hardfloat64): Same.
6130         (movdf_softfloat64): Same.  Correct order of store and move types.
6131         (movti_string): Set type to store_ux/load_ux.
6132         (load_multiple): Set type to load_ux.
6133         (store_multiple): Set type to store_ux.
6134         (movmemsi): Set type to store_ux.
6135         (output_cbranch direct_return): Set type to jmpreg.
6136         (stmw): Set type to store_ux.
6137         (lmw): Set type to load_ux.
6138         * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
6139         * config/rs6000/440.md (ppc440-store): Increase latency to 6.
6140         * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
6141         * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
6142         * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
6143         * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
6144         (rios1-fpstore): Increase latency to 3.
6145         * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
6146         * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
6148 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
6149             Andrew Pinski  <pinskia@physics.uc.edu>
6151         * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
6152         operand2 constraint to "b".
6153         (sync_<fetchop_name>di_internal): Same.
6154         (sync_old_<fetchop_name>si_internal): Change operand3 constraint
6155         to "b".
6156         (sync_old_<fetchop_name>di_internal): Same.
6157         (sync_new_<fetchop_name>si_internal): Same.
6158         (sync_new_<fetchop_name>di_internal): Same.
6160 2005-09-23  J"orn Rennecke <joern.rennecke@st.com>
6162         PR middle-end/23991
6163         * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
6164         case, define as macros.
6166         PR rtl-optimization/23837
6167         *  optabs.c (no_conflict_move_test): Don't set must_stay for a
6168         clobber / clobber match between dest and p->first.
6170         * optabs.c (emit_libcall_block): Use no_conflict_move_test.
6171         (no_conflict_move_test): Update comments.
6173 2005-09-22  Ranjit Mathew  <rmathew@gcc.gnu.org>
6175         * doc/install.texi: Update URL for Jacks.
6176         * doc/sourcebuild.texi: Likewise.
6178 2005-09-22  David Edelsohn  <edelsohn@gnu.org>
6180         PR target/24007
6181         * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
6182         registers when choosing register preferences.
6183         (movdf_hardfloat64): Same.
6185 2005-09-22  Andreas Krebbel  <krebbel1@de.ibm.com>
6187         * expmed.c (expand_shift): Don't use the target of the rotate as
6188         target for the first expanded shift insn.
6189         * testsuite/gcc.dg/20050922-1.c: Testcase added.
6191 2005-09-21  Zdenek Dvorak  <dvorakz@suse.cz>
6193         PR tree-optimization/22438
6194         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
6195         preserved iv rhs rewriting specially.
6197 2005-09-21  Daniel Berlin  <dberlin@dberlin.org>
6199         * tree-data-ref.c (analyze_array_indexes): Only estimate when
6200         estimate_only  is true.
6201         * tree-flow.h (ref_contains_indirect_ref): New prototype.
6202         * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
6203         tree-ssa-structalias.c
6204         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
6205         ref_contains_indirect_ref.
6206         * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
6208 2005-09-21  DJ Delorie  <dj@redhat.com>
6210         * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
6211         MASK_PTR_A0D0.
6212         (mn10300_return_in_memory): Support variable size types also.
6213         (mn10300_pass_by_reference): Likewise.
6214         (mn10300_function_value): New.
6215         * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
6216         (FUNCTION_OUTGOING_VALUE): Likewise.
6217         * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
6218         * doc/invoke.texi: Document it.
6220 2005-09-21  Uros Bizjak  <uros@kss-loka.si>
6222         PR target/22585
6223         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
6224         force integer op1 into register for XFmode compares.
6226 2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
6228         PR middle-end/23971
6229         * expmed.c (alg_code): Add alg_impossible.
6230         (alg_hash_entry): Add cost.
6231         (synth_mult): Record alg_impossible in the hash table if
6232         multiplication by a given integer is impossble within the
6233         limit.  Speed up using alg_impossible.
6235 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
6237         * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
6238         argument.  Allow and set any offset if needs_anyoffset is passed
6239         in.
6240         (get_constraint_for): Add argument here too.
6241         Pass it down.
6242         (do_structure_copy): Pass NULL to get_constraint_for.
6243         (handle_ptr_arith): Ditto.
6244         (find_func_aliases): Ditto.
6246 2005-09-20  J"orn Rennecke <joern.rennecke@st.com>
6248         PR rtl-optimization/23898
6249         * output.h (get_attr_min_length): Declare.
6250         * final.c (get_attr_length_1): New function, broken out of:
6251         (get_attr_length).
6252         (get_attr_min_length): New function.
6253         * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
6254         (duplicate_computed_gotos): Likewise.
6255         * genattr.c (insn_min_length): Generate declaration.
6256         * genattrtab.c (min_fn, min_attr_value): New functions.
6257         (make_length_attrs): Generate insn_min_length.
6259 2005-09-20  Steve Ellcey  <sje@cup.hp.com>
6261         * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
6263 2005-09-20  Richard Henderson  <rth@redhat.com>
6265         PR tree-optimization/24059
6266         * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
6267         EXPAND_STACK_PARM.
6269 2005-09-20  Joseph S. Myers  <joseph@codesourcery.com>
6271         * c.opt (fextended-identifiers): New.
6272         * c-opts.c (c_common_handle_option): Handle
6273         -fextended-identifiers.
6274         * doc/cpp.texi: Update documentation of extended identifiers.
6275         * doc/cppopts.texi (-fextended-identifiers): Document.
6277 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
6279         PR tree-optimization/23929
6280         * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
6281         if expr is NULL.
6283         PR tree-optimization/23818
6284         * tree-stdarg.c (execute_optimize_stdarg): Call
6285         calculate_dominance_info.
6287 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
6289         * tree-data-ref.c (get_number_of_iters_for_loop): New function.
6290         (analyze_siv_subscript_cst_affine): Add weak SIV test.
6291         (compute_overlap_steps_for_affine_1_2): Use
6292         get_number_of_iters_for_loop.
6293         (analyze_subscript_affine_affine): Check whether difference is
6294         zero first.
6295         Use get_number_of_iters_for_loop.
6296         Check whether overlap occurs outside of bounds.
6297         (analyze_miv_subscript): Use get_number_of_iters_for_loop.
6299 2005-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
6301         * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
6302         base register if possible.
6304 2005-09-20  Zdenek Dvorak  <dvorakz@suse.cz>
6306         PR tree-optimization/18463
6307         * tree-chrec.c (chrec_convert): Return fold_converted chrec if
6308         converting it directly is not possible.
6309         (chrec_convert_aggressive): New function.
6310         * tree-chrec.h (chrec_convert_aggressive): Declare.
6311         * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
6312         Fold chrec conversions aggressively if asked to.
6313         (instantiate_parameters): Modified because of changes in
6314         instantiate_parameters_1.
6316 2005-09-19  Richard Henderson  <rth@redhat.com>
6318         * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
6319         (reduc_splus_v2df): New.
6321 2005-09-19  Richard Sandiford  <richard@codesourcery.com>
6323         * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
6324         (ADDITIONAL_REGISTER_NAMES): Add missing comma.  Remove final comma.
6326 2005-09-19  Richard Henderson  <rth@redhat.com>
6328         * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
6329         vcondu<SSEMODE12>.
6331 2005-09-19  Richard Henderson  <rth@redhat.com>
6333         * config/ia64/ia64.c (ia64_expand_widen_sum): New.
6334         (ia64_expand_dot_prod_v8qi): New.
6335         * config/ia64/ia64-protos.h: Update.
6336         * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
6337         widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
6338         sdot_prodv8qi, sdot_prodv4hi): New.
6339         (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
6341 2005-09-19  Richard Henderson  <rth@redhat.com>
6343         PR 23941
6344         * real.c (exact_real_truncate): Return false if the format cannot
6345         represent the number as a normal.
6347         * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
6348         for a memory source.
6350 2005-09-19  Dorit Nuzman  <dorit@il.ibm.com>
6352         * tree-ssa-operands.c (swap_tree_operands): Export.
6353         * tree.h (swap_tree_operands): Declare.
6354         * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
6355         Call swap_tree_operands.
6357 2005-09-19  Richard Henderson  <rth@redhat.com>
6359         * tree-flow.h (merge_alias_info): Declare.
6360         * tree-ssa-copy.c (merge_alias_info): Export.
6361         * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
6362         (vect_create_data_ref_ptr): Use create_iv directly.
6363         (vectorizable_load): Use correct types for integer constants.
6364         (vect_generate_tmps_on_preheader): Likewise.
6365         (vect_gen_niters_for_prolog_loop): Likewise.
6367 2005-09-19  Steven Bosscher  <stevenb@suse.de>
6369         PR rtl-optimization/23943
6370         * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
6372 2005-09-18  Jan Hubicka  <jh@suse.cz>
6374         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
6376 2005-09-18  Eric Botcazou  <ebotcazou@adacore.com>
6378         * varasm.c (output_constant): Do not abort on conversions to union
6379         types between different sizes.
6381 2005-09-18  Richard Guenther  <rguenther@suse.de>
6383         PR middle-end/23944
6384         * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
6385         fallback.
6387 2005-09-18  Paul Brook  <paul@codesourcery.com>
6389         * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
6391 2005-09-17  Richard Henderson  <rth@redhat.com>
6393         * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
6394         * tree-ssa-loop.c (pass_vect_dce): Remove.
6395         * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
6396         of pass_vectorize.
6398 2005-09-17  Richard Henderson  <rth@redhat.com>
6400         * tree-pass.h (pass_vect_dce): Declare.
6401         * passes.c (init_optimization_passes): Add it.
6402         * tree-flow.h (tree_ssa_dce): Declare.
6403         * tree-ssa-dce.c (tree_ssa_dce): Export.
6404         * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
6405         (gate_tree_vectorize): ... here.
6406         (pass_vect_dce): New.
6408 2005-09-17  Jan Hubicka  <jh@suse.cz>
6410         * except.c (struct eh_status): Turn region_array into vec.
6411         (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
6412         convert_from_eh_region_ranges, find_exception_handler_labels,
6413         current_function_has_exception_handlers, assign_filter_values,
6414         build_post_landing_pads, dw2_build_landing_pads,
6415         sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
6416         sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
6417         foreach_reachable_handler, can_throw_internal_1,
6418         convert_to_eh_region_ranges, verify_eh_tree): Update uses of
6419         region_array.
6420         (duplicate_eh_region_1): Update region_array.
6421         (duplicate_eh_regions): Resize region_array and avoid recomputing.
6423 2005-09-17  David Edelsohn  <edelsohn@gnu.org>
6425         PR middle-end/22067
6426         * expmed.c (expand_mult): Substitute simple register for op0 when
6427         computing max_cost.
6429 2005-09-17  Richard Henderson  <rth@redhat.com>
6431         * expr.c (emit_move_via_integer): Add force argument, pass it on
6432         to emit_move_change_mode.  Update callers.
6433         (emit_move_complex): Pass true to new force argument.
6434         * function.c (expand_function_end): Move expand_eh_return call
6435         earlier.  Merge sub-word complex values into a pseudo before
6436         copying to the return hard register.
6438 2005-09-17  Eric Botcazou  <ebotcazou@adacore.com>
6440         * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
6441         between different sizes.
6443 2005-09-16  Paolo Bonzini  <bonzini@gnu.org>
6445         PR 23903
6447         * passes.c (init_optimization_passes): Register dump files for
6448         IPA passes first.
6450 2005-09-16  Andreas Krebbel  <krebbel1@de.ibm.com>
6452         * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
6453         * config/s390/s390.c (s390_overlap_p): New function.
6454         * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
6455         peephole2, "*xc" peephole2): Added overlap check to the peephole2
6456         condition.
6458 2005-09-16  Richard Guenther  <rguenther@suse.de>
6460         * ipa-pure-const.c (static_execute): Free auxiliar information.
6461         * ipa-type-escape.c (discover_unique_type): Free temporary key.
6462         * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
6464 2005-09-15  DJ Delorie  <dj@redhat.com>
6466         * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
6468 2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
6470         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
6471         to order operands.
6472         (swap_commutative_operands_with_target): New.
6474 2005-09-15  Daniel Berlin  <dberlin@dberlin.org>
6476         * tree-data-ref.c (analyze_array_indexes): Add estimate_only
6477         parameter.
6478         Update callers.
6479         (estimate_iters_using_array): New function.
6480         * tree-data-ref.h (estimate_iters_using_array): Prototype
6481         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
6482         Use estimate_iters_using_array instead of analyze_array.
6484 2005-09-15  Eric Botcazou  <ebotcazou@adacore.com>
6486         * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
6487         as addressable.
6489 2005-09-15  Michael Matz  <matz@suse.de>
6491         * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
6493 2005-09-14  Daniel Berlin  <dberlin@dberlin.org>
6495         PR tree-optimization/23835
6496         * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
6497         (create_name_tags): Rewrite to be not O(num_ssa_names^2).
6499 2005-09-14  Richard Henderson  <rth@redhat.com>
6501         * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
6502         (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
6504 2005-09-14  Andrew Pinski  <pinskia@physics.uc.edu>
6506         * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
6507         in the ARRAY_TYPE case.
6509 2005-09-14  Eric Botcazou  <ebotcazou@adacore.com>
6511         * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
6513 2005-09-14  Uros Bizjak  <uros@kss-loka.si>
6515         PR middle-end/22480
6516         * tree-vect-transform.c (vectorizable_operation): Return false for
6517         scalar shift operations and for vector shift operations with
6518         non-invariant shift arguments.  Use scalar tree operand op1 as
6519         a shift operand when vector shift insn pattern uses scalar shift
6520         operand.
6521         * Makefile.in (tree-vect-transform.o): Depend on recog.h.
6523 2005-09-14  Olivier Hainque  <hainque@adacore.com>
6525         * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
6526         value if it has side-effects.
6528 2005-09-14  David Edelsohn  <edelsohn@gnu.org>
6530         PR target/22068
6531         * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
6533 2005-09-14  Alan Modra  <amodra@bigpond.net.au>
6535         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
6536         passed as NAME as if it were label at start of function code.
6538 2005-09-13  Kaz Kojima  <kkojima@gcc.gnu.org>
6540         * config/sh/sh.md (*movv4sf_i): Add general register cases to
6541         the constraints.
6543 2005-09-13  Andrew Pinski  <pinskia@physics.uc.edu>
6545         * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
6546         as early clobber.  Rewrite so the PIC register is not implicitly used.
6548 2005-09-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6550         * tree.c (annotate_with_file_line): Compare line numbers before
6551         file names.
6553 2005-09-13  Uros Bizjak  <uros@kss-loka.si>
6555         PR target/23816
6556         * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
6557         (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
6559 2005-09-13  Ian Lance Taylor  <ian@airs.com>
6561         * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
6562         than a HOST_WIDEST_INT to gen_doloop_begin.
6564 2005-09-13  Diego Novillo  <dnovillo@redhat.com>
6566         * tree-dfa.c (dump_variable): Guard against NULL annotations.
6568 2005-09-13  Zdenek Dvorak  <dvorakz@suse.cz>
6570         PR tree-optimize/23817
6571         * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
6573 2005-09-13  Alan Modra  <amodra@bigpond.net.au>
6575         PR target/23774
6576         * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
6577         word before changing the stack pointer.  Use gen_frame_mem for MEMs.
6578         Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
6579         (restore_stack_nonlocal): Likewise.
6580         (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
6582 2005-09-12  Ian Lance Taylor  <ian@airs.com>
6584         PR g++/7874
6585         * c.opt (ffriend-injection): New C++ option.
6586         * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
6587         (C++ Dialect Options): Document -ffriend-injection.
6589 2005-09-12  Josh Conner  <jconner@apple.com>
6591         PR middle-end/23237
6592         * ipa-reference.c (static_execute): Don't mark variables in
6593         named sections TREE_READONLY.
6595 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
6597         * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
6598         stack_tie.
6600 2005-09-12  Andrew Pinski  <pinskia@physics.uc.edu>
6602         * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
6603         V_MUST_DEF instead of just the first_use_p.
6604         Don't mark the virtual variables for renaming on the statement which
6605         is being removed.
6606         (pass_dse): Remove TODO_update_ssa.
6608 2005-09-12  J"orn Rennecke <joern.rennecke@st.com>
6610         PR middle-end/23290
6611         * stor-layout.c (compute_record_mode): For records with a single
6612         field, actually check the field's mode size against the type size.
6614         * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
6615         registers for TARGET_SHMEDIA.
6616         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
6617         GENERAL_FP_REGS to GENERAL_DF_REGS.  Add GENERAL_FP_REGS as union
6618         of GENERAL_REGS and FP_REGS.
6620 2005-09-12  Bernd Schmidt  <bernd.schmidt@analog.com>
6622         * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
6624 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
6626         * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
6627         CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
6628         are omitted.  Exclude stack_tie insn too.
6630 2005-09-11  David Edelsohn  <edelsohn@gnu.org>
6632         PR rtl-optimization/23098
6633         * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
6634         0.0f is easy.
6635         * config/rs6000/rs6000.md (movdf splitter): Use
6636         const_double_operand predicate for TARGET_POWERPC64.
6637         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
6638         SYMBOL_REF method to ABI_V4.
6640         * config/rs6000/altivec.md (build_vector_mask_for_load): Use
6641         replace_equiv_address.
6642         * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
6643         rs6000_sr_alias_set and MEM_NOTRAP.
6644         (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
6646 2005-09-11  Eric Botcazou  <ebotcazou@adacore.com>
6648         * tree.c (contains_placeholder_p) <tcc_expression>: Properly
6649         handle CALL_EXPR again.
6651 2005-09-11  Richard Earnshaw  <richard.earnshaw@arm.com>
6653         * arm/predicates.md (alignable_memory_operand): Delete.
6655 2005-09-10  Richard Henderson  <rth@redhat.com>
6657         PR debug/23806
6658         * dbxout.c (dbxout_expand_expr): New.
6659         (dbxout_symbol): Use it.
6661 2005-09-10  Richard Earnshaw  <richard.earnshaw@arm.com>
6663         * arm.c (arm_gen_rotated_half_load): Delete.
6664         (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
6665         (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
6666         (thumb_set_return_address): Likewise.
6667         (thumb_load_double_from_address): Use adjust_address.
6668         * arm.md (splits calling arm_gen_rotated_half_load): Delete.
6669         (extendhsisi2_mem, movhi_bytes): Use change_address.
6670         (movhi): Use widen_memory_access.
6671         (reload_out_df): Use replace_equiv_address.
6672         * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
6674 2005-09-09  Richard Henderson  <rth@redhat.com>
6676         PR debug/20998
6677         * dbxout.c: Include expr.h.
6678         (dbxout_global_decl): Don't suppress for DECL_RTL unset.
6679         (dbxout_symbol): Handle DECL_VALUE_EXPR.
6680         * Makefile.in (dbxout.o): Add EXPR_H.
6682 2005-09-09  Zdenek Dvorak  <dvorakz@suse.cz>
6684         PR tree-optimization/23509
6685         * tree-cfg.c (replace_uses_by): Use replace_exp.
6686         * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
6687         pointers have name_mem_tag or type_mem_tag set.
6689 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
6691         * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
6692         CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
6693         of wrongly accessing operands.
6695 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
6697         * Makefile.in (tree-chrec.o): Depends on SCEV_H.
6698         * tree-chrec.c: Include tree-scalar-evolution.h.
6699         (chrec_convert): Instantiate the base and step before calling
6700         scev_probably_wraps_p that would fail on parametric evolutions.
6701         Collect all the fails into a single section failed_to_convert,
6702         print a diagnostic, and return chrec_dont_know instead of calling
6703         fold_convert.
6704         * tree-scalar-evolution.c (loop_closed_phi_def): New.
6705         (instantiate_parameters_1): Avoid instantiation of loop closed ssa
6706         phi nodes.
6707         (scev_const_prop): Don't replace the definition of a loop closed ssa
6708         phi node by itself, or by another loop closed ssa phi node.
6709         * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
6710         that base and step are defined.
6712 2005-09-09  Richard Guenther  <rguenther@suse.de>
6714         PR c++/23624
6715         * fold-const.c (fold_ternary): Check truth_value_p before
6716         calling invert_truthvalue.
6718 2005-09-09  Nick Clifton  <nickc@redhat.com>
6720         * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
6721         * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
6722         dimension of these arrays.
6723         * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
6724         these arrays.
6725         * longlong.h: Only provide a prototype for the __clz_tab[] array
6726         if this header has not been included from libgcc2.h.
6727         * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
6728         defining own types.
6729         Provide prototypes for exported functions.
6730         Use the __clz_tab[] and __popcount_tab[] arrays provided by
6731         libgcc2.c.
6733 2005-09-08  Josh Conner  <jconner@apple.com>
6735         PR c++/21135
6736         PR c++/23180
6737         * expr.c (expand_expr_addr_expr_1): Don't invoke
6738         expand_simple_binop for EXPAND_INITIALIZER.
6740 2005-09-08  Richard Henderson  <rth@redhat.com>
6742         PR debug/23190
6743         * toplev.c (wrapup_global_declaration_1): Split out ...
6744         (wrapup_global_declaration_2): ... from ...
6745         (wrapup_global_declarations): ... here.  Return bool.
6746         (check_global_declaration_1): Split out ...
6747         (check_global_declarations): from here.
6748         (emit_debug_global_declarations): New.
6749         * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
6750         check_global_declaration_1, emit_debug_global_declarations): Declare.
6751         * c-decl.c (c_write_global_declarations_1): Don't create a vector
6752         of decls.  Call wrapup_global_declaration_1,
6753         wrapup_global_declaration_2, check_global_declaration_1 directly.
6754         (c_write_global_declarations_2): New.
6755         (ext_block): New.
6756         (c_write_global_declarations): Call c_write_global_declarations_2.
6757         * langhooks.c (write_global_declarations): Call
6758         emit_debug_global_declarations.
6760         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
6761         remove decls that have DECL_RTL_SET_P.
6762         * passes.c (rest_of_decl_compilation): Invoke
6763         cgraph_varpool_finalize_decl for all but functions.
6765 2005-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
6767         * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
6768         the result of a conversion if the new min and max cannot be compared.
6770 2005-09-08  Andreas Krebbel  <krebbel1@de.ibm.com>
6772         * config/s390/s390.c (s390_sr_alias_set): Variable removed.
6773         (override_options): Setting s390_sr_alias_set removed.
6774         (save_fpr, save_gprs): Set alias set to vararg or frame.
6775         (restore_fpr, restore_gprs, s390_emit_prologue): Replace
6776         s390_sr_alias_set with get_frame_alias_set ().
6777         (s390_gimplify_va_arg): Replace s390_sr_alias_set with
6778         get_varargs_alias_set ().
6780 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
6782         PR objc/20574
6783         PR objc/19324
6784         * c-parser.c (c_parser_objc_method_definition): If the next
6785         token is not "{", error out and don't start the function.
6787 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
6789         * tree-vrp.c (extract_range_from_expr): Move the check for non
6790         nullness after the check for gimple invariant.
6792 2005-09-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6794         * tree.c (host_integerp, tree_low_cst): Correct function comment.
6796 2005-09-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6798         PR target/23747
6799         * config/m32r.md (movmemsi_internal): Canonicalize order of
6800         operands in PLUS component of template.
6802 2005-09-07  Andreas Krebbel  <krebbel1@de.ibm.com>
6804         * reload1.c (fixup_eh_region_note): Remove assertion.
6805         (fixup_abnormal_edges): Reverted removal of call to
6806         find_many_sub_basic_blocks made on 2005-08-31.
6808 2005-09-07  Richard Henderson  <rth@redhat.com>
6810         * function.c (ARG_POINTER_CFA_OFFSET): Move ...
6811         * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
6812         (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
6813         * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
6814         rearrange for better packing.
6815         (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
6816         (lookup_cfa_1): Remove inline marker.
6817         (cfa_equal_p): Split out of ...
6818         (def_cfa_1): ... here.  Use INVALID_REGNUM.
6819         (build_cfa_loc): Handle !cfa->indirect.
6820         (frame_pointer_cfa_offset): New.
6821         (dbx_reg_number): Assert register elimination performed; do
6822         leaf register remapping.
6823         (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
6824         (eliminate_reg_to_offset): New.
6825         (based_loc_descr): Remove can_use_fbreg argument.  Use fbreg only
6826         for verifiably local stack frame addresses; re-base to CFA.
6827         (mem_loc_descriptor): Remove can_use_fbreg argument.
6828         (concat_loc_descriptor, loc_descriptor): Likewise.
6829         (containing_function_has_frame_base): Remove.
6830         (rtl_for_decl_location): Don't do register elimination or
6831         leaf register remapping here.
6832         (secname_for_decl): Split out from ..
6833         (add_location_or_const_value_attribute): ... here.
6834         (convert_cfa_to_loc_list): New.
6835         (compute_frame_pointer_to_cfa_displacement): New.
6836         (gen_subprogram_die): Use them.
6837         * tree.h (frame_base_decl): Remove.
6838         * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
6839         (prologue_stack_adjust): Remove.
6840         (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
6841         (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
6842         (set_frame_base_location): Remove.
6843         (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
6844         (dump_attrs_list, dump_dataflow_set): Use string concatenation.
6845         (vt_add_function_parameters): Don't eliminate_regs.
6846         (vt_initialize): Don't create frame_base_decl.
6848 2005-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
6850         * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
6851         version of GNU binutils for 4.x and later.
6853 2005-09-06  Mark Mitchell  <mark@codesourcery.com>
6855         * ggc-page.c (ggc_push_context): Remove.
6856         (ggc_pop_context): Likewise.
6857         * ggc.h (ggc_push_context): Remove.
6858         (ggc_pop_context): Likewise.
6860 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
6862         PR target/8973
6863         * config/arc/arc.c (arc_output_function_epilogue): Update flags while
6864         returning from an interrupt handler.
6866 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
6868         PR target/8972
6869         * config/arc/arc.c (output_shift): Add check for loop count when
6870         optimizing.
6872 2005-09-06  Steven Bosscher  <stevenb@suse.de>
6874         * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
6875         form manually.
6876         (abs_replacement): Likewise.
6877         (pass_phiopt): Remove TODO_update_ssa.
6879 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
6881         PR c/23075
6882         * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
6883         if "return with no value, in function returning non-void" warning
6884         has been issued.
6885         * tree-cfg.c (execute_warn_function_return): Don't look at
6886         RETURN_EXPRs with TREE_NO_WARNING set.
6888         PR target/22362
6889         * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
6890         for internal functions doesn't use registers used by global registers
6891         variables.  Use fewer register parameters if there are global register
6892         variables.
6894 2005-09-06  Olivier Hainque  <hainque@adacore.com>
6895             Eric Botcazou  <ebotcazou@adacore.com>
6897         PR middle-end/14997
6898         * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
6899         when we would be extracting outside its bit span (bitpos+bitsize
6900         larger than its mode), possible with some VIEW_CONVERT_EXPRs from
6901         Ada unchecked conversions.
6903 2005-09-06  Steven Bosscher  <stevenb@suse.de>
6905         * tree-ssa-pre.c (try_look_through_load): New function.
6906         (compute_avail): Use it to try to look through loads for some
6907         more useful expressions.
6909 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
6911         * simplify-rtx.c (simplify_binary_operation_1): Correct the
6912         condition for detecting cases like (a&a) and (a^a).
6914 2005-09-06  Keith Besaw  <kbesaw@us.ibm.com>
6916         * common.opt: Add option ftree-vect-loop-version.
6917         * params.def: Add --param vect-max-version-checks.
6918         * doc/invoke.texi: Document ftree-vect-loop-version and
6919         --param vect-max-version-checks.
6920         * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
6921         may_misalign_stmts and defines for accessors.
6922         * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
6923         LOOP_VINFO_MAY_MISALIGN_STMTS.
6924         (destroy_loop_vec_info): VEC_free for
6925         LOOP_VINFO_MAY_MISALIGN_STMTS.
6926         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
6927         Update documentation.
6928         (vect_update_misalignment_for_peel): New.
6929         (vect_enhance_data_refs_alignment): Update to choose loop
6930         peeling or loop versioning if appropriate for the (potentially)
6931         unaligned data references in the loop.
6932         (vect_analyze_data_refs_alignment): Remove call to
6933         vect_enhance_data_refs_alignment so the checks can be done
6934         earlier.
6935         (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
6936         and move up call to vect_analyze_data_refs_alignment.
6937         * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
6938         (vect_transform_loop): Add call to loop_version.
6940 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
6942         PR rtl-optimization/23098
6943         * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
6944         * simplify-rtx.c (constant_pool_reference_p): New function.
6945         * rtl.h (constant_pool_reference_p): New prototype.
6946         * config/i386/i386.md (pushf split, mov[sdx]f split): Use
6947         constant_pool_reference_p in condition and
6948         avoid_constant_pool_reference in preparation statements.
6950 2005-09-06  Andreas Krebbel  <krebbel1@de.ibm.com>
6952         * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
6953         STRICT_LOW_PART SETs.
6955 2005-09-06  Alan Modra  <amodra@bigpond.net.au>
6957         PR middle-end/21460
6958         * except.c (sjlj_emit_function_enter): Find the function begin
6959         note even when it's not in first basic block.
6961 2005-09-06  Kelley Cook  <kcook@gcc.gnu.org>
6963         * acinclude.m4: Renamed from aclocal.m4.  Delete AM_LANGINFO_CODESET,
6964         AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
6965         * aclocal.m4: Regenerate.
6967 2005-09-05  DJ Delorie  <dj@redhat.com>
6969         * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
6970         of macro.
6972 2005-09-06  Kazu Hirata  <kazu@codesourcery.com>
6974         * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
6975         config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
6976         config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
6977         Follow spelling conventions.
6978         * doc/invoke.texi: Follow spelling conventions.
6980 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
6982         * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
6983         * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
6984         * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
6986 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
6988         PR target/23683
6989         * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
6990         (output_stack_adjust): Use gen_tmp_stack_mem.
6991         (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
6992         (sh_set_return_address, sh_allocate_initial_value): Likewise.
6993         (sh_get_pr_initial_val): Likewise.
6994         (sh_builtin_saveregs): Use gen_frame_mem and change_address.
6995         (sh_initialize_trampoline): Likewise.  Also use adjust_address.
6996         * sh.md (divsi_inv_m0): Use gen_const_mem.
6997         (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
6998         (movdf_i4+1): Use gen_tmp_stack_mem.
6999         (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
7000         (fpu_switch+2): Likewise.
7001         (movv4sf_i, movv16sf_i): Use adjust_address.
7002         (symGOT_load): Set MEM_NOTRAP_P bit.
7004 2005-09-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7006         PR target/23721
7007         * pa.c (emit_move_sequence): Fix typo in last change.
7009 2005-09-03  Jakub Jelinek  <jakub@redhat.com>
7011         PR rtl-optimization/23454
7012         * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
7013         is true.
7015 2005-09-03  Richard Henderson  <rth@redhat.com>
7016             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7018         PR middle-end/23671
7019         * pa.c (emit_move_sequence): Use replace_equiv_address instead of
7020         gen_rtx_MEM.
7022 2005-09-02  Nicolas Pitre <nico@cam.org>
7024         * config/arm/arm.c (arm_legitimize_address): Limit the value passed
7025         to bit_count to 32 bits.
7027 2005-08-31  Mark Mitchell  <mark@codesourcery.com>
7029         PR c++/23167
7030         * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
7031         generating synthetic loads from volatile lvalues.
7033 005-09-02  Nick Clifton  <nickc@redhat.com>
7035         * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
7036         __ctzhi2, __clzhi2): New functions.
7038 2005-09-02  Andrew Pinski  <pinskia@physics.uc.edu>
7040         PR middle-end/23547
7041         * tree-nested.c (struct var_map_elt): Mark with GTY.
7042         (struct nesting_info): Mark with GTY.  Mark var_map's param is struct
7043         var_map_elt.
7044         (lookup_field_for_decl): Allocate new element in GC memory.
7045         (lookup_tramp_for_decl): Likewise.
7046         (convert_nl_goto_reference): Likewise
7047         (create_nesting_tree): Allocate info in GC memory. Likewise for
7048         info->var_map.
7049         (free_nesting_tree): Free with ggc_free instead of free.
7050         (root): New static variable.
7051         (lower_nested_functions): Remove root as local variable.  And zero out
7052         root at the end of the function.
7054 2005-09-02  J"orn Rennecke <joern.rennecke@st.com>
7056         PR rtl-optimization/20365
7057         * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
7058         to short.  New member ix.
7059         (simplify_plus_minus_op_data_cmp): Break ties using ix member.
7060         (simplify_plus_minus): Initialize ix members before calling qsort.
7062 2005-09-02  Zdenek Dvorak  <dvorakz@suse.cz>
7064         PR tree-optimization/23626
7065         * tree-cfg.c (replace_uses_by): Clean up eh info.
7067 2005-09-01  DJ Delorie  <dj@redhat.com>
7069         * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
7070         fprintf.
7072 2005-09-01  David Edelsohn  <edelsohn@gnu.org>
7074         * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
7075         (rs6000_split_multireg_move): Use replace_equiv_address instead of
7076         gen_rtx_MEM.
7078 2005-09-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7080         * c-decl.c (diagnose_mismatched_decls):  With -Wredundant-decls,
7081         do not issue warning for a variable definition following
7082         a declaration.
7084 2005-09-01  Richard Henderson  <rth@redhat.com>
7086         PR 23668
7087         * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
7088         conversion to CONST_VECTOR.
7090 2005-09-01  Richard Henderson  <rth@redhat.com>
7092         PR 23676
7093         * reload1.c (reload_as_needed): Check !CALL_P before calling
7094         fixup_eh_region_note.
7095         * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
7097 2005-09-01  DJ Delorie  <dj@redhat.com>
7099         * varasm.c (output_constant): Let the target resolve
7100         conversions of addresses to non-default pointer sizes.
7102 2005-09-01  Nicolas Pitre <nico@cam.org>
7104         * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
7105         to alow matching ARM pre-indexed addressing mode.
7106         (arm_override_options): Remove now irrelevant comment.
7108 2005-09-01  Phil Edwards  <phil@codesourcery.com>
7110         * config.gcc (i*86-wrs-vxworks):  Update.  Split out vxworksae target.
7111         * config/i386/t-vxworks:  Update multilibs for VxWorks 6 and RTP mode.
7112         * config/i386/vxworks.h:  Likewise.
7113         * config/i386/t-vxworksae:  New file, for VxWorks AE.
7114         * config/i386/vxworksae.h:  Likewise.
7116 2005-09-01  Sebastian Pop  <pop@cri.ensmp.fr>
7118         PR tree-optimization/23410
7119         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
7120         sequence is not wrapping during the first step.
7122 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
7124         PR debug/7241
7125         * dwarf2out.c (base_type_die): Compare char_type_node with
7126         TYPE_MAIN_VARIANT (type), not type.
7128 2005-09-01  Richard Guenther  <rguenther@suse.de>
7130         PR tree-optimization/15366
7131         * common.opt: Add -finline-functions-called-once.
7132         Put -fearly-inlining in alphabetically ordered place.
7133         * doc/invoke.texi: Document new option.
7134         * ipa-inline.c (cgraph_decide_inlining): Honour
7135         flag_inline_functions_called_once.
7137 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
7139         PR rtl-optimization/23478
7140         * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
7141         (alloc_qty): Initialize it.
7142         (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
7143         (combine_regs): Combine also n_throwing_calls_crossed fields.
7144         (find_free_reg): Don't attempt to caller-save pseudos crossing
7145         calls that might throw.
7146         * global.c (struct allocno): Add throwing_calls_crossed field.
7147         (global_alloc): Revert 2005-08-22 change.  Initialize
7148         throwing_calls_crossed.
7149         (find_reg): Don't attempt to caller-save pseudos crossing calls that
7150         might throw.
7152 2005-09-01  Alan Modra  <amodra@bigpond.net.au>
7154         PR target/23649
7155         * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
7156         (mask64_operand): Reinstate code prior to 2005-06-11 change.
7157         (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
7158         (and64_2_operand): Tweak to use predicate.
7159         (and_operand): Adjust for mask_operand changes.
7160         * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
7161         (print_operand): Likewise.
7162         (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
7163         (mask64_1or2_operand): Delete.
7164         * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
7165         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
7166         (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
7167         (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
7168         * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
7169         (rotldi3_internal4): Likewise.
7170         (rotldi3_internal5, rotldi3_internal5 split): Likewise.
7171         (rotldi3_internal6, rotldi3_internal6 split): Likewise.
7172         (ashldi3_internal7): Likewise.
7173         (ashldi3_internal8, ashldi3_internal8 split): Likewise.
7174         (ashldi3_internal, ashldi3_internal9 split): Likewise.
7175         (anddi3 split): Don't match mask64_operand.
7176         (anddi3_internal2): Add rlwinm.  Modify 't' splitter predicate.
7177         (anddi3_internal3): Add rlwinm.  Use and64_2_operand in non-cr0
7178         splitter and match TARGET_64BIT not TARGET_POWERPC64.  Modify
7179         't' splitter predicate.
7180         (movdi_internal64 + 2): Revert 2005-06-11 change.
7182 2005-08-31  DJ Delorie  <dj@redhat.com>
7184         * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
7185         (m32c_asm_integer): Add support for 32 bit pointers.
7187 2005-08-31  Richard Henderson  <rth@redhat.com>
7189         * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
7190         component-like references for setting MEM_NOTRAP_P.
7192         * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
7193         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
7195 2005-08-31  Richard Henderson  <rth@redhat.com>
7197         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
7198         into a pseudo before applying gen_lowpart.
7200 2005-08-31  Geoffrey Keating  <geoffk@apple.com>
7202         * doc/install.texi (Specific): Update cctools version required
7203         for full functionality.
7204         * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
7205         linkers as -macosx_version_min.
7207 2005-08-31  J"orn Rennecke <joern.rennecke@st.com>
7209         PR target/21255
7210         * sh.c (print_operand, %R and %S): Add handling of floating point
7211         registers, memory, constants and invalid operands.
7213 2005-08-31  Daniel Berlin  <dberlin@dberlin.org>
7215         * ipa-pure-const.c: Change dump name.
7217 2005-08-31 Uros Bizjak <uros@kss-loka.si>
7219         PR target/23570
7220         * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
7221         to "reg_or_0_operand".
7222         (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
7224 2005-08-31  Dale Johannesen  <dalej@apple.com>
7226         * loop-iv.c (iv_number_of_iterations):  Fix overflow check for
7227         loops that count down.
7229 2005-08-31  Richard Henderson  <rth@redhat.com>
7231         PR rtl-opt/23601
7232         * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
7233         (fixup_eh_region_note): New.
7234         (reload_as_needed): Call it.
7235         (fixup_abnormal_edges): Allow all throwing insns to be deleted;
7236         don't call find_many_sub_basic_blocks; call verify_flow_info.
7237         * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
7238         (keep_stack_depressed): Likewise.
7239         (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
7241 2005-08-31  Richard Henderson  <rth@redhat.com>
7243         * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
7244         fp return matching.
7246 2005-08-31  Fariborz Jahanian <fjahanian@apple.com>
7248         * expr.c (expand_expr_real_1): Compare size of address
7249         mode to target's address mode size in deciding expansion of
7250         the constant address.
7252 2005-08-31  Richard Guenther  <rguenther@suse.de>
7254         PR middle-end/23477
7255         * expr.c (all_zeros_p): New function.
7256         (expand_expr_real_1): Handle the case of an all-zero
7257         non-addressable constructor separately.
7259 2005-08-31  Adrian Straetling  <straetling@de.ibm.com>
7261         * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
7262         arguments, adjust all callers.
7263         (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
7265 2005-08-30  Richard Henderson  <rth@redhat.com>
7267         PR target/23630
7268         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
7269         whenever the mode sizes match.
7271 2005-08-31  Alan Modra  <amodra@bigpond.net.au>
7273         * calls.c (load_register_parameters): Fix comment typo.
7274         * expr.c (emit_push_insn): Comment formatting.
7276 2005-08-30  Ian Lance Taylor  <ian@airs.com>
7278         * config/i386/x-cygwin (host-cygwin): Change dependency from
7279         hosthooks-def.h to $(HOSTHOOKS_DEF_H).
7281 2005-08-29  Geoffrey Keating  <geoffk@apple.com>
7283         * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
7284         parts of 'vals'.
7286 2005-08-29  Andrew Pinski  <pinskia@physics.uc.edu>
7288         PR middle-end/23408
7289         * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
7290         call to ggc_collect.
7292 2005-08-29  Paolo Bonzini  <bonzini@gnu.org>
7294         PR bootstrap/21268
7295         * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
7296         beginning.  Remove $(INCLUDES) from all the rules, if following
7297         $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
7299 2005-08-29  Jakub Jelinek  <jakub@redhat.com>
7301         PR middle-end/23484
7302         * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
7303         fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
7304         not constant, but maxlen is, don't set len to maxlen, rather
7305         set maxlen to len if len is a constant.
7307 2005-08-29  Zdenek Dvorak  <dvorakz@suse.cz>
7309         PR tree-optimization/23475
7310         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
7311         and counts.
7313 2005-08-28  Daniel Berlin  <dberlin@dberlin.org>
7315         Fix PR middle-end/22455
7317         * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
7318         Checksum only the parts of the tree that exist for the tree code.
7320 2005-08-28  Dale Johannesen  <dalej@apple.com>
7322         * config/i386/i386.c (nocona_cost):  Increase MOVE_RATIO.
7324 2005-08-28  Andrew Pinski  <pinskia@physics.uc.edu>
7326         * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
7328 2005-08-28  Richard Henderson  <rth@redhat.com>
7330         * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
7331         * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
7332         of char_type_node.
7334 2005-08-28  Jakub Jelinek  <jakub@redhat.com>
7336         PR ada/23593
7337         * builtins.c (get_memory_rtx): Don't strip nops
7338         in between COMPONENT_REFs.
7340 2005-08-27  Andrew Pinski  <pinskia@physics.uc.edu>
7342         PR middle-end/23463
7343         * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
7344         types.
7345         (gimplify_modify_expr): Check for zero sized types and gimplify the
7346         rhs and lhs as statements.
7348 2005-08-27  John David Anglin  <dave.anflin@nrc-cnrc.gc.ca>
7350         PR libgcj/23508
7351         * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
7352         state for return address column of signal frames.
7354 2005-08-27  David Edelsohn  <edelsohn@gnu.org>
7356         PR target/23539
7357         * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
7358         bytes >= 2 not bytes == 2.
7359         (expand_block_move): Same.
7361 2005-08-27  Richard Guenther  <rguenther@suse.de>
7363         PR target/23575
7364         * config/i386/sse.md (sse2_movsd): Add missing closing
7365         braces.
7367 2005-08-27  Paul Brook  <paul@codesourcery.com>
7369         * genrecog.c (enum decision_type): Add DT_num_insns.
7370         (struct decision_test): Add u.num_insns.
7371         (add_to_sequence): Add DT_num_insns test.
7372         (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
7373         (write_cond, debug_decision_2): Ditto.
7374         (change_state): Assume peep2_next_insn never fails.
7375         Remove "afterward" argument.
7376         (write afterward, write_tree): Update to match.
7377         * recog.c (peep2_current_count): New variable.
7378         (peep2_next_insn): Check it.
7379         (peephole2_optimize): Set peep2_current_count.
7380         * recog.h (peep2_current_count): Declare.
7382 2005-08-26  Josh Conner  <jconner@apple.com>
7384         PR middle-end/23584
7385         * ipa-pure-const.c (check_tree): Check for volatile-ness
7386         when considering a dereference.
7388 2005-08-27  Jakub Jelinek  <jakub@redhat.com>
7390         * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
7392 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
7394         PR rtl-optimization/23561
7395         * builtins.c (get_memory_rtx): Add LEN argument.  If MEM_EXPR is
7396         a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
7397         at most LEN bytes long memory fits into the field.
7398         (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
7399         expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
7400         expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
7402 2005-08-26  Richard Henderson  <rth@redhat.com>
7404         PR rtl-opt/23560
7405         * loop.c (biased_biv_may_wrap_p): New.
7406         (maybe_eliminate_biv_1): Use it to suppress non-equality
7407         comparison transformations.  Delete disabled code.
7409 2005-08-26  Ian Lance Taylor  <ian@airs.com>
7411         * combine.c (make_extraction): Avoid reference outside object.
7413 2005-08-26  J"orn Rennecke <joern.rennecke@st.com>
7415         * stor-layout.c (finalize_type_size): Restore behaviour for
7416         non-aggregate types to the status quo ante of the patch for
7417         pr 23467.  Document why it matters.
7419 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
7421         PR c/23506
7422         * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
7423         array by one element, initialize the BT_LAST element with NULL.
7425 2005-08-26  David Edelsohn  <edelsohn@gnu.org>
7427         * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
7428         optimizing for size.
7429         (plus_eqsi): Same.
7430         (compare_plus_eqsi): Same.
7431         (plus_eqsi_compare): Same.
7432         (neg_eq0<mode>): Same.
7433         (neg_eq<mode>): Same.
7435         * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
7436         PROCESSOR_POWER4.
7438 2005-08-26  Nick Clifton  <nickc@redhat.com>
7440         * config/v850/v850.c (ep_memory_operand): Return FALSE if
7441         TARGET_EP is not defined.
7442         * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
7443         TARGET_EP is enabled.
7444         (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
7445         * config/v850/v850.md (save_all_interrupt): Only use the EP
7446         register if TARGET_EP is defined.
7447         (restore_all_interrupt): Likewise.
7448         * config/v850/lib1funcs.asm: Update functions so that the EP
7449         register is only used if __EP__ is defined.
7451 2005-08-26  David Ung  <davidu@mips.com>
7453         * config/mips/mips.c (mips_expand_prologue): Handle case when
7454         generating for MIPS16 and the outgoing argument area is more than
7455         SMALL_OPERAND. Use the frame pointer as temporary to generate the
7456         add instruction.
7458 2005-08-26  Paul Woegerer  <paul.woegerer@nsc.com>
7460         * config/crx/crx.md: Make doloop_end pattern usage controllable
7461         via mloop-nesting=<max-nesting> command line switch. Make sure
7462         the combiner cannot use doloop_end_<mode> in an illegal way.
7463         * config/crx/crx.c: Use regs up to r6 for argument passing.
7464         Refine crx_address_cost (non cst4 displacements are expensive).
7465         * config/crx/crx.opt: Add switch for mloop-nesting=.
7467 2005-08-26  Adrian Straetling  <straetling@de.ibm.com>
7469         * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
7470         (UNSPEC_MVST): New constant.
7472 2005-08-26  Andreas Krebbel  <krebbel1@de.ibm.com>
7474         * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
7475         Reject operands containing eliminable registers.
7476         * testsuite/gcc.dg/20050825-1.c: New testcase.
7478 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
7479             Jan Hubicka  <jh@suse.cz>
7481         * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
7483 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
7485         PR tree-optimization/23546
7486         * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
7487         and REAL_CST nodes.
7489 2005-08-24  Pete Steinmetz  <steinmtz@us.ibm.com>
7491         * params.def (PARAM_MIN_SPEC_PROB): New.
7492         * sched-rgn.c (MIN_PROBABILITY): Delete.
7493         (compute_trg_info): Convert to PARAM_VALUE.
7494         * doc/invoke.texi (param): Document min-spec-prob.
7496 2005-08-24  Fariborz Jahanian <fjahanian@apple.com>
7498         * config/darwin.h: define __PIC__
7499         * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
7500         TARGET_OS_CPP_BUILTINS macro.
7502 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
7504         * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
7505         yesterday.
7507 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
7509         * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
7510         to duplicate_block.
7511         * cfghooks.c (duplicate_block): Added position where to place
7512         new block as argument.
7513         * cfghooks.h (duplicate_block): Declaration changed.
7514         * cfglayout.c (copy_bbs): Add argument after.  Pass it to
7515         duplicate_block.
7516         * cfglayout.h (copy_bbs): Declaration changed.
7517         * cfgloop.h (loop_version): Declaration changed.
7518         * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
7519         position to copy_bbs.
7520         (loop_version): Pass position to duplicate_loop_to_header_edge.
7521         Add place_after argument and position new blocks according to
7522         it.
7523         * modulo-sched.c (sms_schedule): Pass place_after argument
7524         to loop_version.
7525         * tracer.c (tail_duplicate): Pass argument to duplicate_block.
7526         * tree-cfg.c (split_edge_bb_loc): New function.
7527         (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
7528         to determine position of new blocks.
7529         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
7530         to loop_version.
7531         * tree-ssa-threadupdate.c (create_block_for_threading): Pass
7532         argument to duplicate_block.
7533         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
7534         Pass position to copy_bbs.
7536 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
7538         * fold-const.c (ptr_difference_const): Use
7539         cst_and_fits_in_hwi instead of host_integerp.
7541 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
7543         * config/darwin.c (gen_pic_offset): New.
7544         (machopic_indirect_data_reference,  machopic_legitimize_pic_address):
7545         Use it.
7547 2005-08-23  Zdenek Dvorak  <dvorakz@suse.cz>
7549         PR tree-optimization/23486
7550         * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
7552 2005-08-23  Phil Edwards  <phil@codesourcery.com>
7554         * config.gcc (*-*-vxworks*):  Update tm_file, add extra_options,
7555         remove use_collect2.
7556         (powerpc-wrs-vxworks):  Update, split out *-*-vxworksae target.
7558         * target-def.h (TARGET_HAVE_CTORS_DTORS):  Allow target
7559         configuration files to override the default value.
7561         * config/t-vxworks:  Remove INSTALL_ASSERT_H.  Define STMP_FIXPROTO,
7562         EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
7563         * config/vx-common.h:  New file, split out from...
7564         * config/vxworks.h:  here.  Update for VxWorks 6.x and RTP mode.
7565         * config/vxworksae.h:  New file, for VxWorks AE.
7566         * config/vxworks.opt:  New file.
7567         * config/vxlib.c:  Update for VxWorks 6.
7569         * config/rs6000/t-vxworks (MULTILIB_OPTIONS):  New list.  Adjust
7570         other MULTILIB_* variables appropriately.
7571         (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS):  Correct from t-ppccomm.
7572         * config/rs6000/t-vxworksae:  New file, adjust multilibs for AE.
7573         * config/rs6000/vxworks.h:  Update for VxWorks 6.
7574         * config/rs6000/vxworksae.h:  New file, mostly placeholder for now.
7576 2005-08-23  Andrew Pinski  <pinskia@physics.uc.edu>
7578         PR target/20799
7579         * config/darwin.c (machopic_select_section): Remove the hack to
7580         mark "::operator new" and "::operator delete" for coalescing
7581         even though they are not weak.
7583 2005-08-24  Alan Modra  <amodra@bigpond.net.au>
7585         * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
7586         * configure: Regenerate.
7588 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
7590         PR middle-end/23517
7591         * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
7592         between vectors.
7593         * convert.c (convert_to_integer, convert_to_vector): Likewise.
7594         * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
7595         Likewise.
7597 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
7599         * config/rs6000/predicates.md (equality_operator): New.
7600         * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
7601         comparison with a large constant.
7603 2005-08-23  Mark Mitchell  <mark@codesourcery.com>
7605         * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
7607 2005-08-23  J"orn Rennecke <joern.rennecke@st.com>
7609         * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
7610         registers is even, and we have a hardware double precision fp,
7611         align the buffer.
7612         (sh_gimplify_va_arg_expr): For floating point arguments, consider
7613         size of current argument when checking if argument was passed in
7614         registers.
7616         * sh.c (sh_attr_renesas_p): Handle error_mark_node.
7618         PR middle-end/23467
7619         * stor-layout.c (finalize_type_size): Dont override
7620         existing alignment with a smaller alignment from the mode.
7622 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
7624         * lambda-code.c (lambda_vector_lexico_pos): Moved...
7625         * lambda.h (lambda_vector_lexico_pos): ... here.
7626         * tree-data-ref.c (build_classic_dist_vector): Return false when
7627         the distance vector is lexicographically negative.
7629 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
7631         PR tree-optimization/23511
7632         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
7633         handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
7635 2005-08-23  Jakub Jelinek  <jakub@redhat.com>
7637         PR tree-optimization/22043
7638         * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
7639         * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
7640         If ALLOW_FLEXARR, handle types ending with flexible array member.
7641         Pass false as second argument to recursive count_type_elements calls.
7642         (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
7643         argument to count_type_elements call.
7644         * tree-sra.c (decide_block_copy): Likewise.
7645         * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
7646         for a constant-sized object, set cleared as well.  Pass true as
7647         second argument to count_type_elements call.
7649 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
7651         PR target/21571
7652         * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
7653         from legitimate_small_data_p, and make global.  Update use.
7654         Remove forward declaration.
7655         * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
7656         Declare.
7657         * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
7659 2005-08-23  David Edelsohn  <edelsohn@gnu.org>
7661         * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
7662         of scratch intermediates.
7663         (eq<mode>_compare): Same.
7664         (neg_eq0<mode>): New.
7665         (neg_eq<mode>): Convert to define_insn_and_split.
7667 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
7669         PR target/23070
7670         * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
7671         stdarg functions, set/clear the fp marker even when no variable
7672         args are passed.
7673         * config/rs6000/sysv4.opt (mprototype): Describe.
7675 2005-08-22  Jakub Jelinek  <jakub@redhat.com>
7677         PR rtl-optimization/23478
7678         * regs.h (reg_info): Add throw_calls_crossed.
7679         (REG_N_THROWING_CALLS_CROSSED): Define.
7680         * flow.c (allocate_reg_life_data): Initialize
7681         REG_N_THROWING_CALLS_CROSSED.
7682         (propagate_one_insn, attempt_auto_inc): Update
7683         REG_N_THROWING_CALLS_CROSSED.
7684         * global.c (global_alloc): Don't allocate pseudos across
7685         calls that may throw.
7687 2005-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
7689         PR c/18715
7690         * c-common.c (c_do_switch_warnings): Look for a node where the enum's
7691         value is inbetween the range if we did not find an exact match.
7693 2005-08-22  Aldy Hernandez  <aldyh@redhat.com>
7695         * doc/invoke.texi (Option Summary): Add ms1 options.
7696         * doc/extend.texi: Document interrupt handler attribute for ms1.
7697         * doc/md.texi: Document ms1 constraints.
7698         * config.gcc: Add ms1-*-elf.
7699         * config/ms1/ms1.h: New.
7700         * config/ms1/ms1.c: New.
7701         * config/ms1/ms1.md: New.
7702         * config/ms1/ms1-protos.h: New.
7703         * config/ms1/ABI.txt: New.
7704         * config/ms1/crti.asm: New.
7705         * config/ms1/crtn.asm: New.
7706         * config/ms1/lib2extra-funcs.c: New.
7707         * config/ms1/t-ms1: New.
7708         * config/ms1/ms1.opt: New.
7710 2005-08-22 Ira Rosen <irar@il.ibm.com>
7712         * config/rs6000/altivec.md (xorv4sf3): New.
7713         (negv4sf2, neg<mode>2): Likewise.
7715 2005-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7717         PR target/23485
7718         * config/ia64/ia64.md (divsi3): Check divide by zero.
7719         (udivsi3): Likewise.
7720         (divdi3): Likewise.
7721         (udivdi3): Likewise.
7723 2005-08-21  Jakub Jelinek  <jakub@redhat.com>
7725         * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
7726         up to elem_bitsize bits, not max_bitsize.
7728 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
7730         PR tree-optimization/23433
7731         * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
7732         REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
7734 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
7736         PR tree-optimization/23434
7737         * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
7738         the iteration bound is not an INTEGER_CST.
7740 2005-08-21  Dorit Nuzman  <dorit@il.ibm.com>
7742         * tree-vect-transform.c (get_initial_def_for_reduction): Set
7743         need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
7744         NULL if need_epilog_adjust is false.
7745         (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
7746         Case 3 always peels first itration, not just for PLUS case, and no need
7747         to use scalar_initial_def here. Create an epilog adjustment only if
7748         scalar_initial_def is not NULL.
7750         (vectorizable_reduction): Remove assert.
7752 2005-08-20  H.J. Lu  <hongjiu.lu@intel.com>
7754         PR target/23485
7755         * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
7756         (__moddi3): Likewise.
7757         (__udivdi3): Likewise.
7758         (__umoddi3): Likewise.
7759         (__divsi3): Likewise.
7760         (__modsi3): Likewise.
7761         (__udivsi3): Likewise.
7762         (__umodsi3): Likewise.
7764 2005-08-20  Jakub Jelinek  <jakub@redhat.com>
7766         * tree-pass.h (TDF_GRAPH): Define.
7767         * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
7768         * passes.c (finish_optimization_passes): Only call
7769         finish_graph_dump_file if TDF_GRAPH is set.
7770         (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
7771         NULL.  Set TDF_GRAPH bit.
7772         (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
7774 2005-08-20  Richard Earnshaw  <richard.earnshaw@arm.com>
7776         * arm.h (arm_stack_offsets): Add locals_base field.
7777         * arm.c (arm_get_frame_offsets): Compute it.
7778         (thumb_compute_initial_elimination offset): Make the Thumb frame
7779         pointer point to the base of the local variables.
7780         (thumb_expand_prologue): Update accordingly.
7781         (thumb_expand_epilogue): Likewise.
7783         * arm.md (thumb_movhi_clobber): Make this insn a define_expand.  Change
7784         mode of clobbered scratch to DImode.  Handle a case that's known to
7785         need this.
7787 2005-08-19  David Edelsohn  <edelsohn@gnu.org>
7789         * config/rs6000/rs6000.md (gt0<mode>): Delete.
7790         (gt0<mode>_compare): Delete.
7791         (neg_gt0<mode>): Delete.
7793 2005-08-19  Eric Christopher  <echristo@apple.com>
7795         * optabs.h: Change CTI_ to COI_.
7796         * optabs.c: Ditto.
7798 2005-08-19  James E Wilson  <wilson@specifix.com>
7800         * builtins.c (expand_builtin_return_addr): Set
7801         current_function_accesses_prior_frames when count != 0.  Use
7802         frame_pointer_rtx when count == 0.
7803         * function.h (struct function): Add accesses_prior_frames field.
7804         (current_function_accesses_prior_frames): Define.
7805         * reload1.c (init_elim_table): Check
7806         current_function_accesses_prior_frames.
7807         * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
7809 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
7811         * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
7812         indicator.  Return true if the flowgraph changed during
7813         cleanup.
7815 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
7817         PR 23476
7818         * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
7819         conditional expression before testing its value.
7821 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
7823         * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
7825 2005-08-19  Devang Patel  <dpatel@apple.com>
7827         PR tree-optimization/23048
7828         * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
7829         third parameter. Check whether latch is dominated by exit
7830         block or not.
7831         (if_convertible_loop_p): Supply exit block itself to
7832         if_convertible_bb_p.
7834 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
7836         PR target/23473
7837         * arm.md (arm_load_pic_register): Change argument to the mask of
7838         saved registers.  Call thumb_find_work_register if we need a
7839         scratch register on Thumb.
7840         (arm_expand_prologue): Pass empty register set to
7841         arm_load_pic_register.
7842         (thumb_expand_prologue): Pass live_regs_mask directly to
7843         arm_load_pic_register.
7844         * arm-protos.h (arm_load_pic_register): Update prototype.
7846 2005-08-19  J"orn Rennecke <joern.rennecke@st.com>
7848         * sh.c (find_sole_member): New function.
7849         (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
7850         if the record's alignment is larger than the size of its only member.
7852 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
7854         PR target/23436
7855         * arm.c (thumb_legitimize_reload_address): New function.
7856         * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
7857         * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
7859 2005-08-19  Paul Woegerer  <paul.woegerer@nsc.com>
7861         * config/crx/crx.c: Implement crx_decompose_address. Reject
7862         symbolic displacements since CRX register relative adressing
7863         mode can't handle unsigned 32-bit values as displacements.
7864         * config/crx/crx.h: Simplify definitions, remove redundant
7865         parenthesis and obsolete macros.
7866         * config/crx/crx.opt: Add new switch for debugging addresses.
7867         * config/crx/crx-protos.h: Add new declarations for above.
7869 2005-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
7871         PR middle-end/20624
7872         * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
7873         looking past it.
7875 2005-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7877         * collect2.c (dup2): Delete.
7878         * configure.ac: Don't check for dup2.
7880         * config.in, configure: Regenerate.
7882 2005-08-18  J"orn Rennecke <joern.rennecke@st.com>
7884         * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
7885         record with the type of its only member.
7887 2005-08-18  David Edelsohn  <edelsohn@gnu.org>
7889         * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
7890         define_insn_and_split.
7891         (plus_ltu<mode>_compare): Same.
7892         (gtu<mode>_compare): Same.
7893         (plus_gtu<mode>_compare): Same.
7895 2005-08-18  Dorit Nuzman  <dorit@il.ibm.com>
7897         PR tree-optimization/22228
7898         * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
7899         todo_flags_start.
7900         * tree-vect-transform.c (vect_transform_loop): Mark the variables that
7901         are recorded in vect_vnames_to_rename for renaming.
7902         * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
7903         (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
7904         in vect_vnames_to_rename.
7905         (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
7906         * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
7908 2005-08-18  Jan Hubicka  <jh@suse.cz>
7910         PR c++/22034
7911         * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
7912         info only for local statics, not for member variables.
7914 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7916         * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
7918 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7920         * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
7922 2005-08-18  Andrew Pinski  <pinskia@physics.uc.edu>
7924         PR middle-end/16045
7925         * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
7927 2005-08-17  James E Wilson  <wilson@specifix.com>
7929         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
7930         array size check.
7932 2005-08-17  David Edelsohn  <edelsohn@gnu.org>
7934         * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
7935         (leu<mode>_compare): Same.
7936         (plus_leu<mode>): Same.
7937         (neg_leu<mode>): Same.
7938         (and_neg_leu<mode): Same.
7939         (ltu<mode>_compare): Same.
7940         (plus_ltu<mode>): Same.
7941         (geu<mode>): Same.
7942         (geu<mode>_compare): Same.
7943         (plus_geu<mode>): Same.
7944         (neg_geu<mode>): Same.
7945         (and_neg_geu<mode>): Same.
7946         (plus_gt<mode>): Same.
7947         (gtu<mode>_compare): Same.
7948         (plus_gtu<mode>): Same.
7950 2005-08-17  Erik Christiansen  <erik@dd.nec.com.au>
7952         * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
7953         Move call_table_data to end.  Delete spurious .text.
7954         (callt_save_all_interrupt): Fix comment typo.
7956 2005-08-17  James E Wilson  <wilson@specifix.com>
7957             Kevin Winchester  <winchester@amirix.com>
7959         PR target/21684
7960         * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
7962 2005-08-17  Uros Bizjak  <uros@kss-loka.si>
7964         PR target/23268
7965         * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
7966         ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
7968 2005-08-17  J"orn Rennecke <joern.rennecke@st.com>
7970         * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
7971         record with the type of its only member if the modes don't match.
7973         * varasm.c (decode_reg_name): Skip empty additional register names.
7975 2005-08-16  Zdenek Dvorak  <dvorakz@suse.cz>
7977         * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
7978         lsm_tmp_name_length): New.
7979         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
7980         (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
7982 2005-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7983             Andreas Krebbel  <krebbel1@de.ibm.com>
7985         * config.gcc: Added z9-109 switch.
7986         * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
7987         "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
7988         "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
7989         "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
7990         "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
7991         for "z9_109" cpu attribute.
7992         * config/s390/s390.c (z9_109_cost): New processor cost structure.
7993         (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
7994         (s390_handle_arch_option): Added z9-109 switch.
7995         (override_options): Set respective cost function for z9-109.
7996         (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
7997         (legitimate_reload_constant_p): Accept extended immediates.
7998         (print_operand): Three new output modifiers added: k, m and o.
7999         (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
8000         (s390_output_mi_thunk): Use extended immediate when possible.
8001         * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
8002         (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
8003         (CONSTRAINT_LEN): Added length of O constraint.
8004         (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
8005         * config/s390/s390.md ("cpu"): New value z9_109 added.
8006         ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
8007         "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
8008         "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
8009         "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
8010         "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
8011         ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
8012         "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
8013         "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
8014         ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
8015         "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
8016         "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
8017         "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
8018         "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
8019         "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
8020         "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
8021         immediates.
8022         ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
8023         "zero_extend<mode>si2"): Allow memory operands and don't manually emit
8024         insns for TARGET_EXTIMM.
8026 2005-08-17  Andreas Krebbel  <krebbel1@de.ibm.com>
8028         * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
8030 2005-08-17  Nick Clifton  <nickc@redhat.com>
8032         * config/stormy16/stormy16.c (xstormy16_encode_section_info):
8033         Call default_encode_section_info.
8035 2005-08-17  Steven Bosscher  <stevenb@suse.de>
8037         PR tree-optimization/21574
8038         * tree-ssa-ccp.c (likely_value): If the right hand side is a
8039         constant, return CONSTANT.
8040         (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
8041         (ccp_fold, visit_assignment): Likewise.
8042         (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
8044 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
8046         * c-typeck.c (build_function_call): Call fold_buildN_initializer or
8047         fold_buildN instead of buildN then fold_initializer or fold.
8048         (build_unary_op): Likewise.
8049         (build_binary_op): Likewise.
8050         * fold-const.c (fold_initializer): Remove.
8051         (fold_build1_initializer): New function.
8052         (fold_build2_initializer): New function.
8053         (fold_build3_initializer): New function.
8054         * tree.h (fold_initializer): Remove.
8055         (fold_build1_initializer): New function.
8056         (fold_build2_initializer): New function.
8057         (fold_build3_initializer): New function.
8059 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
8061         * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
8062         (try_move_mult_to_index): Call fold_build2 instead of build2.
8063         (fold_binary): Don't call fold after calls to try_move_mult_to_index.
8064         * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
8065         fold_binary_to_constant.
8066         (infer_loop_bounds_from_undefined): Call fold_build2 instead of
8067         fold (build.
8068         * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
8069         check if A == gcd (A, B).  Remove TYPE argument.
8070         (analyze_offset) Use fold_build2 instead of fold (build.
8071         (create_data_ref): Likewise.
8072         (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
8073         * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
8074         then fold.
8076 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
8078         * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
8079         ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
8081 2005-08-16  Andrew Pinski  <pinskia@physics.uc.edu>
8083         PR tree-opt/23402
8084         * gimplify.c (zero_sized_type): New function.
8085         (gimplify_modify_expr_rhs): If we have a zero sized type,
8086         replace the statement with an empty statement.
8088 2005-08-16  H.J. Lu  <hongjiu.lu@intel.com>
8090         * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
8091         fxsave.
8093 2005-08-16  Ian Lance Taylor  <ian@airs.com>
8095         * doc/tm.texi (Label Output): Correct typo.
8097 2005-08-16  Steven Bosscher  <stevenb@suse.de>
8099         PR target/23376
8100         * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
8101         force_operand will work later on using have_insn_for.
8103 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8105         * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
8107 2005-08-16  Ian Lance Taylor  <ian@airs.com>
8109         PR c++/23337
8110         * gimplify.c (gimplify_init_ctor_eval): If we see an element of
8111         vector type, don't try to construct it element by element.  Add an
8112         assertion that we use a FIELD_DECL when building a COMPONENT_REF.
8114 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8116         * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
8118 2005-08-16  Geoffrey Keating  <geoffk@apple.com>
8120         * doc/invoke.texi (Precompiled Headers): Document some more options
8121         which are known to be safe.
8123 2005-08-16  James E Wilson  <wilson@specifix.com>
8125         PR tree-optimization/21105
8126         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
8127         TREE_OVERFLOW check.
8129 2005-08-16  David Edelsohn  <edelsohn@gnu.org>
8131         * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
8132         (neg_ltu<mode>): Same.
8133         (gtu<mode>): Same.
8134         (neg_gtu<mode>): Same.
8136 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8138         * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
8139         (fold_builtin_isdigit): Use fold_buildN.
8140         (build_function_call_expr): Likewise.
8141         * c-typeck.c (c_finish_loop): Likewise.
8143 2005-08-16  J"orn Rennecke <joern.rennecke@st.com>
8144             Richard Shann <rshann@superh.com>
8146         PR middle-end/20396:
8147         * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
8149 2005-08-16  Sebastian Pop  <pop@cri.ensmp.fr>
8151         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
8153 2005-08-15  Richard Earnshaw  <richard.earnshaw@arm.com>
8155         PR target/23355
8156         * arm.c (thumb_compute_save_reg_mask): Use similar logic to
8157         arm_compure_save_reg0_reg12_mask to determine when the PIC register
8158         must be saved.
8160 2005-08-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8162         PR middle-end/23369
8163         * fold-const.c (build_range_check): Disable optimization for function
8164         pointer expressions on targets that require function pointer
8165         canonicalization.
8167 2005-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
8169         * simplify-rtx.c (simplify_const_relational_operation): When
8170         extracting arguments of a COMPARE, recompute the mode as well.
8172 2005-08-15  Ian Lance Taylor  <ian@airs.com>
8174         * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
8176 2005-08-15  DJ Delorie  <dj@redhat.com>
8178         * config/m32c/mov.md (movqi_op): Immediates can't be moved to
8179         the stack.
8180         (movsi_splittable): Allow, but split, moves to the stack.
8181         * config/m32c/m32c.c (m32c_split_move): Always split moves to the
8182         stack.
8184 2005-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8186         * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
8187         * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
8188         * system.h (HOST_PTR_PRINTF): Don't define, poison it.
8190         * bitmap.c, c-decl.c, config/i386/i386-interix.h,
8191         config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
8192         Delete HOST_PTR_PRINTF.
8194         * configure, config.in: Regenerate.
8196 2005-08-15  David Edelsohn  <edelsohn@gnu.org>
8198         * config/rs6000/rs6000.md (QHSI): New mode macro.
8199         (wd): Extend mode attr for QImode and HImode
8200         (dbits): New mode attr.
8201         (zero_extend<mode>di2): Convert to mode macro.
8203 2005-08-15  Steve Ellcey  <sje@cup.hp.com>
8205         PR target/21841
8206         * doc/invoke.texi (-mgnu-ld): Update description.
8207         (-mhp-ld): Ditto.
8209 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
8211         PR 23391
8212         * Makefile.in (tree-chrec.o): Depends on real.h.
8213         * tree-chrec.c: Include real.h.
8214         (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
8215         chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
8216         * tree-scalar-evolution.c (add_to_evolution_1,
8217         interpret_rhs_modify_expr): Ditto.
8219 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
8221         PR 23386
8222         * tree-data-ref.c (estimate_niter_from_size_of_data): When
8223         step is negative compute the estimation from init downwards to zero.
8225 2005-08-14  James A. Morrison  <phython@gcc.gnu.org>
8227         * fold-const (fold_binary): Call fold_build2 instead of fold (build.
8229 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
8231         * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
8232         constraint.
8233         (legitimate_reload_constant_p): Fix handling of lliXX operands.
8234         Accept double-word constants that can be split.
8235         * config/s390/s390.md ("movti"): Use 'P' constraint.
8236         ("*movdi_31", "*movdf_31"): Likewise.
8238 2005-08-14  Daniel Berlin  <dberlin@dberlin.org>
8240         Fix PR tree-optimization/22615
8242         * tree-ssa-structalias.c (solution_set_add): Handle
8243         first_vi_for_offset returning NULL.
8244         (do_da_constraint): Ditto.
8245         (do_sd_constraint): Ditto.
8246         (do_ds_constraint): Ditto
8247         (find_func_aliases): Ditto.
8248         (build_constraint_graph): RHS is allowed be ANYTHING.
8249         (first_vi_for_offset): Return NULL if we couldn't find anything at
8250         the offset.
8252 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
8254         * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
8255         over memory as first operand.
8257 2005-08-14  H.J. Lu  <hongjiu.lu@intel.com>
8259         PR target/23360
8260         * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
8261         available for setting it.
8263 2005-08-14  Ira Rosen  <irar@il.ibm.com>
8265         PR tree-optimization/23320
8266         * tree-data-ref.c (base_addr_differ_p): Add comment. Check
8267         data-refs' types instead of base object nullness. Add check for
8268         pointer type data-refs before first location comparison. Remove
8269         assert.
8271 2005-08-14  Andreas Schwab  <schwab@suse.de>
8273         * doc/md.texi (Machine Constraints): Fix misplaced @end table.
8275 2005-08-13  James E Wilson  <wilson@specifix.com>
8277         * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
8278         * doc/invoke.texi (-Wstack-protector, -fstack-protector,
8279         -fstack-protector-all, --param ssp-buffer-size): Document.
8280         (-Wvariadic-macros): Alphabetize.
8281         (-fsched-stalled-insns-dep): Add missing 'f'.
8283         * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
8284         macros.
8286 2005-08-13  David Edelsohn  <edelsohn@gnu.org>
8288         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
8289         or indirect address operand.
8290         (EXTRA_ADDRESS_CONSTRAINT): New.
8291         * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
8293 2005-08-13  Sebastian Pop  <pop@cri.ensmp.fr>
8295         PR tree-optimization/22236
8296         * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
8297         successors and predecessors.
8298         * tree-chrec.c (chrec_convert): Before converting, check that
8299         sequences don't wrap.
8300         * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
8301         (analyze_array): Extern.
8302         (find_data_references_in_loop): Remove call to
8303         compute_estimated_nb_iterations.
8304         * tree-data-ref.h (analyze_array): Declared.
8305         * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
8306         single_ssa_def_operand, zero_ssa_operands): Fix documentation.
8307         * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
8308         * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
8309         condition.
8310         * tree-ssa-loop-ivcanon.c: Fix documentation.
8311         * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
8312         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
8313         (infer_loop_bounds_from_undefined): New.
8314         (estimate_numbers_of_iterations_loop): Use
8315         infer_loop_bounds_from_undefined.
8316         (used_in_pointer_arithmetic_p): New.
8317         (scev_probably_wraps_p): Pass an extra parameter.  Call
8318         used_in_pointer_arithmetic_p.  Check that AT_STMT is not null.
8319         (convert_step): Fix documentation.
8320         * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
8321         Use initial_condition_in_loop_num and evolution_part_in_loop_num
8322         instead of CHREC_LEFT and CHREC_RIGHT.  Adjust the call to
8323         scev_probably_wraps_p.
8325 2005-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
8327         * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
8328         (s390_register_info): Ignore clobbered_regs information for fixed
8329         registers, and only fixed registers.
8330         (s390_init_frame_layout): Remove redundant call.
8332 2005-08-12  Gerald Pfeifer  <gerald@pfeifer.com>
8334         * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
8335         description of -Wold-style-casts.
8337 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
8338             Jakub Jelinek  <jakub@redhat.com>
8340         * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
8341         * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
8342         * config/s390/s390.c (print_operand): New output modifier 'G' added.
8343         (get_thread_pointer): Renamed to s390_get_thread_pointer.
8344         * config/s390/s390.md (stack_protect_set, stack_protect_test): If
8345         TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
8346         (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
8347         (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
8348         ("stack_protect_set", "stack_protect_test"): New expanders.
8349         ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
8350         "stack_protect_testdi"): New insn definitions.
8352 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
8354         * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
8356 2005-08-12  Paul Brook  <paul@codesourcery.com>
8358         * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
8360 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
8362         * config/s390/predicates.md (setmem_operand): New predicate.
8363         (shift_count_operand): Accept ANDs with special constants as
8364         operand.
8365         * config/s390/s390.c (print_shift_count_operand): Skip ANDs
8366         with special constants.
8367         * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
8368         shift_count_operand with setmem_operand.
8370 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
8372         * config/s390/s390.c (s390_extract_part, s390_single_part):
8373         Type cast added.
8374         (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
8375         (s390_output_mi_thunk): Don't use lg on 31 bit.
8376         * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
8377         ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
8379 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
8381         * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
8382         (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
8383         s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
8384         s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
8385         with one of the new macros.
8387 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
8389         * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
8390         Don't set save_return_addr_p.
8391         (s390_register_info): Make clobbered_regs not depending on
8392         save_return_addr_p.
8394 2005-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
8396         * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
8397         (LINK_COMMAND_SPEC): Add space after %(link_ssp).
8399 2005-08-11  James E. Wilson  <wilson@specifix.com>
8401         * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
8403 2005-08-11  Jakub Jelinek  <jakub@redhat.com>
8405         * dwarf2out.c (add_location_or_const_value_attribute): Prefer
8406         locations gathered by var-tracking in single entry loc_list
8407         over loc_descriptor_from_tree.
8409         * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
8410         pass it down to loc_descriptor.
8411         (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
8412         (containing_function_has_frame_base): Move earlier in the file.
8413         (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
8414         instead of always assuming fbreg can't be used.
8416 2005-08-11  David Edelsohn  <edelsohn@gnu.org>
8418         * config/rs6000/altivec.md: Change constraint "m" to "Z".
8419         * config/rs6000/predicates.md (indexed_or_indirect_operand):
8420         Accept address wrapped in AND for Altivec.
8421         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
8422         Strip AND wrapping offset address for Altivec.
8424 2005-08-11  Richard Henderson  <rth@redhat.com>
8426         PR middle-end/23312
8427         * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
8428         before using TYPE_IS_SIZETYPE.
8430 2005-08-11  Richard Henderson  <rth@redhat.com>
8432         PR target/22225
8433         * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
8434         insn types not present on ev4.
8435         (alphaev5_insn_pipe): Similarly.
8437 2005-08-11  Richard Earnshaw  <richard.earnshaw@arm.com>
8439         PR target/23250
8440         * arm.c (arm_override_options): If the user has selected callee-super-
8441         interworking, then enable normal interworking.
8443 2005-08-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8445         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
8446         redefinition.
8448 2005-08-11  Wu Zhou  <woodzltc@cn.ibm.com>
8450         * doc/rtl.texi: Fix two typos.
8452 2005-08-11  Richard Guenther  <rguenther@suse.de>
8454         PR target/23289
8455         * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
8456         cases where we call to/from functions returning void.
8458 2005-08-10  James A. Morrison  <phython@gcc.gnu.org>
8460         PR c++/23225
8461         * tree.c (build_pointer_type_for_mode): Robustify.
8463 2005-08-10  James E Wilson  <wilson@specifix.com>
8465         * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
8466         (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
8468         * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
8469         "cum->".
8471 2005-08-10  Eric Christopher  <echristo@apple.com>
8473         * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
8474         * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
8475         V2DFmode.
8477 2005-08-10  Andrew Pinski  <pinskia@physics.uc.edu>
8479         PR target/21887
8480         * config/darwin.c (machopic_indirect_data_reference): Use a new register
8481         for the high part when generating dynamic-no-pic code.
8483 2005-08-10  H.J. Lu  <hongjiu.lu@intel.com>
8485         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
8486         (x86_64-*-linux*): Likewise.
8488         * config/i386/crtfastmath.c: New file.
8489         * config/i386/t-crtfm: Likewise.
8491         * config/i386/linux.h (ENDFILE_SPEC): New.
8492         * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
8494         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
8495         crtfastmath.o.
8497 2005-08-10  Dorit Nuzman  <dorit@il.ibm.com>
8499         * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
8500         (vec_shl, vec_shr): Document new operations.
8501         * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
8503 2005-08-10  David Edelsohn  <edelsohn@gnu.org>
8505         * config/rs6000/predicates.md (indexed_or_indirect_address): New.
8506         * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
8507         change predicate to indexed_or_indirect_address.
8509 2005-08-10  Richard Sandiford  <richard@codesourcery.com>
8511         * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
8512         * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
8513         __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
8514         and __aeabi_uwrite8.
8515         * config/arm/unaligned-funcs.c: New file.
8516         * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
8518 2005-08-09  Paolo Bonzini  <bonzini@gnu.org>
8520         * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
8521         Add dump.
8522         * cfglayout.c (pass_insn_locators_initialize): Add dump.
8523         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
8524         Add dump.
8525         * except.c (pass_convert_to_eh_region_ranges): Add dump.
8526         * final.c (pass_shorten_branches): Add dump.
8527         * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
8528         (pass_life): Rename dump.
8529         (rest_of_handle_flow2): Remove initial verify_flow_info.
8530         * function.c (pass_instantiate_virtual_regs): Add dump.
8531         * integrate.c (pass_initial_value_sets): Add dump.
8532         * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
8533         * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
8534         (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
8535         pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
8536         (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
8537         gate_rtl_unrool_and_peel_loops): New.
8538         (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
8539         rtl_doloop): Do not look at flags.
8540         * mode-switching.c (pass_mode_switching): Add dump.
8541         * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
8542         pass_split_before_regstack): Add dump.
8543         * regmove.c (pass_stack_adjustments): Add dump.
8544         * tree-optimize.c (pass_fixup_cfg): Add dump.
8546 2005-08-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
8548         PR 23309
8549         * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
8550         deciding which instruction sequence to use.
8552 2005-08-09  Dorit Nuzman  <dorit@il.ibm.com>
8554         * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
8555         BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
8557 2005-08-09  Richard Guenther  <rguenther@suse.de>
8559         * c-common.c (builtin_function_2): Remove.
8560         (def_builtin_1): New function.
8561         (c_common_nodes_and_builtins): Use def_builtin_1 to
8562         build builtin functions.
8564 2005-08-09  Jie Zhang  <jie.zhang@analog.com>
8566         * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
8567         * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
8568         * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
8569         Visual DSP.
8571 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
8573         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
8574         fold_binary instead of fold_build2 since we don't care about the
8575         resulting tree.
8576         (loop_niter_by_eval): Likewise.
8577         (compare_trees): Likewise.
8578         (proved_non_wrapping_p): Likewise.
8580 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
8582         PR c/23161
8583         PR c/23165
8584         * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
8585         if the if is really empty.
8587 2005-08-09  Steven Bosscher  <stevenb@suse.de>
8589         PR tree-optimization/23234
8590         * tree-ssa-math-opts.c (place_reciprocal): New enum.
8591         (execute_cse_reciprocals_1): Replace the 'phi' argument with an
8592         argument of the new enum.
8593         (execute_cse_reciprocals): Add reciprocals for function arguments
8594         on the unique successor edge of the entry block.  Update other calls
8595         to execute_cse_reciprocals_1.
8597 2005-08-08  Richard Henderson  <rth@redhat.com>
8599         PR 22439
8600         * gimplify.c (gimplify_one_sizepos): Preserve the original type.
8602 2005-08-08  Bob Wilson  <bob.wilson@acm.org>
8604         * expr.c (write_complex_part): Return after handling MEM.
8606 2005-08-08  Josh Conner  <jconner@apple.com>
8608         PR rtl-optimization/23241
8609         * combine.c (simplify_comparison): Fix error in determining
8610         whether to lift a subreg from comparison.
8612 2005-08-08  David Edelsohn  <edelsohn@gnu.org>
8614         PR target/18506
8615         * config/rs6000/altivec.md (vec_init<mode>): New.
8616         (vec_set<mode>): New.
8617         (vec_extract<mode>): New.
8618         * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
8619         (rs6000_expand_vector_set): New.
8620         (rs6000_expand_vector_extract): New.
8621         (rs6000_legitimate_offset_address_p): Offset addresses are valid
8622         for Altivec modes before reload.
8623         (altivec_expand_vec_init_builtin): New.
8624         (get_element_number): New.
8625         (altivec_expand_vec_set_builtin): New.
8626         (altivec_expand_vec_ext_builtin): New.
8627         (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
8628         builtins.
8629         (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
8630         builtins.
8631         * config/rs6000/rs6000.h (rs6000_builtins): Add
8632         ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
8633         ALTIVEC_BUILTIN_VEC_EXT_<mode>.
8634         * config/rs6000/rs6000-protos.h: Declare new functions.
8636 2005-08-08  Jan Hubicka  <jh@suse.cz>
8638         * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
8639         (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
8640         * i386.md (movdi*): Use pic_32bit_operand.
8641         * predicates.md (pic_32bit_operand): New.
8643 2005-08-08  Nathan Sidwell  <nathan@codesourcery.com>
8645         PR c++/21166
8646         * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
8648 2005-08-07  James A. Morrison  <phython@gcc.gnu.org>
8650         * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
8651         (test_for_singularity): Use fold_build2.
8653 2005-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8655         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
8657 2005-08-07  Danny Smith  <dannysmith@users.sourceforge.net>
8659         * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
8660         (COMMON_ASM_OP) Define.
8661         * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
8662         (ix86_encode_section_info): Likewise.
8663         (TARGET_ENCODE_SECTION_INFO): Conditionally define as
8664         SUBTARGET_ENCODE_SECTION_INFO.
8666 2005-08-06  Richard Henderson  <rth@redhat.com>
8668         PR 21894
8669         * tree-nested.c (convert_local_reference): Save and restore val_only
8670         around component_ref and friends.  Clear walk_subtrees by default.
8672 2005-08-06  Peter O'Gorman  <peter@pogma.com>
8674         PR 21366
8675         * gcc.c (process_command): Check the argument to -b has a dash.
8676         * doc/invoke.texi: Update -b and -V docs.
8678 2005-08-06  James E Wilson  <wilson@specifix.com>
8680         * config/mips/cross64.h, config/mips/t-cross64: Delete.
8682 2005-08-06  Michael Matz  <matz@suse.de>
8684         * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
8685         member only if only one insn is associated with the value.
8687 2005-08-06  Nick Clifton  <nickc@redhat.com>
8689         * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
8690         New define.
8691         (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
8692         * config/stormy16/stormy16.c (xstormy16_below100_symbol):
8693         Check symbol flags instead of symbol name mangling.
8694         (xstormy16_asm_output_aligned_common): Likewise.  Also
8695         simplify code since the bss100_section cass is the only case
8696         where the below100 code will be triggered.
8697         (xstormy16_encode_section_info): Encode below100 attribute
8698         using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
8699         the name.
8700         (xstormy16_strip_name_encoding): Delete - this function is no
8701         longer needed.
8702         (TARGET_STRIP_NAME_ENCODING): Undefine.
8703         * config/stormy16/stormy16-protos.h: Delete prototype for
8704         xstormy16_strip_name_encoding.
8706 2005-08-06  Kazu Hirata  <kazu@codesourcery.com>
8708         * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
8709         config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
8710         tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
8711         config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
8712         config/alpha/predicates.md, config/arc/arc.h,
8713         config/arm/arm.h, config/arm/ieee754-df.S,
8714         config/arm/ieee754-sf.S, config/bfin/bfin.c,
8715         config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
8716         config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
8717         config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
8718         config/m68hc11/m68hc11.h, config/mips/mips.c,
8719         config/mips/mips.h, config/mips/openbsd.h,
8720         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
8721         config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
8722         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
8723         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
8724         config/sparc/linux.h, config/sparc/linux64.h,
8725         config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
8726         doc/extend.texi, doc/gcov.texi, doc/install.texi,
8727         doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
8728         typos.  Follow spelling conventions.
8730 2005-08-06  Joseph S. Myers  <joseph@codesourcery.com>
8732         PR c/23113
8733         * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
8734         Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
8735         specially.  Check for side effects only for COND_EXPR.
8736         * c-typeck.c (c_finish_stmt_expr): Mark statement expression
8737         return with TREE_NO_WARNING.
8739 2005-08-06  Richard Sandiford  <richard@codesourcery.com>
8741         PR rtl-optimization/23233
8742         * loop.c (combine_movables): Require the modes to be the same.
8743         (move_movables): Remove handling of cases where the replacement
8744         had a different mode to the original.
8746 2005-08-05  James A. Morrison  <phython@gcc.gnu.org>
8748         PR tree-optimization/23128
8749         * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
8750         subtraction wrap, and set TREE_OVERFLOW if they do.
8752 2005-08-05  Richard Henderson  <rth@redhat.com>
8754         PR 21728
8755         * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
8756         FORCED_LABEL labels.
8758 2005-08-05  J"orn Rennecke <joern.rennecke@st.com>
8760         PR middle-end/23135
8761         * reload.c (find_reloads_subreg_address): Pass down TYPE
8762         unchanged.  Change all callers except find_reloads_toplev.
8764 2005-08-05  Michael Matz  <matz@suse.de>
8766         * genattrtab.c (current_alternative_string): Remove.
8767         (SIMPLIFY_ALTERNATIVE): Ditto.
8768         (attr_alt_bit_p): Ditto.
8769         (alternative_name): Make const char *.
8770         (evaluate_eq_attr): Remove use of above things.
8771         (simplify_test_exp): Ditto.
8772         (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
8773         (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
8775 2005-08-04  James E Wilson  <wilson@specifix.com>
8777         * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
8778         config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
8779         config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
8780         config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
8781         (LINK_SPEC): Delete useless %{Wl,*:%*} item.
8783 2005-08-04  Richard Henderson  <rth@redhat.com>
8785         PR 21529
8786         * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
8787         * params.h (SRA_MAX_STRUCTURE_COUNT): New.
8788         * tree-sra.c (decide_block_copy): Use it.  Disable element copy
8789         if we'd have to instantiate too many members.
8791 2005-08-04  Richard Henderson  <rth@redhat.com>
8793         PR 21291
8794         * tree-outof-ssa.c (coalesce_asm_operands): New.
8795         (coalesce_ssa_name): Use it.  Split out ...
8796         (coalesce_phi_operands, coalesce_result_decls): ... these.
8798 2005-08-04  Paul Brook  <paul@codesourcery.com>
8800         * read-rtl.c (read_quoted_string): Break if EOF.
8802 2005-08-04  Andrew Pinski  <pinskia@physics.uc.edu>
8804         * tree.h (fold_build1): Change to macro and call fold_build1_stat.
8805         (fold_build2): Likewise.
8806         (fold_build3): Likewise.
8807         (fold_build1_stat): New function prototype.
8808         (fold_build2_stat): Likewise.
8809         (fold_build3_stat): Likewise.
8810         * fold-const.c (fold_build1): Rename to ..
8811         (fold_build1_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
8812         through to build1_stat.
8813         (fold_build2): Rename to ..
8814         (fold_build2_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
8815         through to build2_stat.
8816         (fold_build3): Rename to ..
8817         (fold_build3_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
8818         through to build3_stat.
8820 2005-08-04  David Edelsohn  <edelsohn@gnu.org>
8821             Ian Lance Taylor  <ian@airs.com>
8823         * function.c (assign_stack_local_1): Do not correct stack slot
8824         address if allocation size is smaller than mode size.
8826 2005-08-04  Diego Novillo  <dnovillo@redhat.com>
8828         PR 22037
8829         * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
8830         (tree_merge_blocks): Propagate anything allowed by
8831         may_propagate_copy.
8832         Clarify documentation.
8833         * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
8834         SSA form, schedule an update if necessary.
8836 2005-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
8838         * doc/install.texi (Binaries): Remove broken link to
8839         Sinix/Reliant Unix binaries.
8841 2005-08-03  Richard Henderson  <rth@redhat.com>
8843         PR 23221
8844         * function.c (stack_protect_epilogue): Export.
8845         * tree.h (stack_protect_epilogue): Declare.
8846         * calls.c (expand_call): Call it.
8848 2005-08-03  Eric Christopher  <echristo@apple.com>
8850         * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
8851         * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
8852         spec.
8854 2005-08-04  Jan Hubicka  <jh@suse.cz>
8856         * profile.c (branch_prob): Split edges with goto locus on them
8857         to get proper line counts.
8858         * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
8860 2005-08-03  Paul Brook  <paul@codesourcery.com>
8862         * function.c (assign_parms): Round current_function_args_size
8863         to PARM_BOUNDARY, not STACK_BOUNDARY.
8865 2005-08-03  Geoffrey Keating  <geoffk@apple.com>
8867         * config/i386/i386.c (x86_elf_aligned_common)
8868         (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
8870 2005-08-03  Zdenek Dvorak  <dvorakz@suse.cz>
8872         PR tree-optimization/23157
8873         * tree-scalar-evolution.c (scev_const_prop): Unshare trees
8874         before emitting them.
8876 2005-08-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8878         PR tree-optimization/19899
8879         * Makefile.in (tree-scalar-evolution.o): Add real.h.
8880         * tree-scalar-evolution.c: Include real.h.
8881         (add_to_evolution): Build constant -1 of correct type.
8883 2005-08-03  Jan Hubicka  <jh@suse.cz>
8885         * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
8886         * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
8887         profile updating for complette unrolling.
8888         * loop-unroll.c (peel_loop_completely): Use it.
8889         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
8890         (tree_unroll_loops_completely): Disable code growing unrolling of cold
8891         loops.
8893 2005-08-03  Paul Brook  <paul@codesourcery.com>
8895         * combine.c (can_change_dest_mode): New function.
8896         (try_combine, simplify_set): Use it.
8898 2005-08-03  Eric Botcazou  <ebotcazou@adacore.com>
8900         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
8901         TFmode to BLKmode.
8903 2005-08-03  Gerald Pfeifer  <gerald@pfeifer.com>
8905         * doc/install.texi (Specific): Adjust link to openavr.org.
8906         (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
8907         (Binaries): Adjust HP-UX Porting Center link.
8908         (Binaries): Adjust Free Software Foundation ordering link.
8910 2005-08-03  Andrew Pinski  <pinskia@physics.uc.edu>
8912         * convert.c (convert_to_integer): Use fold_build1 instead of
8913         build1 when converting an integer to an integer.
8915 2005-08-02  Richard Henderson  <rth@redhat.com>
8917         * combine.c (combine_instructions): Don't use reg_equal/equiv
8918         results if the mode doesn't match.
8920 2005-08-02  Mark Mitchell  <mark@codesourcery.com>
8922         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
8923         * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
8925 2005-08-02  Richard Henderson  <rth@redhat.com>
8927         PR 23196
8928         * explow.c (memory_address): Remove special-case for
8929         virtual_stack_vars_rtx and virtual_incoming_args_rtx.
8931 2005-08-02  Diego Novillo  <dnovillo@redhat.com>
8933         PR 23164
8934         * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
8935         number of calls to cleanup_tree_cfg_1.
8937 2005-08-02  Martin Reinecke  <martin@mpa-garching.mpg.de>
8939         * doc/invoke.texi: document file extensions .F90 and .F95
8941 2005-08-02  Richard Guenther  <rguenther@suse.de>
8943         * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
8944         positive if its first argument is positive.
8946 2005-08-02  Richard Guenther  <rguenther@suse.de>
8948         PR tree-optimization/23177
8949         * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
8950         on TMR_TAG.
8952 2005-08-02  James A. Morrison  <phython@gcc.gnu.org>
8954         PR tree-optimization/23129
8955         * tree-vrp.c (extract_range_from_binary_expr): Set value range to
8956         varying for divisions with anti-ranges.
8958 2005-08-02  Jan Hubicka  <jh@suse.cz>
8960         * tree-ssa-dom.c (thread_across_edge): Remove updating here.
8961         * tree-ssa-threadupdate.c (thread_block): Add it here.
8963 2005-08-01  James E Wilson  <wilson@specifix.com>
8965         * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
8966         TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
8967         * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
8968         New.
8969         * config/mips/predicates.md (const_call_insn_operand): Add check for
8970         SYMBOL_REF_LONG_CALL_P.
8971         * doc/extend.texi (long_call): Document the new attribute.
8973 2005-08-01  Ian Lance Taylor  <ian@airs.com>
8974             Richard Henderson  <rth@redhat.com>
8976         * Makefile.in (RTL_BASE_H): Add real.h.
8977         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
8978         instead of memcpy.
8979         * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
8980         directly.
8981         * rtl.c (rtl_check_failed_code_mode): New.
8982         * rtl.h (struct rtx_def): Add u.rv.
8983         (XCMWINT, XCNMPRV): New.
8984         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
8985         (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
8987 2005-08-01  Richard Henderson  <rth@redhat.com>
8989         * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
8990         with auto-inc codes.
8992         * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
8994 2005-08-01  Jan Hubicka  <jh@suse.cz>
8996         * i386-protos.h (asm_preferred_eh_data_format): Declare.
8997         * i386.c: Include dwarf2.h
8998         (asm_preferred_eh_data_format): New.
8999         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
9001 2005-08-01  Ian Lance Taylor  <ian@airs.com>
9003         * config/host-linux.c (linux_gt_pch_get_address): Add new name
9004         randomize_va_space for virtual address randomization control.
9006 2005-08-01  Steven Bosscher  <stevenb@suse.de>
9008         * common.opt (flag_ipa_cp): Put in right place to maintain
9009         alphabetic sort.
9011 2005-08-01  Jan Hubicka  <jh@suse.cz>
9013         * profile.c (compute_value_histograms): Fix thinko.
9014         * value-prof.c: Include toplev.h
9015         (check_counter): New function.
9016         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
9017         tree_mod_subtract_transform): Add sanity check.
9019 2005-08-01  Richard Guenther  <rguenther@suse.de>
9021         PR tree-optimization/23133
9022         * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
9023         current functions parameter decls to find defs to cse
9024         reciprocals of.
9026 2005-08-01  Richard Guenther  <rguenther@suse.de>
9028         PR tree-optimization/23109
9029         * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
9030         If trapping math is in effect, use post-dominator information
9031         to check if we'd in any case reach a trapping point before
9032         doing the reciprocal insertion.
9033         (execute_cse_reciprocals): Compute post-dominators, if necessary.
9034         * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
9035         expressions are invariant only if trapping math is not in effect.
9037 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
9039         * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
9040         cgraph_function_versioning): New declarations.
9041         * cgraphunit.c: Add include to ipa-prop.h.
9042         (update_call_expr, cgraph_copy_node_for_versioning,
9043         cgraph_function_versioning): New functions.
9044         * integrate.c (copy_decl_for_inlining): Remove.
9045         * ipa-prop.h (ipa_replace_map): New struct.
9046         (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
9047         * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
9048         ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
9049         ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
9050         ipcp_iterate_stage, ipcp_method_scale_print,
9051         ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
9052         ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
9053         ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
9054         ipcp_update_bb_counts, ipcp_update_profiling,
9055         ipcp_update_edges_counts): New functions.
9056         (ipcp_method_cval_init): Remove restriction regarding local methods.
9057         (ipcp_init_stage): Add ipcp_method_compute_scale.
9058         (ipcp_insert_stage): Add versioning.
9059         (ipcp_structures_print): Add ipcp_method_scale_print.
9060         (ipcp_driver): Dump profiling info.
9061         * Makefile.in: Remove integrate.h dependency from tree-inline.o.
9062         Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
9063         * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
9064         (struct inline_data): Add versioning_p, ipa_info, new fields.
9065         (remap_decl, mark_local_for_remap_r, setup_one_parameter,
9066         declare_return_variable): Replace calls to copy_decl_for_inlining with
9067         copy_decl_for_dup.
9068         (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
9069         versioning support.
9070         (copy_decl_for_dup): Rename from copy_decl_for_inlining.
9071         Add argument VERSIONING.
9072         (copy_arguments_for_versioning, copy_static_chain,
9073         function_versionable_p, tree_versionable_function_p,
9074         tree_function_versioning, replace_ref_tree): New functions.
9075         * tree-inline.h: Include varray.h.
9076         (tree_versionable_function_p,  tree_function_versioning,
9077         tree copy_decl_for_dup): New declarations.
9079 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
9081         * ipa-cp.c: New file. Contains IPCP specific functionality.
9082         * ipa-prop.h: New file. Contains structures/definitions that can be
9083         used by several interprocedural data flow optimizations (and also IPCP).
9084         * ipa-prop.c: New file.
9085         * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
9086         * common.opt: Add ipa-cp flag.
9087         * timevar.def: Add IPCP optimization.
9088         * tree-optimize.c (init_tree_optimization_passes): Schedule
9089         pass_ipa_cp.
9090         * tree-pass.h (pass_ipa_cp): Declare.
9092 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
9094         * dwarf2out.c, fold-const.c, ipa-type-escape.c,
9095         loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
9096         tree-sra.c, config/arm/arm.c, config/crx/crx.c,
9097         config/i386/i386.c, config/mips/mips.h,
9098         config/rs6000/rs6000.h, config/sh/sh.c,
9099         config/stormy16/stormy16.c: Fix comment typos.
9101 2005-08-01  Joseph S. Myers  <joseph@codesourcery.com>
9103         PR c/22311
9104         * c-typeck.c (build_binary_op): Use common_type wrapper on
9105         shortened types.
9106         (common_type): Update comment.
9108 2005-07-31  Steven Bosscher  <stevenb@suse.de>
9110         PR target/23095
9111         * common.opt (flag_gcse_after_reload): Don't initialize to 2.
9112         (flag_rerun_cse_after_loop): Initialize this to 2 instead.
9113         * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
9115 2005-07-31  Jan Hubicka  <jh@suse.cz>
9117         * pretty-print.h (pp_widest_integer): New macro.
9118         * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
9119         counts.
9121 2005-07-31  Jan Hubicka  <jh@suse.cz>
9123         * output.h (enum section_category): Export from varasm.c
9124         (categorize_decl_for_section): Likewise.
9125         * varasm.c (enum section_category): Kill.
9126         (categorize_decl_for_section): Make global.
9127         * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
9128         Declare.
9129         * i386.c (ix86_section_threshold): New static variable.
9130         (ix86_in_large_data_p, ix86_encode_section_info,
9131         x86_64_elf_unique_section,
9132         x86_64_elf_select_section): New functions.
9133         (TARGET_ENCODE_SECTION_INFO): Define
9134         (override_options): Enable medium model for PIC.
9135         (ix86_expand_prologue): Expand gen_set_got_rex64.
9136         (legitimate_constant_p): Handle new UNSPECs.
9137         (legitimate_pic_address_disp_p): Likewise.
9138         (legitimize_pic_address): Lower MEDIUM model addressing.
9139         * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
9140         (enum cmodel): Add MEDIUM_PIC.
9141         (SYMBOL_REF_FAR_ADDR_P): New macro.
9142         (SYMBOL_FLAG_FAR_ADDR): New flag.
9143         * i386.md (movdi): Support medium model.
9144         (set_got_rex64): New pattern.
9145         * i386.opt (mlarge-data-threshold): New flag.
9146         * predicates.md (zext_operand/sext_operand): Deal with medium model.
9147         * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
9148         (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
9149         TARGET_ASM_UNIQUE_SECTION): New.
9151         * invoke.texi (-mlarge_data_threshold): Document
9153 2005-07-31  Jan Hubicka  <jh@suse.cz>
9155         * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
9156         (coalesce_vars): Likewise.
9157         * tree-ssa-live.c (coalesce_cost): New.
9158         (build_tree_conflict_graph): Use coalesce_cost.
9159         * tree-ssa-live.h (coalesce_cost): Declare.
9161 2005-07-30  Richard Earnshaw  <richard.earnshaw@arm.com>
9163         * arm.md (all peepholes for post-increment operations): Delete.
9164         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
9165         (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
9166         (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
9167         (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
9168         (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
9170 2005-07-30  James A. Morrison  <phython@gcc.gnu.org>
9172         * fold-const.c (tree_expr_nonnegative_p): Always return true for
9173         non-integral types.
9175 2005-07-29  Wolfgang Bangerth <bangerth@dealii.org>
9177         PR target/22582
9178         * doc/invoke.texi: Document -rdynamic.
9180 2005-07-30  Joseph S. Myers  <joseph@codesourcery.com>
9182         PR c/23143
9183         * c-parser.c (c_parser_parms_list_declarator): Call
9184         mark_forward_parm_decls.
9185         * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
9186         decls with visibility structure.
9188 2005-07-30  Paul Brook  <paul@codesourcery.com>
9190         * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
9192 2005-07-30  Paul Brook  <paul@codesourcery.com>
9194         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
9195         prototype.
9196         * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
9197         value for mode.
9198         * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
9200 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
9202         PR c/529
9203         * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
9204         nested function declarators.
9205         (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
9206         (grokparms): Call warn_if_shadowing for parameters used within the
9207         parameter list.
9208         (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
9209         not used within the parameter list.
9210         (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
9212 2005-07-30  Jan Hubicka  <jh@suse.cz>
9214         * expr.c (expand_expr_real_1): Do not load mem targets into register.
9215         * i386.c (ix86_fixup_binary_operands): Likewise.
9216         (ix86_expand_unary_operator): Likewise.
9217         (ix86_expand_fp_absneg_operator): Likewise.
9218         * optabs.c (expand_vec_cond_expr): Validate dest.
9220 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
9222         PR c/21720
9223         * real.c (real_from_string): Also set last bit if there is a
9224         nonzero hex digit beyond GCC's internal precision after ".".
9226 2005-07-29  David Edelsohn  <edelsohn@gnu.org>
9228         * config/rs6000/altivec.md: Convert UNSPEC numerical values to
9229         define_constants.  Change duplicate values to unassigned numbers.
9230         Change UNSPEC_SUBS to UNSPEC_VSUBS.
9231         (*altivec_vspltsf): New.
9232         (altivec_vperm_v4sf): Delete.
9233         (altivec_vperm_<mode>): Use mode macro V.
9234         (altivec_vsldoi_<mode>): Convert to mode macro pattern.
9235         (altivec_predicate_v4sf): Delete.
9236         (altivec_predicate_<mode>): Use mode macro V.
9237         (*altivec_lvesfx): New.
9238         (*altivec_stvesfx): New.
9239         (vec_realign_load_v4sf): Delete.
9240         (vec_realign_load_<mode>): Use mode macro V.
9241         * config/rs6000/rs6000.c (generate_set_vrsave): Use
9242         UNSPECV_SET_VRSAVE.
9244 2005-07-29  Mark Mitchell  <mark@codesourcery.com>
9246         PR bootstrap/23131
9247         * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
9248         string.
9249         * configure: Regenerated.
9251 2005-07-29  Paul Brook  <paul@codesourcery.com>
9253         * doc/install.texi: Add link to GFortran binaries wiki page.
9255 2005-07-29  David Ung  <davidu@mips.com>
9257         * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
9258         (mips_rtx_cost_data): Add costs for 5kc and 5kf.
9259         * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
9260         * config/mips/mips.md (cpu): Add 5kf name.
9261         (includes): Includes 5k.md.
9262         * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
9263         * doc/invoke.texi (MIPS Options): Updated cpu name supported with
9264         -march flag.
9266 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
9268         PR 22550
9269         * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
9270         (cleanup_tree_cfg): ... here.
9271         Call cleanup_tree_cfg_1 until there are no more cleanups to
9272         do.
9274 2005-07-29  James A. Morrison  <phython@gcc.gnu.org>
9276         * tree-vrp.c (compare_range_with_value): Return true or false
9277         for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
9278         EQ_EXPR respectively.
9280 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
9282         * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
9283         Fix comment typos.
9285 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
9287         * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
9288         (tree_ssa_dominator_optimize): Increment it.
9289         (dump_dominator_optimization_stats): Print it.
9291 2005-07-29  Richard Earnshaw  <richard.earnshaw@arm.com>
9292             Steven Bosscher  <stevenb@suse.de>
9294         PR rtl-optimization/23117
9295         * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
9296         when head == tail.  Tidy comment.
9298 2005-07-28  Richard Henderson  <rth@redhat.com>
9300         * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
9301         * cselib.c (rtx_equal_for_cselib_p): Likewise.
9302         * jump.c (rtx_renumbered_equal_p): Likewise.
9303         * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
9304         CONST_INT and CONST_DOUBLE.
9305         (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
9306         * reload.c (operands_match_p): Special case CONST_INT and
9307         CONST_DOUBLE; check mode earlier.
9309 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
9311         PR c/22240
9312         * c-typeck.c (convert_for_assignment): Do not check
9313         DECL_IN_SYSTEM_HEADER on NULL fundecl.
9315 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
9317         PR c/22192
9318         * c-typeck.c (composite_type): Prefer constant size arrays to
9319         VLAs.
9321 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
9323         PR c/21720
9324         * real.c (real_from_string): Set last bit if there is a nonzero
9325         hex digit beyond GCC's internal precision.
9327 2005-07-28  Richard Henderson  <rth@redhat.com>
9329         PR rtl-opt/22619
9330         * cfgcleanup.c (try_forward_edges): Watch out for end of
9331         insn chain.
9333 2005-07-28  James E Wilson  <wilson@specifixinc.com>
9335         PR c/23106
9336         * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
9338 2005-07-28  Jan Hubicka  <jh@suse.cz>
9340         * Makefile.in (rtl-profile.o): Kill all traces of it.
9341         * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
9342         * coverage.h (rtl_coverage_counter_ref): Kill.
9343         * opts.c (flag_speculative_prefetching_set): Kill.
9344         (flag_loop_optimize_set): New.
9345         (common_handle_option): Disable loop optimizer when profiling;
9346         do not handle speculative prefetching.
9347         * passes.c (init_optimization_passes): Replace pass_profiling combo
9348         by branch_prob pass.
9349         * profile.c (compute_value_histograms): Update for simplified value
9350         profiles.
9351         (rtl_register_profile_hooks): Kill.
9352         (pass_profiling): Kill.
9353         (rest_of_handle_branch_prob): Do not profile.
9354         * toplev.c (process_options): Remove speculative prefetching.
9355         * toplev.h (flag_tree_based_profiling): Kill.
9356         * tree-profile.c (prepare_instrumented_value,
9357         tree_gen_interval_profiler, tree_gen_pow2_profiler,
9358         tree_gen_one_value_profiler, do_tree_profiling): Update for
9359         simplified datastructures.
9360         * value-prof.c: Add comment that speculative prefetching was dropped;
9361         update rest of file for simplified datastructures.
9362         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
9363         rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
9364         find_mem_reference_1, find_mem_reference_2, find_mem_reference,
9365         rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
9366         rtl_mod_subtract, gen_speculative_prefetch,
9367         rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
9368         rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
9369         (gate_handle_value_profile_transformations,
9370         rest_of_handle_value_profile_transformations,
9371         pass_value_profile_transformations): Kill.
9372         * value-prof.h (histogram_value_t): Remove IL based unions.
9373         (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
9374         rtl_profile_hooks): Remove hooks.
9376         * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
9378         * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
9379         (cgraph_clone_node): Likewise.
9380         * cgraph.h (cgraph_clone_edge): Update prototype.
9381         (cgraph_clone_node): Likewise.
9382         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
9383         cgraph_clone_node.
9384         (lookup_recursive_calls): Consider profile.
9385         (cgraph_decide_recursive_inlining): Fix updating; use new
9386         probability argument; use profile.
9387         * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
9388         * tree-inline.c (copy_bb): Update clal of clone_edge.
9389         * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
9391         * invoke.texi (min-inline-recursive-probability): Document.
9393 2005-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
9395         * doc/install.texi (Configuration): Update Valgrind homepage.
9397 2005-07-28  Richard Henderson  <rth@redhat.com>
9399         PR middle-end/21362
9400         * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
9401         labels we want to delete.
9402         (cfg_layout_merge_blocks): Likewise.
9404 2005-07-28  Richard Henderson  <rth@redhat.com>
9406         PR target/17692
9407         * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
9408         when expanding to nothing.
9410 2005-07-28  Josh Conner  <jconner@apple.com>
9412         * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
9413         (cgraph_decide_inlining_of_small_functions): Likewise.
9415 2005-07-28  Josh Conner  <jconner@apple.com>
9417         * ipa-inline.c (cgraph_edge_badness): Update comments.  Invert shift
9418         direction of badness if negative.
9419         (cgraph_default_inline_p): Add reason to parameters, and assign it
9420         a value.
9421         (cgraph_decide_inlining_of_small_functions): New parameter in call
9422         to cgraph_default_inline_p.
9423         (cgraph_decide_inlining_incrementally): Likewise.
9424         * cgraphunit.c (decide_is_function_needed): Likewise.
9425         * cgraph.h (cgraph_default_inline_p): Likewise.
9427 2005-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9429         * builtins.c: Fix comment typo(s).
9430         * genautomata.c: Likewise.
9431         * gimplify.c: Likewise.
9432         * tree-dfa.c: Likewise.
9433         * tree-flow-inline.h: Likewise.
9434         * tree-into-ssa.c: Likewise.
9435         * tree-ssa-alias.c: Likewise.
9436         * tree-ssa-ccp.c: Likewise.
9437         * tree-ssa-copy.c: Likewise.
9438         * tree-ssa-dce.c: Likewise.
9439         * tree-ssa-dom.c: Likewise.
9440         * tree-ssa-operands.c: Likewise.
9441         * tree-tailcall.c: Likewise.
9442         * tree-vectorizer.c: Likewise.
9443         * tree-vrp.c: Likewise.
9444         * tree.c: Likewise.
9446 2005-07-28  Jeff Law  <law@redhat.com>
9448         * tree-vrp.c (test_for_singularity): Extracted from  ...
9449         (simplify_cond_using_ranges): Attempt to simplify a relational
9450         test to NE_EXPR.  Dump information when a COND_EXPR is simplified.
9452 2005-07-28  Dorit Nuzman  <dorit@il.ibm.com>
9454         PR tree-optimization/22506
9455         * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
9456         phis whose argument is constant.
9458 2005-07-28  J"orn Rennecke <joern.rennecke@st.com>
9460         PR rtl-optimization/18992
9461         Back out this patch:
9462           2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9463           PR optimization/12142
9464           * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
9465           uses of the register in the SET_SRC.  Remove unnecessary argument.
9467         Replace it with this:
9468         * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
9469         if flag_non_call_exceptions is set and the insn may trap, pass
9470         pc_rtx as dest for recursion.
9471         In SET_SRC part of SET case, if dest is already set, pass it down
9472         unchanged.
9474 2005-07-28  Jan Hubicka  <jh@suse.cz>
9476         * cfg.c (update_bb_profile_for_threading): Use RDIV.
9477         (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
9478         (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
9479         roundoff errors.
9480         * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
9481         profile when available.
9483 2005-07-28  Jan Beulich <jbeulich@novell.com>
9485         * config/ia64/ia64.c (ia64_load_pair_ok): New.
9486         (ia64_print_operand): Describe and handle 'X'.
9487         (ia64_register_move_cost): Also handle FP_REGS.
9488         (ia64_preferred_reload_class): Likewise.
9489         (ia64_secondary_reload_class): Likewise.
9490         (ia64_dependencies_evaluation_hook): New local variable c. Initialize
9491         it. Also check for ITANIUM_CLASS_FLDP.
9492         * config/ia64/ia64.h (FP_REGNO_P): New.
9493         (HARD_REGNO_MODE_OK): Remove explusion of TImode.
9494         (reg_class): Add FP_REGS.
9495         (REG_CLASS_NAMES): Adjust for it.
9496         (REG_CLASS_CONTENTS): Likewise.
9497         (REGNO_REG_CLASS): Use FP_REGS where appropriate.
9498         (REG_CLASS_FROM_LETTER): Handle 'x'.
9499         (CLASS_MAX_NREGS): Handle FP_REGS.
9500         (MEMORY_MOVE_COST): Likewise.
9501         * config/ia64/ia64.md (itanium_class): Add fldp.
9502         (type): Handle fldp.
9503         (movti_internal): More allowable operand combinations. Use ldfp8 when
9504         splitting unnecessary. Remove predicable attribute. Adjust
9505         itanium_class attribute.
9506         (smuldi3_highpart): Remove outdated comment.
9507         (mulditi3, umulditi3, rotlti3): New expanders.
9508         (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
9509         (absti2): Disabled new insn for future reference.
9510         Respective new splitters.
9511         * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
9512         * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
9513         * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
9515 2005-07-25  James A. Morrison  <phython@gcc.gnu.org>
9517         PR rtl-optimization/23047
9518         * simplify-rtx.c (simplify_const_relational_operation): Respect
9519         flag_wrapv for comparisons with ABS.
9521 2005-07-27  James A. Morrison  <phython@gcc.gnu.org>
9523         PR tree-optimization/22493
9524         * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
9525         VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
9527 2005-07-27  Aldy Hernandez  <aldyh@redhat.com>
9529         * config/frv/frv.opt (moptimize-membar): New.
9531         * doc/invoke.texi: Document -moptimize-membar and its inverse.
9533         * config/frv/frv.h: Remove machine_function definition.
9535         * config/frv/frv.c (struct frv_io): New.
9536         (struct machine_function): Moved from frv.h.  Add has_membar_p.
9537         (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
9538         (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
9539         (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
9540         (frv_optimize_membar_global, frv_optimize_membar): New functions.
9541         (frv_reorg): Call frv_optimize_membar when appropriate.
9542         (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
9543         (frv_expand_builtin): Adjust calls accordingly.
9544         (frv_io_address_cookie): New function.
9545         (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
9546         load or store rather than a special insn.  Add ccnstant address and
9547         io-type operands to the membar.
9548         (frv_ifcvt_modify_tests): Unsign regno.
9549         (frv_ifcvt_modify_tests): Same.
9551         * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}.  Change
9552         UNSPEC_OPTIONAL_MEMBAR constant.
9553         (builtin_read_<mode>): Delete.
9554         (builtin_write_<mode>): Delete.
9555         ("optional_membar_<mode>"): Add operand.
9557         * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
9558         * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
9559         * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
9560         * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
9561         * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
9562         * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
9563         * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
9564         * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
9565         * testsuite/gcc.target/frv/all-read-write-1.c: New.
9567 2005-07-28  Kaz Kojima  <kkojima@gcc.gnu.org>
9569         * df.c (df_uses_record): Handle SCRATCH.
9571 2005-07-28  Steven Bosscher  <stevenb@suse.de>
9573         PR debug/20161
9574         * passes.c (rest_of_decl_compilation): If decl is a type and
9575         we have encountered errors, don't emit debug information.
9577 2005-07-27  Kenneth Zadeck <zadeck@naturalbridge.com>
9579         * params.def: Fixed comment.
9581 2005-07-27  Bjoern Haase  <bjoern.m.haase@web.de>
9583         PR target/19885
9584         * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
9585         (TARGET_ASM_UNALIGNED_HI_OP): Add.
9586         (TARGET_ASM_UNALIGNED_SI_OP): Add.
9588 2005-07-27  Steven Bosscher  <stevenb@suse.de>
9590         PR c++/22003
9591         * varasm.c (assemble_start_function): Don't do anything that may
9592         require a CFG if the current function is a thunk.
9594 2005-07-25  Geoffrey Keating  <geoffk@apple.com>
9596         * doc/install.texi (Prerequisites): Mention that perl is needed
9597         to do export control in libstdc++ targetting Darwin.
9599 2005-07-27  Steven Bosscher  <stevenb@suse.de>
9601         PR rtl-optimization/17808
9602         * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
9603         (sched_insns_conditions_mutex_p): Split out from...
9604         (add_dependence): ...here.  But don't call it from here.
9605         (add_dependence_list): Check sched_insns_conditions_mutex_p
9606         before calling add_dependence.
9607         (add_dependence_list_and_free): Likewise.
9608         (fixup_sched_groups): Likewise.
9609         (sched_analyze_1): Likewise.
9610         (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
9611         (sched_analyze): Likewise.
9612         (sched_analyze_insn): Likewise.
9613         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
9614         * sched-rgn.c (add_branch_dependences): Likewise.  Also, add
9615         dependencies on all COND_EXEC insns to jumps ending basic blocks
9616         when doing intrablock scheduling.
9617         * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
9619 2005-07-27  Jeff Law  <law@redhat.com>
9621         * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
9622         meeting a VR_ANTI_RANGE with a VR_RANGE.  When intersecting
9623         equivalency sets, correctly handle the case were vr0 has an
9624         equivalency set, but vr1 does not.
9626 2005-07-27  Dorit Nuzman  <dorit@il.ibm.com>
9628         PR tree-optimization/23073
9629         * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
9630         vect_print_dump_info before fprintf.
9632 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
9634         PR tree-optimize/22348
9635         * tree-ssa-loop-niter.c (number_of_iterations_cond):
9636         Fold the partial computation.
9638 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
9640         PR tree-optimization/22325
9641         * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
9642         Declare.
9643         * tree-scalar-evolution.c (scev_const_prop): Add generic final
9644         value replacement.
9645         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
9646         (force_var_cost): ... this function.
9647         (compute_phi_arg_on_exit): Export.
9649 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
9651         PR tree-optimization/20773
9652         * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
9653         edge.
9655 2005-07-27  Richard Guenther  <rguenther@suse.de>
9657         * tree-ssa-structalias.c (push_fields_onto_fieldstack):
9658         Avoid pushing again if current struct contains only
9659         fields we decomposed.
9661 2005-07-27  Jan Hubicka  <jh@suse.cz>
9663         PR tree-optimization/22574
9664         * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
9665         not available.
9667         * tree-tailcall.c (decrease_profile): New function.
9668         (eliminate_tail_call): Use it.
9670         * cgraphunit.c (cgraph_function_and_variable_visibility): Set
9671         visibility flags correctly in whole program mode.
9673 2005-07-26  Steve Ellcey  <sje@cup.hp.com>
9675         PR rtl-optimization/22472
9676         * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
9678 2005-07-26  Steven Bosscher  <stevenb@suse.de>
9680         PR tree-optimization/22504
9681         * tree-complex.c (expand_complex_addition): Use 'code' instead
9682         of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
9684 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
9686         * config.gcc (cpu_type): Add frv case.
9687         (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
9688         (supported_defaults): Add fr550 case.
9690 2005-07-26  Diego Novillo  <dnovillo@redhat.com>
9692         PR 22591
9693         * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
9694         whether a pointer of type T * may point to objects of type T *.
9696 2005-07-26  DJ Delorie  <dj@redhat.com>
9698         * configure: Regenerate.
9700 2005-07-26  Dale Johannesen  <dalej@apple.com>
9702         * postreload-gcse.c (alloc_mem):  Start CUID numbering at 1.
9704 2005-07-26  Mark Mitchell  <mark@codesourcery.com>
9706         * doc/install.texi (--with-build-sysroot): Fix grammatical error.
9707         Clarify use of "build" in name.
9709 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
9711         * doc/extend.texi (Raw read/write Functions): New section.
9712         * testsuite/gcc.target/frv/all-builtin-read8.c: New.
9713         * testsuite/gcc.target/frv/all-builtin-read16.c: New.
9714         * testsuite/gcc.target/frv/all-builtin-read32.c: New.
9715         * testsuite/gcc.target/frv/all-builtin-read64.c: New.
9716         * testsuite/gcc.target/frv/all-builtin-write8.c: New.
9717         * testsuite/gcc.target/frv/all-builtin-write16.c: New.
9718         * testsuite/gcc.target/frv/all-builtin-write32.c: New.
9719         * testsuite/gcc.target/frv/all-builtin-write64.c: New.
9720         * config/frv/frv.c: Add bdesc_loads global.
9721         Add bdesc_stores global.
9722         (frv_init_builtins): Add support for __builtin_{read/write}*.
9723         (frv_volatile_memref): New.
9724         (frv_expand_load_builtin): New.
9725         (frv_expand_store_builtin): New.
9726         * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
9727         FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
9728         FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
9729         FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
9730         * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
9731         UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
9732         (builtin_read_<mode>): New.
9733         (builtin_write_<mode>): New.
9734         (builtin_write64): New.
9735         (optional_membar_<mode>): New.
9737 2005-07-26  J"orn Rennecke <joern.rennecke@st.com>
9739         * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
9740         (rather than units) against HOST_BITS_PER_WIDE_INT.
9742 2005-07-26  Kazu Hirata  <kazu@codesourcery.com>
9744         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
9745         ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
9746         ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
9747         config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
9748         FSF address.
9750         * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
9751         tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
9752         config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
9753         comment typos.
9754         * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
9756 2005-07-26  Richard Guenther  <rguenther@suse.de>
9758         PR tree-optimization/22486
9759         * fold-const.c (fold_unary): Fold away useless component
9760         references of the form (T *)&T.x, if the address
9761         doesn't change.
9763 2005-07-25  James E Wilson  <wilson@specifixinc.com>
9765         * dwarf2out.c (add_call_src_coords_attributes): New.
9766         (gen_inlined_subroutine_die): Call it.
9767         (maybe_emit_file, init_file_table): Add comments.
9768         (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
9769         maybe_emit_file.
9770         * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
9771         (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
9772         * tree.h (BLOCK_SOURCE_LOCATION): New.
9773         (struct tree_block): New field locus.
9775 2005-07-26  Andreas Schwab  <schwab@suse.de>
9777         PR rtl-optimization/23043
9778         * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
9779         when allocating a struct unoccr.
9781 2005-07-25  Richard Henderson  <rth@redhat.com>
9783         PR 22626
9784         * tree-complex.c (gate_no_optimization): True if errors.
9785         * Makefile.in (tree-complex.o): Update dependencies.
9787 2005-07-25  Aldy Hernandez  <aldyh@redhat.com>
9789         * config/frv/predicates.md (integer_register_operand): Use
9790         GPR_AP_OR_PSEUDO_P.
9792 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
9794         PR tree-opt/22484
9795         * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
9796         after fold.
9797         * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
9799 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
9801         * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
9802         types when flag_unsafe_math_optimizations is true.
9804 2005-07-25  Mark Mitchell  <mark@codesourcery.com>
9806         * gcc.c (option_map): Add --sysroot.
9807         (process_command): Handle --sysroot.
9808         (display_help): Document it.
9809         * doc/cppopts.tex (-isysroot): Document.
9810         * doc/invoke.texi (--sysroot): Document.
9811         * doc/install.texi (--with-build-sysroot): Document.
9813         * Makefile.in (inhibit_libc): New variable.
9814         (INHIBIT_LIBC_CFLAGS): Likewise.
9815         (LIBGCC2_CFLAGS): Include
9816         $(INHIBIT_LIBC_CFLAGS).
9817         (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
9818         ($(T)crtbegin.o): Do not use @inhibit_libc@.
9819         ($(T)crtend.o): Likewise.
9820         ($(T)crtbeginS.o): Do not use @inhibit_libc@.
9821         ($(T)crtendS.o): Likewise.
9822         ($(T)crtbeginT.o): Do not use @inhibit_libc@.
9823         ($(T)crtendT.o): Likewise.
9824         (stmp-fixinc): Do not complain about missing headers if
9825         inhibit_libc.
9826         * configure.ac (inhibit_libc): Set it to true/false.
9827         (--with-build-sysroot): New option.  Use it to set
9828         SYSTEM_HEADER_DIR.
9829         * configure: Regenerated.
9831 2005-07-25  Manfred Hollstein  <mh@suse.com>
9833         * calls.c (store_one_arg): Fix unsigned comparison warning.
9835 2005-07-25  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
9837         PR other/22337
9838         * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
9839         (ggc_print_statistics): Initialize variable before use.
9841 2005-07-25  Richard Guenther  <rguenther@suse.de>
9843         * tree-dfa.c (mark_new_vars_to_rename): Protect against
9844         calling with a PHI_NODE argument.
9846         * tree-flow-inline.h (overlap_subvar): Protect against
9847         possible overflow.
9849 2005-07-25  Paolo Bonzini  <bonzini@gnu.org>
9851         * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
9852         * configure: Regenerate.
9854 2005-07-25  Ira Rosen  <irar@il.ibm.com>
9856         * expr.c (highest_pow2_factor): Make extern.
9857         * tree-data-ref.c (ptr_decl_may_alias_p): New function.
9858         (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
9859         record_array_differ_p, array_ptr_differ_p): Likewise.
9860         (base_object_differ_p): Rename (from array_base_name_differ_p). Support
9861         additional cases. Call the above functions.
9862         (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
9863         base_object_differ_p when there are two base objects. Otherwise, compare
9864         base address and offset. Call may_alias_p.
9865         (dump_data_reference): Use a correct field name.
9866         (analyze_array): Make static. Initialize new data-ref fields.
9867         (analyze_indirect_ref): New function.
9868         (init_data_ref): Initialize new data-ref fields.
9869         (strip_conversion): Moved from tree-vect-analyze.c.
9870         (analyze_offset_expr, get_ptr_offset, address_analysis,
9871         object_analysis): Likewise.
9872         (analyze_offset): New function.
9873         (create_data_ref): Likewise.
9874         (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
9875         dimensions for ARRAY_REFs only.
9876         (build_classic_dist_vector): Make static.
9877         (access_functions_are_affine_or_constant_p): Call macro to get the
9878         address of access functions.
9879         (compute_all_dependences): Add new parameter
9880         compute_self_and_read_read_dependences. Compute self and read-read
9881         dependences if it is true.
9882         (find_data_references_in_loop): Call create_data_ref. Initialize new
9883         data-ref fields.
9884         (compute_data_dependences_for_loop): Add new parameter
9885         compute_self_and_read_read_dependences. Remove parameter nb_loops,
9886         compute nb_loops. Call compute_all_dependences,
9887         build_classic_dist_vector and build_classic_dir_vector with correct
9888         parameters.
9889         (analyze_all_data_dependences): Call compute_data_dependences_for_loop
9890         with correct parameters. Compare dimensions for ARRAY_REFs only.
9891         (free_data_refs): Call macro to free access functions.
9892         * tree-data-ref.h (struct first_location_in_loop): New structure. Move
9893         fields from stmt_vinfo.
9894         (struct base_object_info): New structure.
9895         (struct data_reference): Move fields to base_object_info. Add fields
9896         first_location and object_info for above structures. Move fields from
9897         stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
9898         aligned_to.  Add macros to access the new fields.
9899         Update functions declarations.
9900         * tree-flow.h (is_aliased_with): Declare.
9901         * tree-loop-linear.c (linear_transform_loops): Call
9902         compute_data_dependences_for_loop with correct parameters.
9903         * tree-ssa-alias.c (is_aliased_with): New function.
9904         * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
9905         (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
9906         (vect_analyze_data_ref_dependence): Get ddr. Remove call to
9907         vect_base_addr_differ_p, compute_subscript_distance and
9908         build_classic_dist_vector. Add printings. Check absolute value of
9909         distance.
9910         (vect_analyze_data_ref_dependences): Go through ddrs instead of
9911         data-refs.
9912         (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
9913         stmt. Check aligned_to. Check if the base is aligned. Remove conversion
9914         to bytes. Add printing.
9915         (vect_compute_data_refs_alignment): Go through loads and stores in one
9916         loop.
9917         (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
9918         vect_analyze_data_ref_access): Likewise.
9919         (vect_analyze_pointer_ref_access): Remove.
9920         (vect_address_analysis, vect_object_analysis): Likewise.
9921         (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
9922         and analyze data-refs in the loop.
9923         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
9924         fields of data-ref instead of stmt. Add init to the offset from the
9925         base.
9926         (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
9927         (vect_update_init_of_dr): Likewise.
9928         (vect_update_inits_of_drs): Go through loads and stores in one loop.
9929         * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
9930         removed fields.
9931         (new_loop_vec_info): Initialize new fields.
9932         (destroy_loop_vec_info): Free new fields.
9933         (vect_strip_conversion): Remove.
9934         * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
9935         (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
9936         datarefs. Add new field ddrs.
9937         Add macros for the new fields access.
9938         (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
9939         base_aligned_p, misalignment, memtag, ptr_info and subvars.
9940         Remove their macros.
9941         * tree.h (highest_pow2_factor): Declare.
9943 2005-07-25  Jakub Jelinek  <jakub@redhat.com>
9945         * calls.c (store_one_arg): Check for sibling call MEM arguments
9946         from already clobbered incoming argument area.
9948 2005-07-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9950         * c-common.c (check_missing_format_attribute): New.
9951         * c-common.h (check_missing_format_attribute): Likewise.
9952         * c-typeck.c (convert_for_assignment): Use it.
9954 2005-07-24  Andreas Schwab  <schwab@suse.de>
9956         * config/m68k/m68k.md ("extendqidi2"): When source is an address
9957         register use a word move.  Correct operand of ext.w in 68000 code.
9959 2005-07-23  Mark Mitchell  <mark@codesourcery.com>
9961         * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
9962         variables as declarations, rather than definitions.
9964 2005-07-24  Ira Rosen  <irar@il.ibm.com>
9966         PR tree-optimization/22526
9967         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
9968         of the zero node.
9970 2005-07-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
9972         * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
9973         that C99 reserve for future use. Use it to define clog10,
9974         clog10f and clog10l.
9976 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9978         * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
9979         * configure.ac: Check for -Wmissing-format-attribute.
9981         * configure: Regenerate.
9983 2005-07-23  Richard Henderson  <rth@redhat.com>
9985         PR tree-optimization/22623
9986         * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
9988 2005-07-23  Giovanni Bajo  <giovannibajo@libero.it>
9990         PR target/22577
9991         * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
9993 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9995         * Makefile.in (C_TREE_H): Update dependencies.
9996         * c-tree.h: Include toplev.h.
9997         * diagnostic.h (diagnostic_set_info): Add format attribute.
9998         * rtl-error.c (diagnostic_for_asm): Likewise.
10000 2005-07-23  Chao-ying Fu  <fu@mips.com>
10002         * config/mips/mips-dsp.md: New file.
10003         * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
10004         * config/mips/mips.c (mips_function_type): Add types for DSP builtin
10005         functions.
10006         (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
10007         MIPS_BUILTIN_BPOSGE32.
10008         (mips_expand_builtin_direct): Add one parameter to indicate that
10009         builtin functions need to return a value.
10010         (mips_expand_builtin_bposge): New for expanding "bposge" builtin
10011         functions.
10012         (mips_regno_to_class): Add classes for 12 new DSP registers.
10013         (mips_subword): Change to check four HI registers.
10014         (mips_output_move): Output move to and from 6 new DSP accumulators.
10015         (override_options): Make sure -mdsp and -mips16 are not used together.
10016         Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS.  Enable DSP accumulators
10017         for machine modes.
10018         (mips_conditional_register_usage): Disable 6 new DSP accumulators
10019         when !TARGET_DSP.
10020         (print_operand): Add 'q' for printing DSP accumulators.
10021         (mips_cannot_change_mode_class): Check ACC_REGS.
10022         (mips_secondary_reload_class): Check ACC_REGS.
10023         (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
10024         (mips_register_move_cost): Check ACC_REGS.
10025         (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
10026         (CODE_FOR_mips_subu_qb): New code-aliasing macros.
10027         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
10028         (dsp_bdesc): New array.
10029         (bdesc_arrays): Add DSP builtin function table.
10030         (mips_prepare_builtin_arg): Check predicate again after
10031         copy_to_mode_reg.
10032         (mips_expand_builtin): Add one more parameter to
10033         mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
10034         MIPS_BUILTIN_BPOSGE32.
10035         (mips_init_builtins): Initialize new function types.
10036         (mips_expand_builtin_direct): Check if builtin functions need to
10037         return a value and pass operands properly.
10038         (mips_expand_builtin_bposge): New function.
10039         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
10040         (ASM_SPEC): Map -mdsp to -mdsp in GAS.
10041         (FIRST_PSEUDO_REGISTER): Increase to 188.
10042         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
10043         Update for 12 new DSP registers.
10044         (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
10045         (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
10046         (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
10047         (reg_class): Add DSP_ACC_REGS and ACC_REGS.
10048         (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
10049         (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
10050         (REG_ALLOC_ORDER): Update for 12 new DSP registers.
10051         (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
10052         (UIMM6_OPERAND, IMM10_OPERAND): New macros.
10053         (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
10054         (REGISTER_NAMES): Add names for 12 new DSP registers.
10055         * config/mips/mips.md: Include mips-dsp.md.
10056         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
10057         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
10058         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
10059         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
10060         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
10061         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
10062         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
10063         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
10064         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
10065         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
10066         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
10067         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
10068         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
10069         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
10070         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
10071         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
10072         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
10073         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
10074         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
10075         (UNSPEC_RDDSP): New constants.
10076         (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
10077         (*movsi_internal): Change 'x' to 'a' for ACC_REGS.  Add an
10078         A<-d alternative.
10079         * config/mips/mips.opt (-mdsp): New option.
10080         * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
10081         (reg_imm10_operand): New predicates.
10082         * doc/extend.texi (MIPS DSP Built-in Functions): New section.
10083         * doc/invoke.texi (-mdsp): Document new option.
10085 2005-07-22  DJ Delorie  <dj@redhat.com>
10087         * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
10088         to warning calls.
10089         * tree-inline.c (inlinable_function_p): Likewise.
10091 2005-07-22  Mark Mitchell  <mark@codesourcery.com>
10093         PR debug/21828
10094         * toplev.c (check_global_declarations): Do not mark undefined
10095         variables as DECL_IGNORED_P.
10096         * varasm.c (first_global_object_name): GTY it.
10097         (weak_global_object_name): Likewise.
10098         (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
10099         a string to go into {weak,first}_global_object_name.
10101 2005-07-22  DJ Delorie  <dj@redhat.com>
10103         * c-format.c (check_function_format): Change warning control
10104         option from OPT_Wattribute to OPT_Wmissing_format_attribute.
10106 2005-07-22  Diego Novillo  <dnovillo@redhat.com>
10108         * tree-ssa-alias.c (count_ptr_derefs): Do not consider
10109         &PTR->FLD a dereference of PTR.
10110         * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
10111         a potential dereference of PTR.
10113 2005-07-22  J"orn Rennecke <joern.rennecke@st.com>
10115         PR rtl-optimization/20370
10116         * ifcvt.c (dead_or_predicable): Before calling propagate_block,
10117         call allocate_reg_info if necessary.
10119         PR rtl-optimization/21848
10120         * calls.c (emit_library_call_value_1): For const functions, add
10121         USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
10123         PR rtl-optimization/22445
10124         * cselib.c (target.h): Include.
10125         (rtx_equal_for_cselib_p): Allow commutative matches.
10126         (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
10127         Remove MODE parameter.  Changed all callers.
10129         PR rtl-optimization/22258
10130         * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
10131         New functions.
10132         (try_combine): Use likely_spilled_retval_p.
10134 2005-07-22  Paul Woegerer  <paul.woegerer@nsc.com>
10136         * config.gcc: Add crx-elf support.
10138         * doc/contrib.texi: Mention crx.
10139         * doc/extend.texi: Document crx extensions.
10140         * doc/install.texi: Document crx install.
10141         * doc/invoke.texi: Document crx options.
10142         * doc/md.texi: Document crx constraints.
10144         * config/crx/crx-protos.h: New file.
10145         * config/crx/crx.c: New file.
10146         * config/crx/crx.h: New file.
10147         * config/crx/crx.md: New file.
10148         * config/crx/crx.opt: New file.
10149         * config/crx/t-crx: New file.
10151 2005-07-22  Manfred Hollstein  <mh@suse.com>
10153         * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
10154         warnings.
10155         (int_add_graph_edge): Likewise.
10156         (collapse_nodes): Likewise.
10157         (process_unification_queue): Likewise.
10159 2005-07-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10160             Laurent GUERBY  <laurent@guerby.net>
10162         PR tree-optimization/22336
10163         * function.c (record_block_change): Check for
10164         cfun->ib_boundaries_block.
10166 2005-07-21  James A. Morrison  <phython@gcc.gnu.org>
10168         * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
10169         (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
10171 2005-07-21  DJ Delorie  <dj@redhat.com>
10173         * toplev.c (warn_deprecated_use): Add warning control to warning
10174         call.
10175         * c-typeck.c (parser_build_binary_op): Likewise.
10176         (c_finish_if_stmt): Likewise.
10177         * c-common.c (check_function_sentinel): Likewise.
10178         (check_nonnull_arg): Likewise.
10180 2005-07-21  Richard Henderson  <rth@redhat.com>
10182         PR tree-opt/22504
10183         * tree-complex.c (complex_ssa_name_components): New.
10184         (cvc_lookup): Allow entry not found.
10185         (create_components): Remove.
10186         (create_one_component_var, get_component_var): New.
10187         (get_component_ssa_name, set_component_ssa_name): New.
10188         (extract_component): Use get_component_ssa_name.
10189         (update_complex_components): Use set_component_ssa_name.
10190         (update_complex_components_on_edge): Likewise.
10191         (update_phi_components): Create new PHI nodes directly, instead
10192         of adding insns to edges.
10193         (tree_lower_complex): Allocate and free complex_variable_components
10194         and complex_ssa_name_components here.
10196 2005-07-20  Daniel Berlin  <dberlin@dberlin.org>
10198         * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
10199         revert to returning false.
10201 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
10203         PR target/21149
10204         * config/i386/i386.md (sse_movhlps): Fix vec_select values.
10206 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
10208         PR target/22576
10209         * config/i386/i386.md (cmpxf): Change operand constraints
10210         to "nonmemory_operand".
10212 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
10214         * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
10216 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
10218         PR middle-end/21180
10219         * fold-const.c (fold_build1): Add checksum for the operands.
10220         (fold_build2): Likewise.
10221         (fold_build3): Likewise.
10223 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
10225         PR middle-end/19055
10226         * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
10228 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
10230         * common.opt (-fforward-propagate): Committed by mistake,
10231         removed.
10233 2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
10235         * reg-stack.c: Fix comment typo(s).
10236         * tree-ssa-operands.c: Likewise.
10237         * tree-vectorizer: Likewise.
10239 2005-07-21  Nick Clifton  <nickc@redhat.com>
10241         * config/sh/symbian.c: Replace C++ style line comments with C
10242         style line comments.
10243         (symbian_add_attribute): Do not use a ? operator on the LHS of
10244         an assignment.
10245         (sh_symbian_handle_dll_attribute): Change the type of the
10246         method vector to "VEC(tree,gc)*" and use vector accessor
10247         macros to walk over the elements.
10248         (symbian_export_vtable_and_rtti_p): Likewise.
10249         (symbian_class_needs_attribute_p): Likewise.
10251 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
10253         PR target/22085
10254         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
10255         initialize targetm.resolve_overloaded_builtin here.
10256         (altivec_expand_overloaded_builtin): Make it non-static.
10257         * config/rs6000/rs6000-protos.h
10258         (altivec_expand_overloaded_builtin): New prototype.
10259         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
10260         targetm.resolve_overloaded_builtin here.
10261         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
10263 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
10264             Zdenek Dvorak  <dvorakz@suse.cz>
10266         PR tree-optimization/19210
10267         * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
10268         New.
10269         * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
10270         * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
10271         rely on unproven assumptions.
10272         * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
10273         * tree-flow.h (number_of_iterations_exit): Add final parameter.
10274         * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
10275         to number_of_iterations_exit.
10276         * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
10277         * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
10278         * tree-ssa-loop-niter.c (find_loop_niter,
10279         estimate_numbers_of_iterations_loop): Likewise.
10280         (number_of_iterations_exit): Honor the new options.
10281         * doc/invoke.texi (Wunsafe-loop-optimizations,
10282         funsafe-loop-optimizations): Document them.
10284 2005-07-21  Richard Sandiford  <richard@codesourcery.com>
10286         PR rtl-optimization/22167
10287         * gcse.c (hoist_code): Fix hoist_exprs[] check.
10289 2005-07-20  Adam Nemet  <anemet@lnxw.com>
10291         * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
10292         __do_global_dtors_aux longcall.
10294 2005-07-20  Kazu Hirata  <kazu@cs.umass.edu>
10296         * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
10297         (old_special_pred_table): Don't reference
10298         SPECIAL_MODE_PREDICATES.
10299         * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
10300         * config/arc/arc.h: Don't mention PREDICATE_CODES.
10301         * config/sh/predicates.h: Don't mention
10302         SPECIAL_MODE_PREDICATES.
10303         * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
10304         Remove.
10306 2005-07-20  DJ Delorie  <dj@redhat.com>
10308         * config.gcc: Add m32c-elf support.
10310         * doc/contrib.texi: Mention m32c.
10311         * doc/extend.texi: Document m32c extensions.
10312         * doc/install.texi: Mention m32c.
10313         * doc/invoke.texi: Document m32c options.
10314         * doc/md.texi: Document m32c constraints.
10316         * config/m32c/addsub.md: New file.
10317         * config/m32c/bitops.md: New file.
10318         * config/m32c/cond.md: New file.
10319         * config/m32c/jump.md: New file.
10320         * config/m32c/m32c-lib1.S: New file.
10321         * config/m32c/m32c-lib2.c: New file.
10322         * config/m32c/m32c-modes.def: New file.
10323         * config/m32c/m32c-pragma.c: New file.
10324         * config/m32c/m32c-protos.h: New file.
10325         * config/m32c/m32c.abi: New file.
10326         * config/m32c/m32c.c: New file.
10327         * config/m32c/m32c.h: New file.
10328         * config/m32c/m32c.md: New file.
10329         * config/m32c/m32c.opt: New file.
10330         * config/m32c/minmax.md: New file.
10331         * config/m32c/mov.md: New file.
10332         * config/m32c/muldiv.md: New file.
10333         * config/m32c/predicates.md: New file.
10334         * config/m32c/prologue.md: New file.
10335         * config/m32c/shift.md: New file.
10336         * config/m32c/t-m32c: New file.
10338 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10340         * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
10341         (stack_protect_set, stack_protect_test): New expanders.
10342         (stack_protect_set_si, stack_protect_set_si_media,
10343         stack_protect_set_di_media, stack_protect_test_si,
10344         stack_protect_test_si_media, stack_protect_test_di_media):
10345         New insns.
10347 2005-07-20  Andrew Pinski  <pinskia@physics.uc.edu>
10349         * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
10351 2005-07-20  James A. Morrison  <phython@gcc.gnu.org>
10353         * tree.h (tree_expr_nonzero_p): Export.
10354         * fold-const.c (tree_expr_nonzero_p): Likewise.
10355         Return true for CALL_EXPRs that are alloca calls.
10356         (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
10357         against zero.
10358         * tree-flow.h (expr_computes_nonzero): Remove.
10359         * tree-vrp.c (expr_computes_nonzero): Remove.
10360         (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
10361         (extract_range_from_unary_expr): Likewise.
10362         * tree-ssa-dom.c (record_equivalences_from_stmt): Use
10363         tree_expr_nonzero_p.
10365 2005-07-20  Bernd Schmidt  <bernd.schmidt@analog.com>
10367         * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
10368         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Take
10369         extra arg "picreg" and use it instead of pic_offset_table_rtx.
10370         All callers changed.
10371         (frame_related_constant_load): New arg "related" which controls
10372         setting of RTX_FRAME_RELATED_P.  All callers changed.
10373         (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
10374         (bfin_expand_prologue): Add stack limit checking.
10375         * config/bfin/bfin.md (trapifcc): New pattern.
10377         * config/bfin/bfin.c: Include "langhooks.h".
10378         (def_builtin): Go through lang_hooks to call builtin_function.
10380         * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
10381         * config/bfin/predicates.md (symbol_ref_operand): New.
10382         (call_insn_operand): Delete.  All callers changed to use
10383         register_no_elim_operand.
10384         * config/bfin/bfin.c (init_cumulative_args): Initialize the new
10385         call_cookie field.
10386         (function_arg): Use it to generate the call's operand 2.
10387         (bfin_longcall_p): New function.
10388         (bfin_expand_call): Extra arg "cookie".  All callers and declaration
10389         changed.  Emit extra USE in the pattern.  Use bfin_longcall_p to
10390         determine if the address needs to be in a REG.
10391         (bfin_handle_longcall_attribute): New function.
10392         (bfin_attribute_table): Add "longcall" and "shortcall".
10393         * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
10394         (CUMULATIVE_ARGS): New member call_cookie.
10395         (PREDICATE_CODES): Add symbol_ref_operand.
10396         * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
10397         extra USE to the pattern.
10398         (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
10399         New patterns, split off call_insn, sibcall_insn, call_value_insn and
10400         sibcall_value_insn; now the new patterns handle direct calls and the
10401         old ones indirect calls.
10402         * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
10404 2005-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
10406         * doc/trouble.texi: Update section on handling of empty loops.
10408 2005-07-20  Kazu Hirata  <kazu@codesourcery.com>
10410         * config.gcc: Remove support for sparc-*-openbsd*,
10411         i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
10412         ns32k-*-netbsd*.
10413         * config.host: Remove support for i860-*-sysv4* as a host.
10414         * config/i860/*, config/ip2k/*, config/ns32k/*,
10415         config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
10416         * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
10417         mention obsolete ports.
10419 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10421         * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
10422         soft frame pointer.
10423         (sh_expand_prologue): Use hard_frame_pointer_rtx instead
10424         of frame_pointer_rtx.
10425         (sh_expand_epilogue): Likewise.
10426         (sh_set_return_address): Likewise.
10427         (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
10428         instead of FRAME_POINTER_REGNUM if needed.  Add elimination
10429         offsets from FRAME_POINTER_REGNUM.
10430         * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
10431         (sh_register_names): Add initializer for sfp.
10432         (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
10433         (VALID_REGISTER_P): Likewise.
10434         (FIRST_PSEUDO_REGISTER): Update.
10435         (DWARF_FRAME_REGISTERS): Define.
10436         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
10437         (HARD_FRAME_POINTER_REGNUM): Define.
10438         (FRAME_POINTER_REGNUM): Redefine.
10439         (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
10440         but HARD_FRAME_POINTER_REGNUM instead.  Add eliminations
10441         from FRAME_POINTER_REGNUM.
10442         (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
10443         FRAME_POINTER_REGNUM.
10444         (REG_CLASS_CONTENTS): Add sfp.
10445         (REG_ALLOC_ORDER): Likewise.
10446         (FRAME_GROWS_DOWNWARD): Set to 1.  Update comment.
10447         (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
10448         of frame_pointer_rtx.
10449         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
10451 2005-07-19  James A. Morrison  <phython@gcc.gnu.org>
10453         * fold-const.c (tree_expr_nonnegative_p): Only return true for
10454         ABS_EXPR when flag_wrapv is false because of INT_MIN.
10455         (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
10456         of an ABS_EXPR.
10457         (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
10458         ABS_EXPR<x>.
10460 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
10462         Make CONSTRUCTOR use VEC to store initializers.
10463         * c-common.c (complete_array_type): Update to cope with VEC in
10464         CONSTRUCTOR_ELTS.
10465         * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
10466         (pp_c_constructor_elts): New function.
10467         * c-pretty-print.h (pp_c_constructor_elts): Declare.
10468         * c-typeck.c (build_function_call, build_c_cast, digest_init,
10469         struct constructor_stack, struct initializer_stack,
10470         constructor_elements, push_init_level, pop_init_level,
10471         add_pending_init, find_init_member, output_init_element): Update to
10472         cope with VEC in CONSTRUCTOR_ELTS.
10473         * coverage.c (build_fn_info_value, build_ctr_info_value,
10474         build_gcov_info): Likewise.
10475         * expr.c (categorize_ctor_elements_1, store_constructor,
10476         expand_expr_real_1): Likewise.
10477         * fold-const.c (fold_ternary): Likewise.
10478         * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
10479         gimplify_init_constructor, gimplify_expr): Likewise.
10480         * tree-dump.c (dequeue_and_dump): Likewise.
10481         * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
10482         node.
10483         * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
10484         CONSTRUCTOR_ELTS.
10485         * tree-sra.c (generate_element_init_1): Likewise.
10486         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
10487         * tree-ssa-operands.c (get_expr_operands): Likewise.
10488         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
10489         * tree-vect-transform.c (vect_get_vec_def_for_operand):
10490         (get_initial_def_for_reduction): Likewise.
10491         * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
10492         value handle in annotations.
10493         * tree.c (tree_node_kind, tree_code_size, make_node_stat,
10494         tree_node_structure): Add support for constr_kind.
10495         (build_vector_from_ctor, build_constructor_single,
10496         build_constructor_from_list): New functions.
10497         (build_constructor): Update to take a VEC instead of a TREE_LIST.
10498         (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
10499         Update to cope with VEC in CONSTRUCTOR_ELTS.
10500         * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
10501         * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
10502         CONSTRUCTOR_APPEND_ELT): New macros.
10503         (struct constructor_elt, struct tree_constructor): New data types.
10504         (union tree_node): Add tree_constructor field.
10505         * treestruct.def: Define TS_CONSTRUCTOR.
10506         * varasm.c (const_hash_1, compare_constant, copy_constant,
10507         compute_reloc_for_constant, output_addressed_constants,
10508         initializer_constant_valid_p, output_constant,
10509         array_size_for_constructor, output_constructor): Update to cope with
10510         VEC in CONSTRUCTOR_ELTS.
10511         * vec.h (VEC_empty, VEC_copy): New macros.
10513 2005-07-19  Devang Patel  <dpatel@apple.com>
10515         * dbxout.c (dbxout_type): Check Objective-C++ lang.
10517 2005-07-19  Richard Henderson  <rth@redhat.com>
10519         PR tree-opt/22278
10520         * gimplify.c (gimplify_expr): Use main variant type for the temp
10521         destination for a discarded volatile read.
10522         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
10523         casts between non-void types that change volatility.
10525 2005-07-15  DJ Delorie  <dj@redhat.com>
10527         * toplev.h: Add comment about the first parameter for warning().
10528         * errors.h: Likewise.
10530         * c.opt (Wpragmas): New.
10531         * doc/invoke.texi: Document it.
10533         * function.c (do_warn_unused_parameter): Add warning control to
10534         warning call.
10535         * c-decl.c (warn_if_shadowing): Likewise.
10536         * c-lex.c (cb_def_pragma): Likewise.
10537         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
10538         (pop_alignment): Likewise.
10539         (handle_pragma_pack): Likewise.
10540         (apply_pragma_weak): Likewise.
10541         (handle_pragma_weak): Likewise.
10542         (handle_pragma_redefine_extname): Likewise.
10543         (add_to_renaming_pragma_list): Likewise.
10544         (handle_pragma_extern_prefix): Likewise.
10545         (maybe_apply_renaming_pragma): Likewise.
10546         (handle_pragma_visibility): Likewise.
10548         * config/c4x/c4x-c.c (BAD): Likewise.
10549         (c4x_parse_pragma): Likewise.
10550         * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
10551         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
10552         (rs6000_pragma_longcall): Likewise.
10553         * config/v850/v850-c.c (pop_data_area): Likewise.
10554         (ghs_pragma_section): Likewise.
10555         (ghs_pragma_section): Likewise.
10556         (ghs_pragma_interrupt): Likewise.
10557         (ghs_pragma_starttda): Likewise.
10558         (ghs_pragma_startsda): Likewise.
10559         (ghs_pragma_startzda): Likewise.
10560         (ghs_pragma_endtda): Likewise.
10561         (ghs_pragma_endsda): Likewise.
10562         (ghs_pragma_endzda): Likewise.
10564 2005-07-19  Danny Berlin <dberlin@dberlin.org>
10565             Kenneth Zadeck <zadeck@naturalbridge.com>
10567         * Makefile.in: Removed tree-promote-statics.c
10568         * tree-promote-statics.c: Removed.
10569         * common.opt: Removed flag-promote-statics.
10570         * opts.c: Ditto.
10571         * passes.c: Removed tree-promote-statics pass.
10572         * tree-pass.h: Ditto.
10573         * timevar.def: Removed TV_PROMOTE_STATICS.
10576 2005-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
10578         * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
10579         and *-*-freebsd9.
10580         * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
10582 2005-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10584         PR c/22476
10585         * c-common.c (check_function_arguments): Call
10586         'check_function_format' if either -Wformat or
10587         -Wmissing-format-attribute are specified.
10588         * c-format.c (check_function_format): Check -Wformat before
10589         calling 'check_format_info'.
10590         * c-opts.c (c_common_post_options): Don't warn for
10591         -Wmissing-format-attribute without -Wformat.
10592         * c-typeck.c (convert_for_assignment): Detect additional cases for
10593         -Wmissing-format-attribute.
10594         * doc/invoke.texi (-Wmissing-format-attribute): Document new
10595         behavior.
10597 2005-07-19  Richard Guenther  <rguenther@suse.de>
10599         * config/i386/i386.md (lrint<mode>2): Use temporary
10600         instead of clobbering non-existent memory.
10602 2005-07-19  Nick Clifton  <nickc@redhat.com>
10604         * config/avr/avr.c (legitimate_address_p): Fix debugging print
10605         statement to avoid displaying ASCII control characters.
10607 2005-07-19  Ben Elliston  <bje@au.ibm.com>
10609         * bt-load.c (link_btr_uses): Fix uninitialised warnings.
10610         * cfganal.c (find_edge_index): Ditto.
10611         * combine.c (combine_instructions): Ditto.
10612         * ddg.c (create_scc): Ditto.
10613         (find_successors): Ditto.
10614         (find_predecessors): Ditto.
10615         (find_nodes_on_paths): Ditto.
10616         (longest_simple_path): Ditto.
10617         * flow.c (update_life_info): Ditto.
10618         (count_or_remove_death_notes): Ditto.
10619         (clear_log_links): Ditto.
10620         * modulo-sched.c (generate_reg_moves): Ditto.
10621         (find_max_asap): Ditto.
10622         (find_max_hv_min_mob): Ditto.
10623         (find_max_dv_min_mob): Ditto.
10624         * sbitmap.c (sbitmap_first_set_bit): Ditto.
10625         * sched-rgn.c (extract_edgelst): Ditto.
10626         * tree-into-ssa.c (prepare_names_to_update): Ditto.
10627         (dump_update_ssa): Ditto.
10628         (ssa_names_to_replace) Ditto.
10629         (switch_virtuals_to_full_rewrite): Ditto.
10630         (update_ssa): Ditto.
10631         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
10633 2005-07-18  Daniel Berlin  <dberlin@dberlin.org>
10635         Fix PR tree-optimization/22483
10637         * tree-complex.c (create_components): Use
10638         safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
10639         * tree-flow-inline.h (fill_referenced_var_vec): New function.
10640         * tree-flow.h (safe_referenced_var_iterator): New structure.
10641         (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
10642         * tree-ssa-alias.c (setup_pointers_and_addressables): Use
10643         safe_referenced_var iterator.
10644         (add_type_alias): Ditto.
10646 2005-07-19  Steven Bosscher  <stevenb@suse.de>
10648         * loop-init.c (rest_of_handle_loop2): Remove.
10649         (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
10650         rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
10651         (pass_rtl_loop_init, pass_rtl_loop_done,
10652         pass_rtl_move_loop_invariants, pass_rtl_unswitch,
10653         pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
10654         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
10655         pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
10656         pass_tree_loop_done, and pass_tree_unswitch.
10657         (gate_loop): Rename to gate_tree_loop.
10658         * passes.c (init_optimization_passes): Update for renamed tree
10659         loop passes.  Add the new loop2 passes as subpasses of loop2.
10660         * tree-pass.h: Add extern declarations for the new loop2 subpasses.
10661         Update for the renamed tree loop passes.
10663 2005-07-18  Ian Lance Taylor  <ian@airs.com>
10665         PR middle-end/22057
10666         * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
10667         blocks when optimizing.
10669 2005-07-18  Steve Ellcey  <sje@cup.hp.com>
10671         * common.opt (frename-registers): Initialize to 2.
10672         (fweb): Ditto.
10673         (fgcse-after-reload): Ditto.
10674         * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
10675         (process_options): Only change flag_web, flag_rename_registers,
10676         and flag_rerun_cse_after_loop if not explicitly set by user.
10678 2005-07-18  Jan Beulich  <jbeulich@novell.com>
10680         * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
10681         ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
10682         in 64-bit mode the same as DImode in 32-bit mode.
10683         (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
10684         ix86_split_lshr): Likewise. Rename to no longer refer to a specific
10685         mode. Add new mode parameter.
10686         * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
10687         * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
10688         x86_64_shift_adj): New expanders.
10689         (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
10690         *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
10691         insns.
10692         Respective new splitters. Use renamed shift splitter helpers in 32-bit
10693         DImode shift splitters.
10694         * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
10695         ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
10696         mode parameter.
10698 2005-07-18  Jan Beulich  <jbeulich@novell.com>
10700         * i386.md (movdi_extzv_1): New.
10701         (zero_extendhidi2): Combine alternatives and never force use of
10702         REX64 prefix.
10703         (zero_extendqidi2): Likewise. Don't restrict input selection.
10705 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
10707         Fix PR tree-optimization/22531
10708         * tree-ssa-pre.c (do_eustores):  Make sure LHS is a decl for the
10709          moment.
10711 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
10713         * tree-promote-statics.c (pass_promote_statics): Change dump file
10714          name.
10716 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
10718         * tree-optimize.c (init_tree_optimization_passes): Add
10719         pass_eliminate_useless_stores pass.
10720         * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
10721         * tree-ssa-pre.c (is_copy_stmt): New function.
10722         (follow_copies_till_vuse): Ditto.
10723         (do_eustores): Ditto.
10724         (gate_eustores): Ditto.
10726 2005-07-16  Richard Henderson  <rth@redhat.com>
10728         * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
10730 2005-07-16 Danny Berlin <dberlin@dberlin.org>
10731            Kenneth Zadeck <zadeck@naturalbridge.com>
10733         * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
10734         ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
10735         ipa-type-escape.h, tree-promote-statics.c
10736         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
10737         ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
10738         tree-promote-statics.c: new files.
10739         * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
10740         nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
10741         int nonlocal_set_p, mark_constant_function): Deleted.
10742         (rest_of_handle_cfg): Removed call to mark_constant_function.
10743         (nonoverlapping_component_refs_p): Added calls to support
10744         type based aliasing.
10745         * tree-ssa-alias.c (may_alias_p,
10746         compute_flow_insensitive_aliasing): Ditto.
10747         * calls.c (flags_from_decl_or_type): Removed reference to
10748         cgraph_rtl_info.
10749         * c-typeck.c (convert_arguments): Make builtins tolerant of having
10750         too many arguments.  This is necessary for Spec 2000.
10751         * cgraph.h (const_function, pure_function): Removed.
10752         * common.opt: Added "fipa-pure-const", "fipa-reference",
10753         "fipa-type-escape", and "ftree-promote-static".
10754         * opts.c: Ditto.
10755         * passes.c: Added ipa and tree-promote-statics passes.
10756         * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
10757         TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
10758         * tree-dfa.c (referenced_var_lookup_if_exists): New function.
10759         * tree-flow.h: Added exposed sra calls and addition of
10760         reference_vars_info field for FUNCTION_DECLS.
10761         * tree-pass.h: Added passes.
10762         * tree-sra.c: (sra_init_cache): New function.
10763         (sra_insert_before, sra_insert_after) Made public.
10764         (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
10765         and made public.
10766         * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
10767         aliasing. (may_alias_p): Added code to use type escape analysis to
10768         improve alias sets.
10769         * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
10770         code to prune clobbers of static variables based on information
10771         produced in ipa-reference pass.  Changed call clobbering so that
10772         statics are not marked as clobbered if the call does not clobber
10773         them.
10775 2005-07-16  Daniel Berlin  <dberlin@dberlin.org>
10777         * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
10778         too.
10780 2005-07-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
10782         * doc/install.texi (*-*-solaris2*): Document recommended version
10783         of GNU binutils and mention GNU linker problem on Solaris 10.
10785 2005-07-16  Joseph S. Myers  <joseph@codesourcery.com>
10787         PR c/22421
10788         * c-decl.c (c_build_bitfield_integer_type): New function.
10789         (finish_struct): Call it.
10790         * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
10792 2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10794         * c-typeck.c (digest_init): Call 'convert_for_assignment'
10795         before returning.
10797 2005-07-16  Jan Hubicka  <jh@suse.cz>
10799         * cfg.c (update_bb_profile_for_threading): Fix profile updating.
10800         (scale_bbs_frequencies_int): Watch roundoff errors.
10801         * predict.c (return_prediction): Initialize return_stmt.
10803 2005-07-16  Jan Hubicka  <jh@suse.cz>
10805         * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
10806         after RTL profiling.
10808 2005-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
10810         PR middle-end/22398
10811         * fold-const.c (build_range_check): Convert high/low to etype
10812         if we are only comparing against exp.
10814 2005-07-13  Daniel Berlin  <dberlin@dberlin.org>
10816         Fix PR tree-optimization/22376
10817         * tree-ssa-structalias.c (build_constraint_graph): We really meant
10818         special var here.
10819         (need_to_solve): New function.
10820         (compute_points_to_sets): Use it.
10822 2005-07-15  Jan Hubicka  <jh@suse.cz>
10824         * cfg.c (update_bb_profile_for_threading): More diagnostic.
10825         * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
10827 2005-07-15  Richard Guenther  <rguenther@suse.de>
10829         * c-common.c (handle_flatten_attribute): New function.
10830         Add flatten function attribute.
10831         * doc/extend.texi: Document flatten function attribute.
10832         * Makefile.in (ipa-inline.o): Depend on hashtab.h.
10833         * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
10834         New functions.
10835         (cgraph_decide_inlining): Handle functions with flatten
10836         attribute.
10838 2005-07-14  David Edelsohn  <edelsohn@gnu.org>
10840         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
10841         UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
10842         UNSPEC_XCHG, UNSPEC_AND): New.
10843         (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
10844         UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
10845         * config/rs6000/sync.md (FETCHOP): New code macro.
10846         (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
10847         New code attrs.
10848         (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
10849         (sync_compare_and_swap<mode>): Same.
10850         (sync_lock_test_and_set<mode>): Same.
10851         (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
10852         for QImode and HImode, and not PPC405.
10853         (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
10854         (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
10855         (sync_<fetchop>{si,di}_internal): New.
10856         (sync_nand{si,di}_internal): New.
10857         (sync_old_<fetchop>{si,di}_internal): New.
10858         (sync_old_nand{si,di}_internal): New
10859         (sync_new_<fetchop>{si,di}_internal): New.
10860         (sync_new_nand{si,di}_internal): New.
10861         (atomic_and{si,di}): New.
10862         (sync_new_nand{si,di}_internal): New.
10863         (atomic_and{si,di}): New.
10864         (sync_add<mode>_internal): Delete.
10865         (sync_addshort_internal): Use unspec instead of unspec_volatile.
10866         (sync_sub<mode>_internal): Delte.
10867         (sync_subshort_internal): New.
10868         (sync_andsi_internal): Use unspec instead of unspec_volatile.
10869         (sync_anddi_internal): Delete.
10870         (sync_boolsi_internal): Use unspec instead of unspec_volatile.
10871         (sync_booldi_internal): Delete.
10872         (sync_boolc<mode>_internal): Delete.
10873         (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
10874         (sync_boolc<mode>_internal2): Delete.
10875         (sync_boolcc<mode>_internal): Delete.
10876         (isync, lwsync): Use unspec instead of unspec_volatile.
10877         * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
10878         Revert UNSPEC_VOLATILE.
10879         (rs6000_split_atomic_op): New.
10880         * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
10882 2005-07-14  Eric Christopher  <echristo@redhat.com>
10884         * config/mips/mips.c (mips_canonicalize_comparison): Cast
10885         argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
10887 2005-07-14  Eric Christopher  <echristo@redhat.com>
10889         * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
10891 2005-07-14  Steven Bosscher  <stevenb@suse.de>
10893         PR tree-optimization/22230
10894         * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
10895         the computation of the four cross productions for "range op range".
10897 2005-07-14  Alexandre Oliva  <aoliva@redhat.com>
10898             Ulrich Weigand  <uweigand@de.ibm.com>
10900         PR target/20126
10901         * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
10902         in some insn.
10904 2005-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
10906         * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
10908 2005-07-14  Steve Ellcey  <sje@cup.hp.com>
10910         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
10912 2005-07-14  Richard Guenther  <rguenther@suse.de>
10914         PR middle-end/22347
10915         * config/i386/i386-protos.h (ix86_function_value): Change
10916         prototype to match new target hook.
10917         * config/i386/i386.c (ix86_value_regno): Change prototype
10918         to take extra type argument.
10919         (TARGET_FUNCTION_VALUE): Define.
10920         (ix86_function_ok_for_sibcall): Pass extra argument to
10921         ix86_value_regno, check return slot rtx for exact match.
10922         (ix86_function_value): Take extra parameter.  Dispatch to
10923         ix86_value_regno with fndecl/fntype as provided.
10924         (ix86_value_regno): Handle extra type argument.
10925         * config/i386/i386.h (FUNCTION_VALUE): No longer define.
10927         * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
10928         * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
10929         * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
10930         * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
10931         * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
10933 2005-07-14  Richard Guenther  <rguenther@suse.de>
10935         * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
10936         * calls.c (expand_call): Pass fntype to hard_function_value.
10937         (emit_library_call_value_1): Likewise.
10938         * explow.c: Include target.h.
10939         (hard_function_value): Take extra argument, the fntype.
10940         Use new target hook for function_value.
10941         * expr.h (hard_function_value): Change prototype.
10942         * function.c (aggregate_value_p): Pass 0 as fntype to
10943         hard_function_value.
10944         (assign_parms): Use new target hook for function_value.
10945         Pass 0 as fntype to hard_function_value.
10946         (expand_function_end): Likewise.
10947         * reg-stack.c: Include target.h.
10948         (stack_result): Use new target hook for function_value.
10949         * target-def.h: New target hook function_value.
10950         * target.h: Likewise.
10951         * targhooks.c (default_function_value): New function.
10952         * targhooks.h (default_function_value): Declare.
10954 2005-07-13  Ian Lance Taylor  <ian@airs.com>
10956         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
10958 2005-07-14  Jan Hubicka  <jh@suse.cz>
10960         * tree-dfa.c (dump_variable): Use default_def function.
10961         * tree-ssa-alias.c (dump_points_to_info): Likewise.
10962         * tree-ssa.c (verify_use): Likewise.
10963         * tree-ssanames.c (release_ssa_name): Likewise.
10964         * tree-tailcall.c (eliminate_tail_call): Likewise.
10965         (tree_optimize_tail_calls_1): Likewise.
10966         * tree-vrp.c (get_value_range): Likewise.
10968 2005-07-14  Ben Elliston  <bje@au.ibm.com>
10970         * gcc.c (main): Compare language[0] with '*' when iterating over
10971         the infiles.
10973 2005-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
10975         * config/s390/s390.c: (s390_cc_modes_compatible): Move before
10976         "s390_emit_compare".  Add handling of CCZ1mode.
10977         (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
10978         (390_emit_compare): Use "s390_cc_modes_compatible" for mode
10979         checking.
10980         (s390_branch_condition_mask): Add CCZ1mode handling.
10981         * config/s390/s390.md: ("seq", "*seq"): New pattern.
10982         ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
10983         Use CCZ1mode instead of CCZmode.
10984         * config/s390/s390-modes.def: Add CCZ1mode.  Comment new mode.
10986 2005-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
10988         * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
10989         pattern.
10990         ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
10992 2005-07-13  Eric Christopher  <echristo@redhat.com>
10994         * config/mips/mips.c (mips_canonicalize_comparison): New.
10995         (mips_emit_int_relational): Use.
10997 2005-07-13  Eric Christopher  <echristo@redhat.com>
10999         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
11000         static extra parts.
11001         * config/s390/s390.md: Include tpf.md. Move tpf specific
11002         patterns...
11003         * config/s390/tpf.md: To here.
11004         * config/s390/s390.opt: Move tpf specific options...
11005         * config/s390/tpf.opt: to here. Add mmain option.
11006         * config/s390/tpf-unwind.h: Remove unnecessary defines.
11007         * config/s390/tpf.h: Rewrite.
11009 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
11011         * doc/tm.texi: Remove @xref{Cross-profiling}.
11013 2005-07-13  Jeff Law  <law@redhat.com>
11015         * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
11016         expressions, test their _DECL operands for pointer equality rather
11017         than using operand_equal_p.
11019 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
11021         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
11022         (TARGET_POSIX_IO): This.
11023         * config/darwin.h: Likewise.
11024         * config/freebsd.h: Likewise.
11025         * config/linux.h: Likewise.
11026         * config/lynx.h: Likewise.
11027         * config/netbsd.h: Likewise.
11028         * config/rs6000/linux64.h: Likewise.
11029         * config/rs6000/linux.h: Likewise.
11030         * config/s390/tpf.h: Likewise.
11031         * config/sh/embed-elf.h: Likewise.
11032         * config/sparc/linux64.h: Likewise.
11033         * config/sparc/linux.h: Likewise.
11034         * config/svr4.h: Likewise.
11035         * gcov-io.h: Likewise.
11037         * doc/tm.texi: Updated.
11039         * libgcov.c (create_file_directory): Defined only if
11040         TARGET_POSIX_IO is defined.
11041         (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
11042         is defined.
11044 2005-07-13  Jan Hubicka  <jh@suse.cz>
11046         * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
11048 2005-07-13  David Edelsohn  <edelsohn@gnu.org>
11050         * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
11051         structure as argument.
11053 2005-07-13  Paolo Bonzini  <bonzini@gnu.org>
11055         PR tree-optimization/21921
11056         * tree-iterator.c (tsi_link_before): Support the case when
11057         tsi_end_p (tsi) == true.
11059 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
11061         PR tree-optimization/22442
11062         * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
11063         correctly.
11065 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
11067         PR rtl-optimization/20376
11068         * toplev.c (process_options): Enable -fweb and -frename-registers when
11069         unrolling.
11070         * doc/invoke.texi: Update the information about when -fweb and
11071         -frename-registers are enabled.
11073 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
11075         PR tree-opt/21840
11076         * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
11077         if *rhs_p is not a SSA_NAME.
11079 2005-07-12  Daniel Berlin  <dberlin@dberlin.org>
11081         Fix PR tree-optimization/22422
11082         * tree-ssa-structalias.c (struct variable_info): Add flag for
11083         special vars.
11084         (get_varinfo): Now a static function.
11085         (new_varinfo): init has_union and is_special_var to false.
11086         (solution_set_add): Check has_union.
11087         (do_da_constraint): Move temporary variable so it gets reset
11088         properly.
11089         Also check for special variable.
11090         (do_ds_constraint): Ditto.
11091         (do_sd_constraint): Ditto.
11092         (do_structure_copy): Check for special variable.
11093         (find_func_aliases): Ditto.
11094         (init_base_vars): Set special vars properly.
11096 2005-07-13  Jan Hubicka  <jh@suse.cz>
11098         * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
11099         do unit-at-a-time.
11101         * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
11102         (get_expr_operands): Fix thinko wrt flags and subvars.
11104         PR tree-optimize/22379
11105         * tree-inline.c (expand_call_inline): Do not output sorry in early
11106         inlining.
11108 2005-07-12  Dale Johannesen  <dalej@apple.com>
11110         * config/rs6000.c (rs6000_rtx_cost):  Move FLOAT_EXTEND.
11112 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
11114         PR bootstrap/21704
11115         * host-linux.h: Include limits.h.
11117 2005-07-12  Dale Johannesen  <dalej@apple.com>
11119         * expr.c (compress_float_constant):  Add cost check.
11120         * config/rs6000.c (rs6000_rtx_cost):  Adjust FLOAT_EXTEND cost.
11122 2005-07-12  Dale Johannesen  <dalej@apple.com>
11124         * gcc.target/i386/compress-float-sse.c:  New.
11125         * gcc.target/i386/compress-float-sse-pic.c:  New.
11126         * gcc.target/i386/compress-float-387.c:  New.
11127         * gcc.target/i386/compress-float-387-pic.c:  New.
11128         * gcc.dg/compress-float-ppc.c:  New.
11129         * gcc.dg/compress-float-ppc-pic.c:  New.
11131 2005-07-12  Eric Christopher  <echristo@redhat.com>
11133         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
11134         static extra parts.
11135         * config/s390/s390.md: Include tpf.md. Move tpf specific
11136         patterns...
11137         * config/s390/tpf.md: To here.
11138         * config/s390/s390.opt: Move tpf specific options...
11139         * config/s390/tpf.opt: to here. Add mmain option.
11140         * config/s390/tpf-unwind.h: Remove unnecessary defines.
11141         * config/s390/tpf.h: Rewrite.
11143 2005-07-12  Eric Christopher  <echristo@redhat.com>
11145         * gcc.c (struct infile): Update comment for language.
11146         (main): Rewrite input file resetting code.
11148 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
11150         PR tree-opt/22335
11151         * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
11152         requiring a cast in a non RHS of modify_expr.  Add a cast when required.
11153         (lookup_avail_expr): Use constant_boolean_node instead
11154         of boolean_false_node/boolean_true_node.
11156 2005-07-12  Ben Elliston  <bje@au.ibm.com>
11158         * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
11159         and use it when printing num_edges.
11161 2005-07-12  Bernd Schmidt  <bernd.schmidt@analog.com>
11163         * doc/extend.texi (Blackfin Built-in Functions): New section.
11164         * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
11165         @opindex.
11167 2005-07-12  Adrian Straetling  <straetling@de.ibm.com>
11169         * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
11170         s/cmpstrsi/cmpstrnsi
11171         (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
11172         'cmpstrnsi'.
11173         * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
11174         (init_optabs): Initialize cmpstrn_optab.
11175         * optabs.h: (enum insn_code cmpstrn_optab): Declare.
11176         * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
11177         * expr.c: (enum insn_code cmpstrn_optab): Declare.
11178         * config/i386/i386.md: s/cmpstr/cmpstrn
11179         * config/c4x/c4x.md: s/cmpstr/cmpstrn
11180         * doc/md.texi: Update documentation.
11182 2005-07-11  Richard Henderson  <rth@redhat.com>
11184         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
11185         build_va_arg_indirect_ref.
11186         (alpha_gimplify_va_arg): Likewise.
11187         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
11188         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
11189         * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
11190         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
11191         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
11192         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
11193         Likewise.
11194         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
11196 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
11198         * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
11199         * passes.c (init_optimization_passes): Add pass_empty_loop.
11200         * tree-pass.h (pass_empty_loop): Declare.
11201         * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
11202         try_remove_empty_loop, remove_empty_loops): New functions.
11203         * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
11204         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
11206 2005-07-12  Peter Barada  <peter@the-baradas.com>
11208         PR middle-end/16719
11209         PR middle-end/18421
11210         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
11211         in address registers.
11212         * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
11213         * config/m68k/m68k.md: Replace 's' with 'i' in 4th
11214         alternative of addsi3_5200.
11216 2005-07-11  Ian Lance Taylor  <ian@airs.com>
11218         * config/mips/mips.md (ffs<mode>2): Remove.
11220 2005-07-11  Ian Lance Taylor  <ian@airs.com>
11222         * doc/tree-ssa.texi (Cleanups): Improve description of
11223         TRY_FINALLY_EXPR.
11224         (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
11226 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
11228         * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
11229         * tree.h (DECL_ARGUMENT_FLD): New macro.
11231 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
11233         Fix PR tree-optimization/22404
11235         * tree-ssa-structalias.c (create_variable_info_for): Use
11236         correct offset.
11238 2005-07-11  Bernd Schmidt  <bernd.schmidt@analog.com>
11240         * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
11241         compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
11242         for second comparison operand.
11243         * config/bfin/predicates.md (reg_or_const_int_operand): New.
11245         * config/bfin/bfin.md (define_attr "type"): Add "sync".
11246         (define_insn_reservation "alu"): Likewise.
11247         (csync, ssync): Now of type sync.
11248         * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
11249         -mcsync-anomaly -mspecld-anomaly.
11250         * config/bfin/bfin.opt (mcsync): Remove.
11251         (mcsync-anomaly, mspecld-anomaly): Add.
11252         * config/bfin/bfin.c: Include "insn-codes.h".
11253         (bfin_reorg): Extend to handle the CSYNC anomaly as well.
11254         (TARGET_DEFAULT_TARGET_FLAGS): New.
11255         * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
11257 2005-07-11  Steven Bosscher  <stevenb@suse.de>
11259         * basic-block.h: Give the BB flags enum a name, bb_flags.
11260         Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
11261         * cfgcleanup.c (enum bb_flags): Remove here.
11262         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
11263         (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
11264         (update_forwarder_flag): Likewise.
11265         (thread_jump): Likewise.
11266         (try_forward_edges): Likewise.
11267         (try_optimize_cfg): Likewise.  Clear bb->flags before updating the
11268         forwarder flags.  Don't clear bb->aux for all basic blocks.  Only
11269         reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
11271 2005-07-11  Richard Guenther  <rguenther@suse.de>
11273         * config/i386/i386.opt: New target option -msseregparm.
11274         * config/i386/i386.c (override_options): Error out for
11275         -msseregparm but no SSE support.
11276         (ix86_function_sseregparm): Check for global sseregparm.
11277         * doc/invoke.texi: Document -msseregparm.
11279 2005-07-11  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
11281         * config.gcc (m32r-*-linux*): Use the default extra_parts.
11282         (m32rle-*-linux*): Ditto.
11284 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
11286         * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
11287         instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
11288         bytes.
11290 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11292         PR middle-end/22239
11293         PR target/20126
11294         * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
11295         gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
11297 2005-07-07  Daniel Berlin  <dberlin@dberlin.org>
11299         * tree-ssa-structalias.c (struct variable_info): Heapify complex.
11300         (varmap): Heapify varmap.
11301         (constraints): Heapify constraints.
11302         (struct constraint_graph): Heapify succs and preds.
11303         (constraint_vec_find): Update for heapification.
11304         (constraint_set_union): Ditto.
11305         (insert_into_complex): Ditto.
11306         (constraint_edge_vec_find): Ditto.
11307         (erase_graph_self_edge): Ditto.
11308         (add_graph_edge): Ditto.
11309         (get_graph_weights): Ditto.
11310         (merge_graph_nodes): Ditto.
11311         (build_constraint_graph): Ditto.
11312         (topo_visit): Ditto.
11313         (solve_graph): Ditto.
11314         (create_variable_info_for): Ditto.
11315         (init_base_vars): Ditto.
11316         (delete_points_to_sets): Free graph, varmap, and complex constraints.
11317         (condese_varmap_nodes): Free complex vector.
11318         (clear_edges_for_node): Clear succs and preds vector.
11320 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
11322         * tree-ssa-structalias.c (update_alias_info): Change counting of
11323         references to not include vdefs.
11325 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
11327         * tree-ssa-alias.c (free_used_part_map): Add missing free.
11328         (up_insert): Ditto.
11330 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11332         * pa.c (pa_commutative_p): Make PLUS commutative when
11333         TARGET_NO_SPACE_REGS is true.
11335 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
11337         * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
11338         * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
11339         * tree-dfa.c (dump_subvars_for): New.
11340         (debug_subvars_for): New.
11341         (dump_variable): Show subvariables if VAR has them.
11342         * tree-flow-inline.h (get_subvar_at): New.
11343         (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
11344         * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
11345         Update all users.
11346         (struct subvar): Change fields offset and size to unsigned
11347         HOST_WIDE_INT.
11348         (dump_subvars_for): Declare.
11349         (debug_subvars_for): Declare.
11350         (get_subvar_at): Declare.
11351         (okay_component_ref_for_subvars): Change 2nd and 3rd argument
11352         to unsigned HOST_WIDE_INT *.
11353         (overlap_subvar): Likewise.
11354         * tree-gimple.c (is_gimple_reg): Always return false for
11355         SFTs and memory tags.
11356         * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
11357         Update all callers.
11358         * tree-ssa-alias.c: Include tree-ssa-structalias.h.
11359         (compute_may_aliases): Call compute_points_to_sets.
11360         (collect_points_to_info_for): Remove.
11361         (compute_points_to_and_addr_escape): Remove.
11362         (delete_alias_info): Call delete_points_to_sets.
11363         (compute_flow_sensitive_aliasing): If the call to
11364         find_what_p_points_to returns false, call set_pt_anything.
11365         (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
11366         (set_pt_anything): Clear pi->pt_vars.
11367         (set_pt_malloc): Remove.
11368         (merge_pointed_to_info): Remove.
11369         (add_pointed_to_expr): Remove.
11370         (add_pointed_to_var): Remove.
11371         (collect_points_to_info_r): Remove.
11372         (is_escape_site): Make extern.
11373         (create_sft): New.
11374         (create_overlap_variables_for): Call it.
11375         * tree-ssa-copy.c (merge_alias_info): Never merge
11376         flow-sensitive alias information.
11377         * tree-ssa-operands.c (get_expr_operands): Adjust variables
11378         offset and size to be unsigned HOST_WIDE_INT.
11379         (add_to_addressable_set): Rename from note_addressable.
11380         Set TREE_ADDRESSABLE as the variables are added to the set.
11381         Update all users.
11382         (add_stmt_operand): Do not try to micro-optimize unmodifiable
11383         operands into VUSEs when adding V_MAY_DEFs for members in an
11384         alias set.
11385         * tree-ssa-operands.h (add_to_addressable_set): Declare.
11386         * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
11387         (struct variable_info): Add bitfield is_heap_var.
11388         (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
11389         (new_var_info): Initialize is_heap_var.
11390         (get_constraint_for): Add HEAP variables to the symbol table.
11391         Mark them with is_heap_var.
11392         (update_alias_info): New.  Taken mostly from the old
11393         compute_points_to_and_addr_escape.
11394         (handle_ptr_arith): New.
11395         (find_func_aliases): Call update_alias_info.
11396         Call handle_ptr_info for tcc_binary expressions.
11397         Call mark_stmt_modified.
11398         (create_variable_info_for): If DECL has subvars, do not create
11399         variables for its subvars.  Always add all the fields.
11400         (set_uids_in_ptset): If the solution includes ANYOFFSET and
11401         SFTs, then add all the SFTs of the structure.
11402         If VI->DECL is an aggregate with subvariables, add the SFT at
11403         VI->OFFSET.
11404         (find_what_p_points_to): If VI is an artificial variable,
11405         translate to bitfields in SSA_NAME_PTR_INFO.
11406         If the solution is empty, set pi->pt_vars to NULL
11407         (init_base_vars): Create ANYOFFSET.
11408         (compute_points_to_sets): Rename from create_alias_vars.
11409         Make extern.
11410         (pass_build_pta): Remove.
11411         (delete_points_to_sets): Rename from delete_alias_vars.
11412         (pass_del_pta): Remove.
11413         * tree-ssa-structalias.h (struct alias_info): Move from
11414         tree-ssa-alias.h.
11415         (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
11416         NUM_REFERENCES_SET): Likewise.
11417         (compute_points_to_sets, delete_points_to_sets): Declare.
11419 2005-07-09  Richard Henderson  <rth@redhat.com>
11421         * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
11422         alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
11423         alpha_split_lock_test_and_set_12): New functions.
11424         * config/alpha/alpha-protos.h: Update.
11425         * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
11426         UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
11427         * config/alpha/sync.md (I12MODE): New.
11428         (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
11429         (sync_<fetchop_name><I48MODE>): Likewise.
11430         (sync_nand<I48MODE>): Likewise.
11431         (sync_old_<fetchop_name><I48MODE>): Likewise.
11432         (sync_new_<fetchop_name><I48MODE>): Likewise.
11433         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
11434         (sync_compare_and_swap<I48MODE>): Likewise.
11435         (sync_lock_test_and_set<I48MODE>): Likewise.
11436         (sync_compare_and_swap<I12MODE>): New.
11437         (sync_compare_and_swap<I12MODE>_1): New.
11438         (sync_lock_test_and_set<I12MODE>): New.
11439         (sync_lock_test_and_set<I12MODE>_1): New.
11441 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
11443         PR 21356
11444         PR 22332
11445         * passes.c (execute_todo): Cleanup the CFG before updating SSA.
11447 2005-07-09  Jakub Jelinek  <jakub@redhat.com>
11449         * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
11450         in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
11452 2005-07-09  Richard SAndiford  <richard@codesourcery.com>
11454         PR target/21656
11455         * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
11457 2005-07-08  David Edelsohn  <edelsohn@gnu.org>
11459         * config/rs6000/sync.md (load_locked_<mode>): Use Z for
11460         memory_operand constraint.
11461         (store_conditional_<mode>): Same.
11462         (sync_compare_and_swap<mode>): Same.
11463         (sync_lock_test_and_set<mode>): Same.
11465 2005-07-08  Hans-Peter Nilsson  <hp@axis.com>
11467         Rewrite PIC support to more closely model actual instructions.
11468         * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
11469         (cris_symbol): Remove prototypes for removed functions.
11470         (cris_pic_symbol_type_of, cris_valid_pic_const)
11471         (cris_expand_pic_call_address): Prototypes for new functions.
11472         * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
11473         variable.
11474         (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
11475         modifiers.
11476         <case ':'>: Add case for new punctuation character.
11477         <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
11478         emitting (extra) PIC modifier.
11479         <case UNSPEC>: Do not assert for PLT.
11480         (cris_initial_frame_pointer_offset, cris_simple_epilogue)
11481         (cris_expand_prologue, cris_expand_epilogue): Check
11482         for pic_offset_table_rtx usage instead of taking
11483         current_function_uses_pic_offset_table as the final word.
11484         (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
11485         Remove flag_pic difference.
11486         (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
11487         the moral equivalents of...
11488         (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
11489         functions.
11490         (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
11491         (cris_handle_option): Mark ARG as unused.
11492         (cris_expand_pic_call_address): New worker function for "call",
11493         "call_value".
11494         (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
11495         output PIC constructs here.
11496         (cris_output_addr_const_extra): Changes for emitting PIC modifiers
11497         as symbol-specific modifers, not whole or part of operands.
11498         * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
11499         (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
11500         constants and flag_pic.
11501         (CONSTANT_INDEX_P): Adjust for new functions.
11502         (enum cris_pic_symbol_type): New helper type.
11503         (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
11504         * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
11505         (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
11506         define_constants.
11507         ("movsi"): Emit actual instructions for GOT and relative access.
11508         ("*movsi_got_load"): New pattern to set up the register holding
11509         the GOT pointer.
11510         ("*movsi_internal"): Operand 1 is not a plain general_operand.
11511         Adjust FIXME for 'S'.
11512         <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
11513         Use "movs" for -fpic cases.
11514         ("addsi3"): Add alternative for 'S'; use adds.w when possible.
11515         ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
11516         ("call", "call_value"): Just call cris_expand_pic_call_address for
11517         PIC addresses.
11518         ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
11519         Remove special pattern.
11520         ("*expanded_call_side", "*expanded_call_value_side"): New
11521         patterns.
11522         (gotplt-to-plt, gotplt-to-plt-side-call)
11523         (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
11524         peephole2:s.
11525         * config/cris/cris/predicates.md
11526         ("cris_general_operand_or_gotless_symbol"): Remove unused
11527         predicate.
11528         ("cris_general_operand_or_symbol"): Adjust for new functions.
11530 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
11532         * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
11534 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
11536         * Makefile.in (TREE_H): Add treestruct.def.
11537         (c-decl.o): Add pointer-set.h
11538         * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
11539         visibility on regular DECL's.
11540         (merge_decls): Fix the copying of decl nodes of various types for
11541         the new structures.  Don't update RTL, section name, weak status,
11542         etc, on DECL's without RTL.
11543         (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
11544         Don't check volatile on non-variable types.
11545         (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
11546         to check whether we have seen arguments.
11547         * c-objc-common.c (c_tree_printer): Reverse order of tests so that
11548         flag is checked before field (flag is common, field is not).
11549         * dwarf2out.c (decl_ultimate_origin):  Only DECL's with
11550         TS_DECL_COMMON could have an origin.
11551         (add_location_or_const_value_attribute): Don't check section name
11552         on non-var/function decls.
11553         (dwarf2out_var_location): Reverse order of tests.
11554         * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
11555         with DECL_WRTL_CHECK.
11556         * expmed.c (make_tree): rtl is now in decl_with_rtl.
11557         * fold-const.c (fold_binary): Don't check weakness on
11558         non-var/function decls.
11559         (tree_expr_nonzero_p): Ditto.
11560         (fold_checksum_tree): Use tree_decl_extra as sizeof
11561         buffer.
11562         * ggc-page.c (extra_order_size_table): Add sizes for
11563         tree_decl_non_common, tree_parm_decl,  tree_var_decl, and
11564         tree_field_decl.
11565         * gimplify.c (gimplify_bind_expr): Only set
11566         DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
11567         * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
11568         without RTL.
11569         * langhooks-def.h (LANG_HOOK_INIT_TS): New.
11570         * langhooks.h (init_ts). New langhook.
11571         * passes.c (rest_of_decl_compilation): Reverse order of tests.
11572         * print-tree.c (print_node): Update to only print fields that
11573         exist in the structures the passed decl has.
11574         * toplev.c (wrapup_global_declarations): Don't reset
11575         DECL_DEFER_OUTPUT on DECL's that don't contain it.
11576         * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
11577         * tree-inline.c (remap_decl): Ditto.
11578         * tree-outof-ssa.c (create_temp): Reverse order of tests.
11579         * tree-pretty-print.c (print_declaration): Don't print
11580         DECL_REGISTER on things that don't contain it.
11581         * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
11582         non-var/function decls.
11583         * tree.c (tree_contains_struct): New structure.
11584         (init_priority_for_decl): New hashtable.
11585         (tree_int_map): New structure.
11586         (tree_int_map_eq): New function.
11587         (tree_int_map_marked_p): Ditto.
11588         (tree_int_map_hash): Ditto.
11589         (tree_map): Move to tree.h.
11590         (tree_map_eq): Externalize.
11591         (tree_map_hash): Ditto.
11592         (tree_map_marked_p): Ditto.
11593         (init_ttree): Set up tree_contains_struct and call langhook.
11594         (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
11595         (tree_code_size): Update for new structures.
11596         (tree_node_structure): Update for new structures.
11597         (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
11598         without the field.
11599         (copy_node_stat):  Copy init priority.
11600         (build_decl_stat): Ditto for visibility.
11601         (ts_enum_names): New.
11602         (tree_contains_struct_check_failed): New function.
11603         (decl_init_priority_lookup): Ditto.
11604         (decl_init_priority_insert): Ditto.
11605         * treestruct.def: New file.
11606         * tree.h (CODE_CONTAINS_STRUCT): New macro.
11607         (CONTAINS_STRUCT_CHECK): Ditto.
11608         (tree_contains_struct_check_failed): New prototype.
11609         (DECL_CHECK): Removed.
11610         (DECL_MINIMAL_CHECK): New.
11611         (DECL_COMMON_CHECK): Ditto.
11612         (DECL_WRTL_CHECK): Ditto.
11613         (DECL_NON_COMMON_CHECK): Ditto.
11614         (DECL_WITH_VIS_CHECK): Ditto.
11615         (VAR_OR_FUNCTION_DECL_P): Ditto
11616         (struct tree_decl_minimal): New structure.
11617         (struct tree_decl_common): Ditto.
11618         (struct tree_decl_with_rtl): Ditto.
11619         (struct tree_decl_with_vis): Ditto.
11620         (struct tree_decl_non_common): Ditto.
11621         (struct tree_field_decl): Ditto.
11622         (struct tree_parm_decl): Ditto.
11623         (struct tree_var_decl): Ditto.
11624         (struct tree_function_decl): Ditto.
11625         (struct tree_const_decl): Ditto.
11626         (struct tree_result_decl): Ditto.
11627         (union tree_node): Add new structures.
11628         * var-tracking.c (track_expr_p): Reverse order of tests.
11630         * doc/c-tree.texi: Add documentation on DECL node internal structure.
11632 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
11634         * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
11635         * system.h: Poison FINALIZE_PIC.
11636         * doc/tm.texi (FINALIZE_PIC): Remove.
11638 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
11640         PR tree-opt/22329
11641         * tree-ssa-propagate.c (fold_predicate_in): Convert the value
11642         to the correct type if we have a MODIFY_EXPR.
11644 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
11646         PR tree-optimization/22360
11647         * tree.c (upper_bound_in_type): Fix calculations for casting
11648         to a non-wider signed type and casting a signed value to a
11649         wider unsigned type.
11650         (lower_bound_in_type): Fix calculations for casting to a
11651         non-wider signed type.
11653         PR tree-optimization/20139
11654         * tree-cfg.c (remove_bb): Check in_ssa_p before calling
11655         release_defs.
11656         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
11657         fold_cond_expr_cond.
11658         * tree-ssanames.c (release_defs): Assert in_ssa_p.
11659         * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
11661 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
11663         PR tree-opt/22356
11664         * tree-complex.c (expand_complex_libcall): Produce
11665         REALPART_EXPR/IMAGPART_EXPR with the correct type.
11667 2005-07-08  Kenneth Zadeck <zadeck@naturalbridge.com>
11669         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
11670         bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
11671         b" assert and inserted fastpath code for this case.
11672         (bitmap_ior): Removed "a != b" assert.
11674 2005-07-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
11676         * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
11677         (ENDFILE_SPEC): Likewise.
11678         * config/m32r/m32r.h (ASM_SPEC): Likewise.
11680         * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
11681         a large stack frame at epilogue.
11683 2005-07-08  David Billinghurst  <David.Billinghurst@riotinto.com>
11685         * final.c: Include sdbout.h when required.
11687 2005-07-07  Geoffrey Keating  <geoffk@apple.com>
11689         * config.gcc (*-*-darwin*): Only one target-specific header file
11690         for generic darwin.
11691         (powerpc-*-darwin*): Add version-specific header files.
11692         * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
11693         * config.in: Regenerate.
11694         * configure: Regenerate.
11695         * gcc.c: Include xregex.h.
11696         (version_compare_spec_function): New.
11697         (spec_function): Add version-compare.
11698         (replace_outfile_spec_function): Reformat comment.
11699         (compare_version_strings): New.
11700         * config/darwin-c.c (version_as_macro): New.
11701         (builtin_define): New.
11702         (darwin_cpp_builtins): New.
11703         * config/darwin-protos.h (darwin_cpp_builtins): New.
11704         * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
11705         (LIB_SPEC): Make unconditional, update comment.
11706         (TARGET_C99_FUNCTIONS): Define.
11707         * config/darwin.opt: Sort.
11708         (mmacosx-version-min=): New.
11709         * config/darwin7.h: Delete.
11710         * config/darwin8.h: Delete.
11711         * config/i386/darwin.h (): Call darwin_cpp_builtins.
11712         * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
11713         (TARGET_C99_FUNCTIONS): Define.
11714         * config/rs6000/darwin7.h: New.
11715         * config/rs6000/darwin8.h: New.
11716         * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
11717         (-mmacosx-version-min): Document.
11719 2005-07-07  Ian Lance Taylor  <ian@airs.com>
11721         * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
11723 2005-07-07  John David Anglin  <dave.anglin@nrc-crc.gc.ca>
11725         PR middle-end/22239
11726         * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
11728 2005-07-07  Khem Raj  <kraj@mvista.com>
11730         * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
11731         in bytes, not words.
11733 2005-07-07  Paul Brook  <paul@codesourcery.com>
11735         * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
11736         DEFAULT_FUNCTION_ARG_PADDING to upward.
11738 2005-07-07  Richard Henderson  <rth@redhat.com>
11740         * function.c (locate_and_pad_parm): Record parameter alignment in
11741         stack_alignment_needed.
11743 2005-07-07  David Edelsohn  <edelsohn@gnu.org>
11745         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
11746         UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
11747         (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
11748         UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
11749         (define_attr "type"): Add isync, sync, load_l, store_c.
11750         * config/rs6000/sync.md (memory_barrier): Change to define_expand.
11751         Create scratch volatile MEM.
11752         (sync_internal): New.  POWER mnemonic is dcs, not ics.  Attribute
11753         sync.
11754         (load_locked_<mode>): New.
11755         (store_conditional_<mode>): New.
11756         (sync_compare_and_swap<mode>): Replace with splitter.
11757         (sync_lock_test_and_set<mode>): Replace with splitter.
11758         (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
11759         and UNSPECV_ISYNC.
11760         (isync): Change to unspec_volatile UNSPECV_ISYNC.  POWER mnemonic
11761         is ics.  Attribute isync.
11762         (lwsync): Change to unspec_volatile UNSPECV_LWSYNC.  Attribute
11763         lwsync.
11764         * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
11765         and UNSPECV_SYNC_OP.
11766         (emit_unlikely_jump): New.
11767         (emit_load_locked): New.
11768         (emit_store_conditional): New.
11769         (rs6000_split_compare_and_swap): New.
11770         (rs6000_split_lock_test_and_set): New.
11771         (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
11772         TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
11773         * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
11774         rs6000_split_lock_test_and_set): Declare.
11775         * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
11776         mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
11777         store_c, isync, sync.
11779 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
11781         * Makefile.in (echo_quoted_to_gtyp): New template for outputing
11782         filenames to gtyp-gen.h.
11783         (s-typ-gen): Use it in place of for loops.
11785 2005-07-07  J"orn Rennecke <joern.rennecke@st.com>
11787         * hooks.c (hook_bool_rtx_int_false): New function.
11788         * hooks.h (hook_bool_rtx_int_false): Declare.
11789         * target-def.h (TARGET_COMMUTATIVE_P): Define.
11790         (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
11791         * target.h (struct gcc_target): Add commutative_p member.
11792         * targhooks.c (hook_bool_rtx_commutative_p): New function.
11793         * targhooks.h (hook_bool_rtx_commutative_p): Declare.
11794         * pa.c (TARGET_COMMUTATIVE_P): Redefine.
11795         (pa_commutative_p): New function.
11796         * jump.c (target.h): Include.
11797         (rtx_renumbered_equal_p): Use targetm.commutative_p.
11798         * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
11800 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
11802         * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
11803         (s390_expand_setmem): New.
11804         * config/s390/s390.c: Likewise.
11805         (print_shift_count_operand): Truncate to 12 bits instead of 6.
11806         Adapt comments.
11807         * config/s390/s390.md: ("setmem<mode>"): Accept character as
11808         general_operand.  Call new function "s390_expand_setmem".
11809         ("clrmem_long", "*clrmem_long"): Rewrite to ...
11810         ("setmem_long", "*setmem_long"): ... this.
11812 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
11814         * config/s390/s390.c: (optimization_options): Enable
11815         TARGET_MVCLE at -Os.
11816         * doc/invoke.texi: Document changes in default behaviour.
11817         * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
11819 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
11821         * expr.c: (set_storage_via_setmem): Convert opchar to mode
11822         defined by back-end.
11824 2005-07-07  Jakub Jelinek  <jakub@redhat.com>
11826         * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
11827         all sets in the pattern.
11828         * config/rs6000/rs6000.md (stack_protect_testsi,
11829         stack_protect_testdi): Likewise.
11831 2005-07-06  Jeff Law  <law@redhat.com>
11833         * tree-vrp.c (simplify_using_ranges): Kill.
11834         (vrp_finalize): Remove call to simplify_using_ranges.
11835         (simplify_stmt_using_ranges): New function extracted from
11836         simplify_using_ranges.
11837         (simplify_div_or_mod_using_ranges): Likewise.
11838         (simplify_abs_using_ranges): Likewise.
11839         (simplify_cond_using_ranges): New function.
11840         * tree-flow.h (simplify_stmt_using_ranges): Prototype.
11841         * tree-ssa-propagate.c (substitute_and_fold): Call
11842         simplify_stmt_using_ranges if we have range information.
11844 2005-07-06  James E. Wilson  <wilson@specifixinc.com>
11846         * config/ia64/ia64.c (ia64_reorg): Check optimize before
11847         ia64_flag_schedule_isns2.
11849         * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
11850         reading/writing general registers.
11851         (ia64_function_arg): Revert 2005-06-18 change.
11853 2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
11855         * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
11856         (legitimize_tls_address): Use gcc_unreachable instead of abort.
11858 2005-07-06  Kaz Kojima  <kkojima@gcc.gnu.org>
11860         * function.c (expand_function_end): Revert part of 2005-06-27
11861         patch.  Do sjlj_emit_function_exit_after after return_label.
11863 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
11865         * doc/install.texi (--disable-libssp): New.
11867 2005-07-06  Fariborz Jahanian <fjahanian@apple.com>
11869         * doc/invoke.texi: Update -fforce-mem documentation.
11870         * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
11871         code for -fforce-mem.
11872         * expmed.c: (store_bit_field,store_fixed_bit_field,
11873         extract_bit_field): Ditto.
11874         * expr.c: (convert_move): Ditto.
11875         * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
11876         expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
11877         emit_conditional_add,expand_float,expand_fix): Ditto.
11878         * opts.c: (decode_options): Remove setting of flag_force_mem flag.
11879         (common_handle_option): Issue warning when -fforce-mem specified.
11881 2005-07-06  Paul Brook  <paul@codesourcery.com>
11883         * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
11884         argument is empty.
11885         * configure: Regenerate.
11887 2005-07-06  J"orn Rennecke <joern.rennecke@st.com>
11889         * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
11891 2005-07-06  Daniel Berlin  <dberlin@dberlin.org>
11893         Fix PR tree-optimization/22319
11894         Fix PR tree-optimization/22140
11895         Fix PR tree-optimization/22310
11897         * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
11898         variable sized types.
11899         Use correct type for intermediate structure on *a = *b structure
11900         copies.
11902 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
11904         * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
11905         Remove.
11906         (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
11907         (machine_function): Move typedef to...
11908         * config/rs6000/rs6000.c (machine_function): ... here.  Add
11909         varargs_save_offset field.
11910         (rs6000_stack_t): Remove varargs_size field.
11911         (setup_incoming_varargs): Allocate varargs save area using
11912         assign_stack_local, try to make it as small as possible.
11913         Save offset from virtual_stack_vars_rtx to the save area
11914         in cfun->machine->varargs_save_offset.  Use UNITS_PER_FP_WORD
11915         instead of magic 8 when fp word byte size is used.
11916         (rs6000_va_start): Use cfun->machine->varargs_save_offset
11917         instead of -RS6000_VARARGS_SIZE.
11918         (rs6000_stack_info, debug_stack_info,
11919         rs6000_initial_elimination_offset): Remove all traces of
11920         varargs_size.
11921         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
11922         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
11923         RS6000_VARARGS_AREA.
11925 2005-07-06  Zdenek Dvorak  <dvorakz@suse.cz>
11927         PR tree-optimization/21963
11928         * tree-ssa-loop-ivopts.c (get_computation_aff): Use
11929         constant_multiple_of in the same way get_computation_cost_at does.
11931 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
11933         * config/sparc/sparc.h (sparc_compare_emitted): New extern.
11934         * config/sparc/sparc.c (sparc_compare_emitted): New variable.
11935         (gen_compare_reg): If sparc_compare_emitted is set, clear it
11936         and return its previous value.
11937         (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
11938         * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
11939         constants.
11940         (stack_protect_set, stack_protect_test): New expanders.
11941         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
11942         stack_protect_testdi): New insns.
11943         * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
11944         * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
11946 2005-07-06  Jeff Law  <law@redhat.com>
11948         * tree-ssa-dce.c (cfg_altered): New global.
11949         (tree_dce_init): Initialize cfg_altered.
11950         (remove_dead_stmt): If we remove an edge in the CFG, then set
11951         CFG_ALTERED.
11952         (perform_tree_ssa_dce): If we altered the CFG, then invalidate
11953         the dominators.
11955 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
11957         * Makefile.in (stamp-collect-ld): Use
11958         $(ORIGINAL_LD_FOR_TARGET) instead of $<.  Don't remove
11959         ./collect-ld if it already exists.
11960         (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
11961         Don't remove ./nm if it already exists.
11963 2005-07-05  Devang Patel  <dpatel@apple.com>
11965         * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
11966         (LOOP_VINFO_LOC, LOOP_LOC): Remove.
11967         * tree-vectorizer.c (vect_loop_location): New.
11968         (vect_print_dump_info): Use vect_loop_location.
11969         (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
11970         (vectorize_loops): Set vect_loop_location.
11971         * tree-vect-analyze.c (vect_analyze_offset_expr,
11972         vect_determin_vectorization_factor, vect_analyze_operations,
11973         vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
11974         vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
11975         vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
11976         vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
11977         vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
11978         vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
11979         vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
11980         vect_analyze_loop): Adjust vect_print_dump_info API.
11981         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
11982         vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
11983         vect_finish_stmt_generation, vectorizable_assignment,
11984         vectorizable_operation, vectorizable_store, vectorizable_load,
11985         vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
11986         vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
11987         vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
11988         vect_transform_loop): Same.
11989         * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
11990         vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
11991         Same.
11993 2005-07-05  Randolph Chung  <tausq@debian.org>
11995         * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
11996         * configure: Regenerate.
11997         * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
11998         (pa_tls_referenced_p): Declare.
11999         * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
12000         (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
12001         (legitimize_tls_address): New.
12002         (hppa_legitimize_address): Handle TLS addresses.
12003         (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
12004         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
12005         (emit_move_sequence): Handle TLS addresses.
12006         (pa_encode_section_info): Call default handler to handle common
12007         sections.
12008         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
12009         (CONSTANT_ADDRESS_P): Reject TLS operands.
12010         (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
12011         * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
12012         (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
12013         (UNSPEC_TLSLE): Define new constants.
12014         (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
12015         * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
12016         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
12017         (tie_symbolic_operand, tle_symbolic_operand): New
12019 2005-07-06  Kelley Cook  <kcook@gcc.gnu.org>
12021         * aclocal.m4: Update macros for autoconf 2.59 style.
12022         * configure.ac: Likewise.
12024 2005-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12026         * pa.c (function_value): Handle small aggregates on 32-bit targets.
12027         (function_arg): Pass small aggregates in general registers on 32-bit
12028         targets.
12029         * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
12031 2005-07-05  Andrew Pinski  <pinskia@physics.uc.edu>
12033         * Makefile.in (final.o): Fix dependencies.
12035 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
12037         PR c/22013
12038         PR c/22098
12039         * langhooks.h (struct lang_hooks): Add expr_to_decl.
12040         * langhooks.c (lhd_expr_to_decl): New.
12041         * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
12042         New.
12043         (LANG_HOOKS_INITIALIZER): Update.
12044         * tree.c (recompute_tree_invarant_for_addr_expr): Call
12045         expr_to_decl langhook.
12046         * c-tree.h (c_expr_to_decl): Declare.
12047         * c-typeck.c (c_expr_to_decl): New.
12048         (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
12049         specially.
12050         * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
12052 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
12054         PR c/22308
12055         * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
12056         C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
12058 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
12060         * Makefile.in: Adjust dependencies.
12061         * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
12062         * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
12063         * alias.c (rest_of_handle_cfg, pass_cfg): New.
12064         * bb-reorder.c (duplicate_computed_gotos): Make it static.
12065         * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
12066         rest_of_compilation.
12068         * bb-reorder.c (gate_duplicate_computed_gotos,
12069         pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
12070         rest_of_handle_reorder_blocks, pass_reorder_blocks,
12071         gate_handle_partition_blocks, rest_of_handle_partition_blocks,
12072         pass_partition_blocks): New.
12073         * bt-load.c (gate_handle_branch_target_load_optimize,
12074         rest_of_handle_branch_target_load_optimize,
12075         pass_branch_target_load_optimize): New.
12076         * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
12077         pass_jump2): New.
12078         * cfglayout.c (pass_insn_locators_initialize): New.
12079         * cfgrtl.c (pass_free_cfg): New.
12080         * combine.c (gate_handle_combine, rest_of_handle_combine,
12081         pass_combine): New.
12082         * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
12083         gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
12084         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
12085         * except.c (pass_set_nothrow_function_flags,
12086         pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
12087         pass_rtl_eh): New.
12088         * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
12089         rest_of_handle_shorten_branches, pass_shorten_branches,
12090         rest_of_clean_state, pass_clean_state): New.
12091         * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
12092         rest_of_handle_remove_death_notes, pass_remove_death_notes,
12093         rest_of_handle_life, pass_life, rest_of_handle_flow2,
12094         pass_flow2): New.
12095         * function.c (pass_instantiate_virtual_regs, pass_init_function,
12096         rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
12097         * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
12098         pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
12099         pass_gcse): New.
12100         * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
12101         * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
12102         pass_rtl_ifcvt, gate_handle_if_after_combine,
12103         rest_of_handle_if_after_combine, pass_if_after_combine,
12104         gate_handle_if_after_reload, rest_of_handle_if_after_reload,
12105         pass_if_after_reload): New.
12106         * integrate.c (pass_initial_value_sets): New.
12107         * jump.c (pass_cleanup_barriers, purge_line_number_notes,
12108         pass_purge_lineno_notes): New.
12109         * mode-switching.c (rest_of_handle_mode_switching,
12110         pass_mode_switching): New.
12111         * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
12112         * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
12113         pass_loop2): New.
12114         * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
12115         pass_loop_optimize): New.
12116         * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
12117         pass_sms): New.
12118         * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
12119         pass_gcse2): New.
12120         * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
12121         pass_postreload_cse): New.
12122         * profile.c (gate_handle_profiling, pass_profiling,
12123         rest_of_handle_branch_prob, pass_branch_prob): New.
12124         * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
12125         pass_split_before_regstack, gate_handle_split_before_regstack,
12126         gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
12127         rest_of_handle_split_all_insns, pass_split_all_insns): New.
12128         * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
12129         pass_stack_regs): New.
12130         * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
12131         gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
12132         pass_stack_adjustments): New.
12133         * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
12134         pass_regrename): New.
12135         * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
12136         pass_delay_slots, gate_handle_machine_reorg,
12137         rest_of_handle_machine_reorg, pass_machine_reorg): New.
12138         * rtl.h (extern void purge_line_number_notes): New.
12139         * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
12140         gate_handle_sched2, rest_of_handle_sched2, pass_sched,
12141         pass_sched2): New.
12142         * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
12143         pass_tracer): New.
12144         * value-prof.c (gate_handle_value_profile_transformations,
12145         rest_of_handle_value_profile_transformations,
12146         pass_value_profile_transformations): New.
12147         * var-tracking.c (gate_handle_var_tracking,
12148         pass_variable_tracking): New.
12149         * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
12151         * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
12152         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
12153         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
12154         rest_of_handle_old_regalloc, rest_of_handle_regrename,
12155         rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
12156         rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
12157         rest_of_handle_gcse2, rest_of_handle_regmove,
12158         rest_of_handle_tracer, rest_of_handle_if_conversion,
12159         rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
12160         rest_of_handle_web, rest_of_handle_branch_prob,
12161         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
12162         rest_of_handle_jump_bypass, rest_of_handle_combine,
12163         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
12164         rest_of_handle_gcse, rest_of_handle_loop_optimize,
12165         rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
12166         rest_of_handle_mode_switching, rest_of_handle_jump,
12167         rest_of_handle_eh, rest_of_handle_stack_adjustments,
12168         rest_of_handle_flow2, rest_of_handle_jump2,
12169         rest_of_handle_peephole2, rest_of_handle_postreload,
12170         rest_of_handle_shorten_branches, rest_of_clean_state,
12171         rest_of_compilation): Remove.
12173         * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
12174         * passes.c (dump_flags, in_gimple_form, all_passes,
12175         all_ipa_passes, all_lowering_passes, register_one_dump_file,
12176         register_dump_files, next_pass_1, last_verified, execute_todo,
12177         execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
12178         from tree-optimize.c.
12179         (init_optimization_passes): Moved from tree-optimize.c,
12180         adding the RTL optimizations.
12181         * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
12182         * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
12183         all_ipa_passes, all_lowering_passes, register_one_dump_file,
12184         register_dump_files, next_pass_1, last_verified, execute_todo,
12185         execute_one_pass, execute_pass_list, execute_ipa_pass_list,
12186         init_tree_optimization_passes, ipa_passes): Delete.
12187         * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
12188         the RTL dumps.
12189         (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
12190         dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
12191         from tree.h.
12192         (ipa_passes): Remove.
12193         (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
12194         * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
12195         dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
12196         dump_switch_p, dump_flag_name): Moved to tree-pass.h.
12197         (dump_info_p, dump_flag): Moved to tree-dump.h.
12199         * Makefile.in: Adjust dependencies for tree-pretty-print.c,
12200         cgraph.c, opts.c.
12201         * passes.c (finish_optimization_passes): Use dump_begin
12202         and dump_end, TDI_end.
12203         (gate_rest_of_compilation): New.
12204         (pass_rest_of_compilation): Use it.
12205         (gate_postreload, pass_postreload): New.
12206         * toplev.c (general_init): Rename init_tree_optimization_passes.
12207         * toplev.h (init_tree_optimization_passes): Rename to
12208         init_optimizations_passes.
12209         * tree-dump.c (dump_flag): Make static.
12210         (dump_files): Remove RTL dumps.
12211         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
12212         pass_cleanup_cfg, pass_free_cfg_annotations,
12213         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
12214         pass_init_datastructures, pass_fixup_cfg): Make non-static.
12215         * tree-pretty-print.c: Include tree-pass.h.
12216         * cgraph.c: Include tree-dump.h.
12218 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
12220         * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
12221         Only fall back to saying it points to readonly memory if
12222         we can't do better.
12224 2005-07-05  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
12226         * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
12227         * config/m32r/m32r.c (m32r_compute_frame_size,
12228         m32r_expand_prologue): Take current_function_profile into
12229         account whenever we reference
12230         current_function_uses_pic_offset_table.
12231         (m32r_finalize_pic): Remove.
12232         * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
12234 2005-07-05  Kazu Hirata  <kazu@codesourcery.com>
12236         * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
12237         instead of $<.  Don't remove ./as if it already exists.
12239 2005-07-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12241         PR target/21723
12242         * pa.md: Remove fcpy alternative from movhi and movqi patterns.
12243         * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
12244         for complex modes when generating code for PA 1.0.
12245         (VALID_FP_MODE_P): New macro.
12246         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
12247         sets for all general and floating point modes.  Align wide floating
12248         point modes to even register boundaries to comply with architectural
12249         requirements.
12250         (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
12251         * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
12252         (VALID_FP_MODE_P): New macro.
12253         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
12254         sets for all general and floating point modes.  Align wide floating
12255         point modes to even register boundaries to comply with architectural
12256         requirements.
12258 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
12260         * tree-dump.c (dump_files): Initialize dump number for .cgraph
12261         to 0.
12263 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
12265         * tree-ssa-structalias.c: Don't include expr.h.
12267 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
12269         * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
12270         comments.
12272 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
12274         Fix PR tree-optimization/22279
12276         * tree-ssa-structalias.c (offset_overlaps_with_access): Use
12277         correct operator.
12279 2005-07-04  J"orn Rennecke <joern.rennecke@st.com>
12281         * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
12283 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
12285         * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
12286         cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
12287         config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
12288         config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
12289         config/stormy16/stormy16.c, config/v850/v850.c,
12290         config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
12291         except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
12292         Avoid "." or "\n" at end of diagnostics and capital letters at
12293         start of diagnostics.
12294         * combine.c, cse.c: Don't translate dump file output.
12295         * toplev.c (print_version): Only translate output if going to
12296         stderr.
12298 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
12300         * c-decl.c, tree-object-size.c, tree-vectorizer.c,
12301         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
12302         typos.
12304 2005-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12306         * pa.c (fix_range): Fix typo in comment.
12308 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
12310         * tree-vrp.c (extract_range_from_assert): Replace
12311         fold (build (...)) with fold_build2.
12313 2005-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12315         * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
12316         gcc_gfc_char_table, init_dynamic_gfc_info): New.
12317         (format_types_orig, handle_format_attribute): Add support for
12318         format "gcc_gfc".
12320 2005-07-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12322         * varasm.c (assemble_variable): Fix format specifier thinko.
12324 2005-07-03  Ira Rosen  <irar@il.ibm.com>
12326         PR tree-optimization/22029 (and 22135)
12327         * tree-pretty-print.c (dump_generic_node): Check that the node is not
12328         a phi node before calling dump_vops.
12330 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12332         * tree-dump.h (dump_string_field): Declare.
12333         * tree-dump.c: Use it instead of dump_string.
12334         (dump_string_field): Make non-static.
12336 2005-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
12338         * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
12339         up the minimal CFG stuff always when optimize > 0.  Call
12340         split_all_insns_noflow in PIC case if needed.
12342 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12343             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
12345         PR c++/18279
12346         * c-decl.c (c_write_global_declarations): Dump contents of
12347         external scope to.
12348         * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
12349         <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
12350         <GOTO_EXPR>, <SWITCH_EXPR>: Add.
12351         (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
12352         is enabled.
12354 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
12356         * c-common.h (GCC_DIAG_STYLE): Define.
12357         * c-tree.h (GCC_DIAG_STYLE): Do not define.  Change minimum GCC
12358         version for format checking to 4.1.
12359         * c-format.c: Include toplev.h after c-common.h.
12360         (enum format_type): Add gcc_tdiag_format_type.
12361         (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
12362         gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
12363         (format_types_orig): Add gcc_tdiag.
12364         (init_dynamic_diag_info): Support gcc_tdiag formats.
12365         (handle_format_attribute): Likewise.
12366         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
12367         (GCC_DIAG_STYLE): Default to __gcc_tdiag__.  Change minimum GCC
12368         version for format checking to 4.1.
12369         (warning0, warning, error, pedwarn, sorry): Use
12370         ATTRIBUTE_GCC_DIAG.
12371         * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
12372         (finish_aliases_1): Do not use %qE.
12373         * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
12374         config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
12375         Correct format bugs.
12376         * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
12377         parameter to unsigned HOST_WIDE_INT.
12378         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
12380 2005-07-02  David Edelsohn  <edelsohn@gnu.org>
12382         PR middle-end/21742
12383         * expr.c (write_complex_part): Use adjust_address for MEM.
12384         (read_complex_part): Same.
12386 2005-07-02  Daniel Berlin  <dberlin@dberlin.org>
12388         Fix PR tree-optimization/22280
12390         * tree-sra.c (generate_element_init): Remove useless loop.
12392 2005-07-02  Richard Henderson  <rth@redhat.com>
12394         * config/alpha/alpha.c (alpha_legitimize_address): Check for
12395         TLS_MODEL_NONE.
12396         (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
12398 2005-07-02  Andrew Pinski  <pinskia@physics.uc.edu>
12400         PR middle-end/14490
12401         * fold-const.c (fold_binary): Handle the return value of
12402         fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
12403         Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
12405 2005-07-02  Jeff Law  <law@redhat.com>
12407         * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
12408         a eliminate type conversion which feeds an equality comparison
12409         if the original type or either operand in the comparison is a
12410         function pointer.
12412 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
12414         * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
12415         config/rs6000/rs6000.opt, params.def: Remove "." from end of help
12416         texts.
12417         * config/avr/avr.c: Do not use '`' as left quote.
12418         * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
12419         Remove "." from end of diagnostics.  Make diagnostics start with
12420         lowercase letter.
12422 2005-07-02  Zack Weinberg  <zack@codesourcery.com>
12423             Joseph S. Myers  <joseph@codesourcery.com>
12425         * toplev.c (default_tree_printer): Handle setting location with
12426         '+' flag.
12427         * c-objc.common.c (c_tree_printer): Likewise.
12428         * c-format.c (gcc_diag_flag_specs): Add '+'.
12429         (gcc_cdiag_char_table): Allow '+' flag for tree formats.
12430         (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
12431         formats.
12432         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
12433         config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
12434         config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
12435         config/v850/v850.c, function.c, stor-layout.c, toplev.c,
12436         tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
12437         instead of %J or %H.  Use 'q' flag for quoting.  Avoid '.' at end
12438         of diagnostics.  Use %q+D not %s for a decl.  Do not pass excess
12439         format arguments where %J is used without %D.
12441 2005-07-02  Jakub Jelinek  <jakub@redhat.com>
12443         * gcc.c (LINK_SSP_SPEC): Define.
12444         (link_ssp_spec): New variable.
12445         (LINK_COMMAND_SPEC): Add %(link_ssp).
12446         (static_specs): Add link_ssp_spec.
12447         * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
12448         * configure: Rebuilt.
12449         * config.in: Rebuilt.
12451         * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
12452         * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
12453         * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
12454         * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
12455         * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
12456         If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
12457         -0x7008(2) instead of reading __stack_chk_guard variable.
12458         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
12459         number.
12460         (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
12461         (stack_protect_set, stack_protect_test): Use *_tls* patterns
12462         if TARGET_THREAD_SSP_OFFSET is defined.
12463         (stack_tls_protect_set_si, stack_tls_protect_set_di,
12464         stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
12466         Revert:
12467         2005-06-27  Richard Henderson  <rth@redhat.com>
12468         * libgcc-std.ver (GCC_4.1.0): New.
12469         * libgcc.h (__stack_chk_guard): Declare.
12470         (__stack_chk_fail, __stack_chk_fail_local): Declare.
12471         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
12472         * mklibgcc.in (lib2funcs): Add them.
12474 2005-07-01  Richard Henderson  <rth@redhat.com>
12476         * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
12477         void * before struct sigcontext *.
12478         (x86_fallback_frame_state): Likewise.
12480 2005-07-01  James E. Wilson  <wilson@specifixinc.com>
12482         * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
12484 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
12486         PR tree-opt/22269
12487         * tree-ssa-reassoc.c (should_transpose): Fix which operand
12488         we check for SSA_NAME for.
12490 2005-07-01  Daniel Berlin  <dberlin@dberlin.org>
12492         Fix PR tree-optimization/22071
12494         * tree-ssa-structalias.c (offset_overlaps_with_access): New
12495         function.
12496         (get_constraint_for_component_ref): Use it.
12498 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
12500         PR other/22264
12501         * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
12502         print out the last new line.
12504 2005-07-01  Hans-Peter Nilsson  <hp@axis.se>
12506         * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
12507         Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
12508         * config/cris/cris.c (cris_conditional_register_usage): Adjust
12509         reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
12510         (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
12511         (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
12512         * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
12513         (enum reg_class): New member CC0_REGS.
12514         (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
12515         (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
12516         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
12517         (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
12518         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
12519         Adjust for register now described.
12521 2005-07-01  Jakub Jelinek  <jakub@redhat.com>
12523         PR target/22262
12524         * config/i386/i386.md (stack_protect_test_si,
12525         stack_protect_test_di): Add earlyclobber for scratch 3.
12526         * config/rs6000/rs6000.md (stack_protect_testsi,
12527         stack_protect_testdi): Add earlyclobber for scratch 3,
12528         remove earlyclobber from scratch 4.
12530 Older entries for 2005 can be found in ChangeLog-2005.