OSDN Git Service

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