OSDN Git Service

Fix the Xassembler and Xpreprocessor options, which have never worked right.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-05-04  James E Wilson  <wilson@specifixinc.com>
2
3         PR driver/21112
4         * gcc.c (process_command): In the second argv scan loop, ignore
5         Xassembler and Xpreprocessor, along with their argument.
6
7 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
8
9         * tree-flow-inline.h, tree-ssa-operands.c,
10         tree-ssa-operands.h, tree-ssa-opfinalize.h:
11         Likewise. tree-vn.c: Fix comment typos.
12         * doc/passes.texi, doc/tree-ssa.texi: Fix typos.
13
14 2005-05-04  Paolo Bonzini  <bonzini@gnu.org>
15
16         * doc/tm.texi (Target Hooks): Document
17         TARGET_RESOLVE_OVERLOADED_BUILTIN.
18
19 2005-05-04  Paul Brook  <paul@codesourcery.com>
20
21         * Makefile.in: Change dependencies on target.h to $(TARGET_H).
22
23 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
24
25         * dwarf2out.c (incomplete_types, retry_incomplete_types,
26         gen_struct_or_union_type_die, dwarf2out_init): Use VEC instead
27         of VARRAY.
28
29         * loop-unroll.c (var_to_expand, analyze_insn_to_expand_var,
30         get_expansion, expand_var_during_unrolling,
31         insert_var_expansion_initialization,
32         combine_var_copies_in_loop_exit, release_var_copies): Use VEC
33         instead of VARRAY.
34
35         * tree-ssa-loop-ivopts.c (rewrite_address_base): Don't call
36         update_stmt.
37
38 2004-05-03  Andrew Pinski  <pinskia@physics.uc.edu>
39
40         PR middle-end/15618
41         * fold-const.c (fold_widened_comparison): Treat BOOLEAN_TYPE
42         the same as INTEGER_TYPE.
43         (fold_binary): Fold "bool_var != 0" to bool_var.
44         Fold "bool_var == 1" to bool_var.
45
46 2004-05-03  Richard Henderson  <rth@redhat.com>
47
48         PR middle-end/21318
49         * function.c (instantiate_virtual_regs_in_insn): Use the mode
50         from recog_data instead of insn_data.
51
52 2005-05-03  DJ Delorie  <dj@redhat.com>
53
54         * common.opt (fdiagnostics-show-option): No variable is needed.
55         * diagnostic.h (diagnostic_context): Add show_option_requested flag.
56         * diagnostic.c (diagnostic_initialize): Initialize show_option_requested.
57         (diagnostic_report_diagnostic): Test for enabled diagnostics here.
58         Save and restore original message format.  Use flag in context
59         instead of global.
60         (warning): Don't test for enabled warnings here.
61         * opts.c (common_handle_option): Handle -fdiagnostics-show-option
62         here.
63
64 2005-05-04  Kelley Cook  <kcook@gcc.gnu.org>
65
66         * config/m32r/xm-m32r.h: Don't define HOST_WORDS_BIG_ENDIAN.
67         * config/m32r/xm-linux.h: Don't undefine HOST_WORDS_BIG_ENDIAN.
68         * mips-tfile.c: Use WORDS_BIG_ENDIAN instead of HOST_WORDS_BIG_ENDIAN.
69         * aclocal.m4: Don't include accross.m4.
70         * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
71         Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
72         * configure, config.in: Regenerate.
73         
74 2005-05-04  Jakub Jelinek  <jakub@redhat.com>
75
76         PR middle-end/21265
77         * expr.h (enum block_op_methods): Add BLOCK_OP_TAILCALL.
78         (clear_storage): Add argument.
79         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall):
80         Add tailcall argument, set CALL_EXPR_TAILCALL of the CALL_EXPR to
81         tailcall.
82         (emit_block_move): Handle BLOCK_OP_TAILCALL method.
83         (clear_storage): Add method argument, handle BLOCK_OP_TAILCALL.
84         (store_expr, store_constructor): Adjust callers.
85         * builtins.c (expand_builtin_memcpy): Pass BLOCK_OP_TAILCALL
86         to emit_block_move if CALL_EXPR_TAILCALL (exp).
87         (expand_builtin_memmove): Add ORIG_EXP argument, copy
88         CALL_EXPR_TAILCALL from ORIG_EXP to the new CALL_EXPR.
89         (expand_builtin_bcopy): Replace ARGLIST and TYPE arguments
90         with EXP.  Pass EXP to expand_builtin_memmove.
91         (expand_builtin_memset): Add ORIG_EXP argument, pass
92         BLOCK_OP_TAILCALL to clear_storage if CALL_EXPR_TAILCALL (orig_exp).
93         (expand_builtin_bzero): Replace ARGLIST argument with EXP.
94         Pass EXP to expand_builtin_memset.
95         (expand_builtin_strcmp): Copy CALL_EXPR_TAILCALL from EXP to
96         the new CALL_EXPR.
97         (expand_builtin_strncmp): Likewise.
98         (expand_builtin_printf): Replace ARGLIST argument with EXP.
99         Copy CALL_EXPR_TAILCALL from EXP to the new CALL_EXPR.
100         (expand_builtin_fprintf): Likewise.
101         (expand_builtin): Adjust calls to
102         expand_builtin_{memmove,bcopy,memset,bzero,{,f}printf}.
103
104         * config/i386/i386.c (ix86_expand_vector_set): Fix setting 3rd and 4th
105         item in V4SF mode.
106
107         PR rtl-optimization/21239
108         * combine.c (combine_simplify_rtx) <case VEC_SELECT>: Fix a typo.
109
110 2005-05-03  Kazu Hirata  <kazu@cs.umass.edu>
111
112         * tree-flow.h (tree_ann_common_d): Move aux to ...
113         (stmt_ann_d): ... here.
114         * tree-ssa-loop-im.c (LIM_DATA, determine_invariantness_stmt,
115         move_computations_stmt, schedule_sm): Update references to
116         aux.
117         * tree-vectorizer.h (set_stmt_info, vinfo_for_stmt): Likewise.
118
119         * tree-cfg.c (remove_bb): Remove a redundant call to
120         set_bb_for_stmt.
121         * tree-if-conv.c (replace_phi_with_cond_modify_expr):
122         Likewise.
123
124 2005-05-03  Richard Henderson  <rth@redhat.com>
125
126         * config/rs6000/rs6000.c: Remove conflict markers.
127
128         * cfg.c (dump_flow_info): Use max_reg_num, not max_regno.
129
130 2005-05-03  James E Wilson  <wilson@specifixinc.com>
131
132         * dwarf2out.c (lookup_filename): Call maybe_emit_file.
133
134 2005-05-03  DJ Delorie  <dj@redhat.com>
135
136         * c-decl.c (store_parm_decls_oldstyle): Let diagnostic machinery
137         decide if the warning will be printed.
138         * calls.c (expand_call): Likewise.
139         * function.c (init-function_start): Likewise.
140
141         * common.opt (-fdiagnostics-show-option): New.
142         * opts.c (option_enabled): Accept the option index instead of a
143         pointer to the option descriptor.
144         * opts.h (option_enabled): Likewise.
145         * toplev.c (print_switch_values): Pass option index, not option
146         descriptor.
147         * diagnostic.h (diagnostic_info): Add option_index.
148         * diagnostic.c: Include opts.h.
149         (diagnostic_set_info): Initialize option_index.
150         (diagnostic_report_diagnostic): Amend option name if appropriate.
151         (warning): Check to see if the specified warning is enabled.
152         Store option index.
153         * doc/invoke.texi (-fdiagnostics-show-options): Document.
154
155 2005-05-03  Richard Henderson  <rth@redhat.com>
156
157         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix ALL_REGS and
158         SPEC_OR_GEN_REGS definitions.
159
160 2005-05-03  Alexandre Oliva  <aoliva@redhat.com>
161
162         PR target/16888
163         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Clear reg names
164         for unavailable registers.
165
166 2005-05-03  Kazu Hirata  <kazu@cs.umass.edu>
167
168         * tree-cfg.c (tree_forwarder_block_p): Fix a typo.
169
170         * cfglayout.c (block_locators_blocks,
171         insn_locators_initialize, insn_scope): Use VEC instead of
172         VARRAY.
173
174         * tree-mudflap.c (deferred_static_decls, mudflap_enqueue_decl,
175         mudflap_finish_file, mudflap_finish_file): Use VEC instead of
176         VARRAY.
177
178 2005-05-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
179
180         * config/sparc/predicates.md (const_compl_high_operand): New.
181         * config/sparc/sparc.c (sparc_emit_set_safe_HIGH64): Rename into
182         gen_safe_HIGH64.
183         (sparc_emit_set_const64_quick1): Adjust for above change.
184         (sparc_emit_set_const64_quick2): Likewise.
185         (sparc_emit_set_const64_longway): Likewise.
186         (sparc_emit_set_const64): Likewise.
187         * config/sparc/sparc.md (movhi_const64_special, movsi_const64_special,
188         movdi_const64_special): Delete.
189         (logical constant splitters): Use const_compl_high_operand.
190
191 2005-05-03  Richard Guenther  <rguenth@gcc.gnu.org>
192
193         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Use STRIP_TYPE_NOPS
194         rather than STRIP_NOPS.
195
196 2005-05-03  Jakub Jelinek  <jakub@redhat.com>
197
198         PR rtl-optimization/21330
199         * loop-unswitch.c (may_unswitch_on): Set *cinsn only when
200         returning non-NULL.
201         (unswitch_single_loop): Clear cinsn when retrying.
202
203         PR target/21297
204         * config/i386/i386.c (legitimize_address): When canonicalizing
205         ASHIFT into MULT, multiply by 1 << shift_count instead of
206         1 << log2 (shift_count).
207
208 2005-05-03  Andrew MacLeod  <amacleod@redhat.com>
209
210         * lambda-code.c (gcc_loop_to_lambda_loop, 
211         lambda_loopnest_to_gcc_loopnest, phi_loop_edge_uses_def,
212         stmt_is_bumper_for_loop, perfect_nest_p, replace_uses_of_x_with_y): Use
213         generic operand interface.
214         * tree-data-ref.c (find_data_references_in_loop): Use generic interface.
215         * tree-dfa.c (collect_dfa_stats_r, mark_new_vars_to_rename): Use
216         generic operand interface.
217         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list, 
218         link_imm_use, link_imm_use_stmt, relink_imm_use, relink_imm_use_stmt,
219         next_safe_imm_use, has_zero_uses, has_single_use, single_imm_use,
220         num_imm_uses): Use ssa_use_operand_t.
221         (get_def_ops, get_use_ops, get_v_may_def_ops, get_vuse_ops,
222         get_v_must_def_ops): Delete.
223         (get_def_from_ptr, get_phi_result_ptr): Get def directly now.
224         (get_use_op_ptr, get_def_op_ptr, get_v_may_def_result_ptr,
225         get_v_may_def_op_ptr, get_vuse_op_ptr, get_v_must_def_result_ptr,
226         get_v_must_def_kill_ptr): Delete.
227         (delink_stmt_imm_use): Move and use new operand interface.
228         (op_iter_next_use, op_iter_next_def, op_iter_next_tree, op_iter_init,
229         op_iter_next_tree): Use new operand implementation.
230         (clear_and_done_ssa_iter): New.  Initialize a blank operand iterator.
231         (op_iter_init_use, op_iter_init_def, op_iter_init_tree): Add iterator 
232         type check.
233         (op_iter_next_mustdef, op_iter_next_maydef, 
234         op_iter_next_must_and_may_def): Delete. Replace with...
235         (op_iter_next_maymustdef): New.  Combine must and may next operations.
236         (op_iter_init_maydef, op_iter_init_mustdef, 
237         op_iter_init_must_and_may_def): Use new interface.
238         (single_ssa_tree_operand ): New.  Process single operands only as trees.
239         (single_ssa_use_operand): New.  Process single operands only as uses.
240         (single_ssa_def_operand): New.  Process single operands only as defs.
241         (zero_ssa_operands): New.  Return TRUE if there are zero operands of the
242         specified types.
243         (num_ssa_operands): New.  Count the number of specified operands.
244         (compare_ssa_operands_equal): New.  Compare two statements' operands.
245         (single_phi_def): New.  Return true if PHI has one def of the specified
246         operand type.
247         (op_iter_init_phiuse): New.  Initialize the iterator for PHI arguments.
248         (op_iter_init_phidef): New.  Initialize the iterator for the PHI def.
249         * tree-flow.h (struct immediate_use_iterator_d): Use ssa_use_operand_t.
250         (struct stmt_ann_d): Operands field no longer require GTY().
251         (vn_compute, vn_lookup_or_add, vn_add, vn_lookup): Change prototype.
252         * tree-into-ssa.c (mark_def_sites): Use SSA_OP_VMUSTKILL.
253         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb, 
254         dump_replaceable_exprs, rewrite_trees): Use generic interface.
255         * tree-phinodes.c (make_phi_node, release_phi_node, resize_phi_node): 
256         Use use_operand_p instead of ssa_imm_use_t *.
257         * tree-pretty-print.c (dump_vops): check if operands are active before
258         dumping virtual operands.
259         * tree-sra.c (sra_walk_function): Use ZERO_SSA_OPERANDS.
260         * tree-ssa-ccp.c (likely_value): Use ZERO_SSA_OPERANDS.
261         (ccp_fold): Use new interface.
262         (ccp_visit_stmt): Remove unused variables and code.
263         (convert_to_gimple_builtin): Insert statements before calling 
264         mark_new_vars_to_rename.
265         * tree-ssa-copy.c (stmt_may_generate_copy): Use ZERO_SSA_OPERANDS.
266         (copy_prop_visit_cond_stmt): Use generic interface.
267         * tree-ssa-dom.c (struct expr_hash_elt): Use stmt pointer, not the 
268         annotation in table.
269         (thread_across_edge): Use generic interface.
270         (initialize_hash_element): Initialzie with stmt, not annotation.
271         (eliminate_redundant_computations): Use generic interface.
272         (record_equivalences_from_stmt): Pass stmt, not annotation.
273         (avail_expr_hash, real_avail_expr_hash, avail_expr_eq): Use generic
274         interface.
275         * tree-ssa-dse.c (dse_optimize_stmt): Use ZERO_SSA_OPERANDS.
276         * tree-ssa-loop-ivopts.c (find_invariants_stmt, 
277         find_interesting_uses_stmt, protect_loop_closed_ssa_form_use): Use 
278         generic operand interface.
279         * tree-ssa-loop-niter.c (chain_of_csts_start, get_val_for): Use generic
280         interface.
281         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Use Generic operand
282         Interface.
283         * tree-ssa-operands.c (struct opbuild_list_d): New.  Operand build type.
284         (build_defs, build_uses, build_v_may_defs, build_vuses, 
285         build_v_must_defs): Change type to struct opbuild_list_d.
286         (ops_active): New.  Operands active boolean.
287         (operand_memory, operand_memory_index): New.  Operand memory managers.
288         (allocate_def_optype, allocate_use_optype, allocate_v_may_def_optype,
289         allocate_vuse_optype, allocate_v_must_def_optype): Delete.
290         (free_uses, free_defs, free_vuses, free_v_may_defs, free_v_must_defs): 
291         Change from functions to static variable list heads.
292         (opbuild_initialize_virtual): New.  Initialize a virtual build list.
293         (opbuild_initialize_real): New.  Initialize a virtual build list.
294         (opbuild_free): New.  Free a build list.
295         (opbuild_num_elems): New.  Number of items in a list.
296         (opbuild_append_real): New.  Add a real (tree *) operand.
297         (opbuild_append_virtual): New.  Add and sort a virtual (tree) operand.
298         (opbuild_first): New.  Return first element index in a list.
299         (opbuild_next): New.  Return next element in a list.
300         (opbuild_elem_real): New.  Return real element.
301         (opbuild_elem_virtual): New.  Return virtual element.
302         (opbuild_elem_uid): New.  Return UID of virtual element.
303         (opbuild_clear): New.  Reset an operand list.
304         (opbuild_remove_elem): New.  Remove an element form a list.
305         (ssa_operands_active): New.  Return true if operand cache is active.
306         (init_ssa_operands, fini_ssa_operands): Initialize new implementation.
307         (ssa_operand_alloc): New.  Allocate memory from an operand chunk.
308         (correct_use_link): Use use_operand_p.
309         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_defs,
310         finalize_ssa_vuses, finalize_ssa_v_must_defs): New implmentation. 
311         (cleanup_v_may_defs): Use new implmentation.
312         (finalize_ssa_stmt_operands, start_ssa_stmt_operands): New 
313         implementation.
314         (append_def, append_use, append_v_may_def, append_vuse, 
315         append_v_must_def): Call opbuild_append routine instead of using varray.
316         (build_ssa_operands): Simplify to simply use stmt, don't maintain a 
317         global parse_old_ops variable.
318         (free_ssa_operands): New implementation.
319         (update_stmt_operands): Move.  Change argument to build_ssa_operands.
320         (copy_virtual_operands): Move. New generic implementation.
321         (create_ssa_artficial_load_stmt): Move. New implementation.
322         (swap_tree_operands): Update for new implementation.
323         (get_expr_operands): Add stmt parameter to calls to swap_tree_operands.
324         (add_call_clobber_ops, add_call_read_ops): Initialize opbuild list
325         rather than a varray.
326         (verify_imm_links): Use use_operand_p.
327         (dump_immediate_uses_for): If the immediate use variable is a virtual 
328         variable, show the virtual ops in the stmt.
329         * tree-ssa-operands.h (def_operand_p): No longer a structure.
330         (NULL_DEF_OPERAND_P): Now a #define.
331         (def_optype_d, use_optype_d, v_def_use_operand_type, v_may_def_optype_d,
332         vuse_operand_type, vuse_optype_d, v_must_def_optype_d): Delete.
333         (def_optype_d, use_optype_d, maydef_optype_d, vuse_optype_d,
334         mustdef_optype_d): New.  Use Linked list representation.
335         (SSA_OPERAND_MEMORY_SIZE): New.  Size of operand memory chunk.
336         (struct ssa_operand_memory_d): New.  Allocated Chunk node.
337         (struct stmt_operands_d): Change to new pointers that are not GTY.
338         (STMT_USE_OPS, NUM_USES, SET_USE_OP, STMT_DEF_OPS, NUM_DEFS, SET_DEF_OP,
339         STMT_V_MAY_DEF_OPS, NUM_V_MAY_DEFS, SET_V_MAY_DEF_RESULT,
340         SET_V_MAY_DEF_OP, STMT_VUSE_OPS, NUM_VUSES, SET_VUSE_OP,
341         STMT_V_MUST_DEF_OPS, NUM_V_MUST_DEFS, SET_V_MUST_DEF_RESULT, 
342         SET_V_MUST_DEF_KILL): Delete.
343         (V_MAY_DEF_OPS, V_MAY_DEF_RESULT_PTR, V_MAY_DEF_RESULT, 
344         V_MAY_DEF_OP_PTR, V_MAY_DEF_OP): Rename to MAYDEF_*.
345         (V_MUST_DEF_OPS, V_MUST_DEF_RESULT_PTR, V_MUST_DEF_RESULT, 
346         V_MUST_DEF_KILL_PTR, V_MUST_DEF_KILL): Rename to MUSTDEF_*.
347         (enum ssa_op_iter_type): Operand iterator typechecking values.
348         (struct ssa_operand_iterator_d): Use linked lists of operands.
349         (SSA_OP_VMUSTDEFKILL): Rename to SSA_OP_VMUSTKILL.
350         (FOR_EACH_SSA_MAYDEF_OPERAND, FOR_EACH_SSA_MUSTDEF_OPERAND,
351         FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): Use op_iter_next_maymustdef.
352         (FOR_EACH_PHI_ARG): New.  Iterate over PHI arguments.
353         (FOR_EACH_PHI_OR_STMT_USE): New.  Iterate over PHI or stmt uses.
354         (FOR_EACH_PHI_OR_STMT_DEF): New.  Iterate over PHI or stmt defs.
355         (SINGLE_SSA_TREE_OPERAND, SINGLE_SSA_USE_OPERAND, 
356         SINGLE_SSA_DEF_OPERAND, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): New.
357         * tree-ssa-opfinalize.h: New.  Function templates for expansion.
358         (FINALIZE_ALLOC): Expands into alloc_def, alloc_use, alloc_maydef,
359         alloc_vuse, and alloc_mustdef.
360         (FINALIZE_FUNC): Expands into finalize_ssa_def_ops, 
361         finalize_ssa_use_ops, finalize_ssa_v_may_def_ops, finalize_ssa_vuse_ops,
362         and finalize_ssa_v_must_def_ops.
363         * tree-ssa-pre.c (add_to_sets): Pass tree to vn_add.
364         (create_value_expr_from): Use stmt not vuse_optype as a parameter. Pass
365         stmt around.
366         (compute_avail): Use generic iterator interface.
367         * tree-ssa-propagate.c (first_vdef): Use generic operand interface.
368         (stmt_makes_single_load, stmt_makes_single_store): Use 
369         ZERO_SSA_OPERANDS.
370         * tree-ssa-sink.c (is_hidden_global_store): Use ZERO_SSA_OPERANDS.
371         (statement_sink_location): Use generic interface.
372         * tree-ssa.c (verify_ssa):  Use %p in fprintf.  Use generic interface.
373         (delete_tree_ssa): Don't call release_defs.  Call release_ssa_name and
374         reset the immediate use link nodes.
375         (stmt_references_memory_p): Use ZERO_SSA_OPERANDS.
376         * tree-ssanames.c (make_ssa_name): Use use_operand_p.
377         * tree-tailcall.c (find_tail_calls): Use ZERO_SSA_OPERANDS.
378         (eliminate_tail_call): Use generic operand interface.
379         * tree-vect-analyze.c (vect_analyze_data_refs): Use ZERO_SSA_OPERANDS.
380         (vect_mark_relevant, vect_mark_stmts_to_be_vectorized): Use generic 
381         interface.
382         * tree-vect-transform.c (update_vuses_to_preheader): Use generic 
383         interface.
384         * tree-vectorizer.c (rename_variables_in_bb): Use generic interface.
385         * tree-vn.c (struct val_expr_pair_d): Cache statment pointer instead of
386         vuse_optype.
387         (vn_compute, val_expr_pair_hash, vn_add, vn_lookup, vn_lookup_or_add): 
388         Use statement pointer instead of vuse_optype.  Use generic interface.
389         * tree-vrp.c (maybe_add_assert_expr): Use generic interface.
390         (stmt_interesting_for_vrp, vrp_visit_stmt): Use ZERO_SSA_OPERANDS.
391         * tree.h (struct ssa_imm_use_d): Renamed to ssa_use_operand_d.
392         (tree_ssa_name, phi_arg_d): Use ssa_use_operand_d.
393         * doc/tree-ssa.texi: Update documentation for operand interface.
394
395 2005-05-03  Nathan Sidwell  <nathan@codesourcery.com>
396
397         * config/darwin.c (machopic_define_symbol): Use gcc_assert or
398         gcc_unreachable as appropriate.
399         (machopic_function_base_name, machopic_indirect_data_reference,
400         machopic_legitimize_pic_address, darwin_non_lazy_pcrel): Likewise.
401         * config/host-darwin.c (darwin_gt_pch_use_address): Likewise
402         * config/rs6000/altivec.md (*mov<mode>_internal,
403         build_vector_mask_for_load): Likewise.
404         * config/rs6000/darwin.md (movdf_low_si, movdf_low_di,
405         *call_nonlocal_darwin64, *call_value_nonlocal_darwin64,
406         *sibcall_symbolic_64, *sibcall_value_symbolic_64): Likewise.
407         * config/rs6000/predicates.md (easy_fp_constant,
408         logical_operand): Likewise.
409         * config/rs6000/rs6000.c (spe_expand_predicate_builtin,
410         compute_save_world_info, rs6000_emit_prologue,
411         rs6000_output_mi_thunk): Reword comments to avoid 'abort'.
412         * config/rs6000/host-darwin.c (segv_handler): Use fancy_abort
413         directly.
414
415 2005-05-03  Uros Bizjak  <uros@kss-loka.si>
416
417         PR middle-end/21282
418         * convert.c (convert_to_integer): Convert ceil and floor in
419         c99 mode only.
420
421 2005-04-29  Geoffrey Keating  <geoffk@apple.com>
422
423         PR target/20813
424         * config/rs6000/rs6000.md (floatsidf2_internal): Merge to create
425         define_insn_and_split.  Split only when memory operand is
426         offsettable.  Use adjust_address rather than plus_constant.
427         (floatunssidf2_internal): Likewise.
428         (fix_truncdfsi2_internal): Split only when memory operand is
429         offsettable.  Use adjust_address rather than plus_constant.
430         (fix_trunctfsi2_internal): Likewise.
431         (floatsidf2_internal): Likewise.
432
433 2005-05-02  Diego Novillo  <dnovillo@redhat.com>
434
435         * tree-vrp.c (set_value_range_to_nonnull): Declare inline.
436         (set_value_range_to_null): Likewise.
437         (set_value_range_to_varying): New function.  Use it in all
438         call sites that used to call set_value_range (vr, VR_VARYING, ...).
439         (extract_range_from_assert): If the integral type has a
440         super-type, and LIMIT is not within MIN and MAX values of that
441         type, set the resulting range to VR_VARYING.
442
443 2005-05-02  Hans-Peter Nilsson  <hp@bitrange.com>
444
445         * config/mmix/mmix.opt: New file.
446         * config/mmix/mmix.h: Move options-related comments to mmix.opt.
447         (mmix_cc1_ignored_option): Don't declare.
448         (TARGET_OPTIONS, TARGET_MASK_LIBFUNCS, TARGET_MASK_ABI_GNU)
449         (TARGET_MASK_FCMP_EPSILON, TARGET_MASK_ZERO_EXTEND)
450         (TARGET_MASK_KNUTH_DIVISION, TARGET_MASK_TOPLEVEL_SYMBOLS)
451         (TARGET_MASK_BRANCH_PREDICT, TARGET_MASK_USE_RETURN_INSN)
452         (TARGET_MASK_BASE_ADDRESSES, TARGET_LIBFUNC, TARGET_ABI_GNU,
453         (TARGET_FCMP_EPSILON, TARGET_ZERO_EXTEND, TARGET_KNUTH_DIVISION)
454         (TARGET_TOPLEVEL_SYMBOLS, TARGET_BRANCH_PREDICT)
455         (TARGET_BASE_ADDRESSES, TARGET_USE_RETURN_INSN, TARGET_SWITCHES):
456         Don't define.
457         (TARGET_DEFAULT): Change TARGET_MASK_... to MASK_...
458         * config/mmix/mmix.c (mmix_cc1_ignored_option): Remove.
459         (TARGET_DEFAULT_TARGET_FLAGS): Override default.
460
461 2005-05-02  Joseph S. Myers  <joseph@codesourcery.com>
462
463         PR c/15698
464         * c-tree.h (C_DECL_BUILTIN_PROTOTYPE): New.
465         * c-decl.c (current_function_prototype_built_in,
466         current_function_prototype_arg_types): New.
467         (merge_decls): Keep source location of prototype followed by
468         nonprototype declaration.  Update C_DECL_BUILTIN_PROTOTYPE.
469         (builtin_function): Set C_DECL_BUILTIN_PROTOTYPE.
470         (start_function): Always set current_function_prototype_locus,
471         current_function_prototype_built_in and
472         current_function_prototype_arg_types.  Check for external
473         prototype whether or not visible for external function and set
474         current_function_prototype_arg_types accordingly.
475         (store_parm_decls_oldstyle): Use
476         current_function_prototype_arg_types for checking old-style
477         definition against prototype.  Give warnings only if
478         current_function_prototype_built_in).
479
480 2005-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
481
482         * ggc.h (ggc_alloc_zone_pass_stat): New macro.
483         (ggc_alloc_zone_stat): Don't define.
484         * ggc-zone.c (ggc_alloc_typed_stat, ggc_alloc_stat): Use
485         ggc_alloc_zone_pass_stat.
486         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Likewise.
487         * tree.c (make_node_stat, copy_node_stat, make_tree_binfo_stat)
488         (make_tree_vec_stat, tree_cons_stat, build1_stat): Likewise.
489
490 2005-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
491
492         * calls.c (expand_call): Handle current_function_pretend_args_size
493         when checking for sibcalls.
494
495 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
496
497         PR tree-optimization/21294
498         * tree-vrp.c (vrp_expr_computes_nonzero): New.
499         (extract_range_from_expr): Call vrp_expr_computes_nonzero.
500
501 2005-05-02  Janis Johnson  <janis187@us.ibm.com>
502
503         PR 19985
504         * gcov-io.h: Declare gcov external functions hidden.
505
506 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
507
508         * tree-ssa-uncprop.c (equiv_hash_elt, remove_equivalence,
509         record_equiv, tree_ssa_uncprop, uncprop_into_successor_phis):
510         Use VEC instead of VARRAY.
511         (equiv_free): New.
512
513         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Factor
514         out common code.
515
516 2005-05-02  Paolo Bonzini  <bonzini@gnu.org>
517
518         * c-common.c (resolve_overloaded_builtin): Forward to target
519         hook for BUILT_IN_MD built-ins.
520         * c-typeck.c (finish_call_expr): Call resolve_overloaded_builtin
521         for all types of built-in.
522         * target-def.h (TARGET_RESOLVE_OVERLOADED_BUILTIN): New.  Use it
523         in the definition of the target hooks struct.
524         * target.h (struct gcc_target): Add resolve_overloaded_builtin.
525         * config/rs6000/altivec.h: Rewritten.
526         * config/rs6000/rs6000-c.c (struct altivec_builtin_types,
527         altivec_resolve_overloaded_builtin, altivec_build_resolved_builtin,
528         rs6000_builtin_type, rs6000_builtin_type_compatible,
529         altivec_overloaded_builtins, rs6000_builtin_type,
530         rs6000_builtin_type_compatible): New.
531         * config/rs6000/rs6000.c (rs6000_builtin_types, rs6000_builtin_decls):
532         New.
533         (def_builtin): Turn into a function.  Check for duplicates and store
534         the builtin into rs6000_builtin_decls.
535         (bdesc_3arg, bdesc_dst, bdesc_altivec_preds, bdesc_2arg,
536         bdesc_1arg): Add overloaded builtins.
537         (altivec_expand_builtin): Check for unresolved overloaded builtins,
538         do not support ALTIVEC_COMPILETIME_ERROR.
539         (rs6000_init_builtins): Add opaque 128-bit vector, and internal
540         nodes to represent front-end types.
541         (altivec_init_builtins, rs6000_common_init_builtins): Create builtins
542         with opaque arguments and/or return values.
543         * config/rs6000/rs6000.h (enum rs6000_builtins): Remove
544         ALTIVEC_COMPILETIME_ERROR and add Altivec overloaded builtins.
545         (rs6000_builtin_type_index): New.
546         (is_ev64_opaque_type): Rename to...
547         (rs6000_is_opaque_type): ... this.
548         (rs6000_cpu_cpp_builtins): Install the resolve_overloaded_builtin
549         target hook.
550
551 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
552
553         * function.c (reorder_blocks, reorder_blocks_1): Use VEC
554         instead of VARRAY.
555
556 2005-05-02  Nathan Sidwell  <nathan@codesourcery.com>
557             Bernd Schmidt  <bernd.schmidt@analog.com>
558
559         * config/bfin/bfin.c (emit_link_insn, effective_address_32bit_p,
560         print_address_operand, print_operand, legitimize_pic_address,
561         asm_conditional_branch, bfin_gen_compare, output_push_multiple,
562         output_pop_multiple): Use gcc_assert or gcc_unreachable as
563         appropriate.
564         * config/bfin/bfin.md (movsf splitter, beq, bne): Likewise.
565
566 2005-05-02  Dorit Naishlos  <dorit@il.ibm.com>
567
568         * doc/passes.texi: Document vectorization pass.
569
570 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
571
572         * tree-scalar-evolution.c (get_exit_conditions_rec,
573         select_loops_exit_conditions,
574         number_of_iterations_for_all_loops,
575         analyze_scalar_evolution_for_all_loop_phi_nodes,
576         scev_analysis): Use VEC instead of VARRAY.
577
578 2005-05-02  Michael Matz  <matz@suse.de>
579
580         PR c++/19542
581         * c-common.c (c_common_nodes_and_builtins): Create global null_node.
582         (warn_strict_null_sentinel): Define.
583         (check_function_sentinel): Check for null_node as valid sentinel too.
584         * c-common.h (c_tree_index): Added CTI_NULL.
585         (null_node) Define global_tree[CTI_NULL].
586         (warn_strict_null_sentinel): Declare.
587         * c-opts.c: (c_common_handle_option): Handle -Wstrict-null-sentinel.
588         * c.opt: (Wstrict-null-sentinel): New C++ option.
589         * doc/invoke.texi (C++ Options): Document -Wstrict-null-sentinel.
590
591 2005-05-01  Kazu Hirata  <kazu@cs.umass.edu>
592
593         * gimplify.c (gimplify_compound_lval): Use VEC instead of
594         VARRAY.
595
596         * global.c (calculate_reg_pav): Use VEC instead of VARRAY.
597
598         * dwarf2out.c (decl_scope_table, push_decl_scope,
599         pop_decl_scope, scope_die_for, dwarf2out_init): Use VEC
600         instead of VARRAY.
601
602 2005-05-01  Mark Mitchell  <mark@codesourcery.com>
603
604         PR C++/14391
605         * c-cppbuiltin.c (c_cpp_builtins): Do not define __GXX_WEAK__ to 1
606         if !flag_weak.
607         * doc/cpp.texi (__DEPRECATED): Document.
608         (__EXCEPTIONS): Likewise.
609         (__GXX_WEAK__): Likewise.
610
611         * function.c (INVOKE__main): Do not define.
612         (expand_main_function): Check HAS_INIT_SECTION when determining
613         whether or not to call __main.
614
615 2005-05-01  Kazu Hirata  <kazu@cs.umass.edu>
616
617         * tree-ssa-loop-ivopts.c: Fix a comment typo.
618
619 2005-01-05  Paul Brook  <paul@codesourcery.com>
620
621         * config/arm/arm.h (ARM_EMIT_TRAMPOLINE_CACHE_CLEAR): Define.
622         (INITIALIZE_TRAMPOLINE): Use it.
623         * config/arm/linux-gas.h (INITIALIZE_TRAMPOLINE): Remove.
624         * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Remove.
625         * config/arm/netbsd-elf.h (INITIALIZE_TRAMPOLINE): Remove.
626
627 2005-05-01  Gerald Pfeifer  <gerald@pfeifer.com>
628
629         * doc/install.texi (Specific): Omit dots in the @anchors names
630         for i?86-*-sco3.2v5*, i?86-*-solaris2.10, and sparc-sun-solaris2.7.
631         Omit underscores for x86_64-*-* and the "all ELF targets" entry.
632
633 2005-05-01  Zdenek Dvorak  <dvorakz@suse.cz>
634
635         PR tree-optimization/18316
636         PR tree-optimization/19126
637         * tree.c (build_int_cst_type): Avoid shift by size of type.
638         * tree-scalar-evolution.c (simple_iv): Add allow_nonconstant_step
639         argument.
640         * tree-scalar-evolution.h (simple_iv): Declaration changed.
641         * tree-ssa-loop-ivopts.c (struct iv_cand): Add depends_on
642         field.
643         (dump_cand): Dump depends_on information.
644         (determine_biv_step): Add argument to simple_iv call.
645         (contains_abnormal_ssa_name_p): Handle case expr == NULL.
646         (find_bivs, find_givs_in_stmt_scev): Do not require step to be a
647         constant.
648         (add_candidate_1): Record depends_on for candidates.
649         (tree_int_cst_sign_bit, constant_multiple_of): New functions.
650         (get_computation_at, get_computation_cost_at, may_eliminate_iv):
651         Handle ivs with nonconstant step.
652         (iv_ca_set_remove_invariants, iv_ca_set_add_invariants): New functions.
653         (iv_ca_set_no_cp, iv_ca_set_cp): Handle cand->depends_on.
654         (create_new_iv): Unshare the step before passing it to create_iv.
655         (free_loop_data): Free cand->depends_on.
656         (build_addr_strip_iref): New function.
657         (find_interesting_uses_address): Use build_addr_strip_iref.
658         (strip_offset_1): Split the recursive part from strip_offset.
659         Strip constant offset component_refs and array_refs.
660         (strip_offset): Split the recursive part to strip_offset_1.
661         (add_address_candidates): Removed.
662         (add_derived_ivs_candidates): Do not use add_address_candidates.
663         (add_iv_value_candidates): Add candidates with stripped constant
664         offset.  Consider all candidates with initial value 0 important.
665         (struct affine_tree_combination): New.
666         (aff_combination_const, aff_combination_elt, aff_combination_scale,
667         aff_combination_add_elt, aff_combination_add,
668         tree_to_aff_combination, add_elt_to_tree, aff_combination_to_tree,
669         fold_affine_sum): New functions.
670         (get_computation_at): Use fold_affine_sum.
671         * tree-ssa-loop-manip.c (create_iv): Handle ivs with nonconstant step.
672         * tree-ssa-loop-niter.c (number_of_iterations_exit): Add argument
673         to simple_iv call.
674
675 2005-04-30  Michael Matz  <matz@suse.de>
676
677         * config/i386/i386.md (movmemsi): Also active when
678         TARGET_INLINE_ALL_STRINGOPS.
679
680 2005-04-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
681
682         PR bootstrap/20633
683         * config/freebsd-spec.h (FBSD_CPP_SPEC): Add %(cpp_arch).
684
685 2005-04-30  Paul Brook  <paul@codesourcery.com>
686
687         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Always use .thumb_set in
688         thumb mode.
689         * config/arm/ieee754-df.S: Use __INTERWORKING_STUBS__.
690         * config/arm/ieee754-sf.S: Ditto.
691         * config/arm/lib1funcs.asm: Define and use __INTERWORKING_STUBS__.
692         (FUNC_ALIAS): Use .thumb_set for thumb routines.
693
694 2005-04-30  Kazu Hirata  <kazu@cs.umass.edu>
695
696         * tree-ssanames.c: Fix a comment typo.
697         * doc/options.texi: Fix a typo.
698
699 2005-04-30  Nathan Sidwell  <nathan@codesourcery.com>
700
701         * config/h8300/h8300.c (byte_reg): Use gcc_assert and
702         gcc_unreachable as appropriate.
703         (split_adds_subs, cond_string, print_operand,
704         h8300_initial_elimination_offset, h8300_classify_operand,
705         h8300_unary_length, h8300_short_immediate_length,
706         h8300_bitfield_length, h8300_binary_length,
707         h8300_insn_length_from_table, compute_mov_length, output_plussi,
708         compute_plussi_length, compute_plussi_cc, output_logical_op,
709         compute_logical_op_length, compute_logical_op_cc,
710         output_h8sx_shift, get_shift_alg, h8300_shift_needs_scratch_p,
711         output_a_shift, compute_a_shift_length, compute_a_shift_cc,
712         output_a_rotate, compute_a_rotate_length, fix_bit_operand,
713         h8300_regs_ok_for_stm): Likewise.
714         * config/h8300/h8300.md (*movsi_h8300, *movsf_h8300,
715         monitor_prologue): Likewise.
716
717 2005-04-30  Kazu Hirata  <kazu@cs.umass.edu>
718
719         * loop-invariant.c (invariants, create_new_invariant,
720         get_inv_cost, best_gain_for_invariant,
721         find_invariants_to_move, move_invariants,
722         init_inv_motion_data, free_inv_motion_data): Use VEC instead
723         of VARRAY.
724
725 2005-04-29  Richard Henderson  <rth@redhat.com>
726
727         * function.c (instantiate_decls): Remove valid_only argument.
728         (instantiate_decls_1, instantiate_decl): Likewise.
729         (instantiate_virtual_regs_1): Delete.
730         (instantiate_virtual_regs_lossage): Delete.
731         (instantiate_virtual_regs_in_rtx): New.
732         (safe_insn_predicate): New.
733         (instantiate_virtual_regs_in_insn): New.
734         (instantiate_virtual_regs): Update to match all that.  Only run
735         instantiate_decls once.
736
737 2005-04-29  Richard Henderson  <rth@redhat.com>
738             Daniel Jacobowitz  <dan@codesourcery.com>
739
740         * gengtype.c (write_func_for_structure): Split out ...
741         (output_type_enum): ... new function.  Fix thinko accessing
742         TYPE_PARAM_STRUCT data.
743
744 2005-04-29  Tom Tromey  <tromey@redhat.com>
745
746         * tree.c (build_block): Removed unused 'tags' argument.
747         * tree.h (build_block): Removed argument.
748
749 2005-04-29  Michael Matz  <matz@suse.de>
750
751         PR rtl-optimization/21144
752         * postreload.c (reload_cse_move2add): Check for VOIDmode.
753
754 2005-04-29  Bob Wilson  <bob.wilson@acm.org>
755
756         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Define to disable
757         flag_reorder_blocks.
758
759 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
760
761         PR tree-optimization/21030
762         * tree-vrp.c (adjust_range_with_scev): Do not create invalid
763         ranges where VR->MAX is smaller than VR->MIN.
764
765 2005-04-29  Devang Patel  <dpatel@apple.com>
766
767         PR tree-optimization/21272
768         PR tree-optimization/21266
769         * tree-if-conv.c (find_phi_replacement_condition): Fix think-o.
770         
771 2005-04-29  Kazu Hirata  <kazu@cs.umass.edu>
772
773         * tree-flow-inline.h: Fix a comment typo.
774         * doc/tree-ssa.texi: Fix a typo.
775
776         * tree-flow-inline.h, tree-ssa-operands.c: Fix comment typos.
777
778 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
779
780         * config/fr30/fr30.c (fr30_expand_prologue): Use gcc_assert and
781         gcc_unreachable as appropriate.
782         (fr30_expand_epilogue, fr30_setup_incoming_varargs,
783         fr30_print_operand, fr30_move_double): Likewise.
784         * config/fr30/fr30.md (*movsi_internal, *movsf_internal): Likewise.
785
786 2005-04-29  Mark Mitchell  <mark@codesourcery.com>
787
788         * config/arm/arm.h (ARM_EABI_CTORS_SECTION_OP): Do not define if a
789         definition has already been provided.
790         (ARM_EABI_DTORS_SECTION_OP): Likewise.
791         * config/arm/symbian.h (ARM_EABI_CTORS_SECTION_OP): Define.
792         (ARM_EABI_DTORS_SECTION_OP): Likewise.
793
794 2005-04-29  Jim Tison  <jtison@us.ibm.com>
795
796         * config/s390/s390.md ("prologue_tpf", "epilogue_tpf"): Alter
797         trace hooks calls to improve performance.
798
799 2005-04-29  Julian Brown  <julian@codesourcery.com>
800             Mark Mitchell  <mark@codesourcery.com>
801             Paul Brook  <paul@codesourcery.com>
802
803         * crtstuff.c: Handle targets that use .init_array.
804         * function.c (HAS_INIT_SECTION): Do not define. Instead, make sure
805         that INVOKE__main is set correctly.
806         (expand_main_function): Test INVOKE__main.
807         * libgcc2.c: Do not define __main when using .init_array.
808         * config/arm/arm.c (arm_elf_asm_constructor): New function.
809         * config/arm/arm.h (CTORS_SECTION_ASM_OP): Define, with specialized
810         libgcc version.
811         (DTORS_SECTION_ASM_OP): Likewise.
812         (CTOR_LIST_BEGIN): Define specially when in libgcc.
813         (CTOR_LIST_END): Likewise.
814         (DTOR_LIST_BEGIN): Likewise.
815         (DTOR_LIST_END): Likewise.
816         * config/arm/bpapi.h (INIT_SECTION_ASM_OP): Do not define it.
817         (FINI_SECTION_ASM_OP): Likewise.
818         (INIT_ARRAY_SECTION_ASM_OP): Define.
819         (FINI_ARRAY_SECTION_ASM_OP): Likewise.
820         * config/arm/elf.h (TARGET_ASM_CONSTRUCTOR): Define.
821         (SUPPORTS_INIT_PRIORITY): Evaluate to false for EABI based targets.
822         * doc/tm.texi (INIT_ARRAY_SECTION_ASM_OP): Document.
823         (FINI_ARRAY_SECTION_ASM_OP): Likewise.  
824
825 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
826
827         * config/m68k/m68k.c (m68k_initial_elimination_offset): Use
828         gcc_assert and gcc_unreachable as appropriate.
829         (output_dbcc_and_branch, output_scc_di, legitimize_pic_address,
830         const_int_cost, output_move_const_into_data_reg,
831         output_move_qimode, output_move_double, find_addr_reg,
832         print_operand, print_operand_address): Likewise.
833         * config/m68k/m68k.md (adddi3, subdi3, negsf2, negdf2, abssf2,
834         absdf2, sordered, sunordered, suneq, sunge, sungt, sunle, sunlt,
835         sltgt, bordered, bunordered, buneq, bunge, bungt, bunle, bunlt,
836         bltgt, *bordered_rev, *bunordered_rev, *buneq_rev, *bunge_rev,
837         *bunle_rev, *bunlt_rev, *bltgt_rev, negxf2, absxf2,
838         conditional_trap): Likewise.
839         * config/m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Remove unreachable code.
840
841 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
842
843         * config/xtensa/xtensa.c (gen_int_relational): Use gcc_assert and
844         gcc_unreachable as appropriate.
845         (gen_conditional_move, xtensa_split_operand_pair,
846         xtensa_split_operand_pair, xtensa_copy_incoming_a7,
847         xtensa_copy_incoming_a7, xtensa_copy_incoming_a7,
848         xtensa_copy_incoming_a7, xtensa_output_literal,
849         xtensa_output_literal, xtensa_output_literal): Likewise.
850         * config/xtensa/xtensa.h (INITIAL_ELIMINATION_OFFSET): Likewise.
851         * config/xtensa/xtensa.md (*btrue, *bfalse, *ubtrue, *ubfalse,
852         *bittrue, *bitfalse, *masktrue, *maskfalse, movsicc_internal0,
853         movsicc_internal1, movsfcc_internal0,
854         movsfcc_internal1): Likewise.
855
856 2005-04-28  James E Wilson  <wilson@specifixinc.com>
857
858         * config/i386/i386.h (HI_REGISTER_NAMES): Fix typos in comment.
859         (ADDITIONAL_REGISTER_NAMES): Delete obsolete mmx register entries.
860
861 2005-04-28  DJ Delorie  <dj@redhat.com>
862
863         * opt-functions.awk (var_set): Emit proper initializer for
864         non-target bitfields.
865
866 2005-04-28  Devang Patel  <dpatel@apple.com>
867
868         * dbxout.c (have_used_extensions): Remove.
869         (dbxout_type_fileds, dbxout_type, dbxout_symbol): Remove use of
870         have_used_extensions.
871         
872 2005-04-28  James E Wilson  <wilson@specifixinc.com>
873
874         * doc/install.texi: Update -enable-languages info.  Correct path to
875         html docs.
876
877 2005-04-28  DJ Delorie  <dj@redhat.com>
878
879         * optc-gen.awk (END): Make sure no variable is defined more
880         than once.
881         * opth-gen.awk (END): Allocate bits on a per-variable basis.
882         Allow for bitfield variables other than target_flags.
883         * doc/options.text (Mask): Document that you may specify a
884         variable other than target_flags.
885
886 2005-04-28  Martin Koegler <mkoegler@auto.tuwien.ac.at>
887
888         PR rtl-optimization/18877
889         * reload.c (decompose) <case REG, case SUBREG>: Handle pseudo reg
890         number in val.start.
891
892 2005-04-28  David Edelsohn  <edelsohn@gnu.org>
893
894         PR target/20813
895         * config/rs6000/aix43.h (SUBSUBTARGET_SWITCHES, aix64): Add
896         MASK_PPC_GFXOPT.
897         * config/rs6000/aix51.h (SUBSUBTARGET_SWITCHES, aix64): Same.
898         * config/rs6000/aix52.h (SUBSUBTARGET_SWITCHES, aix64): Same.
899         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES, 64): Same.
900
901 2005-04-28  Richard Earnshaw  <richard.earnshaw@arm.com>
902
903         * arm.c (legitimize_pic_address): Fix sense of assertion test for
904         creating pseudos when the base offset is too large.
905
906 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
907
908         * global.c (earlyclobber_regclass): Change the type to
909         VEC(int,heap).
910         (check_earlyclobber): Update uses of earlyclobber_regclass.
911         (mark_reg_use_for_earlyclobber): Likewise.
912         (calculate_local_reg_bb_info): Allocate and free
913         earlyclobber_regclass using the VEC API.
914
915 2005-04-28  Nathan Sidwell  <nathan@codesourcery.com>
916
917         * tree-ssa-alias.c (push_fields_onto_fieldstack): Remove bogus
918         assert.
919
920 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
921
922         * modulo-sched.c, tree-stdarg.c: Use targetm.foo instead of
923         (*targetm.foo).
924
925         * config.gcc: Obsolete c4x-* and tic4x-*.
926
927         * tree.h (edge_def): Remove.
928
929         * bt-load.c, cfgexpand.c, dwarf2out.c, emit-rtl.c, expr.c,
930         function.c, global.c, lcm.c, loop-invariant.c, optabs.c,
931         reorg.c, resource.c, tree-ssa-loop-ivopts.c, value-prof.c: Use
932         JUMP_P, LABEL_P, REG_P, MEM_P, NONJUMP_INSN_P, and INSN_P
933         where appropriate.
934
935         * attribs.c, c-pragma.c, caller-save.c, cfghooks.h,
936         coverage.c, cselib.h, domwalk.c, domwalk.h, errors.c,
937         errors.h, gcov-dump.c, gcov-io.c, gcov-io.h, gen-protos.c,
938         genattrtab.h, genextract.c, gthr-win32.h, insn-notes.def,
939         integrate.c, lambda-mat.c, lambda.h, libgcov.c, local-alloc.c,
940         machmode.def, mips-tfile.c, params.c, pretty-print.c,
941         print-rtl.c, protoize.c, regmove.c, sched-vis.c, tree-chrec.h,
942         tree-data-ref.h, vec.h, config/darwin-c.c, config/sol2-c.c,
943         config/sol2.c, config/arm/arm-cores.def, config/arm/cirrus.md,
944         config/arm/symbian.h, config/c4x/c4x.c, config/c4x/c4x.h,
945         config/i386/cygming.h, config/i386/djgpp.h,
946         config/i386/lynx.h, config/i386/netware.c,
947         config/i386/winnt.c, config/ia64/ia64-c.c,
948         config/iq2000/iq2000.c, config/m32r/little.h,
949         config/m68k/m68k-protos.h, config/m68k/m68k.h,
950         config/m68k/m68k.md, config/mcore/mcore.c,
951         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.md,
952         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
953         config/mn10300/mn10300.h, config/ns32k/netbsd.h,
954         config/ns32k/ns32k.c, config/ns32k/ns32k.h,
955         config/pa/pa-hpux11.h, config/pdp11/pdp11.c,
956         config/pdp11/pdp11.h, config/rs6000/darwin.h,
957         config/rs6000/default64.h, config/rs6000/rs6000-c.c,
958         config/s390/2064.md, config/s390/2084.md,
959         config/s390/s390-modes.def, config/s390/s390-protos.h,
960         config/s390/tpf.h, config/sh/sh.h, config/sh/symbian.c,
961         config/stormy16/stormy16.c, config/vax/vax-protos.h,
962         config/vax/vax.c, config/vax/vax.h,
963         config/xtensa/lib1funcs.asm, config/xtensa/xtensa.md: Update
964         copyright.
965
966 2005-04-28  Joseph S. Myers  <joseph@codesourcery.com>
967
968         * c-typeck.c (build_compound_expr): Correct logic in last change.
969
970 2005-04-27  James E. Wilson  <wilson@specifixinc.com>
971
972         * config/ia64/ia64.c (update_set_flags): Delete ppred and pcond
973         parameters.  Replace conditional move code with assert checking for
974         ar.lc.  Delete obsolete comments.
975         (set_src_needs_barrier): Delete cond parameter, and code using it.
976         (rtx_needs_barrier): Delete initialization of cond.  Fix typo in
977         assert checking for PR_REGS.  Fix calls to update_set_flags and
978         set_src_needs_barrier.
979         (group_barrier_needed): Renamed from group_barrier_needed_p.  Fix all
980         callers.  Rewrite explanatory comment before the function.
981         (safe_group_barrier_needed): Renamed from safe_group_barrier_needed_p.
982         Fix all callers.
983
984 2005-04-27  Mike Stump  <mrs@apple.com>
985
986         * doc/cpp.texi: gcc now implements universal character names.
987
988 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
989
990         PR c/21159
991         * c-typeck.c (build_compound_expr): Don't warn for left-hand side
992         being a compound expression whose right-hand side is cast to void.
993
994 2005-04-27  Caroline Tice  <ctice@apple.com>
995
996         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
997         Remove targetm.have_named_sections test.
998         (fix_edges_for_rarely_executed_code): Likewise.
999         (insert_section_boundary_note): Likewise.
1000         (reorder_basic_blocks): Check partitioning flag before calling
1001         verify_hot_cold_block_grouping.
1002         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
1003         the function struct rather than global variables.
1004         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
1005         (COLD_END_LABEL): Likewise
1006         (cold_text_section_label): New static global variable.
1007         (cold_end_label): Likewise.
1008         (dwarf2out_switch_text_section): Get hot/cold section labels from
1009         the function struct rather than global variables; test to make sure
1010         cfun is defined.
1011         (output_aranges): Use cold_text_section_label and cold_end_label;
1012         check partitioning flag before putting out delta.
1013         (output_ranges): Remove incorrect code attempting to use
1014         hot/cold labels.
1015         (output_line_info): Get cold section label from function struct; test
1016         to make sure cfun is defined.
1017         (add_location_or_const_value_attribute): Likewise.
1018         (dwarf2out_var_location): Likewise.
1019         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
1020         write out cold_text_section_label if partition flag is set.
1021         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
1022         * function.h (struct function): Add new fields to point to hot/cold
1023         section labels: hot_section_label, cold_section_label,
1024         hot_section_end_label and cold_section_end_label; also add new field
1025         for cold text section name, unlikely_text_section_name.
1026         * opts.c (decode_options): Turn off partitioning flag if
1027         !targetm.have_named_sections.
1028         * output.h (hot_section_label): Remove.
1029         (hot_section_end_label): Remove.
1030         (cold_section_end_label): Remove.
1031         (unlikely_section_label): Remove.
1032         (unlikely_text_section_name): Remove.
1033         * passes.c (rest_of_handle_final):  Remove extra blank line.
1034         * varasm.c (unlikely_section_label): Remove.
1035         (hot_section_label): Remove.
1036         (hot_section_end_label): Remove.
1037         (cold_section_end_label): Remove.
1038         (unlikely_text_section_name):  Remove.
1039         (initialize_cold_section_name): Modify to call
1040         targetm.strip_name_encoding; to store cold section name in current
1041         function struct, if it exists; and to only use the decl_section_name
1042         if flag_named_sections is true.
1043         (unlikely_text_section): Modify to get section name out of current
1044         function struct, if there is one; otherwise build it from
1045         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
1046         (in_unlikely_text_section): Likewise.
1047         (named_section): Modify to get/put cold section name in current function
1048         struct, if there is one.
1049         (function_section):  Change 'bool unlikely' to 'int reloc'; check
1050         targetm.have_named_sections before calling named_section.
1051         (current_function_section): Likewise.
1052         (assemble_start_function): Modify to get/put unlikely_text_section_name
1053         in current function struct; modify to get hot/cold section labels
1054         from function struct; initialize labels using
1055         ASM_GENERATE_INTERNAL_LABEL;
1056         test partitioning flag before writing out hot section label.
1057         (assemble_end_function): Test partitioning flag before writing out
1058         hot/cold section labels.
1059         (default_section_type_flags_1):  Get cold text section name from
1060         function struct if there is one; Set flags correctly for
1061         cold text section if there is not a current function struct.
1062         
1063 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
1064
1065         * tree-ssa-propagate.c (set_rhs): Revert last change.
1066
1067 2005-04-27  Steve Ellcey  <sje@cup.hp.com>
1068
1069         * explow.c (convert_memory_address): Add gcc_assert.
1070
1071 2005-04-27  Mark Mitchell  <mark@codesourcery.com>
1072
1073         * configure.ac: Check for ld --sysroot support.
1074         * gcc.c: Document %R specifier for specs.
1075         (SYSROOT_SPEC): New macro.
1076         (sysroot_spec): New variable.
1077         (static_specs): Add sysroot_spec.
1078         (main): Pass the sysroot spec to the linker if appropriate.
1079         * configure: Regenerated.
1080         * config.in: Likewise.
1081
1082 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
1083
1084         * fold-const.c (fold_binary): Use build_fold_addr_expr
1085         for address calculation and INDIRECT_REF handling.
1086
1087 2005-04-27  Andrew Haley  <aph@redhat.com>
1088
1089         * postreload-gcse.c (hash_scan_set): Remove bogus assertion.
1090
1091 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
1092
1093         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Reserve arm frame
1094         pointer when thumb backtracing is on.
1095
1096         * config/fp-bit.c (abort): Revert change.
1097
1098 2005-04-27  Ian Lance Taylor  <ian@airs.com>
1099
1100         * c-semantics.c (add_stmt): Don't test STATEMENT_CODE_P.
1101
1102 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
1103
1104         * tree-ssa-dce.c: Fix a comment typo.
1105
1106 2005-04-27  David S. Miller  <davem@davemloft.net>
1107
1108         * explow.c (allocate_dynamic_stack_space SETJMP_VIA_SAVE_AREA):
1109         Kill setjmpless_size.  current_function_calls_setjmp is completely
1110         computed when we are called, so just use the optimized size value
1111         instead of using REG_SAVE_AREA notes.
1112         (optimize_save_area_alloca): Delete....
1113         * rtl.h (optimize_save_area_alloca): Likewise...
1114         * passes.c (rest_of_compilation): and don't call it any more.
1115         * reg-notes.def (SAVE_AREA): Delete.
1116         
1117 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
1118
1119         * config/fp-bit.c (abort): Add noreturn attribute.
1120
1121         * config/avr/avr.c (avr_naked_function_p): Use gcc_assert and
1122         gcc_unreachable as appropriate.
1123         (ptrreg_to_str, cond_string, avr_normalize_condition): Likewise.
1124         * config/avr/avr.h (ASM_OUTPUT_REG_PUSH,
1125         ASM_OUTPUT_REG_POP): Likewise.
1126
1127 2005-04-27  Paolo Bonzini  <bonzini@gnu.org>
1128
1129         * tree-complex.c (expand_vector_operations_1): Do not build
1130         VIEW_CONVERT_EXPR's for the lhs.
1131
1132 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
1133
1134         * config/pa/pa.h (PRINT_OPERAND_ADDRESS): Use gcc_assert, remove
1135         unnecessary noncanonical RTL handling.
1136         * config/pa/pa64-linux.h (INITIAL_ELIMINATION_OFFSET): Use
1137         gcc_assert and gcc_unreachable.
1138
1139         * config/arm/arm.h (ARM_PRINT_OPERAND_ADDRESS): Use gcc_assert and
1140         gcc_unreachable as appropriate.
1141         (THUMB_PRINT_OPERAND_ADDRESS): Likewise.
1142         * config/arm/arm.c (arm_override_options, arm_compute_func_type,
1143         use_return_insn, const_ok_for_op, arm_gen_constant,
1144         arm_canonicalize_comparison, legitimize_pic_address,
1145         thumb_find_work_register, arm_load_pic_register, arm_rtx_costs_1,
1146         arm_cirrus_insn_p, cirrus_reorg, minmax_code,
1147         load_multiple_sequence, emit_ldm_seq, store_multiple_sequence,
1148         emit_stm_seq, arm_gen_movmemqi, arm_select_dominance_cc_mode,
1149         arm_select_cc_mode, arm_reload_in_hi, arm_reload_out_hi,
1150         move_minipool_fix_forward_ref, move_minipool_fix_backward_ref,
1151         dump_minipool, create_fix_barrier, push_minipool_fix, arm_reorg,
1152         fp_immediate_constant, fp_const_from_val, vfp_output_fstmx,
1153         output_call, output_mov_long_double_fpa_from_arm,
1154         output_mov_long_double_arm_from_fpa,
1155         output_mov_double_fpa_from_arm, output_mov_double_arm_from_fpa,
1156         output_move_double, arithmetic_instr, shift_op, int_log2,
1157         output_return_instruction, arm_output_function_prologue,
1158         arm_output_epilogue, arm_output_function_epilogue,
1159         emit_multi_reg_push, arm_get_frame_offsets,
1160         arm_compute_initial_elimination_offset, arm_expand_prologue,
1161         arm_print_operand, arm_assemble_integer, get_arm_condition_code,
1162         arm_final_prescan_insn, arm_init_iwmmxt_builtins,
1163         arm_expand_binop_builtin, thumb_pushpop, thumb_far_jump_used_p,
1164         thumb_compute_initial_elimination_offset,
1165         thumb_output_function_prologue, thumb_load_double_from_address,
1166         thumb_output_move_mem_multiple, thumb_reload_out_hi,
1167         arm_emit_vector_const, arm_dbx_register_number): Likewise.
1168         * config/arm/pe.c (arm_mark_dllexport, arm_mark_dllimport): Likewise.
1169         * config/arm/arm.md (thumb_extendhisi2,
1170         *thumb_extendhisi2_insn_v6, *thumb_extendqisi2,
1171         *thumb_extendqisi2_v6, movhi, *thumb_movhi_insn,
1172         thumb_movhi_clobber, movqi, *arm_buneq, *arm_bltgt,
1173         *arm_buneq_reversed, *arm_bltgt_reversed, suneq, sltgt): Likewise.
1174         * config/arm/cirrus.md (*cirrus_arm_movdi,
1175         *cirrus_movdf_hard_insn): Likewise.
1176         * config/arm/vfp.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
1177
1178 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
1179
1180         * tree-flow.h (ssa_names): Change the type to VEC(tree,gc).
1181         (num_ssa_names): Use VEC_length.
1182         (ssa_names): Use VEC_index.
1183         * tree-ssanames.c (ssa_names): Change the type to
1184         VEC(tree,gc).
1185         (init_ssanames, fini_ssa_names, make_ssanames,
1186         release_ssa_name): Update uses of ssa_names.
1187
1188         * dojump.c, emit-rtl.c, expmed.c, expr.c, stmt.c, stor-layout.c:
1189         Use fold_buildN instead of fold (buildN (...)).
1190
1191 2005-04-27  Devang Patel <dpatel@apple.com>
1192
1193         * dbxout.c (dbxout_type): Check use_gnu_debug_info_extensions.
1194
1195 2005-04-27  Matt Thomas <matt@3am-software.com>
1196             Jan-Benedict Glaw <jbglaw@microdata-pos.de>
1197
1198         * config/vax/vax.c (vax_rtx_costs): Whitespace cleanup.
1199         (vax_output_mi_thunk): Ditto.
1200         (vax_notice_cc_update): Ditto.
1201         (INDEX_REGISTER_P): Add trailing \.
1202         (BASE_REGISTER_P): Add trailing \.
1203         (legitimate_address_p): Whitespace cleanup.  Remove trailing \.
1204
1205 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
1206
1207         * tree-ssa-propagate.c (set_rhs): Check operand of
1208         ADDR_EXPR for gimpliness, too.
1209
1210 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
1211
1212         * tree-ssa-pre.c: Fix a comment typo.
1213
1214 2005-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
1215
1216         PR tree-optimization/21171
1217         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not
1218         record address uses if the reference is volatile.
1219
1220 2004-04-27  Paolo Bonzini  <bonzini@gnu.org>
1221
1222         * tree-complex.c (expand_vector_operation): New, extracted from
1223         expand_vector_operations_1.
1224         (tree_vec_extract): Build a NOP_EXPR.
1225         (expand_vec_parallel): Do not care about returning the correct type.
1226         (expand_vector_operations_1): Call expand_vector_operation.
1227         Build the VIEW_CONVERT_EXPR on the left side of MODIFY_EXPRs.
1228
1229         * tree-complex.c (gate_expand_vector_operations): New.
1230         (pass_lower_vector_ssa): Use it.
1231         * tree-optimize.c (init_tree_optimization_passes): Include
1232         pass_lower_vector_ssa.
1233         * tree-vect-transform.c (vect_min_worthwhile_factor): New.
1234         (vectorizable_operation): Use it.
1235         * tree-vectorizer.c (get_vectype_for_scalar_type): Accept
1236         integer modes for the vector type.
1237
1238         * defaults.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
1239         * tree-vect-analyze.c (vect_enhance_data_refs_alignment):
1240         Do not cope with UNITS_PER_SIMD_WORD == 0.
1241         * tree-vectorizer.c (get_vectype_for_scalar_type): Check
1242         if the scalar type is not bigger than UNITS_PER_SIMD_WORD.
1243         (vectorize_loops): Do not check that UNITS_PER_SIMD_WORD > 0.
1244         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
1245         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
1246         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
1247         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
1248
1249         * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): Remove.
1250         * config/bfin/bfin.h (UNITS_PER_SIMD_WORD): Remove.
1251         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): Remove.
1252
1253         * doc/tm.texi (UNITS_PER_WORD): Rephrase more accurately.
1254         (UNITS_PER_SIMD_WORD): New.
1255
1256 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
1257
1258         * config/ia64/ia64.c (ia64_encode_addr_area): Use gcc_assert and
1259         gcc_unreachable as appropriate.
1260         (ia64_expand_load_address, ia64_expand_tls_address,
1261         ia64_split_tmode, ia64_split_tmode_move, ia64_expand_compare,
1262         ia64_expand_vecint_compare, ia64_expand_vecint_minmax,
1263         next_scratch_gr_reg, ia64_initial_elimination_offset,
1264         ia64_expand_prologue, ia64_expand_epilogue,
1265         ia64_output_dwarf_dtprel, ia64_print_operand,
1266         ia64_register_move_cost, first_instruction, rws_access_regno,
1267         update_set_flags, rtx_needs_barrier, group_barrier_needed_p,
1268         ia64_sched_init, ia64_variable_issue,
1269         ia64_first_cycle_multipass_dfs_lookahead_guard,
1270         ia64_dfa_new_cycle, issue_nops_and_insn, get_template, bundling,
1271         ia64_st_address_bypass_p, ia64_ld_address_bypass_p, process_set,
1272         process_for_unwind_directive, ia64_hpux_file_end): Likewise.
1273         * config/ia64/ia64.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
1274         * config/ia64/ia64.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
1275         * config/ia64/predicates.md (got_symbolic_operand,
1276         sdata_symbolic_operand): Likewise.
1277         * config/ia64/vect.md (vcondv2sf): Likewise.
1278
1279 2005-04-27  Matt Thomas <matt@3am-software.com>
1280
1281         * config/vax/vax.c (legitimate_constant_address_p): New.  Formerly
1282         CONSTANT_ADDRESS_P in config/vax/vax.h
1283         (legitimate_constant_p): Added.  Formerly CONSTANT_P in vax.h. 
1284         (INDEX_REGISTER_P): New.
1285         (BASE_REGISTER_P): New.
1286         (indirectable_constant_address_p): New.  Adapted from
1287         INDIRECTABLE_CONSTANT_ADDRESS_P in vax.h. Use SYMBOL_REF_LOCAL_P.
1288         (indirectable_address_p): New.  Adapted from
1289         INDIRECTABLE_ADDRESS_P in vax.h.
1290         (nonindexed_address_p): New.  Adapted from
1291         GO_IF_NONINDEXED_ADDRESS in vax.h.
1292         (index_temp_p): New.  Adapted from INDEX_TERM_P in vax.h.
1293         (reg_plus_index_p): New.  Adapted from GO_IF_REG_PLUS_INDEX in vax.h.
1294         (legitimate_address_p): New.  Adapted from
1295         GO_IF_LEGITIMATE_ADDRESS in vax.h.
1296         (vax_mode_dependent_address_p): New.  Adapted from
1297         GO_IF_MODE_DEPENDENT_ADDRESS in vax.h.
1298         * config/vax/vax.h (CONSTANT_ADDRESS_P): Use
1299         legitimate_constant_address_p.
1300         (CONSTANT_P): Use legitimate_constant_p.
1301         (INDIRECTABLE_CONSTANT_ADDRESS_P): Removed.
1302         (INDIRECTABLE_ADDRESS_P): Removed.
1303         (GO_IF_NONINDEXED_ADDRESS): Removed.
1304         (INDEX_TEMP_P): Removed.
1305         (GO_IF_REG_PLUS_INDEX): Removed.
1306         (GO_IF_LEGITIMATE_ADDRESS): Use legitimate_address_p. Two
1307         definitions, depending on whether REG_OK_STRICT is defined.
1308         (GO_IF_MODE_DEPENDENT_ADDRESS): Use vax_mode_dependent_address_p.
1309         Two definitions, depending on whether REG_OK_STRICT is defined.
1310         * config/vax/vax-protos.h (legitimate_constant_address_p): Prototype
1311         added.
1312         (legitimate_constant_p): Prototype added.
1313         (legitimate_address_p): Prototype added.
1314         (vax_mode_dependent_address_p): Prototype added.
1315
1316 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
1317
1318         * tree.h (phi_arg_d): Expand a comment in phi_arg_d.
1319
1320 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
1321
1322         PR c/21213
1323         * c-decl.c (finish_struct): Don't dereference NULL TYPE_FIELDS of
1324         transparent union.
1325
1326 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
1327
1328         PR c/20740
1329         * c-format.c (init_dynamic_asm_fprintf_info): Give errors, not
1330         assertion failures, if __gcc_host_wide_int__ is not properly
1331         defined.
1332         (init_dynamic_diag_info): Give errors, not assertion failures, if
1333         location_t, tree or __gcc_host_wide_int__ are not properly
1334         defined.
1335
1336 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
1337
1338         * tree-ssa-loop-ivopts.c (ivopts_data, decl_rtl_to_reset,
1339         n_iv_uses, iv_use, n_iv_cands, iv_cand,
1340         tree_ssa_iv_optimize_init, record_use, add_candidate_1,
1341         prepare_decl_rtl, free_loop_data,
1342         tree_ssa_iv_optimize_finalize): Use the VEC API instead of
1343         VARRAY.
1344
1345         * tree.h (tree_phi_node): Add a comment about the order of PHI
1346         arguments.
1347
1348 2005-04-26  Paul Brook  <paul@codesourcery.com>
1349
1350         * config/arm/arm.md (thumb_mulsi3): Use two-operand assembly form.
1351
1352 2005-04-26  Nathan Sidwell  <nathan@codesourcery.com>
1353
1354         * config/mips.mips.c (mips_legitimize_tls_address): Use
1355         gcc_unreachable.
1356
1357         * config/mmix/mmix.c (mmix_assemble_integer): Use gcc_assert.
1358         * config/mmix/crti.asm (_init): Reword comment to avoid 'abort'.
1359         * config/mmix/mmix.md (nonlocal_goto_receiver): Likewise.
1360
1361         * config/sparc/sparc.h (enum reg_class): Reword comment to avoid
1362         'abort'.
1363
1364 2005-04-26  Jeff Law  <law@redhat.com>
1365
1366         * tree-flow-inline.h (op_iter_next_must_and_may_def): New.
1367         (op_iter_init_must_and_may_def): Likewise.
1368         (unmodifiable_var_p): Move to a later point in the file.
1369         * tree-ssa-operands.h (FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): New.
1370         * tree-ssa-dse.c (need_imm_uses_for): Remove, no longer needed.
1371         (dse_record_phis): Directly check for virtual operands rather than
1372         using need_imm_uses_for.
1373         (dse_optimize_stmt): Handle V_MUST_DEF operands.  Handle case where
1374         store has multiple V_{MAY,MUST}_DEF operands.
1375
1376 2005-04-26  Andrew MacLeod  <amacleod@redhat.com>
1377
1378         * tree-cfg.c (bsi_replace): Delink immediate uses for the original
1379         stmt.
1380
1381 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
1382
1383         * tree-cfg.c (lv_adjust_loop_header_phi): Speed up moving a
1384         call to find_edge outside a loop to go through a PHI chain.
1385
1386 2004-04-26  Richard Guenther  <rguenth@gcc.gnu.org>
1387
1388         PR tree-optimization/17598
1389         * fold-const.c (fold_binary): Fold comparisons of addresses
1390         of COMPONENT_REFs which reference the same field to
1391         comparisons of the addresses of the base objects.
1392
1393 2005-04-26  Julian Brown  <julian@codesourcery.com>
1394
1395         * config/arm/arm.c (arm_return_in_msb): New function.
1396         (arm_must_pass_in_stack): New function.
1397         (TARGET_RETURN_IN_MSB): Define target hook.
1398         (TARGET_MUST_PASS_IN_STACK): Define target hook.
1399         (arm_function_value): Pad small aggregate return.
1400         (arm_pad_arg_upward): New function.
1401         (arm_pad_reg_upward): New function.
1402         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Include complex values.
1403         (FUNCTION_ARG_PADDING): Define macro.
1404         (BLOCK_REG_PADDING): Define macro.
1405         (PAD_VARARGS_DOWN): Correct padding for AAPCS.
1406         * config/arm/arm-protos.h (arm_pad_arg_upward): Declare function.
1407         (arm_pad_reg_upward): Declare function.
1408
1409 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
1410
1411         * basic-block.h (ei_cond): New.
1412         (FOR_EACH_EDGE): Call ei_cond.
1413
1414         PR tree-optimization/21047
1415         * fold-const.c (fold_binary): Abort on ASSERT_EXPR.
1416         (fold): Don't handle ASSERT_EXPR.
1417
1418 2005-04-25  Roger Sayle  <roger@eyesopen.com>
1419
1420         * sched-deps.c (sched_analyze_1): On STACK_REGS targets, x87, treat
1421         all writes to any stack register as a read/write dependency on
1422         FIRST_STACK_REG.
1423         (sched_analyze_2): Likewise, for reads from any stack register.
1424
1425 2005-04-25  Richard Henderson  <rth@redhat.com>
1426
1427         * final.c (output_addr_const): Revert 2005-04-09 change.
1428
1429 2005-04-25  Mike Stump  <mrs@apple.com>
1430
1431         * config/darwin.c (darwin_encode_section_info): Always set
1432         MACHO_SYMBOL_STATIC for all ! TREE_PUBLIC symbols.
1433
1434 2005-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1435
1436         * collect2.c, gcc.c, gcov-dump.c, gcov.c, gen-protos.c,
1437         gensupport.c, protoize.c, toplev.c: Replace calls to
1438         `unlock_stream' with `unlock_std_streams'.
1439
1440 2005-04-25  Devang Patel <dpatel@apple.com>
1441
1442         * dbxout.c (dbxout_type): Emit attribute vector.
1443         
1444 2005-04-05  Paul Brook  <paul@codesourcery.com>
1445
1446         * target-def.h (TARGET_CXX_USE_AEABI_ATEXIT): Define.
1447         * target.h (struct gcc_target): Add cxx.use_aeabi_atexit.
1448         * config/arm/arm.c (arm_cxx_atexit_name): New function.
1449         (TARGET_CXX_USE_AEABI_ATEXIT): New macro.
1450         * cp/decl.c (get_atexit_node): Reorder arguments for __aeabi_atexit.
1451         (register_dtor_fn): Likewise.
1452         * doc/tm.texi: Document TARGET_CXX_USE_AEABI_ATEXIT.
1453
1454 2005-04-25  Ian Lance Taylor  <ian@airs.com>
1455
1456         * c-common.def (EXPR_STMT): Remove, moved to C++ frontend.
1457         * c-common.h (EXPR_STMT_EXPR): Don't define.
1458         (c_common_stmt_codes): Don't define.
1459         * c-dump.c (c_dump_tree): Remove EXPR_STMT case.
1460         * c-gimplify.c (gimplify_expr_stmt): Remove.
1461         (c_gimplify_expr): Remove EXPR_STMT case.
1462         * c-objc-common.c (c_objc_common_init): Remove stmt_codes and call
1463         to INIT_STATEMENT_CODES.
1464         * c-pretty-print.c (pp_c_statement): Just call dump_generic_node.
1465
1466 2005-04-25  Jan Hubicka  <jh@suse.cz>
1467
1468         * tree-cfg.c (tree_duplicate_bb): Duplicate EH region too.
1469
1470         * except.c: Include diagnostic.h
1471         (dump_eh_tree, verify_eh_tree): New functions.
1472         * except.h (verify_eh_tree, dump_eh_tree, verify_eh_edges): Declare.
1473         * tree-cfg.c (tree_verify_flow_info): verify eh edges.
1474         (dump_function_to_file): dump eh tree.
1475         * tree-eh.c (mark_eh_edge): New function.
1476         (mark_eh_edge_found_error): New static variable.
1477         (verify_eh_edges): New function.
1478
1479 2005-04-25  Nathan Sidwell  <nathan@codesourcery.com>
1480
1481         * tree-ssa-alias.c (fieldoff_t): Remove.
1482         (fieldoff_s): typedef the structure itself.  Create a vector of
1483         objects.
1484         (push_fields_onto_fieldstack): Return count of fields pushed.
1485         Remove peeling of first field.  Adjust.
1486         (fieldoff_compare): Adjust.
1487         (create_overlap_variables_for): Adjust.
1488
1489 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
1490
1491         * doc/invoke.texi (Blackfin Options): Avoid empty @opindex line.
1492
1493 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
1494
1495         PR bootstrap/21215
1496         * doc/install.texi: Document correct assembler and linker to use
1497         on i?86-*-solaris2.10.
1498
1499 2005-04-25  Steven Bosscher  <stevenb@suse.de>
1500
1501         Fix PR tree-optimization/21173
1502
1503         * tree-ssa-pre.c (create_expression_by_pieces): Simplify code.
1504         Unshare expression we pass to force_gimple_operand.
1505
1506 2005-04-25  J"orn Rennecke <joern.rennecke@st.com>
1507             Stephen Clarke <stevec@superh.com>
1508             Roger Sayle <roger@eyesopen.com>
1509
1510         PR rtl-optimization/20413
1511         * cfgrtl.c (redirect_edge_and_branch): Use Pmode instead of
1512         VOIDmode for LABEL_REF.
1513         * final.c (shorten_branches): Likewise.
1514         * jump.c (mark_all_labels, redirect_exp_1): Likewise.
1515         * loop.c (reg_dead_after_loop): Likewise.
1516         * varasm.c (decode_addr_const): Likewise.
1517         * doc/rtl.texi: Document mode requirement for LABEL_REF.
1518
1519 2005-04-25  Ralf Corsepius  <ralf.corsepius@rtems.org>
1520
1521         * config.gcc (avr-*-*): Remove redundant "case".
1522
1523 2005-04-25  Kazu Hirata  <kazu@cs.umass.edu>
1524
1525         * tree-vect-analyze.c (vect_mark_relevant): Take
1526         VEC(tree,heap) instead of varray_type as an argument.
1527         (vect_mark_stmts_to_be_vectorized): Change the type of
1528         worklist to VEC(tree,heap).  Adjust uses of worklist.
1529
1530 2005-04-24  Devang Patel  <dpatel@apple.com>
1531
1532         *  config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
1533         
1534 2005-04-24  Ian Lance Taylor  <ian@airs.com>
1535
1536         * c-semantics.c (build_stmt): Remove test of specific tree codes
1537         for TREE_SIDE_EFFECTS handling.
1538
1539 2005-04-24  Per Bothner  <per@bothner.com>
1540
1541         * c-opts.c (finish_options):  Make the line-number of the <built-in>
1542         location 0, as assumed elsewhere, rather than 1.
1543
1544 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
1545
1546         * tree-ssa-uncprop.c (equiv_stack): Change the type o
1547         VEC(tree,heap).
1548         (tree_ssa_uncprop, uncprop_finalize_block,
1549         uncprop_initialize_block): Update uses of equiv_stack.
1550
1551 2005-04-24  Richard Henderson  <rth@redhat.com>
1552
1553         PR rtl-opt/21163
1554         * simplify-rtx.c (simplify_binary_operation) <IOR>: Check
1555         for SCALAR_INT_MODE_P instead of not MODE_CC before returning
1556         constm1_rtx.
1557         <AND, LSHIFTRT, UMIN>: Use CONST0_RTX.
1558         <UDIV, UMOD>: Use CONST0_RTX and CONST1_RTX.
1559         <DIV, MOD>: Likewise.
1560
1561 2005-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1562
1563         * collect2.c (main): Unlock the stdio streams.
1564         * gcc.c (main): Likewise.
1565         * gcov-dump.c (main): Likewise.
1566         * gcov.c (main): Likewise.
1567         * gen-protos.c (main): Likewise.
1568         * gensupport.c (init_md_reader_args_cb): Likewise.
1569         * protoize.c (main): Likewise.
1570         * toplev.c (general_init): Likewise.
1571
1572 2005-04-24  Jakub Jelinek  <jakub@redhat.com>
1573
1574         PR middle-end/20991
1575         * cgraph.h (cgraph_local_info): Add vtable_method field.
1576         * varasm.c (mark_decl_referenced): If cgraph_global_info_ready
1577         and node is vtable_method, finalized and not reachable, don't do
1578         anything.
1579
1580 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
1581
1582         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Use
1583         COMPARISON_CLASS_P.
1584         * tree-ssa-pre.c (create_value_expr_from): Use
1585         CONSTANT_CLASS_P and REFERENCE_CLASS_P.
1586         * tree-ssa-propagate.c (stmt_makes_single_load,
1587         stmt_makes_single_store): Use REFERENCE_CLASS_P.
1588         * tree-vect-transform.c (vect_is_simple_cond): Use
1589         COMPARISON_CLASS_P.
1590         * tree-vrp.c (extract_range_from_assert,
1591         build_assert_expr_for, fp_predicate, has_assert_expr): Use
1592         COMPARISON_CLASS_P.
1593
1594         * tree-ssa-live.c (build_tree_conflict_graph): Change the type
1595         of tpa_to_clear to VEC(int,heap).  Update uses of
1596         tpa_to_clear.  Free tpa_to_clear at the end.
1597
1598 2005-04-24  Andrew Pinski  <pinskia@physics.uc.edu>
1599
1600         * tree.h (TREE_THIS_VOLATILE): Document the effect on a
1601         function decl.
1602
1603 2005-04-24  Nathan Sidwell  <nathan@codesourcery.com>
1604
1605         * config/rs6000/rs6000.c (rs6000_override_options): Use gcc_assert
1606         and gcc_unreachable as appropriate.
1607         (num_insns_constant, output_vec_const_move,
1608         build_mask64_2_operands, rs6000_output_dwarf_dtprel,
1609         rs6000_emit_set_const, rs6000_emit_move,
1610         spe_build_register_parallel, function_arg,
1611         rs6000_move_block_from_reg, altivec_expand_predicate_builtin,
1612         spe_expand_predicate_builtin, spe_expand_evsel_builtin,
1613         rs6000_expand_builtin, spe_init_builtins, altivec_init_builtins,
1614         rs6000_common_init_builtins, expand_block_clear,
1615         expand_block_move, validate_condition_mode, ccr_bit, extract_MB,
1616         extract_ME, rs6000_get_some_local_dynamic_name,
1617         rs6000_output_function_entry, print_operand,
1618         print_operand_address, rs6000_generate_compare, rs6000_emit_sCOND,
1619         output_cbranch, output_e500_flip_gt_bit,
1620         rs6000_emit_vector_compare, rs6000_emit_vector_compare,
1621         rs6000_emit_cmove, rs6000_emit_minmax, rs6000_split_multireg_move,
1622         compute_save_world_info, rs6000_stack_info,
1623         rs6000_emit_load_toc_table, rs6000_frame_related,
1624         spe_synthesize_frame_save, rs6000_emit_epilogue,
1625         rs6000_output_function_epilogue, rs6000_hash_constant, output_toc,
1626         output_function_profiler, rs6000_trampoline_size,
1627         rs6000_initialize_trampoline, find_addr_reg,
1628         rs6000_machopic_legitimize_pic_address,
1629         rs6000_initial_elimination_offset,
1630         rs6000_dbx_register_number): Likewise.
1631         * config/rs6000/rs6000.md (*fix_truncdfsi2_internal,
1632         *movdf_hardfloat32, *movdf_softfloat32, *fix_trunctfsi2_internal,
1633         *movti_power, *movti_string, call, call_value, sibcall,
1634         sibcall_value): Likewise.
1635         * config/rs6000/spe.md (*movdf_e500_double,
1636         *movv2si_internal): Likewise.
1637         * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Remove 'abort'
1638         from comment.
1639
1640 2005-04-24  Richard Henderson  <rth@redhat.com>
1641
1642         PR target/21101
1643         * config/i386/i386.h (CANNOT_CHANGE_MODE_CLASS): Move guts to ...
1644         * config/i386/i386.c (ix86_cannot_change_mode_class): ... here.
1645         Deny modes smaller than 4 bytes.
1646         * config/i386/i386-protos.h: Update.
1647
1648 2005-04-24  Ralf Corsepius  <ralf.corsepius@rtems.org>
1649
1650         * config.gcc (h8300-*-rtems*): Add h8300-*-rtemscoff*.
1651         Switch h8300-*-rtems* to ELF.
1652
1653 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
1654
1655         * vec.h (VEC_safe_grow): Replace grow with safe_grow.
1656
1657 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
1658
1659         * ipa-inline.c, tree-ssa-operands.h: Fix comment typos.
1660
1661 2005-04-23  Richard Guenther  <rguenth@gcc.gnu.org>
1662
1663         PR middle-end/21082
1664         * fold-const.c: Fold &a[i]-&a[j] to i-j.
1665
1666 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
1667
1668         * tree-ssa-loop-niter.c (tree_simplify_using_condition): Expand simple
1669         definitions of ssa names in condition.  Split recusive part to ...
1670         (tree_simplify_using_condition_1): New function.
1671         (expand_simple_operations): New function.
1672
1673 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
1674
1675         * tree-ssa-loop-ivopts.c (struct cost_pair): Add value field.
1676         (find_interesting_uses_cond): Do not use integer_zerop and
1677         integer_nonzerop to check for integer constants.
1678         (set_use_iv_cost): Record the value field.
1679         (determine_use_iv_cost_generic, determine_use_iv_cost_address,
1680         determine_use_iv_cost_outer): Set the value field of the cost pair.
1681         (may_eliminate_iv): Do not return the comparison code.
1682         (iv_elimination_compare): New function.
1683         (determine_use_iv_cost_condition): Set the value field.  Record
1684         noneliminable invariants correctly.
1685         (rewrite_use_compare, rewrite_use_outer): Use the value field.
1686
1687 2005-04-23  DJ Delorie  <dj@redhat.com>
1688
1689         * diagnostic.c (warning): Accept parameter to classify warning option.
1690         (warning0): New, for when a pointer to an error() like function is needed.
1691         * errors.c (warning): Likewise.
1692         * errors.h (warning, warning0): Adjust prototypes.
1693         * toplev.h (warning, warning0): Likewise.
1694
1695         * attribs.c, builtins.c, c-common.c, c-decl.c, c-format.c,
1696         c-gimplify.c, c-lex.c, c-objc-common.c, c-opts.c, c-parser.c,
1697         c-pragma.c, c-typeck.c, calls.c, cgraph.c, coverage.c, emit-rtl.c,
1698         fold-const.c, fortran/trans-decl.c, function.c, gcse.c,
1699         genautomata.c, haifa-sched.c, opts.c, passes.c, regclass.c,
1700         reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
1701         tree-dump.c, tree-inline.c, tree-mudflap.c, tree-optimize.c,
1702         tree-ssa.c, tree.c, varasm.c: Adjust warning() callers.
1703
1704         * config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
1705         config/avr/avr.c, config/bfin/bfin.c, config/c4x/c4x-c.c,
1706         config/c4x/c4x.c, config/cris/cris.c, config/darwin-c.c,
1707         config/darwin.c, config/darwin.h, config/h8300/h8300.c,
1708         config/i386/cygming.h, config/i386/djgpp.h, config/i386/i386.c,
1709         config/i386/winnt.c, config/ia64/ia64-c.c, config/ia64/ia64.c,
1710         config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
1711         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.c,
1712         config/mmix/mmix.c, config/ns32k/ns32k.c, config/pa/pa-hpux11.h,
1713         config/pa/pa.c, config/rs6000/aix43.h, config/rs6000/aix51.h,
1714         config/rs6000/aix52.h, config/rs6000/darwin.h,
1715         config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
1716         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
1717         config/sh/symbian.c, config/sol2-c.c, config/sol2.c,
1718         config/stormy16/stormy16.c, config/v850/v850-c.c,
1719         config/v850/v850.c, config/xtensa/xtensa.c: Adjust warning()
1720         callers.
1721         
1722 2005-04-23  Richard Henderson  <rth@redhat.com>
1723
1724         PR rtl-opt/21102
1725         * simplify-rtx.c (simplify_binary_operation): Fix mode check before
1726         performing some integral scalar simplifications.
1727
1728 2005-04-23  Richard Henderson  <rth@redhat.com>
1729
1730         PR target/21099
1731         * config/i386/i386.c (ix86_split_to_parts): Use proper mode when
1732         simplifying CONST_VECTOR.
1733
1734 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
1735
1736         * tree-ssa-live.c (live_worklist): Take a stack allocated on
1737         heap as an argument.  Update uses of stack.
1738         (calculate_live_on_entry): Allocate stack on heap.
1739
1740         * tree-ssa-live.c (build_tree_conflict_graph): Allocate
1741         partition_link and tpa_nodes on heap.
1742
1743         * tree-ssa-dce.c (worklist): Change to VEC(tree,heap).
1744         (mark_stmt_necessary, propagate_necessity,
1745         mark_really_necessary_kill_operand_phis): Update uses of
1746         worklist.
1747         (tree_dce_init): Allocate worklist using VEC_alloc.
1748         (tree_dce_done): Free worklist using VEC_free.
1749
1750 2005-04-23  Mike Stump  <mrs@apple.com>
1751
1752         * config/darwin.c (machopic_indirection_name): Don't use
1753         quotes needlessly.
1754         (darwin_emit_unwind_label): Use user_label_prefix instead of
1755         "_".
1756
1757 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
1758
1759         * final.c, ipa-inline.c, varasm.c: Fix comment typos.
1760
1761 2005-04-23  Hans-Peter Nilsson  <hp@axis.com>
1762
1763         * config.gcc <cris-*>: Specify .opt files.
1764         * config/cris/cris.opt, config/cris/elf.opt, config/cris/aout.opt,
1765         config/cris/linux.opt: New files.
1766         * config/cris/aout.h (CRIS_SUBTARGET_SWITCHES)
1767         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
1768         (TARGET_ELF): Override to 0.
1769         (CRIS_SUBTARGET_HANDLE_OPTION): Override to handle -melinux and
1770         -melinux-stacksize=N.
1771         * config/cris/cris.c: (cris_handle_option): New function.
1772         (TARGET_DEFAULT_TARGET_FLAGS): Override.
1773         (TARGET_HANDLE_OPTION): Override to cris_handle_option.
1774         (cris_override_options): Use MASK_*, not TARGET_MASK_*.
1775         * config/cris/cris.h (TARGET_MASK_SVINTO, TARGET_SVINTO,
1776         (TARGET_MASK_CCINIT, TARGET_CCINIT, TARGET_MASK_PDEBUG)
1777         (TARGET_PDEBUG, TARGET_MASK_SIDE_EFFECT_PREFIXES)
1778         (TARGET_SIDE_EFFECT_PREFIXES, TARGET_MASK_EXPAND_MUL)
1779         (TARGET_EXPAND_MUL, TARGET_MASK_STACK_ALIGN, TARGET_STACK_ALIGN)
1780         (TARGET_MASK_CONST_ALIGN, TARGET_CONST_ALIGN)
1781         (TARGET_MASK_DATA_ALIGN, TARGET_DATA_ALIGN)
1782         (TARGET_MASK_PROLOGUE_EPILOGUE, TARGET_PROLOGUE_EPILOGUE)
1783         (TARGET_MASK_ETRAX4_ADD, TARGET_ETRAX4_ADD)
1784         (TARGET_MASK_ALIGN_BY_32, TARGET_ALIGN_BY_32, TARGET_MASK_ELF)
1785         (TARGET_ELF, TARGET_MASK_LINUX, TARGET_LINUX)
1786         (TARGET_MASK_AVOID_GOTPLT, TARGET_AVOID_GOTPLT)
1787         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG, TARGET_SWITCHES)
1788         (CRIS_SUBTARGET_SWITCHES, TARGET_OPTIONS)
1789         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
1790         (TARGET_LINUX): Define 0.
1791         (TARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
1792         (CRIS_SUBTARGET_DEFAULT): Define to 0, not TARGET_MASK_ELF.
1793         (CRIS_SUBTARGET_DEFAULT): New empty default macro.
1794         * config/cris/linux.h (CRIS_SUBTARGET_SWITCHES): Don't define.
1795         (TARGET_LINUX): Override to 1.
1796         (CRIS_SUBTARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
1797
1798 2005-04-23  Nathan Sidwell  <nathan@codesourcery.com>
1799
1800         * haifa-sched.c (schedule_block): Fix thinko in previous
1801         assertification patch.
1802
1803 2005-04-23  Richard Sandiford  <rsandifo@redhat.com>
1804
1805         * config.gcc (hppa[12]*-*-hpux10*): Add pa/pa-hpux.opt to
1806         $extra_options.  Also add pa/pa-hpux1010.opt for hpux10.[1-9]*.
1807         (hppa*64*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
1808         pa/pa-hpux.opt, pa/pa-hpux1010.opt and pa/pa64-hpux.opt to
1809         $extra_options.  Also add pa/pa-hpux1111.opt for hpux11.[1-9]*.
1810         (hppa[12]*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
1811         pa/pa-hpux.opt to $extra_options.  Also add pa/pa-hpux1111.opt
1812         for hpux11.[1-9]*.
1813         * config/pa/pa.h (architecture_type, rtx_def, pa_arch_string, pa_arch)
1814         (pa_fixed_range_string, pa_cpu_string, pa_unix_string, target_flags)
1815         (MASK_PA_11, MASK_DISABLE_FPREGS, TARGET_DISABLE_FPREGS)
1816         (MASK_NO_SPACE_REGS, TARGET_NO_SPACE_REGS, MASK_JUMP_IN_DELAY)
1817         (TARGET_JUMP_IN_DELAY, MASK_DISABLE_INDEXING, TARGET_DISABLE_INDEXING)
1818         (MASK_PORTABLE_RUNTIME, TARGET_PORTABLE_RUNTIME, MASK_GAS, TARGET_GAS)
1819         (MASK_SOFT_FLOAT, TARGET_SOFT_FLOAT, MASK_LONG_LOAD_STORE)
1820         (TARGET_LONG_LOAD_STORE, MASK_FAST_INDIRECT_CALLS)
1821         (TARGET_FAST_INDIRECT_CALLS, MASK_BIG_SWITCH, TARGET_BIG_SWITCH)
1822         (MASK_PA_20, MASK_SIO, TARGET_SIO, MASK_GNU_LD, TARGET_GNU_LD)
1823         (MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_PA_11, TARGET_PA_20)
1824         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS)
1825         (SUBTARGET_OPTIONS): Delete.
1826         (TARGET_PA_10): Redefine in terms of TARGET_PA_11 and TARGET_PA_20.
1827         (TARGET_SCHED_DEFAULT): Define to a PROCESSOR_* enum (PROCESSOR_8000)
1828         instead of a string.
1829         * config/pa/pa.c (pa_arch, pa_arch_string, pa_fixed_range_string)
1830         (pa_cpu_string, pa_unix_string): Delete.
1831         (pa_cpu): Initialize to TARGET_SCHED_DEFAULT.
1832         (flag_pa_unix): Initialize based on TARGET_HPUX_11_11 and
1833         TARGET_HPUX_10_10.
1834         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
1835         (pa_handle_option): New function.
1836         (override_options): Remove handling of -march=, -mfixed-range=,
1837         -mschedule= and -munix=.
1838         * config/pa/pa-hpux.h (SUBTARGET_SWITCHES): Delete.
1839         * config/pa/pa-hpux1010.h (SUBTARGET_OPTIONS): Delete.
1840         * config/pa/pa-hpux10.h (SUBTARGET_OPTIONS): Delete.
1841         * config/pa/pa-hpux1111.h (SUBTARGET_OPTIONS): Delete.
1842         * config/pa/pa-hpux11.h (SUBTARGET_OPTIONS): Delete.
1843         * config/pa/pa64-hpux.h (SUBTARGET_SWITCHES): Delete.
1844         * config/pa/pa64-start.h (TARGET_PA_11, TARGET_PA_20): #undef before
1845         redefining.
1846         * config/pa/pa.opt: New file.
1847         * config/pa/pa-hpux.opt: New file.
1848         * config/pa/pa-hpux1010.opt: New file.
1849         * config/pa/pa-hpux1111.opt: New file.
1850         * config/pa/pa64-hpux.opt: New file.
1851
1852 2005-04-22  David S. Miller  <davem@davemloft.net>
1853
1854         * rtl.h (CONST_DOUBLE): Fix comment, a CONST_DOUBLE holds an
1855         integer when it's mode is VOIDmode not DImode.
1856
1857 2005-04-22  Geoffrey Keating  <geoffk@apple.com>
1858
1859         * config/rs6000/rs6000.md (sync_add<mode>_internal,
1860         sync_addshort_internal, sync_sub<mode>_internal, sync_andsi_internal,
1861         sync_anddi_internal, sync_boolsi_internal, sync_booldi_internal,
1862         sync_boolc<mode>_internal, sync_boolc<mode>_internal2,
1863         sync_boolcc<mode>_internal, sync_lock_test_and_set<mode>): Use
1864         "bne- $-xxx" rather than local labels.
1865         (sync_lock_release<mode>): Add second operand.
1866         (lwsync): Use .long rather than a more meaningful opcode.
1867         * doc/md.texi (Standard Names): Add description of second
1868         parameter to sync_lock_test_and_set.
1869
1870 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
1871
1872         PR tree-optimization/21088
1873         * fold-const.c (fold_unary, fold_binary, fold_ternary):
1874         Export.
1875         * tree-vrp.c (compare_values): Use fold_binary to compare
1876         pointers.  Use boolean_type_node as the type of a comparison
1877         expression being folded.
1878         * tree.h: Add prototypes for fold_unary, fold_binary,
1879         fold_ternary.
1880
1881         * tree-ssa-dom.c: Fix formatting.
1882
1883 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
1884
1885         * Makefile.in (tree-into-ssa.o): Add dependency on PARAMS_H.
1886         * lambda-code.c (perfect_nestify): Mark virtual operands in
1887         the moved statement for renaming.
1888         * params.def (PARAM_MIN_VIRTUAL_MAPPINGS): Define.
1889         (PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
1890         * params.h (MIN_VIRTUAL_MAPPINGS): Define.
1891         (VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
1892         * tree-flow.h (struct var_ann_d): Update comments.
1893         (rewrite_to_new_ssa_names_bb, rewrite_to_new_ssa_names,
1894         allocate_ssa_names, find_phi_node_for, dump_tree_ssa,
1895         debug_tree_ssa, debug_def_blocks, dump_tree_ssa_stats,
1896         debug_tree_ssa_stats, rewrite_ssa_into_ssa,
1897         dump_repl_tbl, debug_repl_tbl, dump_names_replaced_by,
1898         debug_names_replaced_by): Remove declarations.
1899         (delete_update_ssa, get_current_def, set_current_def): Declare.
1900         (rewrite_into_loop_closed_ssa): Add new argument.  Update
1901         all callers.
1902         * tree-into-ssa.c: Include params.h.
1903         (old_virtual_ssa_names): Remove.  Update all users.
1904         (need_to_replace_names_p): Remove.  Update all users.
1905         (struct update_ssa_stats_d): Declare.
1906         (update_ssa_stats): New local.
1907         (dump_tree_ssa, debug_tree_ssa, debug_def_blocks,
1908         dump_tree_ssa_stats, debug_tree_ssa_stats,
1909         dump_update_ssa, debug_update_ssa,
1910         dump_names_replaced_by, debug_names_replaced_by): Declare.
1911         (get_current_def, set current_def): Make extern.
1912         (is_old_name, is_new_name): Protect against references
1913         past the end of the sets.
1914         (add_new_name_mapping): Assert that OLD and NEW are
1915         different SSA names for the same symbol.
1916         When adding a virtual mapping, update stats for virtual
1917         mapping heuristic.
1918         (insert_phi_nodes_for): If UPDATE_P is true, create the
1919         LHS of the new PHI by duplicating SSA name VAR.
1920         (insert_phi_nodes_1): Remove.  Update all users.
1921         (insert_phi_nodes): Remove second argument.  Update all
1922         users.
1923         (maybe_replace_use, maybe_replace_def): New.
1924         (rewrite_update_stmt): Call them.
1925         (mark_def_interesting): Remove calls to is_gimple_reg.
1926         (prepare_phi_args_for_update): Remove.  Update all users.
1927         (prepare_block_for_update): Only process virtual operands
1928         and GIMPLE registers in normal form.
1929         (prepare_use_sites_for): New.
1930         (prepare_names_to_update): Rename from prepare_def_sites.
1931         Call prepare_use_sites_for.
1932         (dump_update_ssa): Rename from dump_repl_tbl.
1933         Update all users.
1934         Show statistics for virtual mapping heuristic.
1935         (debug_update_ssa): Rename from debug_debug_repl_tbl.
1936         (init_update_ssa): Initialize UPDATE_SSA_STATS.
1937         (delete_update_ssa): Make extern.
1938         (mark_set_for_renaming): If the set is empty, do nothing.
1939         (release_ssa_name_after_update_ssa): Update comment.
1940         (insert_updated_phi_nodes_for): Do not remove existing
1941         PHI nodes for symbols.
1942         (switch_virtuals_to_full_rewrite_p): New.
1943         (switch_virtuals_to_full_rewrite): New.
1944         (update_ssa): Call them.
1945         Clear REWRITE_THIS_STMT and REGISTER_DEFS_IN_THIS_STMT
1946         for every statement before updating.
1947         If all the names in NEW_SSA_NAMES have been marked for
1948         removal, do nothing.
1949         Only start at the top of the CFG if there are symbols in
1950         SYMS_TO_RENAME.
1951         (ssa_rewrite_finalize_block): Remove.
1952         (ssa_register_new_def): Remove.
1953         (ssa_rewrite_stmt): Remove.
1954         (ssa_rewrite_phi_arguments): Remove.
1955         (ssa_rewrite_initialize_block): Remove.
1956         (ssa_mark_def_sites): Remove.
1957         (ssa_mark_def_sites_initialize_block): Remove.
1958         (ssa_mark_phi_uses): Remove.
1959         (rewrite_ssa_into_ssa): Remove.
1960         * tree-phinodes.c (find_phi_node_for): Remove.
1961         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
1962         Call update_ssa.
1963         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops):
1964         Remove calls to verify_dominators and
1965         verify_loop_structure.
1966         (tree_unswitch_single_loop): Call update_ssa.
1967         * tree-ssa.c (verify_ssa): Assert that need_ssa_update_p
1968         returns false.
1969         Call verify_stmts.
1970         (delete_tree_ssa): Assert that need_ssa_update_p returns
1971         false.
1972         * tree-vect-transform.c (vect_transform_loop): Call update_ssa.
1973         * tree-vectorizer.c (allocate_new_names, rename_def_op,
1974         free_new_names): Remove.  Update all users.
1975         (rename_use_op): Call get_current_def.
1976         (rename_variables_in_bb): Do not handle any real or
1977         virtual definition.
1978         (slpeel_update_phis_for_duplicate_loop): Call
1979         get_current_def and set_current_def instead of using
1980         SSA_NAME_AUX.
1981         (slpeel_update_phi_nodes_for_guard2): Reformat comments.
1982         (slpeel_can_duplicate_loop_p): Call need_ssa_update_p,
1983         ssa_names_to_replace and delete_update_ssa.
1984         * doc/invoke.texi: Document --param min-virtual-mappings
1985         and --param virtual-mappings-ratio.
1986
1987 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
1988
1989         * tree-cfg.c (tree_duplicate_bb): Call create_new_def_for
1990         for newly created PHI nodes.
1991         Call create_new_def_for for every new V_MAY_DEF and
1992         V_MUST_DEF on the copied statement.
1993         (struct ssa_name_map_entry): Remove.
1994         (ssa_name_map_entry_hash): Remove.
1995         (ssa_name_map_entry_eq): Remove.
1996         (allocate_ssa_names): Remove.
1997         (rewrite_to_new_ssa_names_def): Remove.
1998         (rewrite_to_new_ssa_names_use): Remove.
1999         (rewrite_to_new_ssa_names_bb): Remove.
2000         (rewrite_to_new_ssa_names): Remove.
2001         (tree_duplicate_sese_region): Remove variables ver,
2002         definitions, phi, ssa_name_map and bi.
2003         Call need_ssa_update_p instead of any_marked_for_rewrite_p.
2004         Call update_ssa.
2005         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
2006         update_ssa instead of rewrite_ssa_into_ssa.
2007         * tree-ssa-loop-manip.c (add_exit_phis_edge): Call
2008         create_new_def_for.
2009         (find_uses_to_rename_use): Add argument 'need_phis'.
2010         (find_uses_to_rename_stmt): Do not scan virtual operands.
2011         (find_uses_to_rename): Only scan PHI nodes for
2012         non-virtual names.
2013         (rewrite_into_loop_closed_ssa): Call update_ssa.
2014         (check_loop_closed_ssa_use): Ignore virtual operands.
2015         (check_loop_closed_ssa_stmt): Likewise.
2016         (verify_loop_closed_ssa): Do nothing if CURRENT_LOOPS is
2017         NULL.
2018         (rename_variables, set_phi_def_stmts): Remove.
2019         (tree_duplicate_loop_to_header_edge): Reformat comment.
2020         Remove variables BB, I and DEFINITIONS.
2021         Call need_ssa_update_p.
2022         Call update_ssa.
2023         (lv_adjust_loop_header_phi): Reformat comment.
2024         * tree-ssanames.c (ssa_names_to_rewrite): Remove.
2025         (marked_for_rewrite_p, any_marked_for_rewrite_p,
2026         mark_for_rewrite, unmark_all_for_rewrite,
2027         marked_ssa_names): Remove.  Update all users.
2028         (release_ssa_name): If VAR has been registered for SSA
2029         updating, do nothing.
2030         * tree-vrp.c (new_ssa_names, old_ssa_names): Remove.
2031         (build_assert_expr_for): Call register_new_name_mapping.
2032         (insert_range_assertions): Update call to update_ssa.
2033         * tree.h (mark_for_rewrite, unmark_all_for_rewrite,
2034         marked_for_rewrite_p, any_marked_for_rewrite_p,
2035         marked_ssa_names): Remove.
2036
2037 2005-04-22  Jeff Law  <law@redhat.com>
2038
2039         * tree-ssa-dom.c (block_defs_stack): Remove, no longer needed.
2040         (restore_currdefs_to_original_value): Likewise.
2041         (register_definitions_for_stmt): Likewise.
2042         (tree_ssa_dominator_optimize): No longer initialize CURRENT_DEF
2043         for each variable.  Do not allocate/free block_defs_stack either.
2044         Do not iterate if we just thread jumps.  Only iterate if the
2045         tree_cleanup_cfg does useful work (temporary).
2046         (dom_opt_initialize_block): No longer push a marker on
2047         BLOCK_DEFS_STACK.
2048         (dom_opt_finalize_block): Removal call to restore currdefs.
2049         Relax restrictions for recording edge equivalences.
2050         (record_equivalences_from_phis): No longer need to track
2051         CURRENT_DEF.
2052         (optimize_stmt): Similarly.
2053         (thread_across_edge): Simplify by removing the requirement that
2054         statements in the block we are threading through must be nops.
2055         (initialize_hash_element): Handle GOTO_EXPR.
2056
2057 2005-04-22  David S. Miller  <davem@davemloft.net>
2058
2059         * sched-vis.c (print_value): Use CONST_DOUBLE_LOW and
2060         CONST_DOUBLE_HIGH.
2061         * config/sparc/sparc.c (sparc_rtx_costs): Likewise, and
2062         fix check on CONST_DOUBLE mode.  It should be VOIDmode
2063         when it is representing an integer.
2064
2065 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
2066
2067         * builtins.c (gimplify_va_arg_expr): Reword comments to avoid
2068         'abort'. Use gcc_assert and gcc_unreachable as appropriate.
2069         * c-format.c (get_constant, decode_format_attr, get_flag_spec, 
2070         find_char_info_specifier_index,
2071         find_length_info_modifier_index): Likewise.
2072         * c-typeck.c (composite_type, pop_init_level): Likewise.
2073         * combine.c (cant_combine_insn_p, try_combine): Likewise.
2074         * cse.c (cse_insn): Likewise
2075         * dominance.c (calc_dfs_tree): Likewise
2076         dwarf2out.c (loc_descriptor_from_tree_1,
2077         add_abstract_origin_attribute, force_decl_die,
2078         force_type_die): Likewise
2079         emit-rtl.c (operand_subword_force): Likewise
2080         explow.c (hard_function_value): Likewise
2081         expmed.c (store_bit_field, expand_divmod,
2082         emit_store_flag_force): Likewise
2083         expr.c (emit_move_multi_word, store_expr,
2084         expand_expr_real_1): Likewise
2085         final.c (this_is_asm_operands, shorten_branches, final_scan_insn,
2086         output_operand): Likewise
2087         flow.c (recompute_reg_usage): Likewise
2088         * function.c (assign_stack_temp_for_type, assign_temp, 
2089         handle_epilogue_set): Likewise
2090         * genextract.c (main): Likewise
2091         * gimplify.c (mostly_copy_tree_r, gimplify_return_expr,
2092         gimplify_modify_expr_rhs, gimplify_expr): Likewise
2093         * haifa-sched.c (ready_lastpos, ready_remove_first, ready_element,
2094         ready_remove, rm_line_notes, rm_other_notes,
2095         schedule_block): Likewise
2096         mips-tfile.c (copy_object, out_of_bounds): Likewise
2097
2098 2005-04-22 David Edelsohn  <edelsohn@gnu.org>
2099
2100         PR target/20813
2101         * config/rs6000/default64.h (TARGET_DEFAULT): Add MASK_PPC_GFXOPT.
2102         * config/rs6000/rs6000.c (processor_target_table): Rename rs64a to
2103         rs64.  Add MASK_PPC_GFXOPT to powerpc64 and rs64.
2104         (rs6000_init_libfuncs): Set TFmode optabs to xlq names if
2105         TARGET_XL_COMPAT.
2106         * doc/invoke.texi (PowerPC options): Change rs64a to rs64.
2107
2108 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
2109
2110         * lambda-code.c: Define VEC(int,heap), VEC(lambda_loop,heap).
2111         (gcc_tree_to_linear_expression): Convert to heap allocated
2112         vectors.
2113         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
2114         lbv_to_gcc_expression, lle_to_gcc_expression,
2115         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest, 
2116         perfect_nestify): Likewise.
2117         lambda.h (gcc_loopnest_to_lambda_loopnest,
2118         lambda_loopnest_to_gcc_loopnest): Likewise.
2119         tree-loop-linear.c (linear_transform_loops): Likewise.
2120
2121 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
2122
2123         * config/sparc/predicates.md (arith_double_operand): Use
2124         trunc_int_for_mode if HOST_BITS_PER_WIDE_INT >=64.
2125         * config/sparc/sparc.md (movqi, movhi, movsi, movqi): Use gen_int_mode.
2126         (DImode, DFmode constant splitters): Likewise.  Remove code for
2127         TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT < 64.
2128         (logical constant splitters): Use const_int_operand predicate.
2129         (lshrsi3_extend): Remove code for TARGET_ARCH64 &&
2130         HOST_BITS_PER_WIDE_INT < 64.
2131
2132 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
2133
2134         * config/pa/pa.c (legitimize_pic_address): Use gcc_assert and
2135         gcc_unreachable as appropriate.
2136         (force_mode, emit_move_sequence, singlemove_string,
2137         output_move_double, output_fp_move_double, find_addr_reg,
2138         output_block_move, output_block_clear, output_and,
2139         output_64bit_and, output_ior, output_64bit_ior, store_reg_modify,
2140         pa_adjust_cost, pa_issue_rate, print_operand,
2141         output_global_address, output_arg_descriptor, output_cbranch,
2142         output_lbranch, output_bb, output_bvb, output_dbra, output_movb,
2143         output_call): Likewise.
2144         * config/pa/pa.md (call, call_value, sibcall, sibcall_value,
2145         prefetch, prefetch_cc, prefetch_nocc): Likewise.
2146
2147 2005-04-22  Zdenek Dvorak  <dvorakz@suse.cz>
2148
2149         * Makefile.in (LIBGCOV): Add _gcov_interval_profiler,
2150         _gcov_pow2_profiler and _gcov_one_value_profiler.
2151         (tree-profile.o): Add GGC_H and gt-tree-profile.h dependency.
2152         (GTFILES): Add $(srcdir)/tree-profile.c.
2153         * gcov-io.h (__gcov_interval_profiler, __gcov_pow2_profiler,
2154         __gcov_one_value_profiler): Declare.
2155         * gimplify.c (force_gimple_operand): Check whether the statements
2156         should be produced in ssa form.
2157         (force_gimple_operand_bsi): New function.
2158         * libgcov.c (__gcov_interval_profiler, __gcov_pow2_profiler,
2159         __gcov_one_value_profiler): New functions.
2160         * rtl-profile.c (rtl_gen_pow2_profiler): Only measure whether
2161         the profiled value is a power of two or not.
2162         * tree-cfg.c (tree_block_ends_with_condjump_p): Handle empty blocks.
2163         * tree-flow.h (in_ssa_p): Declare.
2164         (force_gimple_operand_bsi): Declare.
2165         * tree-into-ssa.c (in_ssa_p): New variable.
2166         (rewrite_into_ssa): Set in_ssa_p.
2167         * tree-outof-ssa.c (rewrite_out_of_ssa): Set in_ssa_p.
2168         * tree-profile.c: Include ggc.h and gt-tree-profile.h.
2169         (gcov_type_node, tree_interval_profiler_fn, tree_pow2_profiler_fn,
2170         tree_one_value_profiler_fn): New variables.
2171         (tree_init_edge_profiler): Initialize the profiler function decls.
2172         (tree_gen_edge_profiler): Use global gcov_type_node.
2173         (prepare_instrumented_value): New function.
2174         (tree_gen_interval_profiler, tree_gen_interval_profiler,
2175         tree_gen_one_value_profiler): Call the library functions instead of
2176         creating instrumentation code.
2177         * tree.c (build_fn_decl): New function.
2178         * tree.h (build_fn_decl): Declare.
2179         * value-prof.c (rtl_divmod_values_to_profile,
2180         rtl_find_values_to_profile, rtl_mod_pow2_value_transform,
2181         tree_mod_pow2_value_transform, tree_find_values_to_profile):
2182         Do not handle may_be_other and precise values of exponents at pow2
2183         profiler.
2184         (tree_mod_subtract_transform): Reflect that value field of
2185         histogram has changed meaning.
2186         (tree_divmod_values_to_profile): Record the values correctly.
2187         (tree_values_to_profile): Update comment.
2188         * value-prof.h (struct histogram_value_t): Remove pow2 data.
2189
2190 2005-04-22  Joseph S. Myers  <joseph@codesourcery.com>
2191
2192         * varasm.c (do_assemble_alias): Return early if TREE_ASM_WRITTEN
2193         (decl).
2194
2195 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
2196
2197         * config/i386/i386.md (length_immediate): Use gcc_assert or
2198         gcc_unreachable, as appropriate.
2199         (*movsi_1, *movqi_1, reload_outqi, *movdi_1_rex64, *pushsf,
2200         *pushsf_rex64, *truncxfsf2_mixed, *truncxfsf2_i387,
2201         *truncxfdf2_mixed, *truncxfdf2_i387, *adddi_1_rex64,
2202         *adddi_2_rex64, *adddi_3_rex64, *adddi_4_rex64, *adddi_5_rex64,
2203         *addsi_1, addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
2204         *addsi_3_zext, *addsi_4, *addsi_5, *addhi_1_lea, *addhi_1,
2205         *addhi_2, *addhi_3, *addhi_4, *addhi_5, *addqi_1_lea, *addqi_1,
2206         *addqi_1_slp, *addqi_2, *addqi_3, *addqi_4, *addqi_5, addqi_ext_1,
2207         *addqi_ext_1_rex64, *anddi_1_rex64, *andsi_1, *andhi_1,
2208         *ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashlsi3_1, *ashlsi3_1_zext,
2209         *ashlsi3_cmp, *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1,
2210         *ashlhi3_cmp, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
2211         pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64,
2212         pro_epilogue_adjust_stack_rex64_2, prefetch, *prefetch_sse,
2213         *prefetch_sse_rex): Likewise.
2214         * config/i386/predicates.md (x86_64_immediate_operand,
2215         x86_64_zext_immediate_operand, symbolic_operand,
2216         no_seg_address_operand, aligned_operand,
2217         memory_displacement_operand): Likewise.
2218         * config/i386/sse.md (*mov<mode>_internal,
2219         *movv2df_internal): Likewise.
2220
2221 2005-04-22  Jan Hubicka  <jh@suse.cz>
2222
2223         * Makefile.in (ipa.o, ipa-inline.o): New files.
2224         * cgraph.h (cgraph_remove_unreachable_nodes, cgraph_postorder,
2225         cgraph_decide_inlining_incrementally, cgraph_clone_inlined_nodes,
2226         cgraph_mark_inline_edge, cgraph_default_inline_p): Declare.
2227         * cgraphunit.c (cgraph_default_inline_p,
2228         cgraph_decide_inlining_incrementally,  ncalls_inlined,
2229         nfunctions_inlined, initial_insns, overall_insns, 
2230         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
2231         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
2232         cgraph_mark_inline, cgraph_check_inline_limits,
2233         cgraph_default_inline_p, cgraph_recursive_inlining_p,
2234         update_callee_keys, lookup_recursive_calls,
2235         cgraph_decide_recursive_inlining, cgraph_set_inline_failed,
2236         cgraph_decide_inlining_of_small_functions, cgraph_decide_inlining,
2237         cgraph_decide_inlining_incrementally, cgraph_gate_inlining,
2238         pass_ipa_inline): Move to ipa-inline.c
2239         (cgraph_postorder, cgraph_remove_unreachable_nodes): Move to ipa.c
2240         * ipa.c: New file.
2241         * ipa-inline.c: New file.
2242
2243 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
2244
2245         * doc/invoke.texi (SPARC options): Document that -mapp-regs
2246         is turned off by default on Solaris.
2247
2248 2005-04-21  Roger Sayle  <roger@eyesopen.com>
2249
2250         * c-common.h (objc_build_method_signature): Update prototype.
2251         * stub-objc.c (objc_build_method_signature): Update the stub
2252         implementation to accept and ignore additional parameter.
2253         * c-parser.c (c_parser_objc_method_decl): Reorgnize to pass
2254         the value of ellipsis to objc_build_method_signature instead
2255         of setting TREE_OVERFLOW on the parms TREE_LIST node.
2256
2257 2005-04-21  Geoffrey Keating  <geoffk@apple.com>
2258
2259         * config/rs6000/rs6000-protos.h (rs6000_emit_sync): New.
2260         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Use
2261         gen_rtx_* not gen_rtx_fmt_*.
2262         (rs6000_emit_vector_select): Likewise.
2263         (rs6000_emit_sync): New.
2264         * config/rs6000/rs6000.md (GPR, INT, INT1): New mode macros.
2265         (larx, stcx, cmp): New mode substitutions.
2266         (UNSPEC_SYNC, UNSPEC_SYNC_OP, UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC,
2267         UNSPEC_ISYNC): New constants.
2268         (rlwinm): Give name.
2269         (memory_barrier, isync, lwsync): New insns.
2270         (sync_compare_and_swap<mode>, sync_lock_test_and_set<mode>): New insn.
2271         (sync_lock_release<mode>): New expander.
2272         (sync_add<mode>, sync_sub<mode>, sync_ior<mode>, sync_and<mode>,
2273         sync_xor<mode>, sync_nand<mode>, sync_old_add<mode>,
2274         sync_old_sub<mode>, sync_old_ior<mode>, sync_old_and<mode>,
2275         sync_old_xor<mode>, sync_old_nand<mode>, sync_new_add<mode>,
2276         sync_new_sub<mode>, sync_new_ior<mode>, sync_new_and<mode>,
2277         sync_new_xor<mode>, sync_new_nand<mode>): New expanders.
2278         (sync_add<mode>_internal, sync_addshort_internal,
2279         sync_sub<mode>_internal, sync_andsi_internal, sync_anddi_internal,
2280         sync_boolsi_internal, sync_booldi_internal, sync_boolc<mode>_internal,
2281         sync_boolc<mode>_internal2, sync_boolcc<mode>_internal): New insns.
2282
2283         * doc/md.texi (Standard Names): sync_compare_and_swap's operand 0
2284         is the memory before, not after, the operation.  Clarify
2285         barrier requirements.
2286
2287 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
2288
2289         * cfghooks.h (struct cfg_hooks): Reword comments to avoid 'abort'.
2290         * lambda.h (lambda_vector_min_nz): Likewise.
2291         * langhooks.h (struct lang_hooks_for_types,
2292         struct lang_hooks): Likewise.
2293         * output.h (assemble_integer, this_is_asm_operands): Likewise.
2294         * tree.h: Likewise.
2295         * vec.h: Likewise.
2296         * tree-flow-inline.h (relink_imm_use): Use gcc_assert.
2297         
2298         * optabs.c (prepare_cmp_insn, emit_cmp_and_jump_insns): Reword
2299         comments to avoid 'abort'.  Use gcc_assert as necessary.
2300         * opts.c (common_handle_option): Likewise.
2301         * pretty-print.c (pp_base_format_text): Likewise.
2302         * print-rtl.c (print_rtx): Likewise.
2303         * read-rtl.c (read_rtx_filename, read_rtx_1): Likewise.
2304         * regmove.c (try_auto_increment): Likewise.
2305         * reload.c (find_valid_class, find_reloads_toplev,
2306         find_equiv_reg): Likewise.
2307         * reload1.c (reload, forget_old_reloads_1, function_invariant_p, 
2308         merge_assigned_reloads): Likewise.
2309         * tree-inline.c (inline_forbidden_p_1,
2310         estimate_num_insns_1): Likewise.
2311         * tree-optimize.c (execute_todo): Likewise.
2312         * tree-outof-ssa.c (eliminate_phi): Likewise.
2313         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
2314         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Likewise.
2315         * tree-ssa-operands.c (parse_ssa_operands,
2316         get_indirect_ref_operands, create_ssa_artficial_load_stmt): Likewise.
2317         * tree-ssa-pre.c (find_or_generate_expression): Likewise.
2318         * tree-ssanames.c (release_ssa_name): Likewise.
2319         * tree.c (int_bit_position, int_byte_position, tree_low_cst, 
2320         walk_tree): Likewise.
2321
2322         * tree-ssa-operands.c (verify_abort): Fold into ..
2323         (verify_imm_links): ... here.
2324
2325 2005-04-21  Richard Henderson  <rth@redhat.com>
2326
2327         * config/alpha/sync.md (sync_new_nand<I48MODE>): Fix constraints
2328         on non-memory operand for previous inversion.
2329
2330 2005-04-21  Devang Patel  <dpatel@apple.com>
2331
2332         PR optimization/20994
2333         * tree-if-conv.c (find_phi_replacement_condition): Avoid generating
2334         x = !(a == b) : p , q;.
2335         (pass_if_conversion): Verify stmts and flow.
2336         
2337 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
2338
2339         * optabs.c (gen_conditional_trap): Restore #define.
2340
2341         * alias.c (true_dependence): Remove 'abort' from comments. Use
2342         gcc_assert and gcc_unreachable as appropriate.
2343         (canon_true_dependence): Likewise.
2344         * bb-reorder.c (connect_traces): Likewise.
2345         * c-common.c (c_add_case_label): Likewise.
2346         * c-decl.c (finish_function): Likewise.
2347         * caller-save.c (insert_restore, insert_save): Likewise.
2348         * cfg.c (update_bb_profile_for_threading): Likewise.
2349         * cfganal.c (flow_active_insn_p): Likewise.
2350         * cfgexpand.c (add_reg_br_prob_note): Likewise.
2351         * cfgrtl.c (rtl_redirect_edge_and_branch_force, rtl_split_edge,
2352         cfg_layout_merge_blocks): Likewise.
2353         * ifcvt.c (cond_exec_process_insns, merge_if_block,
2354         find_if_block): Likewise.
2355         * integrate.c (allocate_initial_values): Likewise.
2356         * jump.c (reverse_condition, reverse_condition_maybe_unordered,
2357         swap_condition, unsigned_condition, signed_condition,
2358         mark_jump_label, invert_jump_1, rtx_renumbered_equal_p,
2359         reg_or_subregno): Likewise.
2360         * lambda-code.c (lambda_compute_auxillary_space,
2361         lambda_transform_legal_p): Likewise.
2362         * lambda-mat.c (lambda_matrix_inverse_hard): Likewise.
2363         * langhooks.c (lhd_set_decl_assembler_name, lhd_type_promotes_to,
2364         lhd_incomplete_type_error, lhd_expand_expr,
2365         lhd_types_compatible_p, lhd_tree_size): Likewise.
2366         * lcm.c (create_pre_exit, optimize_mode_switching): Likewise.
2367         * local-alloc.c (update_equiv_regs): Likewise.
2368         * loop-unroll.c (peel_loop_completely
2369         unroll_loop_constant_iterations, unroll_loop_runtime_iterations,
2370         peel_loop_simple, unroll_loop_stupid,
2371         analyze_iv_to_split_insn): Likewise.
2372         * loop.c (gen_prefetch, find_and_verify_loops,
2373         basic_induction_var): Likewise.
2374         * modulo-sched.c (normalize_sched_times, check_nodes_order): Likewise.
2375         * value-prof.c (tree_find_values_to_profile): Likewise.
2376         * varasm.c (named_section, default_assemble_integer,
2377         decode_addr_const): Likewise.
2378
2379 2005-04-21 Alan Modra  <amodra@bigpond.net.au>
2380            Fariborz Jahanian <fjahanian@apple.com>
2381
2382         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Fix size of
2383         portion of argument passed in fpr.
2384         * expr.c (emit_push_insn): Fix computation of 'offset' used to
2385         decide on partial argument save on stack.
2386
2387 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
2388
2389         * config/sparc/predicates.md, config/sparc/sparc.md: Fix
2390         comment typos.
2391
2392 2005-04-21  Jan Hubicka  <jh@suse.cz>
2393
2394         * cgraphunit.c: Include tree-pass.h
2395         (cgraph_decide_recursive_inlining,
2396         cgraph_decide_inlining_of_small_function, cgraph_set_inline_failed,
2397         cgraph_decide_inlining): Dump goes to dump_file.
2398         (cgraph_optimize): Call ipa passes instead of inliner.
2399         (cgraph_gate_inlining, pass_ipa_inline): New.
2400         * tree-optimize.c (all_ipa_passes): New static variable.
2401         (register_one_dump_file): Dead with IPA passes.
2402         (register_dump_files): Likewise.
2403         (init_tree_optimization_passes): Initialize IPA passes.
2404         (execute_todo): Do cgraph dump when asked to, do not dump function body
2405         for IPA pass.
2406         * tree-pass.h (TODO_dump_cgraph): New macro.
2407         (ipa_passes): Declare.
2408         * Makefile.in (cgraphunit.o): Add dependency on cgraphunit.h
2409
2410 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
2411
2412         * config/i386/i386.c (type_natural_mode): Use gcc_unreachable and
2413         gcc_assert instead of abort.
2414         (classify_argument, examine_argument, construct_container,
2415         contains_128bit_aligned_vector_p, ix86_check_movabs,
2416         standard_80387_constant_opcode, standard_80387_constant_rtx,
2417         ix86_initial_elimination_offset, ix86_compute_frame_layout,
2418         pro_epilogue_adjust_stack, ix86_expand_epilogue,
2419         ix86_address_cost, legitimate_address_p, legitimize_pic_address,
2420         legitimize_tls_address, output_pic_addr_const,
2421         i386_output_dwarf_dtprel, put_condition_code, print_reg,
2422         get_some_local_dynamic_name, print_operand, print_operand_address,
2423         output_387_binary_op, emit_i387_cw_initialization,
2424         output_fix_trunc, output_fp_compare, ix86_output_addr_vec_elt,
2425         ix86_expand_clear, ix86_expand_binary_operator,
2426         ix86_expand_unary_operator, ix86_match_ccmode, ix86_cc_mode,
2427         ix86_cc_modes_compatible, ix86_fp_comparison_codes,
2428         ix86_fp_comparison_arithmetics_cost, ix86_expand_fp_compare,
2429         ix86_expand_branch, ix86_expand_setcc,
2430         ix86_expand_carry_flag_compare, ix86_expand_fp_movcc,
2431         ix86_expand_int_addcc, ix86_split_to_parts, ix86_split_long_move,
2432         ix86_expand_movmem, ix86_expand_call, assign_386_stack_local,
2433         memory_address_length, ix86_attr_length_immediate_default,
2434         ix86_attr_length_address_default, ix86_agi_dependant,
2435         x86_initialize_trampoline, ix86_init_mmx_sse_builtins,
2436         ix86_expand_binop_builtin, ix86_force_to_memory,
2437         ix86_secondary_memory_needed, ix86_avoid_jump_misspredicts,
2438         x86_emit_floatuns): Likewise.
2439         * config/i386/netware.c (gen_regparm_prefix,
2440         i386_nlm_strip_name_encoding): Likewise.
2441         * config/i386/winnt.c (i386_pe_mark_dllexport): Likewise.
2442
2443 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
2444
2445         * optabs.c (gen_condiational_trap): Remove #define.
2446         (add_equal_note): Assertify. Remove explicit indirection from
2447         call via function pointer.
2448         (expand_ternary_op, expand_simple_binop, expand_binop,
2449         expand_twoval_unop, expand_twoval_binop,
2450         expand_twoval_binop_libfunc, expand_simple_unop expand_unop,
2451         emit_unop_insn,  emit_no_conflict_block,  prepare_cmp_insn,
2452         prepare_operand emit_cmp_and_jump_insn_1, emit_cmp_and_jump_insns,
2453         prepare_float_lib_cmp, emit_conditional_move,
2454         emit_conditional_add, gen_add2_insn, gen_add3_insn,
2455         have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn,
2456         expand_float, expand_fix, debug_optab_libfuncs, gen_cond_trap,
2457         vector_compare_rtx, expand_vec_cond_expr): Likewise.
2458
2459 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
2460
2461         * vec.h: Update API to separate allocation mechanism from type.
2462         (VEC_safe_grow): New.
2463         * vec.c (calculate_allocation): New.
2464         (vec_gc_o_reserve, vec_heap_o_reserve): Adjust.
2465         (vec_gc_free, vec_heap_free): Remove.
2466         * gengtype-lex.l (DEF_VEC_): Process mult-argument macros.  Adjust.
2467         (VEC): Likewise.
2468         (mangle_macro_name): New.
2469         (struct macro_def): New.
2470         (struct macro): Add multiple argument values.
2471         (macro_expans_end): New.
2472         (push_macro_expansion):  Chain on new macro. Process multiple
2473         args, create follow on expansion. Return follow on argument.
2474         (macro_input): Deal with multiple arguments.
2475         
2476         * tree.h: Define VEC(tree,heap) and VEC(tree,gc).
2477         (struct tree_binfo): Adjust.
2478         * basic-block.h: Define VEC(edge,gc).
2479         (struct edge_def): Adjust.
2480         (struct basic_block_def, struct edge_iterator): Likewise.
2481         (ei_container, ei_start_1, ei_last_1): Likewise.
2482         * cfg.c (connect_src, connect_dest): Likewise.
2483         * cfgrtl.c (force_nonfallthru_and_redirect)
2484         * dbxout.c (dbxout_type)
2485         * dwarf2out.c (gen_member_die)
2486         * lambda-code.c: Define VEC(int,gc), VEC(lambda_loop,gc).
2487         (gcc_tree_to_linear_expression): Adjust.
2488         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
2489         lbv_to_gcc_expression, lle_to_gcc_expression,
2490         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
2491         perfect_nestify): Likewise.
2492         * lambda.h (gcc_loopnest_to_lambda_loopnest,
2493         lambda_loopnest_to_gcc_loopnest): Adjust prototypes.
2494         * profile.c (instrument_values): Adjust.
2495         * tree-cfg.c (modified_noreturn_calls): Adjust.
2496         (remove_fallthru_edge): Likewise.
2497         * tree-dump.c (dequeue_and_dump): Adjust.
2498         * tree-flow-inline.h (mark_stmt_modified): Adjust.
2499         * tree-flow.h (modified_noreturn_calls): Adjust.
2500         (tree_on_heap): Remove. (yay!)
2501         (register_new_def): Adjust.
2502         * tree-into-ssa.c: Define VEC(int,heap).
2503         (block_defs_stack): Adjust.
2504         (find_idf, insert_phi_nodes, register_new_def,
2505         rewrite_initialize_block, rewrite_finalize_block,
2506         register_new_update_single, rewrite_update_init_block,
2507         rewrite_update_fini_block, rewrite_blocks,
2508         ssa_rewrite_finalize_block, ssa_register_new_def,
2509         ssa_rewrite_initialize_block, rewrite_ssa_into_ssa): Likewise.
2510         * tree-loop-linear.c (linear_transform_loops): Adjust.
2511         * tree-ssa-alias.c: Define VEC(fieldoff_t,heap).
2512         (push_fields_onto_fieldstack, create_overlap_variables_for): Adjust.
2513         * tree-ssa-dom.c (avail_exprs_stack, block_defs_stack,
2514         stmts_to_rescan, const_and_copies_stack, nonzero_vars_stack,
2515         vrp_variables_stack): Adjust declarations.
2516         (tree_ssa_dominator_optimize): Adjust.
2517         (dom_opt_initialize_block, remove_local_expressions_from_table,
2518         restore_nonzero_vars_to_original_value,
2519         restore_vars_to_original_value,
2520         restore_currdefs_to_original_value, dom_opt_finalize_block,
2521         record_var_is_nonzero, record_cond, record_const_or_copy_1,
2522         optimize_stmt, update_rhs_and_lookup_avail_expr,
2523         lookup_avail_expr, record_range): Likewise.
2524         * tree-ssa-pre.c: Define VEC(basic_block,heap).
2525         (compute_antic_aux): Adjust.
2526         (inserted_exprs, create_expression_by_pieces, 
2527         insert_into_preds_of_block, eliminate, mark_operand_necessary, 
2528         remove_dead_inserted_code, fini_pre): Likewise.
2529         * tree-ssa-propagate.c (interesting_ssa_edges): Adjust.
2530         (varying_ssa_edges, add_ssa_edge, process_ssa_edge_worklist. 
2531         ssa_prop_init): Likewise.
2532         * tree-ssa.c: Define VEC(bitmap,heap).
2533         (verify_name_tags): Adjust.
2534         * value-prof.c (rtl_divmod_values_to_profile): Adjust.
2535         (insn_prefetch_values_to_profile, rtl_find_values_to_profile,
2536         tree_divmod_values_to_profile, tree_find_values_to_profile,
2537         value_profile_transformations): Likewise.
2538         * value-prof.h: Define VEC(histogram_value,heap).
2539         * varasm.c: Remove alias_pair pointer typedef, define
2540         VEC(alias_pair,gc).
2541         (finish_aliases_1, finish_aliases_2, assemble_alias): Adjust.
2542         
2543         * config/pa/pa.c (typedef extern_symbol): Typedef the structure,
2544         not a pointer to it.  Create an object vector.
2545         (extern_symbols): Turn into an object vector.
2546         (pa_hpux_asm_output_external, pa_hpux_file_end): Adjust.
2547
2548 2005-04-21  Sebastian Pop  <pop@cri.ensmp.fr>
2549
2550         PR/20742
2551         * Makefile.in (tree-chrec.o): Depend on params.h.
2552         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): New parameter with
2553         default value 20.
2554         * tree-chrec.c: Depend on params.h.  Replace build with buildN,
2555         and fold build with fold_buildN.
2556         (chrec_fold_plus_1): Fail with a chrec_don_know when the size of
2557         the expression exceeds PARAM_SCEV_MAX_EXPR_SIZE.
2558         (tree_contains_chrecs): Compute an estimation of the size of the
2559         given expression.
2560         * tree-chrec.h (tree_contains_chrecs): Modify its declaration.
2561         (tree_does_not_contain_chrecs): Update the use of tree_contains_chrecs.
2562         * tree-scalar-evolution.c (simple_iv): Ditto.
2563         * doc/invoke.texi (scev-max-expr-size): Documented.
2564
2565 2005-04-21  Richard Sandiford  <rsandifo@redhat.com>
2566
2567         * config.gcc (*-*-darwin*): Add darwin.opt to $extra_options.
2568         (i[34567]86-pc-msdosdjgpp*): Likewise i386/djgpp.opt.
2569         (i[34567]86-*-lynxos*, powerpc-*-lynxos*): Likewise lynx.opt.
2570         (i[34567]86-*-sco3.2v5*): Likewise i386/sco5.opt.
2571         (i[34567]86-*-pe, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
2572         (i[34567]86-*-uwin*): Likewise i386/cygming.opt.
2573         * config/darwin.h (darwin_one_byte_bool, darwin_fix_and_continue)
2574         (darwin_fix_and_continue_switch, SUBTARGET_OPTIONS): Delete.
2575         * config/darwin.c (darwin_one_byte_bool, darwin_fix_and_continue)
2576         (darwin_fix_and_continue_switch): Delete.
2577         * config/lynx.h (SUBTARGET_OS_LYNX_SWITCHES): Delete.
2578         (SUBTARGET_SWITCHES): Delete.
2579         * config/i386/i386.h (target_flags, MASK_80387, MASK_RTD)
2580         (MASK_ALIGN_DOUBLE, MASK_SVR3_SHLIB, MASK_IEEE_FP, MASK_FLOAT_RETURNS)
2581         (MASK_NO_FANCY_MATH_387, MASK_OMIT_LEAF_FRAME_POINTER)
2582         (MASK_STACK_PROBE, MASK_NO_ALIGN_STROPS, MASK_INLINE_ALL_STROPS)
2583         (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS, MASK_MMX)
2584         (MASK_SSE, MASK_SSE2, MASK_SSE3, MASK_3DNOW, MASK_3DNOW_A)
2585         (MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT)
2586         (MASK_TLS_DIRECT_SEG_REFS, MASK_NO_RED_ZONE, TARGET_80387)
2587         (TARGET_RTD, TARGET_ALIGN_DOUBLE, TARGET_PUSH_ARGS)
2588         (TARGET_ACCUMULATE_OUTGOING_ARGS, TARGET_SVR3_SHLIB, TARGET_IEEE_FP)
2589         (TARGET_128BIT_LONG_DOUBLE, TARGET_NO_FANCY_MATH_387)
2590         (TARGET_USE_FANCY_MATH_387, TARGET_OMIT_LEAF_FRAME_POINTER)
2591         (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Delete.
2592         (TARGET_FLOAT_RETURNS_IN_80387): Make an alias of TARGET_FLOAT_RETURNS.
2593         (TARGET_64BIT): Undef before redefining.
2594         (TARGET_TLS_DIRECT_SEG_REFS, TARGET_STACK_PROBE)
2595         (TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS, TARGET_SSE)
2596         (TARGET_SSE2, TARGET_SSE3, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A)
2597         (TARGET_RED_ZONE, TARGET_USE_MS_BITFIELD_LAYOUT, TARGET_SWITCHES)
2598         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS)
2599         (ix86_fpmath_string, ix86_tls_dialect_string, ix86_cmodel_string)
2600         (ix86_asm_string, ix86_regparm, ix86_regparm_string)
2601         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
2602         (ix86_debug_arg_string, ix86_debug_addr_string)
2603         (ix86_align_loops_string, ix86_align_jumps_string)
2604         (ix86_align_funcs_string): Delete.
2605         * config/i386/cygming.h (MASK_NOP_FUN_DLLIMPORT)
2606         (TARGET_NOP_FUN_DLLIMPORT, SUBTARGET_SWITCHES): Delete.
2607         * config/i386/djgpp.h (MASK_BNU210, SUBTARGET_SWITCHES): Delete.
2608         (SUBTARGET_OVERRIDE_OPTIONS): Check TARGET_BNU210.
2609         * config/i386/lynx.h (SUBTARGET_SWITCHES): Delete.
2610         * config/i386/sco5.h (MASK_COFF, TARGET_ELF)
2611         (SUBTARGET_SWITCHES): Delete.
2612         * config/i386/i386.c (ix86_debug_arg_string): Delete.
2613         (ix86_debug_addr_string): Delete.
2614         (ix86_cmodel_string, ix86_asm_string, ix86_tls_dialect_string)
2615         (ix86_fpmath_string, ix86_regparm_string, ix86_regparm)
2616         (ix86_align_loops_string, ix86_align_jumps_string)
2617         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
2618         (ix86_align_funcs_string): Make static.
2619         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
2620         (ix86_handle_option): New function.
2621         (TARGET_USE_MS_BITFIELD_LAYOUT): Delete.
2622         (ix86_ms_bitfield_layout_p): Check TARGET_MS_BITFIELD_LAYOUT.
2623         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove handling
2624         of darwin_fix_and_continue_switch.
2625         (darwin_one_byte_bool): Delete.
2626         * config/rs6000/lynx.h (EXTRA_SUBTARGET_SWITCHES): Delete.
2627         * config/rs6000/rs6000.c (rs6000_override_options): Update assignment
2628         to darwin_one_byte_bool.
2629         * config/darwin.opt, config/lynx.opt, config/i386/cygming.opt,
2630         * config/i386/djgpp.opt, config/i386/i386.opt,
2631         * config/i386/sco5.opt: New files.
2632
2633 2005-04-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
2634
2635         * config/sparc/sparc.c (reg_or_0_operand, const1_operand,
2636         fp_zero_operand, fp_register_operand, intreg_operand,
2637         fcc_reg_operand, fcc0_reg_operand, icc_or_fcc_reg_operand,
2638         call_operand, call_operand_address, tgd_symbolic_operand,
2639         tld_symbolic_operand, tie_symbolic_operand, tle_symbolic_operand,
2640         symbolic_operand, symbolic_memory_operand, label_ref_operand,
2641         sp64_medium_pic_operand, data_segment_operand,
2642         text_segment_operand, splittable_symbolic_memory_operand,
2643         reg_or_nonsymb_mem_operand, splittable_immediate_memory_operand,
2644         eq_or_neq, normal_comp_operator, noov_compare_op,
2645         noov_compare64_op, v9_regcmp_op, extend_op, cc_arithop,
2646         cc_arithopn, arith_operand, arith_4096_operand, arith_add_operand,
2647         const64_operand, const64_high_operand, arith11_operand,
2648         arith10_operand, arith_double_operand, arith_double_4096_operand,
2649         arith_double_add_operand, arith11_double_operand,
2650         arith10_double_operand, small_int, small_int_or_double,
2651         uns_small_int, uns_arith_operand, clobbered_register,
2652         input_operand, compare_operand): Delete.
2653         (sparc_emit_set_const32): Use predicates in assertion.  Remove special
2654         code for TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT != 64.
2655         (sparc_emit_set_const64): Call gcc_unreachable if H_B_P_W_I == 32.
2656         (GEN_HIGHINT64, GEN_INT64): Delete.
2657         (sparc_emit_set_safe_HIGH64, gen_safe_SET64, gen_safe_OR64,
2658         gen_safe_XOR64): Adjust for above deletion.
2659         (sparc_emit_set_const64): Support only H_B_P_W_I == 64 and CONST_INTs.
2660         Use 'unsigned HOST_WIDE_INT' instead of 'long' for bitmask.
2661         (legitimate_constant_p): Use const_zero_operand instead.
2662         (sparc_extra_constraint_check): Likewise.
2663         * config/sparc/sparc.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'O'.
2664         (PREFERRED_RELOAD_CLASS): Use const_zero_operand.
2665         (PREDICATE_CODES): Delete.
2666         * config/sparc/sparc.md: Include predicates.md.
2667         (All patterns): Adjust for new predicate names.
2668         (cmpdi, cmpdi_sp64): Use arith_operand predicate.
2669         (movhi_const64_special, movsi_const64_special): Add 'K' constraint.
2670         (movdi): Use general_operand predicate.
2671         (movdi_sp64_dbl): Delete.
2672         (movdi_const64_special): Add 'N' constraint.
2673         (movdicc): Use arith10_operand predicate.
2674         (movdi_cc_sp64, movdi_cc_sp64_trunc): Use arith11_operand predicate.
2675         (movdi_cc_reg_sp64): Use arith10_operand predicate.
2676         (movdi_cc_reg_sp64_trunc): Delete.
2677         (cmp_zero_extract, cmp_zero_extract_sp64): Use small_int_operand.
2678         (adddi3_sp64, cmp_ccx_plus, cmp_ccx_plus_set): Use arith_operand.
2679         (subdi3_sp32): Delete.
2680         (subdi3_insn_sp32): Change to define_insn_and_split.
2681         (subdi3_sp64, cmp_minus_ccx, cmp_minus_ccx_set): Use arith_operand.
2682         (muldi3, muldi3_sp64, muldi3_v8plus): Likewise.
2683         (smulsi3_highpart_v8plus, const_smulsi3_highpart_v8plus,
2684         umulsi3_highpart_v8plus, const_umulsi3_highpart_v8plus): Use
2685         small_int_operand predicate.
2686         (divdi3, udivdi3): Use arith_operand predicate.
2687         (udivsi3, udivsi3_sp32, udivsi3_sp64): Use nonimmediate_operand.
2688         (and<V64I>3_sp64, ior<V64I>3_sp64, xor<V64I:mode>3_sp64,
2689         xor_not_<V64I:mode>_sp64) : Use arith_operand predicate.
2690         (xordi3_sp64_dbl): Delete.
2691         (cmp_ccx_arith_op, cmp_ccx_arith_op_set, cmp_ccx_xor_not,
2692         cmp_ccx_xor_not_set, cmp_ccx_arith_op_not, cmp_ccx_arith_op_not_set,
2693         cmp_ccx_neg, cmp_ccx_set_neg, one_cmpl<V64I>2_sp64, cmp_ccx_not,
2694         cmp_ccx_set_not): Use arith_operand predicate.
2695         (ashrsi3_extend2, lshrsi3_extend2 et al.): Use small_int_operand.
2696         * config/sparc/predicates.md: New file.
2697
2698 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
2699
2700         PR tree-optimization/14846
2701         * fold-const.c (fold_single_bit_test_into_sign_test): New,
2702         split out from ...
2703         (fold_single_bit_test): ... here.
2704         (fold_binary): Call fold_single_bit_test_into_sign_test
2705         instead of fold_single_bit_test.
2706
2707 2005-04-20  James E Wilson  <wilson@specifixinc.com>
2708
2709         PR c++/20805
2710         * dwarf2out.c (gen_variable_die): Don't emit a specification if this
2711         is another declaration.
2712
2713 2005-04-21  Hans-Peter Nilsson  <hp@axis.com>
2714
2715         * config/cris/predicates.md: New file.
2716         * config/cris/cris-protos.h (cris_store_multiple_op_p)
2717         (cris_movem_load_rest_p): Declare.
2718         * config/cris/cris.c (cris_store_multiple_op): Return bool, not int.
2719         (cris_movem_load_rest_p): Ditto.  Globalize.
2720         (cris_bdap_operand, cris_bdap_biap_operand,
2721         cris_orthogonal_operator, cris_commutative_orth_op,
2722         cris_operand_extend_operator,
2723         cris_additive_operand_extend_operator, cris_extend_operator,
2724         cris_plus_or_bound_operator, cris_mem_op,
2725         cris_general_operand_or_symbol,
2726         cris_general_operand_or_gotless_symbol,
2727         cris_general_operand_or_plt_symbol, cris_mem_call_operand,
2728         cris_load_multiple_op): Remove predicate functions.
2729         (cris_symbol, cris_gotless_symbol) <case UNSPEC>: Return 0, don't
2730         abort, for UNSPECs other than CRIS_UNSPEC_PLT.
2731         * config/cris/cris.h (PREDICATE_CODES): Don't define.
2732         * config/cris/cris.md: Include predicates.md.
2733         ("call", "call_value"): Generate CONSTs of Pmode, not VOIDmode.
2734
2735 2005-04-20  Ian Lance Taylor  <ian@airs.com>
2736
2737         * c-common.def: Remove STMT_EXPR (moved to cp/cp-tree.def).
2738         * c-common.h (STMT_EXPR_STMT): Don't define.
2739         (STMT_EXPR_NO_SCOPE): Don't define.
2740         * c-dump.c (c_dump_tree): Don't handle STMT_EXPR.
2741         * c-pretty-print.c (pp_c_primary_expression): Likewise.
2742         (pp_c_expression): Likewise.
2743
2744 2005-04-20  Richard Henderson  <rth@redhat.com>
2745
2746         PR target/21100
2747         * config/i386/mmx.md (push<MMXMODE>1): Fix predicate thinko.
2748
2749 2005-04-20  Jeff Law  <law@redhat.com>
2750
2751         * reload1.c (reload): Ignore equivalences between pseudos and
2752         read only memory.
2753
2754 2005-04-20  Joseph S. Myers  <joseph@codesourcery.com>
2755
2756         PR c/12913
2757         * c-tree.h (struct c_label_list): Update comment.
2758         (struct c_label_context): Rename to struct c_label_context_se.
2759         (label_context_stack): Rename to label_context_stack_se.
2760         (C_DECL_UNJUMPABLE_VM, C_DECL_UNDEFINABLE_VM, struct
2761         c_label_context_vm, label_context_stack_vm, c_begin_vm_scope,
2762         c_end_vm_scope): New.
2763         (C_DECL_DECLARED_BUILTIN, C_DECL_USED): Use FUNCTION_DECL_CHECK.
2764         * c-decl.c (pop_scope): Call c_end_vm_scope.
2765         (pushdecl): Call c_begin_vm_scope for variably modified
2766         declarations.
2767         (define_label): Check for jumping into scope of identifier with
2768         variably modified type.  Push label on stack for those defined at
2769         current context of identifiers with variably modified type.
2770         (start_function): Create stack level for context of identifiers
2771         with variably modified type.
2772         (finish_function): Pop stack level for context of identifiers with
2773         variably modified type.
2774         * c-typeck.c (label_context_stack): Rename to
2775         label_context_stack_se.
2776         (label_context_stack_vm, c_begin_vm_scope, c_end_vm_scope): New.
2777         (c_finish_goto_label): Check for jumping into scope of identifier
2778         with variably modified type.  Push label on stack for those jumped
2779         to from current context of identifiers with variably modified
2780         type.
2781         (struct c_switch): Add blocked_vm.
2782         (c_start_case): Initialize blocked_vm.
2783         (do_case): Check blocked_vm.
2784         (c_finish_case): Add comment.
2785         (c_begin_stmt_expr, c_finish_stmt_expr): Update for renamed
2786         variable label_context_stack.
2787
2788 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
2789
2790         * tree-ssa-phiopt.c (tree_ssa_phi_opt): Update calls to
2791         conditional_replacement, value_replacement, abs_replacement,
2792         minmax_replacement.
2793         (replace_phi_edge_with_variable): Remove argument BB.
2794         (conditional_replacement, value_replacement,
2795         minmax_replacement, abs_replacement): Remove argument PHI_BB.
2796         Update a call to replace_phi_edge_with_variable.
2797
2798         * tree-ssa-phiopt.c: Fix comments.
2799
2800 2005-04-20  Michael Matz  <matz@suse.de>
2801
2802         PR20973
2803         * reload.c (push_reload, find_dummy_reload): Check for uninitialized
2804         pseudos.
2805
2806 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
2807
2808         * tree-ssa-phiopt.c: Fix comment typos.
2809
2810         PR tree-optimization/21116
2811         * tree-ssa-phiopt.c: Fix a typo.
2812
2813 2005-04-19  Richard Henderson  <rth@redhat.com>
2814
2815         * builtins.c (expand_builtin_sync_operation): Revert last change.
2816         * optabs.c (expand_bool_compare_and_swap): Compare vs old value,
2817         not vs new value.
2818         (expand_compare_and_swap_loop): Likewise.
2819         (expand_sync_operation): Remove fallback from NAND to AND; invert
2820         memory operand when expanding from cmpxchg.
2821         (expand_sync_fetch_operation): Likewise.
2822         * doc/extend.texi (Atomic Builtins): Fix docs for nand and
2823         compare-and-swap.
2824
2825         * config/alpha/alpha.c (alpha_split_atomic_op): Invert memory operand
2826         when implementing NAND.  Fix double-add for AFTER.
2827         * config/alpha/sync.md (sync_nand<I48MODE>): Invert memory operand.
2828         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
2829         (sync_compare_and_swap<I48MODE>): Fix compare vs zero.  Return old
2830         memory value.
2831         (sync_lock_test_and_set<I48MODE>): Remove extra label and last
2832         memory barrier.
2833
2834         * config/i386/sync.md (sync_compare_and_swap<IMODE>): Fix pattern
2835         to return old memory value.
2836         (sync_compare_and_swap_cc<IMODE>): Likewise.
2837
2838         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Early
2839         return pre-reload.  Don't consider output or anti dependencies.
2840         * config/ia64/sync.md (IMODE): New.
2841         (modesuffix): Add QI and HI.
2842         (memory_barrier): Simplify expansion.
2843         (sync_compare_and_swap<IMODE>): Use IMODE, not I48MODE.
2844         (cmpxchg_acq_<IMODE>): Likewise.
2845         (sync_lock_test_and_set<IMODE>): Likewise.
2846         (sync_lock_release<IMODE>): Likewise.
2847
2848 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
2849
2850         * fold-const.c (fold_binary): Fold ~(X ^ Y) to ~X ^ Y or X ^ ~Y if
2851         ~X or ~Y simplify.
2852
2853 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
2854
2855         * fold-const (fold_binary):  Fold ~X ^ ~ Y to X ^ Y.
2856
2857 2005-04-20  Michael Pogue  <michael.pogue@sun.com>
2858             Joseph S. Myers  <joseph@codesourcery.com>
2859
2860         * c.opt (Wint-to-pointer-cast, Wpointer-to-int-cast): New options.
2861         * c-typeck.c (build_c_cast): Check these options.
2862         * doc/invoke.texi: Document these options.
2863
2864 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
2865
2866         * tree-ssa-phiopt.c: Update a comment about the pass.
2867
2868 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
2869
2870         * tree-ssa-phiopt.c, config/arm/arm.c, config/fr30/fr30.md,
2871         config/mcore/mcore.c: Fix comment typos.
2872
2873 2005-04-19  Daniel Jacobowitz  <dan@codesourcery.com>
2874
2875         * Makefile.in (libgcc.mk): Pass GCC_FOR_TARGET.
2876         * mklibgcc.in: Use $GCC_FOR_TARGET instead of ./xgcc.
2877
2878 2005-04-19  Paul Brook  <paul@codesourcery.com>
2879
2880         * config/arm/arm.c (arm_init_libfuncs): Clear mod optabs. 
2881
2882 2005-04-19  Andrew Haley  <aph@redhat.com>
2883
2884         PR java/21022
2885         * dbxout.c (dbxout_type_fields): Check DECL_IGNORED_P before
2886         looking at a field's bitpos.
2887
2888 2005-04-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2889
2890         * system.h (fopen, fdopen, freopen): Define these to the unlocked
2891         libiberty functions.
2892
2893 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
2894
2895         PR tree-optimization/21096
2896         * tree-ssa-copy.c (fini_copy_prop): Free cached_last_copy_of.
2897
2898 2005-04-19  Alan Modra  <amodra@bigpond.net.au>
2899
2900         PR target/21098
2901         * config/rs6000/rs6000.c (rs6000_elf_end_indicate_exec_stack): New.
2902         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Use the above.
2903
2904 2005-04-19  Alexandre Oliva  <aoliva@redhat.com>
2905
2906         * tree-cfg.c (dump_function_to_file): Use cfun info only if it
2907         refers to the function being dumped.
2908
2909 2005-04-18  Daniel Jacobowitz  <dan@codesourcery.com>
2910
2911         * varasm.c (assemble_start_function): Remove reset of in_section.
2912
2913 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
2914
2915         PR tree-optimization/21085
2916         * fold-const (fold_binary): Don't change X % -C to X % C if C has
2917         overflowed.
2918
2919 2005-04-19  Ben Elliston  <bje@au.ibm.com>
2920
2921         * doc/invoke.texi (Optimize Options): Refer to the correct
2922         optimisation flag -ftree-dominator-opts, not -ftree-dom.
2923
2924 2005-04-18  Christopher Jaillet <christophe.jaillet@wanadoo.fr>
2925
2926         * config/rs6000/rs6000.c (machopic_output_stub):  Increase
2927         alloca argument to be big enough.
2928
2929 2005-04-18  Alexandre Oliva  <aoliva@redhat.com>
2930
2931         PR middle-end/21049
2932         * tree-cfg.c (dump_function_to_file): Do not crash if cfun or
2933         cfun->cfg are NULL.
2934
2935 2005-04-18  Tom Tromey  <tromey@redhat.com>
2936
2937         * cgraphunit.c (cgraph_finalize_compilation_unit): Fix a comment
2938         typo.
2939
2940 2005-04-18  Richard Henderson  <rth@redhat.com>
2941
2942         * config/alpha/alpha.c (alpha_split_atomic_op): New.
2943         (alphaev5_insn_pipe): Add LD_L, ST_C, MB types.
2944         (alphaev4_insn_pipe): Likewise.  Correct IST and LDSYM pipes.
2945         * config/alpha/alpha-protos.h: Update.
2946         * config/alpha/alpha.md (UNSPECV_MB, UNSPECV_LL, UNSPECV_SC): New.
2947         (UNSPECV_ATOMIC, UNSPECV_CMPXCHG, UNSPECV_XCHG): New.
2948         (attr type): Add ld_l, st_c, mb.
2949         (andsi_internal, andnotsi3, iorsi_internal, one_cmplsi_internal,
2950         iornotsi3, xorsi_internal, xornotsi3): New.
2951         * config/alpha/ev4.md (ev4_ld): Add ld_l.
2952         (ev4_ist_c, ev4_mb): New.
2953         * config/alpha/ev5.md (ev5_st): Add st_c, mb.
2954         (ev5_ld_l): New.
2955         * config/alpha/ev6.md (ev6_ild): Add ld_l.
2956         (ev6_ist): Add st_c.
2957         (ev6_mb): New.
2958         * config/alpha/sync.md: New file.
2959
2960 2005-04-18  Richard Henderson  <rth@redhat.com>
2961
2962         * builtins.c (expand_builtin_sync_operation): Fold nand to and
2963         for constants.
2964
2965         * optabs.c (expand_sync_operation): Fix typo expanding nand to and.
2966
2967 2005-04-18  Devang Patel  <dpatel@apple.com>
2968
2969         * config/rs6000/atlivec.md (mulv4si3): New pattern.
2970         
2971 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
2972
2973         PR tree-optimization/20922
2974         * fold-const.c (fold_binary): Fold X - c > X and X + c < X to false.
2975         Fold X + c >= X and fold X - c <= X to true.
2976
2977 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
2978
2979         * config/ia64/unwind-ia64.c (emergency_reg_state_free): Make an
2980         unsigned int.
2981         (emergency_labeled_state_free): Likewise.
2982
2983 2005-04-18  Nick Clifton  <nickc@redhat.com>
2984
2985         * config/h8300/h8300.md (jump): Remove prescan parameter from
2986         calls to final_scan_insn.
2987
2988         * config/arc/arc.c (arc_output_function_epilogue): Remove prescan
2989         parameter from calls to final_scan_insn.
2990
2991         * config.gcc (m68hc12): Use the m68hc11.opt file for target
2992         specific options.
2993         (v850e, v850e1): Use the v850.opt file for target specific
2994         options.
2995
2996 2005-04-18  Kazu Hirata  <kazu@cs.umass.edu>
2997
2998         PR tree-optimization/21001
2999         * tree-optimize.c (init_tree_optimization_passes): Move the
3000         first pass_forwprop immediately before pass_vrp.
3001
3002 2005-04-17  Ian Lance Taylor  <ian@airs.com>
3003
3004         * c-common.def (SIZEOF_EXPR, ARROW_EXPR, ALIGNOF_EXPR): Remove.
3005         * c-common.c (c_sizeof_or_alignof_type): Change second parameter
3006         from enum tree_code op to bool is_sizeof.
3007         * c-common.h (c_sizeof_or_alignof_type): Update declaration.
3008         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
3009         * c-pretty-print.c (pp_c_postfix_expression): Remove ARROW_EXPR
3010         case.
3011         (pp_c_unary_expression): Remove SIZEOF_EXPR and ALIGNOF_EXPR
3012         cases.
3013         (pp_c_expression): Remove ARROW_EXPR, SIZEOF_EXPR, and
3014         ALIGNOF_EXPR cases.
3015
3016 2005-04-17  Ian Lance Taylor  <ian@airs.com>
3017
3018         * system.h: Poison DONT_ACCESS_GBLS_AFTER_EPILOGUE.
3019
3020 2005-04-17  Richard Henderson  <rth@redhat.com>
3021
3022         * config/alpha/alpha.c (va_list_skip_additions): Only define if
3023         TARGET_ABI_OSF.
3024         (TARGET_STDARG_OPTIMIZE_HOOK): Likewise.
3025         (alpha_stdarg_optimize_hook): Likewise.  Allow for one more round
3026         of indirection through ssa names while looking for the gpr counter
3027         field.
3028         (alpha_setup_incoming_varargs) <TARGET_ABI_OSF>: Make use of the
3029         saved va_list_gpr_size and va_list_fpr_size.
3030
3031 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
3032
3033         * tree-vrp.c (compare_values): Check that VAL1 and VAL2 are
3034         both pointers or both integers.
3035
3036         * tree-vrp.c (maybe_add_assert_expr): Don't assert
3037         ASSERT_EXPRs for single-use variable.
3038
3039         * tree-into-ssa.c: Fix a comment typo.
3040
3041 2005-04-17  Richard Sandiford  <rsandifo@redhat.com>
3042
3043         * config/mips/iris6.h (DRIVER_SELF_SPECS): Check -march as well as
3044         -mipsN before forcing a default of -mips2.
3045
3046 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
3047
3048         * predict.h (IS_TAKEN): Remove.
3049         * rtl.h (NOTE_PREDICTION): Likewise.
3050
3051         * modulo-sched.c (CFG_HOOKS): Remove.
3052
3053         * c-parser.c (N_C_TTYPES): Remove.
3054
3055         * tree-flow-inline.h (get_stmt_operands): Remove.
3056         * lambda-code.c, tree-ssa-loop-unswitch.c,
3057         tree-ssa-operands.c, tree-ssa-pre.c, tree-ssa-propagate.c,
3058         tree-ssa-sink.c, tree-ssa.c, tree-tailcall.c,
3059         tree-vect-transform.c, tree-vectorizer.c, tree-vrp.c): Remove
3060         calls to get_stmt_operands.
3061         * doc/tree-ssa.texi: Don't mention get_stmt_operands.
3062
3063 2005-04-17  Richard Henderson  <rth@redhat.com>
3064
3065         PR target/20375
3066         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Advance a copy
3067         of CUMULATIVE_ARGS past the last named argument.
3068         (alpha_va_start): Expect pretend_args_size only if strictly less than
3069         6 named arguments.
3070
3071 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
3072
3073         PR middle-end/21024
3074         * builtins.c (expand_builtin_strcat): Convert the result of
3075         strlen to the right type.
3076         * fold-const.c (fold_binary) <PLUS_EXPR>: Use fold_convert to
3077         avoid creating type mismatches.
3078         <GE_EXPR>: Pass op0 and op1 to fold_build2 to avoid creating
3079         type mismatches.
3080
3081         * c-lex.c (WCHAR_TYPE_SIZE, WCHAR_BYTES): Remove.
3082
3083 2005-04-16  Richard Henderson  <rth@redhat.com>
3084
3085         PR target/21051
3086         * builtins.c (expand_builtin) <BUILT_IN_BOOL_COMPARE_AND_SWAP_*>:
3087         Use the mode of boolean_type_node when the user doesn't provide one.
3088         * config/ia64/sync.md (sync_lock_release<I48MODE>): Use operand 1.
3089
3090 2005-04-16  Alexandre Oliva  <aoliva@redhat.com>
3091
3092         PR target/20126
3093         * loop.c (loop_givs_rescan): Handle non-replaceable (plus (reg)
3094         (const)).
3095
3096         * tree-scalar-evolution.c (interpret_rhs_modify_expr): Fix typo in
3097         comment.
3098
3099 2005-04-16  Roger Sayle  <roger@eyesopen.com>
3100             Steven Bosscher  <stevenb@suse.de>
3101
3102         * fold-const.c (fold_binary_to_constant): Delete obsolete comment.
3103         (fold_unary_to_constant): Likewise.
3104
3105 2005-04-16  Kazu Hirata  <kazu@cs.umass.edu>
3106
3107         * basic-block.h: Adjust the value of PROP_SCAN_DEAD_STORES,
3108         PROP_ASM_SCAN.
3109
3110 2005-04-16  Gerald Pfeifer  <gerald@pfeifer.com>
3111
3112         * doc/install.texi (Specific): Avoid using asterisks in @anchor
3113         names related to target triplets.
3114         Remove i?86-*-esix from platform directory.
3115         Remove powerpc-*-eabiaix from platform directory.
3116
3117 2005-04-16  Joseph S. Myers  <joseph@codesourcery.com>
3118
3119         PR middle-end/20491
3120         * config/ia64/ia64.c (rtx_needs_barrier): Recurse instead of
3121         falling through from SUBREG case to REG.
3122
3123 2005-04-15  Roger Sayle  <roger@eyesopen.com>
3124
3125         * fold-const.c (fold_relational_hi_lo): Delete function and prototype.
3126         (fold_binary): Update comment mentioning fold_relational_hi_lo.
3127         (fold_binary_to_constant): Simplify using fold_binary.
3128         (fold_unary_to_constant): Likewise, simplify using fold_unary.
3129
3130 2005-04-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3131
3132         * gthr-posix.c (pthread_cancel): Define.
3133         (pthread_mutexattr_init): Likewise.
3134         (pthread_mutexattr_settype): Likewise.
3135         (pthread_mutexattr_destroy): Likewise.
3136
3137 2005-04-15  David S. Miller  <davem@davemloft.net>
3138
3139         PR target/20673
3140         * config/sparc/sparc.h (sparc_hard_reg_printed): Mark as GTY(()).
3141
3142 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
3143
3144         PR tree-optimization/21031
3145         * tree-ssa-forwprop.c (ssa_name_defined_by_comparison_p): New.
3146         (forward_propagate_into_cond_1): Call it.  Forward propagate
3147         integer-integer casts into COND_EXPRs.
3148
3149 2005-04-15  Dave Korn  <dave.korn@artimi.com>
3150
3151         * gcc.c (default_compilers): Clarify obscure error message when
3152         reading from standard input.
3153
3154 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
3155
3156         * basic-block.h (PROP_EQUAL_NOTES): Remove.
3157         * flow.c (propagate_one_insn): Don't use PROP_EQUAL_NOTES.
3158
3159         * tree-ssa-alias.c (init_alias_info): Remove a call to
3160         get_stmt_operands.
3161
3162 2005-04-15  Andrew MacLeod  <amacleod@redhat.com>
3163
3164         * tree-vect-analyze.c (vect_stmt_relevant_p): Process immediate uses
3165         of non-virtual PHI nodes like we use to.
3166
3167 2005-05-15  Paolo Bonzini  <bonzini@gnu.org>
3168
3169         * genattrtab.c (ATTR_EQ_ATTR_P): Remove.
3170         (attr_copy_rtx): Do not use it.
3171
3172 2005-04-15  Andrew Macleod  <amacleod@redhat.com>
3173
3174         * doc/tree-ssa.texi: Grammer/abbreviation updates.
3175
3176 2005-04-15  Diego Novillo  <dnovillo@redhat.com>
3177
3178         * tree-vect-transform.c (vectorizable_store): Mark necessary
3179         objects in the vectorized store needing renaming.  Update the
3180         SSA graph for V_MAY_DEF operands in the original store.
3181
3182 2005-04-14  Daniel Berlin <dberlin@dberlin.org>
3183
3184         * tree-ssa-pre.c (compute_avail): It's okay to have
3185         TREE_INVARIANT's here, and value number the resulting expressions.
3186         (create_expression_by_pieces): Make sure operands that were
3187         min_invariant when we started, stay that way.
3188
3189 2005-04-15  David Edelsohn  <edelsohn@gnu.org>
3190
3191         * doc/install.texi (*-ibm-aix*): Add comment about system limits.
3192
3193 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
3194
3195         PR tree-optimization/20936.
3196         * tree-ssa-ccp.c (visit_assignment): Fix a typo.
3197
3198 2005-04-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3199
3200         * doc/invoke.texi: Fix typos.
3201         * doc/md.texi: Likewise.
3202         * doc/rtl.texi: Likewise.
3203         * doc/sourcebuild.texi: Likewise.
3204         * doc/tm.texi: Likewise.
3205
3206 2005-04-15  Uros Bizjak  <uros@kss-loka.si>
3207
3208         PR tree-optimization/21004
3209         * convert.c (convert_to_integer): Convert ceilf, ceill, floorf
3210         and floorl in c99 mode only.
3211         * builtins.c (expand_builtin_int_roundingfn): Assert that
3212         fallback_fndecl is not NULL_TREE.
3213
3214 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
3215
3216         * cfgrtl.c (purge_all_dead_edge): Remove an unused argument.
3217         * basic-block.h: Update the prototype for
3218         purge_all_dead_edges.
3219         * cfgexpand.c (tree_expand_cfg): Update a call to
3220         purge_all_dead_edges.
3221         * combine.c (combine_instructions): Likewise.
3222         * passes.c (rest_of_handle_old_regalloc, rest_of_handle_cse,
3223         rest_of_handle_cse2, rest_of_handle_gcse,
3224         rest_of_handle_postreload): likewise.
3225
3226 2005-04-15  Alexandre Oliva  <aoliva@redhat.com>
3227
3228         PR middle-end/20739
3229         * gimplify.c (gimplify_addr_expr): Compensate for removal of
3230         e.g. cv-qualification conversions.
3231
3232 2005-04-14  Mike Stump  <mrs@apple.com>
3233
3234         * config/darwin-c.c (framework_construct_pathname): We must
3235         find all headers of a framework in the first instance of it
3236         found in the seach path.
3237
3238 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
3239
3240         PR tree-optimization/21021
3241         * tree-vrp.c (compare_values): Work around a bug in the front
3242         end that produces a comparison of mismatched types.
3243
3244 2004-04-14  Richard Henderson  <rth@redhat.com>
3245
3246         * config/ia64/ia64.h (enum fetchop_code): Remove.
3247         (enum ia64_builtins): Move ...
3248         * config/ia64/ia64.c (enum ia64_builtins): ... here.  Remove all
3249         members except BSP and FLUSHRS.
3250         (ia64_init_builtins): Remove __sync builtins.
3251         (ia64_expand_builtin): Likewise.
3252         (ia64_expand_fetch_and_op, ia64_expand_op_and_fetch): Remove.
3253         (ia64_expand_compare_and_swap, ia64_expand_lock_test_and_set): Remove.
3254         (ia64_expand_lock_release): Remove.
3255         * config/ia64/ia64.md (mf): Move to sync.md.
3256         (mf_internal, fetchadd_acq_si, fetchadd_acq_di, cmpxchg_acq_si,
3257         cmpxchg_acq_di, xchgsi, xchgdi): Likewise.
3258         * config/ia64/sync.md: New file.
3259         (memory_barrier): Rename from mf.
3260         (fetchadd_acq_<I48MODE>): Macroize from _si/_di patterns.
3261         (cmpxchg_acq_<I48MODE>): Likewise.
3262         (sync_lock_test_and_set<I48MODE>): Likewise.
3263
3264         * config/ia64/ia64intrin.h: Define nothing for C; limit #defines
3265         to c++.  Remove __sync* declarations.  s/_si/_4/.  s/_di/_8/.
3266
3267 2004-04-14  Richard Henderson  <rth@redhat.com>
3268
3269         * config/i386/i386.c (x86_cmpxchg, x86_xadd): New.
3270         (ix86_compare_emitted): New.
3271         (ix86_expand_compare): Use ix86_compare_emitted if set.
3272         (ix86_expand_setcc): Only emit REG_EQUAL if both ix86_compare_op0
3273         and ix86_compare_op0 are set.
3274         * config/i386/i386.h (x86_cmpxchg, x86_xadd): Declare.
3275         (TARGET_CMPXCHG, TARGET_XADD): New.
3276         (ix86_compare_emitted): Declare.
3277         * config/i386/i386.md: Include sync.md
3278         (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2): New.
3279         (UNSPECV_XCHG, UNSPECV_LOCK): New.
3280         * config/i386/sync.md: New file.
3281
3282 2004-04-14  Richard Henderson  <rth@redhat.com>
3283
3284         PR middle-end/14311
3285         * builtin-types.def (BT_BOOL, BT_VOLATILE_PTR, BT_I1, BT_I2,
3286         BT_I4, BT_I8, BT_FN_VOID_VPTR, BT_FN_I1_VPTR_I1, BT_FN_I2_VPTR_I2,
3287         BT_FN_I4_VPTR_I4, BT_FN_I8_VPTR_I8, BT_FN_BOOL_VPTR_I1_I1,
3288         BT_FN_BOOL_VPTR_I2_I2, BT_FN_BOOL_VPTR_I4_I4, BT_FN_BOOL_VPTR_I8_I8,
3289         BT_FN_I1_VPTR_I1_I1, BT_FN_I2_VPTR_I2_I2, BT_FN_I4_VPTR_I4_I4,
3290         BT_FN_I8_VPTR_I8_I8): New.
3291         * builtins.def (DEF_SYNC_BUILTIN): New.
3292         (BUILT_IN_FETCH_AND_ADD_N, BUILT_IN_FETCH_AND_ADD_1,
3293         BUILT_IN_FETCH_AND_ADD_2, BUILT_IN_FETCH_AND_ADD_4,
3294         BUILT_IN_FETCH_AND_ADD_8, BUILT_IN_FETCH_AND_SUB_N,
3295         BUILT_IN_FETCH_AND_SUB_1, BUILT_IN_FETCH_AND_SUB_2,
3296         BUILT_IN_FETCH_AND_SUB_4, BUILT_IN_FETCH_AND_SUB_8,
3297         BUILT_IN_FETCH_AND_OR_N, BUILT_IN_FETCH_AND_OR_1,
3298         BUILT_IN_FETCH_AND_OR_2, BUILT_IN_FETCH_AND_OR_4,
3299         BUILT_IN_FETCH_AND_OR_8, BUILT_IN_FETCH_AND_AND_N,
3300         BUILT_IN_FETCH_AND_AND_1, BUILT_IN_FETCH_AND_AND_2,
3301         BUILT_IN_FETCH_AND_AND_4, BUILT_IN_FETCH_AND_AND_8,
3302         BUILT_IN_FETCH_AND_XOR_N, BUILT_IN_FETCH_AND_XOR_1,
3303         BUILT_IN_FETCH_AND_XOR_2, BUILT_IN_FETCH_AND_XOR_4,
3304         BUILT_IN_FETCH_AND_XOR_8, BUILT_IN_FETCH_AND_NAND_N,
3305         BUILT_IN_FETCH_AND_NAND_1, BUILT_IN_FETCH_AND_NAND_2,
3306         BUILT_IN_FETCH_AND_NAND_4, BUILT_IN_FETCH_AND_NAND_8,
3307         BUILT_IN_ADD_AND_FETCH_N, BUILT_IN_ADD_AND_FETCH_1,
3308         BUILT_IN_ADD_AND_FETCH_2, BUILT_IN_ADD_AND_FETCH_4,
3309         BUILT_IN_ADD_AND_FETCH_8, BUILT_IN_SUB_AND_FETCH_N,
3310         BUILT_IN_SUB_AND_FETCH_1, BUILT_IN_SUB_AND_FETCH_2,
3311         BUILT_IN_SUB_AND_FETCH_4, BUILT_IN_SUB_AND_FETCH_8,
3312         BUILT_IN_OR_AND_FETCH_N, BUILT_IN_OR_AND_FETCH_1,
3313         BUILT_IN_OR_AND_FETCH_2, BUILT_IN_OR_AND_FETCH_4,
3314         BUILT_IN_OR_AND_FETCH_8, BUILT_IN_AND_AND_FETCH_N,
3315         BUILT_IN_AND_AND_FETCH_1, BUILT_IN_AND_AND_FETCH_2,
3316         BUILT_IN_AND_AND_FETCH_4, BUILT_IN_AND_AND_FETCH_8,
3317         BUILT_IN_XOR_AND_FETCH_N, BUILT_IN_XOR_AND_FETCH_1,
3318         BUILT_IN_XOR_AND_FETCH_2, BUILT_IN_XOR_AND_FETCH_4,
3319         BUILT_IN_XOR_AND_FETCH_8, BUILT_IN_NAND_AND_FETCH_N,
3320         BUILT_IN_NAND_AND_FETCH_1, BUILT_IN_NAND_AND_FETCH_2,
3321         BUILT_IN_NAND_AND_FETCH_4, BUILT_IN_NAND_AND_FETCH_8,
3322         BUILT_IN_BOOL_COMPARE_AND_SWAP_N, BUILT_IN_BOOL_COMPARE_AND_SWAP_1,
3323         BUILT_IN_BOOL_COMPARE_AND_SWAP_2, BUILT_IN_BOOL_COMPARE_AND_SWAP_4,
3324         BUILT_IN_BOOL_COMPARE_AND_SWAP_8, BUILT_IN_VAL_COMPARE_AND_SWAP_N,
3325         BUILT_IN_VAL_COMPARE_AND_SWAP_1, BUILT_IN_VAL_COMPARE_AND_SWAP_2,
3326         BUILT_IN_VAL_COMPARE_AND_SWAP_4, BUILT_IN_VAL_COMPARE_AND_SWAP_8,
3327         BUILT_IN_LOCK_TEST_AND_SET_N, BUILT_IN_LOCK_TEST_AND_SET_1,
3328         BUILT_IN_LOCK_TEST_AND_SET_2, BUILT_IN_LOCK_TEST_AND_SET_4,
3329         BUILT_IN_LOCK_TEST_AND_SET_8, BUILT_IN_LOCK_RELEASE_N,
3330         BUILT_IN_LOCK_RELEASE_1, BUILT_IN_LOCK_RELEASE_2,
3331         BUILT_IN_LOCK_RELEASE_4, BUILT_IN_LOCK_RELEASE_8,
3332         BUILT_IN_SYNCHRONIZE: New.
3333         * builtins.c (called_as_built_in): Rewrite from CALLED_AS_BUILT_IN
3334         as a function.  Accept __sync_ as a prefix as well.
3335         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
3336         expand_builtin_lock_test_and_set, expand_builtin_synchronize,
3337         expand_builtin_lock_release): New.
3338         (expand_builtin): Call them.
3339         * c-common.c (DEF_BUILTIN): Don't require __builtin_ prefix if
3340         neither BOTH_P nor FALLBACK_P are defined.
3341         (builtin_type_for_size): New.
3342         (sync_resolve_size, sync_resolve_params, sync_resolve_return): New.
3343         (resolve_overloaded_builtin): New.
3344         * c-common.h (resolve_overloaded_builtin): Declare.
3345         (builtin_type_for_size): Declare.
3346         * c-typeck.c (build_function_call): Invoke resolve_overloaded_builtin.
3347         * expr.c (sync_add_optab, sync_sub_optab, sync_ior_optab,
3348         sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab,
3349         sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab,
3350         sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab,
3351         sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab,
3352         sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap,
3353         sync_compare_and_swap_cc, sync_lock_test_and_set,
3354         sync_lock_release): New.
3355         * optabs.h: Declare them.
3356         * expr.h (expand_val_compare_and_swap, expand_bool_compare_and_swap,
3357         expand_sync_operation, expand_sync_fetch_operation,
3358         expand_sync_lock_test_and_set): Declare.
3359         * genopinit.c (optabs): Add sync optabs.
3360         * optabs.c (init_optabs): Initialize sync optabs.
3361         (expand_val_compare_and_swap_1, expand_val_compare_and_swap,
3362         expand_bool_compare_and_swap, expand_compare_and_swap_loop,
3363         expand_sync_operation, expand_sync_fetch_operation,
3364         expand_sync_lock_test_and_set): New.
3365         * doc/extend.texi (Atomic Builtins): New section
3366         * doc/md.texi (Standard Names): Add sync patterns.
3367
3368 2005-04-14  Alexandre Oliva  <aoliva@redhat.com>
3369
3370         * tree-eh.c (lower_try_finally_copy): Generate new code in
3371         response to goto_queue entries as if the queue was sorted by
3372         index, not pointers.
3373         (lower_try_finally_switch): Likewise.
3374
3375 2005-04-14  Richard Henderson  <rth@redhat.com>
3376
3377         * config/i386/i386.c (ix86_expand_sse_cmp): Split out from ...