* tree-ssa-dom.c (record_edge_info): Use last_basic_block to
[official-gcc.git] / gcc / ChangeLog
blobbe74bb1b786ce71f34fc5eb1485adafaa20b96eb
1 2005-06-03  Diego Novillo  <dnovillo@redhat.com>
3         * tree-ssa-dom.c (record_edge_info): Use last_basic_block to
4         allocate info array.
5         * tree-vrp.c (extract_range_from_unary_expr): Set resulting
6         range to varying in cast expressions that change
7         TYPE_PRECISION.
9 2005-06-03  Eric Christopher  <echristo@redhat.com>
11         * config/mips/mips.opt: Add RejectNegative to divide-breaks and
12         divide-traps.
14 2005-06-03  Jan Hubicka  <jh@suse.cz>
16         * basic-block.h (remove_predictions_associated_with_edge): Declare.
17         * cfg.c (remove_edge): Use it.
18         * predict.c (remove_predictions_associated_with_edge): New function.
20 2005-06-03  Pat Haugen  <pthaugen@us.ibm.com>
22         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
23         Clear call_realy_used_regs[r2] when ABI_AIX.
25 2005-06-03  Richard Guenther  <rguenth@gcc.gnu.org>
27         PR middle-end/21858
28         * fold-const.c (fold_binary): Fix type mismatches in folding
29         of comparisons.
31 2005-06-03  Kazu Hirata  <kazu@codesourcery.com>
33         * cgraph.c, cgraphunit.c, config/mips/mips.c: Fix comment
34         typos.
36 2005-06-03  Joseph S. Myers  <joseph@codesourcery.com>
38         * collect2.c (maybe_unlink): Use unlink_if_ordinary.
40 2005-06-02  Bernd Schmidt  <bernd.schmidt@analog.com>
42         * reload1.c (reload): Revert my previous patch.
44 2005-06-03  Nick Clifton  <nickc@redhat.com>
46         * config/arm/semi.h (ASM_SPEC): Fix typo passing -mfloat-abi to
47         assembler.
49 2005-06-03  Kazu Hirata  <kazu@codesourcery.com>
51         PR tree-optimization/21849
52         * tree-ssa-copy.c (dump_copy_of): Call sbitmap_zero.
54 2005-06-02  Richard Henderson  <rth@redhat.com>
56         * Makefile.in (tree-vect-generic.o): New.
57         (OBJS-common, GTFILES, s-gtype): Add it.
58         * tree-complex.c (build_replicated_const, vector_inner_type,
59         vector_last_type, vector_last_nunits, build_word_mode_vector_type,
60         elem_op_func, tree_vec_extract, do_unop, do_binop, do_plus_minus,
61         do_negate, expand_vector_piecewise, expand_vector_parallel, 
62         expand_vector_addition, expand_vector_operation, 
63         type_for_widest_vector_mode, expand_vector_operations_1, 
64         gate_expand_vector_operations, expand_vector_operations, 
65         pass_lower_vector_ssa): Move to tree-vect-generic.c.
66         (tree_lower_complex): Rename from tree_lower_operations.
67         (pass_lower_complex): Rename from pass_pre_expand.
68         * tree-vect-generic.c: New file.
69         * tree-pass.h (pass_lower_complex): Rename from pass_pre_expand.
70         (pass_lower_vector): New.
71         * tree-optimize.c (init_tree_optimization_passes): Update to match.
73 2005-06-02  Richard Henderson  <rth@redhat.com>
75         * modulo-sched.c (doloop_register_get): Protect against 
76         doloop_end not defined.
78 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
80         * config/sh/sh.c (general_movsrc_operand,
81         general_movdst_operand, arith_reg_operand, arith_reg_dest,
82         logical_reg_operand, int_gpr_dest, fp_arith_reg_operand,
83         fp_arith_reg_dest, arith_operand, arith_reg_or_0_operand,
84         xor_operand, cmp_operand, logical_operand, and_operand,
85         fpscr_operand, fpul_operand, symbol_ref_operand,
86         commutative_float_operator, noncommutative_float_operator,
87         unary_float_operator, binary_float_operator,
88         binary_logical_operator, equality_comparison_operator,
89         greater_comparison_operator, less_comparison_operator,
90         shift_operator, logical_operator, target_reg_operand,
91         target_operand, mextr_bit_offset, extend_reg_operand,
92         trunc_hi_operand, extend_reg_or_0_operand, minuend_operand,
93         general_extend_operand, ua_address_operand,
94         cache_address_operand, inqhi_operand, sh_rep_vec, sh_1el_vec,
95         sh_const_vec, ua_offset, sh_register_operand, cmpsi_operand,
96         shift_count_reg_operand, shift_count_operand,
97         unaligned_load_operand): Move to ...
98         * config/sh/predicates.md: ... here.
99         * config/sh/sh.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
100         Remove.
102 2005-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
104         * tree.c (build_common_builtin_nodes): Fix the return type on
105         __builtin_memcmp.
107 2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>
109         * tree-ssa-loop-ivopts.c (build_addr_strip_iref): Remove.
110         (find_interesting_uses_address): Use build_fold_addr_expr instead.
111         (strip_offset_1): Likewise.
112         (tree_to_aff_combination): Likewise.
114 2005-06-02  DJ Delorie  <dj@redhat.com>
116         * convert.c (convert_to_pointer): Avoid recursion if no conversion
117         is needed.
119 2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>
121         * tree-chrec.c (chrec_fold_plus_1): Ensure we build
122         binary operations with the correct types.
123         * tree-ssa-loo-ivopts.c (idx_find_step): Use sizetype
124         for all computation.
126 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
128         * tree-vrp.c, config/arm/arm.md, config/arm/arm1020e.md,
129         config/rs6000/rs6000.md: Fix comment typos.  Follow splling
130         conventions.
131         * doc/install.texi: Fix a typo.
133 2005-06-02  Jan Hubicka  <jh@suse.cz>
135         * cgraphunit.c (cgraph_function_and_variable_visibility): Extern
136         inline functions are not local.
138 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
140         * gimplify.c (gimplify_ctx): Change the type of case_labels to
141         VEC from VARRAY.
142         (gimplify_switch_expr, gimplify_case_label_expr): Adjust uses
143         of case_labels.
145 2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>
147         * c-typeck.c (build_indirect_ref): Build INDIRECT_REF
148         with correct type.
150 2005-06-02  Ulrich Weigand  <uweigand@de.ibm.com>
152         * config/s390/s390.c (s390_add_execute): Do not handle out-of-pool
153         execute templates.
154         (s390_dump_pool): Likewise.
155         (s390_mainpool_start, s390_mainpool_finish): Likewise.
156         (s390_chunkify_start): Likewise.
157         (s390_dump_execute): Remove.
158         (s390_reorg): Handle out-of-pool execute templates.
160 2005-06-02  Adrian Straetling  <straetling@de.ibm.com>
162         * optabs.c: (expand_bool_compare_and_swap): Emit barrier after
163           unconditional jump.
165 2005-06-02  Jan Hubicka  <jh@suse.cz>
167         * cgraph.c (cgraph_node): Maintain master clones.
168         (cgraph_remove_node): Likewise.
169         (availability_names): New static variable.
170         (dump_cgraph_node): Dump availability.
171         (dump_cgraph_varpool_node): Likewise.
172         (cgraph_is_master_clone, cgraph_master_clone,
173         cgraph_function_body_availability,
174         cgraph_variable_initializer_availability): New functions.
175         * cgraph.h (availability): New enum.
176         (struct cgraph_node): Add master_clone.
177         (cgraph_is_master_clone, cgraph_master_clone,
178         cgraph_function_body_availability,
179         cgraph_variable_initializer_availability): Declare.
180         * cgraphunit.c (cgraph_expand_function): Setcgraph_function_flags_ready.
181         (cgraph_remove_unreachable_nodes): Remove unreachable nodes.
182         * ipa-inline.c (cgraph_decide_inlining): Do not call
183         cgraph_remove_unreachable_nodes.
185         * cgraphunit.c (cgraph_function_and_variable_visibility): Fix typo in
186         previous patch.
188 2005-06-02  Diego Novillo  <dnovillo@redhat.com>
190         PR 21582
191         * tree-vrp.c (nonnull_arg_p): New.
192         (get_value_range): Call it.
194 2005-06-02  Eric Christopher  <echristo@redhat.com>
196         * config/mips/mips.h (processor_type): Remove PROCESSOR_DEFAULT,
197         add PROCESSOR_MAX.
198         (mips_rtx_cost_data): New datatype.
199         (MEMORY_MOVE_COST): Use data from structure.
200         (BRANCH_COST): Ditto.
201         (LOGICAL_OP_NON_SHORT_CIRCUIT): Define to zero.
202         * config/mips/mips.md (cpu): Rework for processor_type changes.
203         * config/mips/mips.c (mips_cost): New variable.
204         (DEFAULT_COSTS): Define.
205         (mips_rtx_cost_data): New.
206         (mips_rtx_costs): Use. Minor formatting changes. Use COSTS_N_INSNS
207         for NEG cost. Add support for FLOAT, UNSIGNED_FLOAT, FIX,
208         FLOAT_EXTEND, FLOAT_TRUNCATE, and SQRT.
209         (override_options): Set cost data.
210         (mips_register_move_cost): Formatting changes.
211         (bdesc_arrays): Use PROCESSOR_MAX.
212         (mips_init_builtins): Ditto.
214 2005-06-02  Diego Novillo  <dnovillo@redhat.com>
216         PR 21765
217         * doc/invoke.texi: Document -ftree-vrp.
219 2005-06-02  Dorit Nuzman  <dorit@il.ibm.com>
221         PR tree-optimization/21734
222         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop): Use the
223         phi_result when current_def is not available.
224         (slpeel_update_phi_nodes_for_guard1): Don't fail if current_def is not
225         available.      
227 2005-06-02  David Edelsohn  <edelsohn@gnu.org>
229         * config/rs6000/rs6000.c (rs6000_insn_valid_within_doloop): New.
230         (TARGET_INSN_VALID_WITHIN_DOLOOP): Define.
232 2005-06-02  Diego Novillo  <dnovillo@redhat.com>
234         * tree-vrp.c (has_assert_expr, maybe_add_assert_expr): Remove.
236 2005-06-02  Jan Hubicka  <jh@suse.cz>
238         * cgraph.c (dump_cgraph_node): Print new flags.
239         (dump_cgraph_varpool_node): Likewise.
240         (decide_variable_is_needed): Initialize externally_visible flag.
241         * cgraph.h (cgraph_local_info): Add externally_visible flag.
242         (cgraph_varpool_node): Likewise.
243         (cgraph_function_flags_ready): Declare.
244         * cgraph.c (cgraph_mark_local_functions): Rename to ...
245         (cgraph_function_and_variable_visibility) ... this one; handle
246         externally_visible flags.
247         (decide_is_function_needed): Set externally_visible flag.
248         (cgraph_finalize_function): Deal properly with early cleanups.
249         (cgraph_optimize): Update call of
250         cgraph_function_and_variable_visibility.
252 2005-06-02 Steven Bosscher  <stevenb@suse.de>
253            Mostafa Hagog <mustafa@il.ibm.com>
255         * cfgloop.h (doloop_condition_get): Make external.
256         * loop-doloop.c (doloop_condition_get): Generalize to make it
257         usable in modulo-sched.c.
258         * modulo-sched.c (doloop_register_get): Use
259         doloop_condition_get instead of duplicating it.
261 2005-06-02  Bernd Schmidt  <bernd.schmidt@analog.com>
263         * reload1.c (reload): Undo 2005-04-20 change.  Make sure we detect
264         the correct set of init_insns that need deletion.
265         * local-alloc.c (update_equiv_regs): When substituting sole definition
266         into sole use of a reg, delete it from liveness information.
268 2005-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
270         * config/sh/sh.h (TARGET_FPU_DOUBLE): Use MASK_SH4.
272 2005-06-01  Diego Novillo  <dnovillo@redhat.com>
274         PR 14341, PR 21332, PR 20701, PR 21029, PR 21086, PR 21090
275         PR 21289, PR 21348, PR 21367, PR 21368, PR 21458.
276         * fold-const.c (invert_tree_comparison): Make extern.
277         * tree-flow.h (enum value_range_type): Move to tree-ssa-propagate.
278         (struct value_range_def): Limewise.
279         (get_value_range): Remove.
280         (dump_value_range): Remove.
281         (dump_all_value_ranges): Remove.
282         (debug_all_value_ranges): Remove.
283         (vrp_evaluate_conditional): Declare.
284         * tree-ssa-propagate.c (struct prop_stats_d): Add field
285         num_pred_folded.
286         (substitute_and_fold): Add argument use_ranges_p.
287         Update all callers.
288         If use_ranges_p is true, call fold_predicate_in to fold
289         predicates using range information.
290         Ignore ASSERT_EXPRs.
291         Change debugging output to only show statements that have been
292         folded.
293         (replace_phi_args_in): Move debugging output code from
294         substitute and fold.
295         (fold_predicate_in): New local function.
296         * tree-ssa-propagate.h (enum value_range_type): Move from
297         tree-flow.h.
298         (struct value_range_d): Likewise.
299         Add field 'equiv'. 
300         (value_range_t): Rename from value_range.
301         * tree-vrp.c (found_in_subgraph): Rename from found.
302         (get_opposite_operand): Remove.
303         (struct assert_locus_d): Declare.
304         (assert_locus_t): Declare.
305         (need_assert_for): Declare.
306         (asserts_for): Declare.
307         (blocks_visited): Declare.
308         (vr_value): Declare.
309         (set_value_range): Add argument 'equiv'.
310         Don't drop to VARYING ranges that cover all values in the
311         type.
312         Make deep copy of equivalence set 'equiv'.
313         (copy_value_range): New local function.
314         (set_value_range_to_undefined): New local function.
315         (compare_values): Return -2 if either value has overflowed.
316         (range_includes_zero_p): New local function.
317         (extract_range_from_assert): Flip the predicate code if the
318         name being asserted is on the RHS of the predicate.
319         Avoid creating unnecessary symbolic ranges if the comparison
320         includes another name with a known numeric range.
321         Update the equivalnce set of the new range when asserting
322         EQ_EXPR predicates.
323         (extract_range_from_ssa_name): Update the equivalence set of
324         the new range with VAR.
325         (extract_range_from_binary_expr): Also handle TRUTH_*_EXPR.
326         If -fwrapv is used, set the resulting range to VARYING if the
327         operation overflows.  Otherwise, use TYPE_MIN_VALUE and
328         TYPE_MAX_VALUE to represent -INF and +INF.
329         Fix handling of *_DIV_EXPR.
330         (extract_range_from_unary_expr): Handle MINUS_EXPR and
331         ABS_EXPR properly by switching the range around if necessary.
332         (extract_range_from_comparison): New local function.
333         (extract_range_from_expr): Call it.
334         (adjust_range_with_scev): Do not adjust the range if using
335         wrapping arithmetic (-fwrapv).
336         (dump_value_range): Also show equivalence set.
337         Show -INF and +INF for TYPE_MIN_VALUE and TYPE_MAX_VALUE.
338         (build_assert_expr_for): Also build ASSERT_EXPR for EQ_EXPR.
339         (infer_value_range): Change return value to bool.
340         Add arguments 'comp_code_p' and 'val_p'.
341         Do not attempt to infer ranges from statements that may throw.
342         Store the comparison code in comp_code_p.
343         Store the other operand to be used in the predicate in val_p.
344         (dump_asserts_for): New.
345         (debug_asserts_for): New.
346         (dump_all_asserts): New.
347         (debug_all_asserts): New.
348         (register_new_assert_for): New.
349         (register_edge_assert_for): New.
350         (find_conditional_asserts): New.
351         (find_assert_locations): New.
352         (process_assert_insertions_for): New.
353         (process_assert_insertions): New.
354         (insert_range_assertions): Initialize found_in_subgraph,
355         blocks_visited, need_assert_for and asserts_for.
356         Call find_assert_locations and process_assert_insertions.
357         (remove_range_assertions): Add more documentation.
358         (vrp_initialize): Change return type to void.
359         Do not try to guess if running VRP is worth it.  
360         (compare_name_with_value): New.
361         (compare_names): New.
362         (vrp_evaluate_conditional): Add argument 'use_equiv_p'.  If
363         use_equiv_p is true, call compare_names and
364         compare_name_with_value to compare all the ranges for every
365         name in the equivalence set of the predicate operands.
366         Update all callers.
367         (vrp_meet): Try harder not to derive a VARYING range.
368         If two values meet, the resulting equivalence set is the
369         intersection of the two equivalence sets.
370         (vrp_visit_phi_node): Call copy_value_range to get the current
371         range information of the LHS.
372         (vrp_finalize): Create a value vector representing all the
373         names that ended up with exactly one value in their range.
374         Call substitute_and_fold.
375         (execute_vrp): Document equivalence sets in ranges.
376         * tree.h (SSA_NAME_VALUE_RANGE): Remove.
377         (struct tree_ssa_name): Remove field value_range.
378         (invert_tree_comparison): Declare.
380 2005-06-01  Daniel Berlin  <dberlin@dberlin.org>
382         Fix PR tree-optimization/21839
384         * gimplify.c (zero_sized_field_decl): New function.
385         (gimplify_init_ctor_eval): Use it.
387 2005-06-01  Josh Conner <jconner@apple.com>
389         PR 21478
390         * gimplify.c (gimplify_init_constructor): Don't spill initializer
391         to read-only memory if it's sparse.
393 2005-06-01  Ramana Radhakrishnan  <ramana@codito.com>
395         * doc/rtl.texi: Remove references to NOTE_INSN_SETJMP. 
396         Add documentation for REG_SETJMP
398 2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>
400         * stmt.c (expand_case): Use build_int_cst.
401         (node_has_low_bound): Likewise, and correct type mismatch.
402         (node_has_high_bound): Likewise.
403         * fold-const.c (fold_binary): Ensure we build trees
404         with the correct types - undo what STRIP_NOPS possibly did.
406 2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>
408         * tree.h (fold_indirect_ref_1): Export from fold-const.c.
409         * fold-const.c (fold_indirect_ref_1): No longer static.
410         * tree-inline.c (copy_body_r): Use fold_indirect_ref_1 for
411         folding, if possible.
413 2005-06-01  Joseph S. Myers  <joseph@codesourcery.com>
415         * common.opt (fjump-tables): New.
416         * doc/invoke.texi (-fno-jump-tables): Document.
417         * stmt.c (expand_end_case_type): Do not emit jump tables unless
418         flag_jump_tables.
420 2005-06-01  Richard Earnshaw  <richard.earnshaw@arm.com>
422         * arm.md (bunordered, bordered, bungt, bunlt, bunge, bunle, buneq)
423         (bltgt, arm_buneq, arm_bltgt, sunordered, sordered, sungt, sunge)
424         (sunlt, sunle): Enable patterns on VFP.
426         * arm.md (attribute 'type'): Add new types - f_loads floadd, f_stores,
427         f_stored, f_flag, f_cvt.
428         (generic_sched): No-longer used for the arm1020e and arm1022e cores.
429         Include arm1020e.md.
430         * vfp.md (fmstat): New cpu unit.  Add an exclusion set between it and
431         the ds and fmac pipelines.  Re-work all load and store patterns and
432         all conversion patterns to use new attributes.  Adjust reservation
433         descriptions accordingly.
434         * arm1020e.md: New file.
435         * t-arm: Add dependency.
437 2005-06-01  Jan Hubicka  <jh@suse.cz>
439         * except.c (struct eh_region): Kill unused fields.
440         * basic-block.h (struct basic_block_def): Likewise.
442 2005-06-01  J"orn Rennecke <joern.rennecke@st.com>
444         PR rtl-optimization/21767
445         * rtl.h (function_invariant_p): Re-add declaration.
446         * reload1.c (function_invariant_p): No longer static.
447         * ifcvt.c (dead_or_predicable): Remove REG_EQUAL notes that
448         might have become invalid.
450 2005-06-01  Jakub Jelinek  <jakub@redhat.com>
452         PR c/21536
453         PR c/20760
454         * gimplify.c (gimplify_decl_expr): Call gimplify_type_sizes
455         on variable sizes types if a decl is a pointer to a VLA.
456         (gimplify_type_sizes): Handle POINTER_TYPE and REFERENCE_TYPE.
457         Call gimplify_type_sizes on aggregate fields.  Prevent infinite
458         recursion.
460         * fold-const.c (fold_ternary): Optimize BIT_FIELD_REF of VECTOR_CST.
462         * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss, _mm_set1_ps,
463         _mm_set_ps, _mm_setr_ps): Add __extension__.
464         * config/i386/emmintrin.h (_mm_set_sd, _mm_set1_pd, _mm_set_pd,
465         _mm_setr_pd, _mm_setzero_pd, _mm_set_epi64x, _mm_set_epi64x,
466         _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128):
467         Likewise.
468         (_mm_clflush): Don't use return in void function.
470         * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128,
471         _mm_castps_pd, _mm_castps_si128, _mm_castsi128_ps, _mm_castsi128_pd):
472         Use __inline instead of inline.
474 2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>
476         * fold-const.c (fold_binary): Fix types in strlen vs.
477         zero comparison folding.
479 2005-06-01  Richard Henderson  <rth@redhat.com>
481         * configure.ac (HAVE_AS_JSRDIRECT_RELOCS): New.
482         * config.in, configure: Rebuild.
483         * config/alpha/alpha.c (print_operand): Add 'j'.
484         * alpha.md (divmodsi_internal_er_1): Use it.
485         (divmoddi_internal_er_1): Likewise.
487 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
489         * system.h (TARGET_OPTIONS, TARGET_SWITCHES): Poison.
490         * opts.h (print_filtered_help): Delete.
491         * opts.c (handle_option, decode_options): Remove calls to
492         set_target_switch.
493         (print_target_help): New function.
494         (common_option, print_help): Call print_target_help instead of
495         display_target_options.
496         (print_filtered_help): Make static.
497         * toplev.h (display_target_options, set_target_switch): Delete.
498         * toplev.c (target_switches, target_options, display_target_options)
499         (set_target_switch): Delete.
500         (print_switch_values): Remove handling of TARGET_SWITCHES and
501         TARGET_OPTIONS.
502         (default_get_pch_validity): Likewise.  Only treat target_flags
503         specially if targetm.check_pch_target_flags is nonnull.
504         (pch_option_mismatch): New function.
505         (default_pch_valid_p): Use it.  Remove handling of TARGET_SWITCHES
506         and TARGET_OPTIONS.  Only treat target_flags specially if
507         targetm.check_pch_target_flags is nonnull.
508         * config/ia64/ia64.c (ia64_override_options): Don't mention
509         TARGET_OPTIONS in comment.
510         * config/m68k/m68k-none.h (CC1_SPEC): Likewise.
511         * doc/invoke.texi: Remove a reference to TARGET_SWITCHES.
512         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS): Don't mention the
513         interaction with TARGET_SWITCHES.
514         (TARGET_@var{featurename}, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
516 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
518         * config/sh/sh.c (multcosts): Check sh_multcost rather than
519         sh_multcost_str.
520         (sh_register_move_cost): Likewise sh_gettrcost and sh_gettrcost_str.
521         (sh_multcost_str, sh_gettrcost_str, sh_div_str, sh_divsi3_libfunc)
522         (cut2_workaround_str): Delete.
523         * config/sh/sh.h (SUBTARGET_OPTIONS, TARGET_OPTIONS)
524         (TARGET_SH5_CUT2_WORKAROUND, sh_multcost_str, sh_gettrcost_str)
525         (sh_div_str, sh_divsi3_libfunc, cut2_workaround_str): Delete.
526         * config/sh/sh.opt (mcut2-workaround, mdiv=, mdivsi3_libfunc=)
527         (mgettrcost=, multcost=): New options.
529 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
531         * opts.h (cl_option_state): New structure.
532         (get_option_state): Declare.
533         * opts.c (get_option_state): New function.
534         * toplev.c (option_affects_pch_p): New function.
535         (default_get_pch_validity): Store the state of all options for which
536         option_affects_pch_p returns true.
537         (default_pch_valid_p): Check the state of those options here.
538         Only check target_flags separately if targetm.check_pch_target_Flags
539         is nonnull or if TARGET_SWITCHES is defined.
541 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
543         * config/mips/mips-protos.h (mips_use_ins_ext_p): Remove parameter
544         names.
546 2005-06-01 Mostafa Hagog <mustafa@il.ibm.com>
548         * modulo-sched.c (undo_generate_reg_moves ): Fix PR 21138.
550 2005-06-01 Mostafa Hagog <mustafa@il.ibm.com>
552         * gcse.c (compute_transp, load_killed_in_block): Use 
553         MEM_READONLY_P.
555 2005-06-01  David.Billinghurst  <David.Billinghurst@riotinto.com>
557         PR target/21854
558         * config/mips/mips-protos.h: Declare mips_use_ins_ext_p
559         
560 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
562         * errors.h (warning, error, fatal, internal_error): Add printf
563         attribute.
564         * genmodes.c (make_vector_mode): Fix format arguments.
566 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
568         * basic-block.h, bb-reorder.c, c-gimplify.c, config/darwin.c,
569         config/rs6000/rs6000-c.c, dominance.c, gimple-low.c, gimplify.c,
570         lambda-code.c, lambda-trans.c, tree-browser.c, tree-cfg.c,
571         tree-chrec.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
572         tree-if-conv.c, tree-into-ssa.c, tree-loop-linear.c,
573         tree-mudflap.c, tree-nomudflap.c, tree-outof-ssa.c,
574         tree-pretty-print.c, tree-scalar-evolution.c, tree-sra.c,
575         tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
576         tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-live.c,
577         tree-ssa-operands.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
578         tree-ssa-propagate.c, tree-ssa-sink.c, tree-ssa-threadupdate.c,
579         tree-ssa-uncprop.c, tree-ssa.c, tree-vect-analyze.c,
580         tree-vect-transform.c, tree-vectorizer.c, vec.c: Don't include
581         errors.h and include toplev.h if necessary.
582         
583         * rtl.c, varray.c: If we're compiling as a GENERATOR_FILE, include
584         errors.h otherwise include toplev.h.
585         
586         * Makefile.in: Update dependencies.
587         
588 2005-06-01  Danny Smith  <dannysmith@users.sourceforge.net>
590         * config/i386/cygming.h (NO_PROFILE_COUNTERS): Define.
592 2005-05-31  Geoffrey Keating  <geoffk@geoffk.org>
594         * config/rs6000/rs6000.md (sync_boolcshort_internal): New.
595         * config/rs6000/rs6000.c (rs6000_emit_sync): Shift count must
596         be complemented for big-endian.  Mask for AND must be rotated,
597         not shifted.  Handle short operands with NOT on the memory
598         operation.
600 2005-05-30  Daniel Berlin  <dberlin@dberlin.org>
602         * c-objc-common.c (c_tree_printer): Check flag before hashtable.
603         Use DECL_DEBUG_EXPR and SET_DECL_DEBUG_EXPR.
604         * dwarf2out.c (dwarf2out_var_location): Ditto.
605         * toplev.c (default_tree_printer): Ditto.
606         * tree-outof-ssa.c (create_temp): Ditto.
607         * tree-sra.c (instantiate_element): Ditto.
608         * var-tracking.c (track_expr_p): Ditto.
609         * tree.c (struct tree_map): New structure.
610         (debug_expr_for_decl): New.
611         (tree_map_eq): New function.
612         (tree_map_hash): Ditto.
613         (tree_map_marked_p): Ditto.
614         (print_debug_expr_statistics): Ditto.
615         (decl_debug_expr_lookup): Ditto.
616         (decl_debug_expr_insert): Ditto.
617         (dump_tree_statistics): Dump debug_expr hashtable stats.
618         * tree.h (DECL_DEBUG_EXPR): Change
619         (SET_DECL_DEBUG_EXPR): Add.
620         
621 2005-06-01  Alan Modra  <amodra@bigpond.net.au>
623         * configure.ac: Add --enable-secureplt.
624         (HAVE_AS_REL16): Test for R_PPC_REL16 relocs.
625         * config.in: Regenerate.
626         * configure: Regenerate.
627         * config.gcc (powerpc64-*-linux*, powerpc-*-linux*): Add
628         rs6000/secureplt.h to tm_file when enable_secureplt.
629         * doc/invoke.texi (msecure-plt, mbss-plt): Document.
630         * doc/install.texi: Document --enable-targets and --enable-secureplt.
631         Correct xrefs to "Using the GNU Compiler Collection (GCC)".
632         * config/rs6000/secureplt.h: New file.
633         * config/rs6000/sysv4.h (TARGET_SECURE_PLT): Define.
634         (SUBTARGET_OVERRIDE_OPTIONS): Error if -msecure-plt given without
635         assembler support.
636         (CC1_SECURE_PLT_DEFAULT_SPEC): Define.
637         (CC1_SPEC): Delete duplicate mno-sdata.  Invoke cc1_secure_plt_default.
638         (SUBTARGET_EXTRA_SPECS): Add cc1_secure_plt_default.
639         * config/rs6000/sysv4.opt (msecure-plt, bss-plt): Add options.
640         * config/rs6000/rs6000.h (TARGET_SECURE_PLT): Define.
641         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Handle
642         TARGET_SECURE_PLT got register load sequence.
643         (rs6000_emit_prologue): Call rs6000_emit_load_toc_table when
644         TARGET_SECURE_PLT.
645         (rs6000_elf_declare_function_name): Don't emit toc address offset
646         word when TARGET_SECURE_PLT.
647         * config/rs6000/rs6000.md (elf_high, elf_low): Move past load_toc_*.
648         (load_toc_v4_PIC_1) Enable for TARGET_SECURE_PLT.
649         (load_toc_v4_PIC_3b, load_toc_v4_PIC_3c): New insns.
650         (call, call_value): Mark pic_offset_table_rtx used for sysv pic and
651         TARGET_SECURE_PLT.
652         (call_nonlocal_sysv, call_value_nonlocal_sysv, sibcall_nonlocal_sysv,
653         sibcall_value_nonlocal_sysv): Add 32768 offset when TARGET_SECURE_PLT
654         and -fPIC.
655         * config/rs6000/tramp.asm (trampoline_initial): Use "bcl 20,31".
656         (__trampoline_setup): Likewise.  Init r30 before plt call.
658 2005-05-31  DJ Delorie  <dj@redhat.com>
660         * expr.c (convert_move): When a partial_int requires multiple
661         conversion steps, make sure successive steps convert the
662         intermediate value, not the original value.
664         * expmed.c (expand_mult): Convert partial_int multiplies to
665         shift/add combinations too.
667         * genmodes.c (mode_data): Add wider_2x.
668         (calc_wider_mode): Calculate twice-wider mode too.
669         (emit_mode_wider): Emit twice-wider mode too.
670         * machmode.h (mode_2xwider, GET_MODE_2XWIDER_MODE): New.
671         * expr.c (expand_expr_real_1): Use it for expanding
672         multiplies.
674 2005-05-31  Zdenek Dvorak  <dvorakz@suse.cz>
676         PR tree-optimization/21817
677         * tree-ssa-loop-im.c (for_each_index): Handle VECTOR_CST.
679 2005-05-31  Pat Haugen  <pthaugen@us.ibm.com>
681         * loop.c (loop_invariant_p, valid_initial_value_p): Revert last
682         change.
684 2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
686         PR middle-end/20931
687         PR middle-end/20946
688         * fold-const.c (fold_checksum_tree): Copy types also if
689         TYPE_CONTAINS_PLACEHOLDER_INTERNAL is set.
690         Don't call fold_checksum_tree for TREE_LIST's TREE_CHAIN
691         first.
692         Tail recurse TREE_LIST's TREE_CHAIN.
694 2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
696         PR tree-opt/21732
697         * tree-ssa-copy.c (dump_copy_of): Create a bitmap and don't visit a
698         SSA_NAME twice and cause the loop to become finite.  Remove the test
699         for val.
701 2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
703         * tree-cfg.c (verify_expr): Add checking for COND_EXPR's conditional
704         expression.
706 2005-05-31  Richard Sandiford  <rsandifo@redhat.com>
708         * doc/tm.texi (TARGET_GET_PCH_VALIDITY, TARGET_PCH_VALID_P): Tweak
709         the documentation to make it more future-proof.
710         (TARGET_CHECK_PCH_TARGET_FLAGS): Document this new hook.
711         * target.h (gcc_target): Add check_pch_target_flags.
712         * target-def.h (TARGET_CHECK_PCH_TARGET_FLAGS): New macro.
713         (TARGET_INITIALIZER): Include it.
714         * toplev.c (default_pch_valid_p): Use targetm.check_pch_target_flags.
715         * config/sh/sh-protos.h (sh_pch_valid_p): Delete.
716         * config/sh/sh.c (TARGET_PCH_VALID_P, sh_pch_valid_p): Delete.
717         (sh_check_pch_target_flags): New function.
718         (TARGET_CHECK_PCH_TARGET_FLAGS): Override default.
720 2005-05-31  Richard Guenther  <rguenth@gcc.gnu.org>
722         * fold-const.c (extract_array_ref): Handle more cases,
723         do some useful canonicalization of the base.
724         (fold_binary): Explicitly deal with arrays of zero-sized
725         structures during folding of &a[i] == &a[j].
727 2005-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
729         * doc/install.texi (sparc-sun-solaris2*): Update note
730         about Sun bug 4910101.
731         (sparc-sun-solaris2.7): Document bootstrap
732         failure with Sun WorkShop 6 99/08/18 as.
734 2005-05-30  Pat Haugen  <pthaugen@us.ibm.com>
736         * loop.c (loop_invariant_p, valid_initial_value_p): Use
737         regs_invalidated_by_call instead of call_used_regs.
739 2005-05-30  Paolo Carlini  <pcarlini@suse.de>
741         PR middle-end/21743
742         * builtins.def (BUILT_IN_CLOG, BUILT_IN_CLOGF, BUILT_IN_CLOGL):
743         Enable.
744         * doc/extend.texi: Add clog, clogf, clogl.
746 2005-05-30  H.J. Lu  <hongjiu.lu@intel.com>
748         PR middle-end/20303
749         * c-pragma.c: Include "vec.h".
750         (handle_pragma_visibility): Use VEC.
752         * doc/invoke.texi: Remove the nested visibility push limit.
754 2005-05-30  Roger Sayle  <roger@eyesopen.com>
756         PR rtl-optimization/15422
757         * reg-stack.c (starting_stack_p): New static global.
758         (straighten_stack): Delete prototype. Change to update the stack
759         before the current insn.
760         (subst_stack_regs): Update call to straighten stack.
761         (emit_swap_insn): Delete prototype.  For the first insn in a
762         basic block, update stack_in instead of emitting a real swap.
763         (change_stack): When changing the stack before the first insn
764         in a basic block, update stack_in instead of emitting real code.
765         (compensate_edges): Clear starting_stack_p during compensation.
766         (convert_regs_1): Keep track of starting_stack_p whilst processing
767         a basic block.
769 2005-05-30  Kazu Hirata  <kazu@cs.umass.edu>
771         * tree-ssa-ccp.c (const_val): Make it static.
773 2005-05-29  Geoffrey Keating  <geoffk@apple.com>
775         PR target/21761
776         * config/rs6000/rs6000.md: Remove stray TARGET_32BIT from
777         pattern involving `:P'.
779         * Makefile.in (install-cpp): Depend on installdirs.
781 2005-05-30  Kazu Hirata  <kazu@cs.umass.edu>
783         * tree-outof-ssa.c (_elim_graph): Change the type of edge_list
784         to VEC(int,heap)*.
785         (new_elim_graph, clear_elim_graph, delete_elim_graph,
786         elim_graph_add_edge, elim_graph_remove_succ_edge,
787         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED): Use VEC
788         instead of VARRAY.
790 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
792         * cgraphunit.c, ipa-inline.c, loop-iv.c, modulo-sched.c,
793         opts.c, postreload-gcse.c, tree-browser.def, tree-eh.c,
794         tree-ssa-copyrename.c, tree-vect-analyze.c: Fix typos and
795         follow spelling conventions in error/dump messages.
797 2005-05-29  Roger Sayle  <roger@eyesopen.com>
798             Richard Henderson  <rth@redhat.com>
800         * ifcvt.c (noce_emit_move_insn): Construct a SET pattern directly
801         if the RHS isn't suitable for calling emit_move_insn.
803 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
805         * tree-ssa-ccp.c (ccp_fold): Return immediately after calling
806         fold_unary and fold_binary.
808 2005-05-29  Roger Sayle  <roger@eyesopen.com>
810         * reg-stack.c (propagate_stack): Always copy the source stack to
811         the destination.  This routine is now only called when this is safe.
812         (better_edge): New function split out from convert_regs_1 to
813         determine which of two edges is better to propagate across.
814         (convert_regs_1):  We need only search for a best edge if the
815         stack layout hasn't been defined yet.  Use better_edge to help
816         find beste.  No longer traverse unnecessary edges.
818 2005-05-29  Keith Besaw  <kbesaw@us.ibm.com>
820         * tree-ssa-alias.c (new_type_alias): New procedure to
821         create a type memory tag for a pointer with a may-alias
822         set determined from a variable declaration.
823         * tree-flow.h: export declaration of new_type_alias
824         * tree-optimize.c (init_tree_optimization_passes): document
825         that pass_may_alias cannot be called after pass_vectorize.
826         * tree-vect-transform (vect_create_data_ref_ptr): Call
827         new_type_alias when an type memory tag isn't available
828         for a reference.
829         (vectorizable_store): Use copy_virtual_operands to update
830         virtual defs in place (so that loop_version can be called).
831         Call mark_for_renaming for the virtual defs in case peeling
832         is done and virtual uses outside the loop need to be updated.
834 2005-05-29  Dorit Naishlos  <dorit@il.ibm.com>
836         PR tree-optimization/21639
837         * tree-complex.c (pass_lower_vector_s): Remove TODO_ggc_collect.
839 2005-05-29  Jan Hubicka  <jh@suse.cz>
841         PR tree-optimization/21562
842         * cfgexpand.c (construct_init_block): Deal properly with the case
843         of entry edge not pointing to very first basic block.
845 2005-05-28  Kazu Hirata  <kazu@cs.umass.edu>
847         * tree-ssa-ccp.c (ccp_fold): Remove code that produces
848         non-gimple min invariant.
850         * Makefile.in (OBJS-common): Add tree-cfgcleanup.o.
851         * tree-flow.h: Add prototypes for start_recording_case_labels
852         and end_recording_case_labels.
853         * tree-cfg.c (start_recording_case_labels,
854         end_recording_case_labels): Export.
855         (cleanup_tree_cfg_loop, modified_noreturn_calls,
856         cleanup_control_flow, cleanup_control_expr_graph,
857         remove_fallthru_edge, phi_alternatives_equal,
858         tree_forwarder_block_p, has_abnormal_incoming_edge_p,
859         remove_forwarder_block, cleanup_forwarder_blocks,
860         remove_forwarder_block_with_phi, merge_phi_nodes,
861         gate_merge_phi, pass_merge_phi): Move to ...
862         * tree-cfgcleanup.c: ... here.
864         * basic-block.h: Remove forward declaration of bb_ann_d.
866 2005-05-28  Jan Hubicka  <jh@suse.cz>
868         * tree-ssa-threadupdate.c: (create_edge_and_update_destination_phis):
869         Update profile.
870         * value-prof.c (tree_divmod_fixed_value_transform): Be more verbose in
871         debug output.
872         (tree_mod_subtract): Fix profile updating code.
873         (tree_divmod_values_to_profile): Do not produce useless value profilers
874         for divisions.
876 2005-05-28  Kazu Hirata  <kazu@cs.umass.edu>
878         * tree-ssa-dom.c (vrp_element_p): Define.
879         (vrp_hash_elt): Change the type of records to
880         VEC(vrp_element_p,heap).
881         (vrp_free): New.
882         (tree_ssa_dominator_optimize): Pass vrp_free to htab_create.
883         Update uses of VRP records.
884         (simplify_cond_and_lookup_avail_expr, record_range): Update
885         uses of VRP records.
887         * tree-inline.c (cfun_stack): Change the type to
888         VEC(function_p,heap).
889         (push_cfun, pop_cfun): Use VEC instead of VARRAY.
891 2005-05-27  Ian Lance Taylor  <ian@airs.com>
893         * c-decl.c (add_stmt): Add C frontend specific version.
894         (stmts_are_full_exprs_p): Remove.
895         * c-common.h (STMT_IS_FULL_EXPR_P): Remove.
896         (stmts_are_full_exprs_p): Don't declare.
897         * c-semantics.c (add_stmt): Remove.
899 2005-05-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
901         * config/mips/mips-protos.h (mips_declare_object): Add printf
902         attribute.
903         * config/mips/mips.c (mips_declare_object_name): Fix format
904         argument.
906 2005-05-27  Roger Sayle  <roger@eyesopen.com>
908         * reg-stack.c (compensate_edge): Remove original prototype.
909         (propagate_stack): New function to copy the stack layout
910         at the start of a basic block from the layout at the end of
911         one of its predecessors.
912         (compensate_edge): Assume that both source and destination
913         blocks have already had their stack layouts defined.
914         (compensate_edges): Traverse all non-entry edges in the CFG
915         and call compensate_edge on each in turn.
916         (convert_regs_1): Change return type to void.  Call
917         propagate_stack instead of compensate_edge.
918         (convert_regs_2): Change return type to void.  Update call
919         to convert_regs_1 to ignore the (now void) return value.
920         (convert_regs): Update calls to convert_regs_2 to ignore
921         the (now void) return value.  After all the basic blocks have
922         been processed, call compensate_edges to actually emit new
923         insns.
924         (reg_to_stack): Initialize the aux info for each basic block
925         with FOR_EACH_BB instead of which FOR_EACH_BB_REVERSE.
927 2005-05-28  Jan Hubicka  <jh@suse.cz>
929         * except.c (can_throw_internal_1, can_throw_external_1): Add 
930         "is_resx" argument.
931         (can_throw_external, can_throw_internal): Bring into sync wrt
932         dealing resx.
933         * except.h (can_throw_internal_1, can_throw_external_1): Update
934         prototype.
935         * tree-eh.c (tree_can_throw_internal, tree_can_throw_external):
936         Deal properly with resx.
938 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
940         * basic-block.h (basic_block_def): Add phi_nodes and
941         predictions.  Remove tree_annotations.
942         * predict.c (tree_predicted_by_p, tree_predict_edge,
943         combine_predictions_for_bb): Adjust references to predictions.
944         * tree-cfg.c (init_empty_tree_cfg, create_bb): Don't call
945         create_block_annotation.
946         (create_block_annotation, free_blocks_annotatios,
947         clear_blocks_annotations): Remove.
948         (dump_cfg_stats): Don't print out the memory spent on
949         bb_ann_d.
950         (delete_tree_cfg_annotations): Don't call free_blocks_annotations.
951         * tree-flow-inline.h (bb_ann): Remove.
952         (phi_nodes, set_phi_nodes): Update references to phi_nodes.
953         * tree-flow.h (bb_ann_d): Remove.
954         * tree-if-conv.c (process_phi_nodes): Update a reference to
955         phi_nodes.
956         * tree-phinodes.c (reserve_phi_args_for_new_edge,
957         create_phi_node, remove_phi_node): Likewise.
958         * tree-pretty-print.c (dump_generic_bb_buff): Don't call bb_ann.
959         * tree-ssa-dom.c (threaded_blocks): New.
960         (tree_ssa_dominator_optimize): Initialize, clear, and free
961         threaded_blocks. Update a call to thread_through_all_blocks.
962         (thread_across_edge): Use threaded_blocks instead of setting
963         incoming_edge_threaded.
964         * tree-ssa-threadupdate.c (threaded_through_all_blocks): Take
965         a bitmap of blocks that are threaded through.
966         * tree.h: Move the prototype of threaded_through_blocks to
967         tree-flow.h.
969         * domwalk.c (walk_dominator_tree, init_walk_dominator_tree,
970         fini_walk_dominator_tree): Use VEC instead of VARRAY.
971         * domwalk.h (dom_walk_data): Change the type of
972         block_data_stack and free_block_data to VEC(void_p,heap)*.
973         * tree-ssa-dse.c (dse_initialize_block_local_data,
974         dse_optimize_stmt, dse_record_phis, dse_finalize_block): Use
975         VEC instead of VARRAY.
977 2005-05-27  Jan Hubicka  <jh@suse.cz>
979         * cgraph.c: Include tree-gimple.h
980         (cgraph_edge): Rename expr to stmt.
981         (cgraph_create_edge): Likewise.
982         (cgraph_clone_node): Likewise.
983         * cgraph.h (cgraph_node): Use call_stmt instead of call_expr.
984         * cgraphunit.c (record_call_1): Rename to ...
985         (record_reference): ... this one; do not build edges.
986         (cgraph_varpool_analyze_pending_decls): Call record_reference directly.
987         (current_basic_block): Kill.
988         (cgraph_create_edges): Rewrite to work on gimple statements nicely.
989         (verify_cgraph_node): Likewise.
990         * tree-inline.c (copy_body_r): Do not mess up with cgraph edges.
991         (copy_bb): Mess up with cgraph edges here; simplify EH handling.
992         (copy_edges_for_bb): Simplify EH handling.
993         (expand_call_inline): Pass statement to cgraph_edge and
994         cgraph_create_edge.
996 2005-05-27  Richard Guenther  <rguenth@gcc.gnu.org>
998         * tree-inline.c (copy_body_r): Manually fold *& to deal
999         with ADDR_EXPRs with mismatched types for now.
1001         * gimplify.c (fold_indirect_ref_rhs): New function.
1002         (gimplify_modify_expr_rhs): Use it instead of pessimistic
1003         fold_indirect_ref.
1005         * fold-const.c (fold_indirect_ref_1): Add type argument;
1006         make sure the resulting expression is of this type.
1007         (build_fold_indirect_ref, fold_indirect_ref): Adjust callers.
1009 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
1011         PR tree-optimization/21658
1012         * tree-ssa-ccp.c (ccp_fold): Call fold_binary instead of
1013         fold_binary_to_constant.  Likewise, call fold_unary instead of
1014         fold_unary_to_constant.
1016 2005-05-27  Nathan Sidwell  <nathan@codesourcery.com>
1018         * vec.h: Implement integral type vector specialization.
1019         (VEC_T): Define a non-GTY structure.
1020         (VEC_T_GTY): Define a GTY structure.
1021         (VEC_TA): Rename to ...
1022         (VEC_TA_GTY): ... here.
1023         (DEF_VEC_I, DEF_VEC_ALLOC_I): New.
1024         (DEF_VEC_P, DEF_VEC_ALLOC_P): Adjust.
1025         (DEF_VEC_FUNC_P, DEF_VEC_ALLOC_FUNC_P): New, broken out of
1026         DEF_VEC_P and DEF_VEC_ALLOC_P.
1027         (DEF_VEC_O, DEF_VEC_ALLOC_O): Adjust.
1028         (DEF_VEC_FUNC_O, DEF_VEC_ALLOC_FUNC_O): New, broken out of
1029         DEF_VEC_O and DEF_VEC_ALLOC_O.
1030         * global.c: Use DEF_VEC_I, DEF_VEC_ALLOC_I.
1031         * lambda-code.c: Likewise.
1032         * tree-into-ssa.c: Likewise.
1033         * tree-ssa-live.c: Likewise.
1035 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
1037         * tree-into-ssa.c (update_ssa): Ensure that the operand cache
1038         is up-to-date.
1039         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
1040         update_stmt_if_modified before calling update_ssa.
1042 2005-05-27  Ralf Corsepius  <ralf.corsepius@rtems.org>
1044         * config/rs6000/t-rtems: Remove roe multilib variant.
1046 2005-05-26  Roger Sayle  <roger@eyesopen.com>
1048         PR tree-optimization/9814
1049         * ifcvt.c (noce_emit_move_insn): If we fail to recognize the move
1050         instruction, add the necessary clobbers by re-expanding the RTL
1051         for arithmetic operations via optab.c's expand_unop/expand_binop.
1052         (noce_try_bitop): New function to optimize bit manipulation idioms
1053         of the form "if (x & C) x = x op C" and "if (!(x & C) x = x op C".
1054         (noce_process_if_block): Call noce_try_bitop.
1056 2005-05-26  Roger Sayle  <roger@eyesopen.com>
1058         * reg-stack.c (convert_regs_entry, convert_regs_exit,
1059         convert_regs_1, convert_regs_2, convert_regs): Delete prototypes.
1060         (reg_to_stack): Move to end of the file.  Initialize the per
1061         basic block information here, instead of...
1062         (convert_regs_entry): Here.
1063         (convert_regs): Change unused return type to void.
1065 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
1067         * c-pch.c, timevar.c, timevar.h, unwind-compat.c,
1068         unwind-dw2-fde-compat.c, unwind-dw2-fde.c, config/mmix/mmix.h,
1069         config/rs6000/eabispe.h, config/rs6000/lynx.h,
1070         config/sh/elf.h, config/sh/symbian-pre.h,
1071         config/sparc/sparc-protos.h: Update copyright.
1073 2005-05-26  Mike Stump  <mrs@apple.com>
1075         * darwin.h (ASM_OUTPUT_LABELREF): Handle quoted non-lazy pointers
1076         for Objective-C++.
1077         
1078 2005-05-26  Richard Guenther  <rguenth@gcc.gnu.org>
1080         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
1081         See through ADDR_EXPR in finding place to propagate into.
1083 2005-05-26  Kazu Hirata  <kazu@cs.umass.edu>
1085         * c-common.c, c-parser.c, cfgbuild.c, cfghooks.c, cfghooks.h,
1086         cfgrtl.c, cgraphunit.c, ddg.c, expr.h, gcse.c, ggc-page.c,
1087         ggc-zone.c, gimplify.c, ipa-inline.c, longlong.h, targhooks.c,
1088         tree-flow-inline.h, tree-pass.h, tree-ssa-dse.c,
1089         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
1090         tree-ssa-operands.c, tree-vect-analyze.c,
1091         tree-vect-transform.c, tree-vectorizer.c, tree.c,
1092         config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
1093         config/frv/frv.md, config/i386/i386.c, config/i386/sse.md,
1094         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
1095         config/mcore/mcore.c, config/mips/mips.c, config/mips/mips.md,
1096         config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
1097         config/rs6000/rs6000.h, config/sh/sh.c, config/sh/sh.md,
1098         config/sh/ushmedia.h, config/sparc/sparc.c,
1099         config/sparc/sparc.md, config/stormy16/stormy-abi: Fix comment
1100         typos.  Follow spelling conventions.
1101         * doc/invoke.texi, doc/tm.texi, doc/tree-ssa.texi: Fix typos.
1102         Follow spelling conventions.
1104 2005-05-26  David Ung  <davidu@mips.com>
1106         * config/mips/mips.c (mips_use_ins_ext_p): New helper function
1107         that determines whether the MIPS32/64 R2 ext/ins should be used.
1108         * config/mips/mips.h (ISA_HAS_EXT_INS): New macro.
1109         * config/mips/mips.md (extzv): Changed predicate for operand to
1110         nonimmediate_operand. Add code to generate insn patterns for
1111         extzvsi and extzvdi.
1112         (extzv<mode>): New pattern to match mips32/64 r2 ext insn.
1113         (insv): Similarly for insertion.
1114         (insv<mode>): Similarly.
1116 2005-05-26  Paolo Bonzini  <bonzini@gnu.org>
1118         * simplify-rtx.c (avoid_constant_pool_reference): Support
1119         offsetted addresses in the constant pool.
1121 2005-05-26  Paolo Bonzini  <bonzini@gnu.org>
1123         * df.h (DF_SUBREGS, df_local_def_available_p, df_insn_modified_p): New.
1124         * df.c (DF_SUBREGS, df_local_def_available_p, df_insn_modified_p): New.
1126 2005-05-26  Jakub Jelinek  <jakub@redhat.com>
1128         PR target/21716
1129         * reg-stack.c (swap_rtx_condition): Don't crash if %ax user was not
1130         found in the basic block and last insn in the basic block is not
1131         INSN_P.  Remove explicit unspec numbers that are no longer valid
1132         from comments.
1134 2005-05-26  Paolo Bonzini  <bonzini@gnu.org>
1136         * tree-vect-transform.c (vectorizable_operation): Try word_mode
1137         vectorization if UNITS_PER_WORD == UNITS_PER_SIMD_WORD, even
1138         if a vector mode is available.
1140 2005-05-25  Roger Sayle  <roger@eyesopen.com>
1142         PR middle-end/21709
1143         * fold-const.c (const_binop): Check for division by zero during
1144         complex division.
1146 2005-05-26  Ian Lance Taylor  <ian@airs.com>
1148         * reload1.c (verify_initial_elim_offsets): Add braces to avoid
1149         having a declaration after a statement.
1151 2005-05-26  Richard Sandiford  <rsandifo@redhat.com>
1153         * opt-functions.awk (var_type): New function.
1154         (var_set): Use CLVC_STRING if var_type returns "const char *".
1155         * opth-gen.awk: Use var_type to find out the types of variables.
1156         Don't print comments above each "extern" definition.
1157         * optc-gen.awk: Use var_type in the same way.
1158         * opts.h (cl_var_cond): Rename to...
1159         (cl_var_type): ...this.  Add CLVC_STRING.
1160         (cl_option): Make "flag_var" a "void *" pointer.  Replace "var_cond"
1161         with "var_type".
1162         * opts.c (handle_option, option_enabled): Update after above name
1163         change.  Cast flag_var before using it.  Handle CLVC_STRING.
1164         
1165         * config/alpha/alpha.h (alpha_tls_size): Delete.
1166         * config/alpha/alpha.c (alpha_tls_size, alpha_cpu_string)
1167         (alpha_tune_string, alpha_tp_string, alpha_fprm_string)
1168         (alpha_fptm_string, alpha_mlat_string): Delete.
1169         (alpha_handle_option): Don't set the above variables here.  Use the
1170         integer argument to check the validity of -mtls-size=.
1171         * config/alpha/alpha.opt (mcpu=, mtune=, mfp-rounding-mode=)
1172         (mfp-trap-mode=, mtrap-precision=, mmemory-latency=): Add Var()s.
1173         (mtls-size=): Likewise.  Convert to a UInteger and initialize the
1174         variable to 32.
1176         * config/arc/arc.c (arc_cpu_string, arc_text_string)
1177         (arc_data_string, arc_rodata_string): Delete.
1178         (arc_handle_option): Don't set the above variables here.
1179         * config/arc/arc.opt (mcpu=, mtext=, mdata=, mrodata=): Add Var()s
1180         and initialize them.
1182         * config/arm/arm.c (target_fpu_name, target_fpe_name)
1183         (target_float_abi_name, target_abi_name, structure_size_string)
1184         (arm_pic_register_string): Delete.
1185         (arm_handle_option): Don't set the above variables here, except
1186         in the handling of -mhard-float and -msoft-float.
1187         * config/arm/arm.opt (mabi=, mfloat-abi=, mfp=, mfpe=, mfpu=)
1188         (mpic-register=, mstructure-size-boundary=): Add Var()s.
1190         * config/avr/avr.c (avr_init_stack, avr_mcu_name, TARGET_HANDLE_OPTION)
1191         (avr_handle_option): Delete.
1192         * config/avr/avr.opt (mmcu=, minit-stack=): Add Var()s and initialize
1193         them.
1195         * config/bfin/bfin.c (bfin_library_id): Delete.
1196         (bfin_handle_option): Don't set it.
1197         * config/bfin/bfin.opt (mshared-library-id=): Add Var().
1199         * config/c4x/c4x.h (c4x_rpts_cycles): Delete.
1200         * config/c4x/c4x.c (c4x_rpts_cycles): Delete.
1201         (c4x_handle_option): Don't set c4x_rpts_cycles here.
1202         * config/c4x/c4x.opt (mrpts=): Add Var().
1204         * config/cris/aout.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't set
1205         cris_elinux_stacksize_str here.
1206         * config/cris/aout.opt (melinux-stacksize=): Add Var().
1207         * config/cris/cris.h (cris_max_stackframe_str, cris_cpu_str)
1208         (cris_tune_str, cris_elinux_stacksize_str): Delete.
1209         * config/cris/cris.c (cris_max_stackframe_str, cris_cpu_str)
1210         (cris_tune_str, cris_elinux_stacksize_str): Delete.
1211         (cris_handle_option): Don't set the above variables here.
1212         * config/cris/cris.opt (mcpu=, march=, mtune=, mmax-stackframe=)
1213         (max-stackframe=): Add Var()s.
1215         * config/i386/i386.h (ix86_tune_string, ix86_arch_string): Delete.
1216         * config/i386/i386.c (ix86_cmodel_string, ix86_asm_string)
1217         (ix86_tls_dialect_string, ix86_tune_string, ix86_arch_string)
1218         (ix86_fpmath_string, ix86_regparm_string, ix86_align_loops_string)
1219         (ix86_align_jumps_string, ix86_preferred_stack_boundary_string)
1220         (ix86_branch_cost_string, ix86_align_funcs_string): Delete.
1221         (ix86_handle_option): Don't set the above variables here.
1222         * config/i386/i386.opt (malign-functions=, malign-jumps=)
1223         (malign-loops=, march=, masm=, mbranch-cost=, mcmodel=, mfpmath=)
1224         (mpreferred-stack-boundary=, mregparm=, mtls-dialect=, mtune=): Add
1225         Var()s.
1227         * config/ia64/ia64.h (ia64_tls_size): Delete.
1228         * config/ia64/ia64.c (ia64_tls_size): Delete.
1229         (ia64_handle_option): Treat -mtls-size= as a UInteger option,
1230         reading the integer argument from the "value" parameter.  Don't
1231         set ia64_tls_size here.
1232         * config/ia64/ia64.opt (mtls-size=): Turn into a UInteger option.
1233         Add Var() and Init().
1235         * config/m32r/m32r.h (m32r_cache_flush_func): Delete.
1236         (m32r_cache_flush_trap): Delete.
1237         * config/m32r/m32r.c (m32r_cache_flush_func): Delete.
1238         (m32r_cache_flush_trap): Delete.
1239         (m32r_handle_option): Don't set the above variables when handling
1240         -mflush-func= and -mflush-trap=.
1241         * config/m32r/m32r.opt (-mflush-func=, -mflush-trap=): Add Var()s
1242         and Init()s.
1244         * config/mips/mips.h (mips_cache_flush_func): Delete.
1245         * config/mips/mips.c (mips_arch_string, mips_tune_string)
1246         (mips_cache_flush_func): Delete.
1247         (mips_handle_option): Don't set the above variables when handling
1248         -march=, -mtune= and -mflush-func=.
1249         * config/mips/mips.opt (march=, mflush-func=, mtune=): Add Var()s.
1251         * config/s390/s390.c (s390_arch_string): Delete.
1252         (s390_handle_option): Don't set it here.
1253         * config/s390/s390.opt (march=): Add Var().
1255         * config/sparc/sparc.h (sparc_cmodel_string): Delete.
1256         * config/sparc/sparc.c (sparc_cmodel_string): Delete.
1257         (sparc_handle_option): Don't set it here.
1258         * config/sparc/sparc.opt (mcmodel=): Add Var().
1260 2005-05-25  Roger Sayle  <roger@eyesopen.com>
1262         * convert.c (convert_to_integer) <POINTER_TYPE>: Avoid recursive
1263         call to convert_to_integer by building the NOP_EXPR directly.
1265 2005-05-25  Richard Sandiford  <rsandifo@redhat.com>
1267         * config/rs6000/rs6000.opt (mprioritize-restricted-insns=): Fix typo.
1269 2005-05-25  Daniel Berlin  <dberlin@dberlin.org>
1270             Jeff Law  <law@redhat.com>
1272         * tree-cfg.c (verify_expr, case ADDR_EXPR): Verify invariant,
1273         constant and side_effects of the ADDR_EXPR are consistent.
1275         * tree-nested.c (convert_local_reference): Set CURRENT_FUNCTION_DECL
1276         appropriately around calls to recompute_tree_invarant_for_addr_expr.
1278 2005-05-25  Ulrich Weigand  <uweigand@de.ibm.com>
1280         * config/s390/s390.c (GP_ARG_NUM_REG, FP_ARG_NUM_REG): New defines.
1281         (s390_function_arg, s390_gimplify_va_arg): Use them.
1282         (s390_register_info): Save only required subset of argument
1283         registers into save area for va_list.
1284         (s390_va_start): Initialize only required elements of va_list struct.
1285         (s390_build_builtin_va_list): Set va_list_[gf]pr_counter_field.
1287 2005-05-25  Ulrich Weigand  <uweigand@de.ibm.com>
1289         * reload1.c (verify_initial_elim_offsets): Return boolean status
1290         instead of aborting.
1291         (reload): Adapt verify_initial_elim_offsets call site.  Restart
1292         main loop if some initial elimination offsets changed.
1294 2005-05-25  Adam Nemet  <anemet@lnxw.com>
1296         * config/rs6000/lynx.h (CC1_SPEC): Use -maix-struct-return instead
1297         of -mno-svr4-struct-return.
1299 2005-05-25  Daniel Berlin  <dberlin@dberlin.org>
1301         Fix PR tree-optimization/21705
1302         
1303         * tree-ssa-pre.c (in_fre): New static variable.
1304         (create_value_expr_from): Recursively value number reference ops
1305         in argument lists.
1306         (can_value_number_call): Temporary restrict only exists for
1307         PRE, not FRE.
1309 2005-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1311         * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Replace
1312         sizeof (bitmap *) with sizeof (bitmap).
1314 2005-05-25  Daniel Berlin <dberlin@dberlin.org>
1316         * lambda-code.c (perfect_nestify): Call update_stmt on the exit
1317         condition.
1319 2005-05-25  Adrian Straetling  <straetling@de.ibm.com>
1321         * config/s390/s390.c (TARGET_INSN_VALID_WITHIN_DOLOOP): Set to
1322         hook_bool_rtx_true.
1324 2005-05-25  Jan Hubicka  <jh@suse.cz>
1326         * Makefile.in (ipa-inline.o): Add COEVERAGE_H dependency.
1327         * cgraph.c (cgraph_create_node): Reset estimated_growth.
1328         * cgraph.h (cgraph_global_info): Add estimated_growth.
1329         * ipa-inline.c: Include coverage.h
1330         (max_insns, max_count): New static variables.
1331         (cgraph_estimate_size_after_inlining): Cache the result.
1332         (cgraph_estimate_growth):
1333         * passes.c (rest_of_clean_state): Kill coverage_end_function.
1334         * timevar.def (TV_INLINE_HEURISTICS): New timevar.
1335         * tree-optimize.c (init_tree_optimization_passes): Move profiling before
1336         inlining.
1337         (ipa_passes): Initialize bitmaps.
1339 2005-05-25  Adrian Straetling  <straetling@de.ibm.com>
1341         * loop-doloop.c: Include "target.h". 
1342           (doloop_valid_p): Move tests to function in targhooks.c.
1343         * target.h (struct gcc_target): New target hook
1344           "insn_valid_within_doloop".
1345         * target-def.h: Define default value for "insn_valid_within_doloop".
1346           (TARGET_INITIALIZER): Insert new target hook into initializer.
1347         * targhooks.c (default_insn_valid_within_doloop): New function.
1348         * targhooks.h (default_insn_valid_within_doloop): Declare.
1349         * hooks.c (hook_bool_rtx_true): New function.
1350         * hooks.h (hook_bool_rtx_true): Declare.
1351         * doc/tm.texi: Add documentation for new target hook.
1353 2005-05-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
1355         PR target/21412
1356         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): New macro
1357         * config/sparc/sparc-protos.h (tls_symbolic_operand): Delete.
1358         (sparc_tls_referenced_p): New prototype.
1359         * config/sparc/sparc.c (tls_symbolic_operand): Delete.
1360         (sparc_expand_move): Look for TLS addresses with constant offsets.
1361         (legitimate_constant_p): Use SPARC_SYMBOL_REF_TLS_P instead of
1362         tls_symbolic_operand.
1363         (legitimate_pic_operand_p): Likewise.
1364         (legitimate_address_p): Likewise.
1365         (legitimize_address): Likewise.
1366         (sparc_tls_symbol_ref_1): New function.
1367         (sparc_tls_referenced_p): New function.
1368         * config/sparc/predicates.md (tgd_symbolic_operand): Use
1369         SYMBOL_REF_TLS_MODEL instead of tls_symbolic_operand.
1370         (tld_symbolic_operand): Likewise.
1371         (tie_symbolic_operand): Likewise.
1372         (tle_symbolic_operand): Likewise.
1374 2005-05-24  DJ Delorie  <dj@redhat.com>
1375         
1376         * common.opt (-Wattributes): New.  Default true.
1377         * doc/invoke.texi (-Wno-attributes): Document.
1378         
1379         * attribs.c (decl_attributes): Move warning control from if() to
1380         warning(OPT_*).
1381         * c-common.c (handle_packed_attribute): Likewise.
1382         (handle_nocommon_attribute): Likewise.
1383         (handle_common_attribute): Likewise.
1384         (handle_noreturn_attribute): Likewise.
1385         (handle_noinline_attribute): Likewise.
1386         (handle_always_inline_attribute): Likewise.
1387         (handle_used_attribute): Likewise.
1388         (handle_unused_attribute): Likewise.
1389         (handle_const_attribute): Likewise.
1390         (handle_transparent_union_attribute): Likewise.
1391         (handle_constructor_attribute): Likewise.
1392         (handle_destructor_attribute): Likewise.
1393         (handle_mode_attribute): Likewise.
1394         (handle_alias_attribute): Likewise.
1395         (handle_visibility_attribute): Likewise.
1396         (handle_tls_model_attribute): Likewise.
1397         (handle_malloc_attribute): Likewise.
1398         (handle_returns_twice_attribute): Likewise.
1399         (handle_pure_attribute): Likewise.
1400         (handle_deprecated_attribute): Likewise.
1401         (handle_vector_size_attribute): Likewise.
1402         (handle_nothrow_attribute): Likewise.
1403         (handle_cleanup_attribute): Likewise.
1404         (handle_warn_unused_result_attribute): Likewise.
1405         (handle_sentinel_attribute): Likewise.
1406         * c-decl.c (diagnose_mismatched_decls): Likewise.
1407         (start_decl): Likewise.
1408         (grokdeclarator): Likewise.
1409         (start_function): Likewise.
1410         * c-format.c (check_function_format): Likewise.
1411         * stor-layout.c (place_field): Likewise.
1412         (finalize_record_size): Likewise.
1413         * tree.c (handle_dll_attribute)): Likewise.
1414         * varasm.c (default_assemble_visibility): Likewise.
1415         * config/darwin.c (darwin_handle_weak_import_attribute): Likewise.
1416         (darwin_assemble_visibility): Likewise.
1417         * config/arc/arc.c (arc_handle_interrupt_attribute): Likewise.
1418         * config/arm/arm.c (arm_handle_fndecl_attribute): Likewise.
1419         (arm_handle_isr_attribute): Likewise.
1420         * config/avr/avr.c (avr_handle_progmem_attribute): Likewise.
1421         (avr_handle_fndecl_attribute): Likewise.
1422         * config/bfin/bfin.c (handle_int_attribute): Likewise.
1423         * config/c4x/c4x.c (c4x_handle_fntype_attribute): Likewise.
1424         * config/h8300/h8300.c (h8300_handle_fndecl_attribute): Likewise.
1425         (h8300_handle_eightbit_data_attribute): Likewise.
1426         (h8300_handle_tiny_data_attribute): Likewise.
1427         * config/i386/i386.c (ix86_handle_cdecl_attribute): Likewise.
1428         (ix86_handle_regparm_attribute): Likewise.
1429         (ix86_handle_struct_attribute): Likewise.
1430         * config/i386/winnt.c (ix86_handle_shared_attribute): Likewise.
1431         (i386_pe_encode_section_info): Likewise.
1432         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
1433         * config/ip2k/ip2k.c (ip2k_handle_progmem_attribute): Likewise.
1434         (ip2k_handle_fndecl_attribute): Likewise.
1435         * config/m32r/m32r.c (m32r_handle_model_attribute): Likewise.
1436         * config/m68hc11/m68hc11 (m68hc11_handle_page0_attribute): Likewise.
1437         (m68hc11_handle_fntype_attribute): Likewise.
1438         (m68hc11_encode_section_info): Likewise.
1439         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
1440         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
1441         * config/ns32k/ns32k.c (ns32k_handle_fntype_attribute): Likewise.
1442         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute): Likewise.
1443         * config/sh/sh.c (sh_handle_interrupt_handler_attribute): Likewise.
1444         (sh_handle_sp_switch_attribute): Likewise.
1445         (sh_handle_trap_exit_attribute): Likewise.
1446         * config/sh/symbian.c (sh_symbian_dllimport_p): Likewise.
1447         (sh_symbian_handle_dll_attribute): Likewise.
1448         * config/stormy16/stormy16.c (xstormy16_handle_interrupt_attribute): Likewise.
1449         (xstormy16_handle_below100_attribute): Likewise.
1450         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
1452         * c-common.c (unsigned_conversion_warning): Move warning control
1453         from if() to warning(OPT_*).
1454         (c_common_truthvalue_conversion): Likewise.
1455         (c_do_switch_warnings): Likewise.
1456         * c-decl.c (diagnose_mismatched_decls): Likewise.
1457         (diagnose_mismatched_decls): Likewise.
1458         (define_label): Likewise.
1459         (grokdeclarator): Likewise.
1460         * c-format.c (check_format_info): Likewise.
1461         * c-lex.c (interpret_integer): Likwise.
1462         (lex_string): Likewise.
1463         * c-opts.c (c_common_post_options): Likewise.
1464         * c-parser.c (c_parser_unary_expression): Likewise.
1465         * c-pragma.c (handle_pragma_redefine_extname): Likewise.
1466         (handle_pragma_extern_prefix): Likewise.
1467         * c-typeck.c (build_binary_op): Likewise.
1468         * gcse.c (is_too_expensive): Likewise.
1469         * opts.c (decode_options): Likewise.
1470         * stor-layout.c (place_field): Likewise.
1471         * tree-cfg.c (remove_bb): Likewise.
1473         * c.opt (-Wreturn-type): Add Var(warn_return_type).
1474         * flags.h (warn_return_type): Remove.
1475         * toplev.c (warn_return_type): Likewise.
1477 2005-05-24  Kelley Cook  <kcook@gcc.gnu.org>
1479         * configure.ac: Don't use gcc_AC_C_LONG_LONG.  Check for
1480         existence of long long and __int64 before determining their size.
1481         * aclocal.m4: Delete gcc_AC_C_LONG_LONG.
1482         * configure, config.h.in:  Regenerate.
1484 2005-05-24  Kelley Cook  <kcook@gcc.gnu.org>
1486         * configure: Regenerate.
1488 2005-05-24  Ziemowit Laski  <zlaski@apple.com>
1490         * c-common.h (objc_comptypes): Remove prototype.
1491         (objc_compare_types): New prototype.
1492         (objc_volatilized_decl): Likewise.
1493         (objc_type_quals_match): Likewise.
1494         * c-decl.c (objc_mark_locals_volatile): Streamline by calling
1495         objc_volatilize_decl().
1496         * c-typeck.c (comp_target_types): Remove third parameter; do
1497         not call objc_comptypes().
1498         (comptypes): Remove calls to objc_comptypes().
1499         (build_function_call): Extend compatible prototype check to ObjC.
1500         (build_conditional_expr): Adjust call to comp_target_types().
1501         (convert_for_assignment): Call objc_compare_types() instead of
1502         objc_comptypes(); adjust calls to comp_target_types(); call
1503         objc_type_quals_match() before issuing qualifier mismatch
1504         warnings.
1505         (build_binary_op): Call objc_compare_types() before issuing
1506         pointer mismatch warnings; adjust calls to
1507         comp_target_types().
1508         * stub-objc.c (objc_comptypes): Remove stub.
1509         (objc_compare_types): New stub.
1510         (objc_volatilized_decl): Likewise.
1511         (objc_type_quals_match): Likewise.
1513 2005-05-24  Paolo Carlini  <pcarlini@suse.de>
1515         * config/ia64/ia64intrin.h: Define nothing for C++:
1516         overloaded builtins have been ported to C++.
1518 2005-05-24  Jeff Law  <law@redhat.com>
1520         * tree-nested.c (build_addr): New "context" argument.  Temporarily
1521         set current_function_decl around the call to build the ADDR_EXPR.
1522         (get_static_chain): Pass proper context to build_addr.
1523         (convert_nl_goto_reference): Likewise.
1524         (convert_tramp_reference): Likewise.
1525         (final_nesting_tree_1): Likewise.
1526         * tree-profile.c (tree_gen_interval_profiler): Likewise.
1527         (tree_gen_pow2_profiler): Likewise.
1528         (tree_gen_one_value_profiler): Likewise.
1529         * tree-ssa-loop-ivopts.c (build_addr_strip_iref): Likewise.
1530         * tree.h (build_addr): Update prototype.
1532 2005-05-24  Kazu Hirata  <kazu@cs.umass.edu>
1534         * tree-flow.h (bb_ann_d): Remove has_escape_site.
1535         * tree-ssa-alias.c (compute_points_to_addr_escape): Don't
1536         write to has_escape_site.
1538 2005-05-24  Jeff Law  <law@redhat.com>
1540         * Makefile.in (tree-cfg.o): Depend on tree-ssa-propagate.h.
1541         * tree-cfg.c: Include tree-ssa-propagate.h.
1542         (replace_uses_by): Call recompute_tree_invarant_for_addr_expr as
1543         needed.
1545 2005-05-24  Nick Clifton  <nickc@redhat.com>
1547         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
1548         __NO_FPRS__ when 'f' class registers will not be available. 
1550 2005-05-24  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1552         * config/m32r/m32r.c (m32r_expand_block_move):  Return 0 if
1553         nothing was done.
1554         * config/m32r/m32r.md (movmemsi):  If m32r_expand_block_move did
1555         nothing then FAIL.
1556         * config/m32r/m32r/m32r-protos.h  (m32r_expand_block_move): Update
1557         prototype.
1559 2005-05-23  Jeff Law  <law@redhat.com>
1561         * tree-ssa-dom.c (cprop_into_stmt): Do not call
1562         recompute_tree_invariant_for_addr_expr here.
1563         (optimize_stmt): Call it here instead and do so if anything
1564         at all has changed in the statement and the RHS is an ADDR_EXPR.
1565         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): If
1566         needed, call recompute_tree_invariant_for_addr_expr.
1567         * tree-ssa-propagate.c (substitute_and_fold): Call
1568         recompute_tree_invariant_for_addr_expr as needed.
1570 2005-05-23  Andreas Krebbel  <krebbel1@de.ibm.com>
1572         * config/s390/s390.c (s390_optimize_prologue): Don't replace an insn
1573         saving less registers than the replacement.
1575 2005-05-23  Jan Hubicka  <jh@suse.cz>
1577         * tree-flow.h (stmt_ann_d): Kill GTY ((skip)) mark on BB.
1579 2005-05-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
1581         * config/sparc/sparc-protos.h (sparc_expand_move): New prototype.
1582         * config/sparc/sparc.c (sparc_expand_move): New function.
1583         (sparc_emit_set_const64): Rewrite assert condition on entry.
1584         (legitimate_constant_p) <CONST_VECTOR>: New case.
1585         (legitimize_pic_address): Use TARGET_ARCH64 to select the mode.
1586         * config/sparc/sparc.md (movqi, movhi, movsi, movdi, movV32,
1587         movV64, movtf): Use nonimmediate_operand for the first operand.
1588         Rewrite.  Only invoke sparc_expand_move.
1589         * config/sparc/predicates.md (input_operand): Reorder tests.
1591 2005-05-23  Jan Beulich  <jbeulich@novell.com>
1593         * gthr-posix.h (__gthread_recursive_mutex_init_function): Add
1594         missing return statement.
1596 2005-05-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
1598         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Use
1599         emit_move_insn for moves to TFmode stack slots.
1601 2005-05-21  Richard Guenther  <rguenth@gcc.gnu.org>
1603         * tree-stdarg.c (execute_optimize_stdarg): Handle references
1604         to va_list of the form &va[0].
1606 2005-05-20  Jan Hubicka  <jh@suse.cz>
1608         * Makefile.in (insn-emit.o): Add basic-block.h dependency.
1609         * genemit.c (main): Make insn-emit to include basic-block.h too.
1611 2005-05-20  Jan Hubicka  <jh@suse.cz>
1613         * cgraphunit.c (cgraph_expand_function): Force function being lowered.
1615 2005-05-19  Richard Henderson  <rth@redhat.com>
1617         * config/alpha/alpha.c (emit_unlikely_jump, emit_load_locked,
1618         emit_store_conditional): Split out from ...
1619         (alpha_split_atomic_op): ... here.
1620         (alpha_split_compare_and_swap): New; extract from .md file.
1621         (alpha_split_lock_test_and_set): Likewise.
1622         * config/alpha/alpha-protos.h: Update.
1623         * config/alpha/sync.md (sync_compare_and_swap<I48MODE>): Move
1624         split code into alpha.c.
1625         (sync_lock_test_and_set<I48MODE>): Likewise.
1627 2005-05-19  Richard Henderson  <rth@redhat.com>
1629         * unwind.h, unwind-pe.h: Revert gcc_unreachable change of 05-17.
1631 2005-05-19  Richard Henderson  <rth@redhat.com>
1633         * config/i386/sse.md (mulv4si3): Use all register inputs.
1634         (mulv2di3): Likewise.
1636 2005-05-19  Richard Guenther  <rguenth@gcc.gnu.org>
1638         * tree-ssa-loop-ivopts.c (determine_base_object): Use
1639         build_fold_addr_expr to generate trees of correct type.
1640         Use fold_buildN if possible.
1642 2005-05-19  Jan Hubicka  <jh@suse.cz>
1644         * basic-block.h (REG_BR_PROB_BASE): Define.
1645         * cgraph.c (cgraph_create_edge): Initialize loop_nest and count.
1646         (dump_cgraph_node): Dump count.
1647         (cgraph_clone_edge): Rescale counts.
1648         (cgraph_clone_node): Likewise.
1649         * cgraph.h: Include basic-block.h
1650         (cgraph_node): Add count.
1651         (cgraph_edge): Add count and loop_nest.
1652         (cgraph_node, cgraph_edge, cgraph_clone_edge, cgraph_clone_node):
1653         Update prototypes.
1654         * cgraphunit.c: Kill now redundant inlining comment.
1655         (cgraph_create_edges): Make static, maintain current basic block;
1656         fix pasto.
1657         (record_call_1): Fill in new fields.
1658         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
1659         cgraph_clone_node.
1660         (cgraph_decide_recursive_inlining): Likewise.
1661         * rtl.h (REG_BR_PROB_BASE): Kill.
1662         * tree-inline.c (copy_body_r): Update call of cgraph_clone_edge.
1663         (expand_call_inline): Update call of cgraph_create_edge.
1664         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1666 2005-05-19  Nick Clifton  <nickc@redhat.com>
1668         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use the
1669         new rs6000_explicit_options structure.
1671 2005-05-19  Richard Henderson  <rth@redhat.com>
1673         PR target/21390
1674         * config/alpha/alpha.c (alpha_emit_conditional_branch): Move 
1675         TFmode code swapping ...
1676         (alpha_emit_xfloating_compare): ... here.
1677         (alpha_emit_setcc): Update to match.
1678         (alpha_lookup_xfloating_lib_func): Assert TARGET_HAS_XFLOATING_LIBS.
1680 2005-05-19  Richard Henderson  <rth@redhat.com>
1682         PR target/21657
1683         * config/ia64/ia64.c (ia64_expand_tls_address): Remove extra
1684         memory indirection in local-dynamic case.
1686 2005-05-18  Jie Zhang  <jie.zhang@analog.com>
1687             Bernd Schmidt  <bernd.schmidt@analog.com>
1689         * config/bfin/bfin.c (branch_dest): Add comment why it's
1690         necessary.
1691         * config/bfin/bfin.md (attr "length" default): Change the offset of
1692         forward conditional branch of length 4 from 4096 to 4092.
1694 2005-05-19  Jan Beulich  <jbeulich@novell.com>
1696         * unwind-compat.c: Include tconfig.h and tsystem.h.
1697         * unwind-dw2-fde-compat.c: Likewise.
1699 2005-05-18  Richard Henderson  <rth@redhat.com>
1701         PR 21541
1702         * ifcvt.c (noce_process_if_block): Avoid conversion when the
1703         memory destination is readonly.
1705 2005-05-18  Richard Henderson  <rth@redhat.com>
1707         PR 21541
1708         * tree-ssa-operands.c (opf_non_specific): New.
1709         (get_asm_expr_operands): Set it.
1710         (add_call_clobber_ops, add_call_read_ops): Likewise.
1711         (add_stmt_operand): Test it instead of opf_kill_def when
1712         considering unmodifiable variables.
1714         * tree-ssa-operands.c (get_expr_operands): Fix exact test.
1716 2005-05-19  Kazu Hirata  <kazu@cs.umass.edu>
1718         * cfgexpand.c, tree-cfg.c, tree-inline.c, tree-optimize.c,
1719         tree-ssa-forwprop.c: Fix comment typos.
1720         * doc/invoke.texi: Fix a typo.
1722 2005-05-18  Richard Henderson  <rth@redhat.com>
1724         * config.gcc (powerpc-*-linux*): Include linux64.opt when
1725         including linux64.h.
1727 2005-05-18  Richard Henderson  <rth@redhat.com>
1729         * tree-cfg.c (pass_remove_useless): Revert last change.
1730         * tree-optimize.c (init_tree_optimization_passes): Initialize
1731         all_lowering_passes with PROP_gimple_any.
1733 2005-05-18  Devang Patel  <dpatel@apple.com>
1735         * config/rs6000/rs6000.md (insvsi_internal1): Subtract shift from
1736         the mask end.
1737         
1738 2005-05-18  Richard Henderson  <rth@redhat.com>
1740         * tree-ssa-forwprop.c (cfg_changed): New.
1741         (tidy_after_forward_propagate_addr): New.
1742         (forward_propagate_addr_expr): Use it, and fold_stmt_inplace.
1743         (forward_propagate_addr_into_variable_array_index): Likewise.
1744         (tree_ssa_forward_propagate_single_use_vars): Cleanup cfg if
1745         edges were removed.
1747 2005-05-18  Geoffrey Keating  <geoffk@apple.com>
1749         * dummy-checksum.c: New.
1750         * genchecksum.c: New.
1751         * c.opt (print_pch_checksum): New flag.
1752         * c-pch.c (struct c_pch_validity): Make much shorter.
1753         (no_checksum): New.
1754         (host_machine): Remove.
1755         (target_machine): Remove.
1756         (get_ident): Change PCH version number.
1757         (pch_init): When -fverbose-asm, print out the compiler fingerprint.
1758         Don't put triplets or version string in PCH validity data.
1759         Do put the compiler checksum in the validity data.
1760         (c_common_valid_pch): Don't check triplets or version string.  Do
1761         check checksum.
1762         (c_common_print_pch_checksum): New.
1763         * c-opts.c (c_common_handle_option): Add OPT_print_pch_checksum.
1764         Print fingerprint with -v.
1765         * c-common.h (c_common_print_pch_checksum): New.
1766         (executable_checksum): New.
1767         * Makefile.in (STAGEMOVESTUFF): Add cc1*-dummy, *-checksum.c.
1768         (cc1-dummy): New rule.
1769         (cc1-checksum.c): New rule.
1770         (cc1-checksum.o): New rule.
1771         (cc1): Add checksum support.
1772         (build/genchecksum): New.
1773         (build/genchecksum.o): New.
1774         (dummy-checksum.o): New.
1775         (genobjnames): Add genchecksum.o.
1776         (mostlyclean): Remove *-checksum.c.
1777         (gnucompare): Add libgcc to list of directories checked.
1778         Make comparison problems in libgcc/ and with checksum files only
1779         be warnings.
1780         * doc/invoke.texi (Precompiled Headers): Remove caution.
1781         Document that it must be the exact same binary.  Add a few
1782         known-safe flags to the list.
1784         * rs6000/predicates.md (fix_trunc_dest_operand): New.
1785         * rs6000/rs6000.md (fix_truncdfsi2): Use fix_trunc_dest_operand.
1786         Check that a memory operand is valid before trying to use it.
1787         
1788         * tree-cfg.c (pass_remove_useless): This pass works on trees.
1790 2005-05-18  Richard Guenther  <rguenth@gcc.gnu.org>
1792         * tree.c (build1_stat): Don't try to handle two-operand
1793         tree codes.
1795 2005-05-18  Richard Sandiford  <rsandifo@redhat.com>
1797         * config.gcc (sh*-*-*): Define SUPPORT_* macros to 1.
1798         * config/sh/sh.h: Update mask names throughout.
1799         (target_flags, ISIZE_BIT, DALIGN_BIT, SH1_BIT, SH2_BIT, SH3_BIT)
1800         (SH_E_BIT, HARD_SH4_BIT, FPU_SINGLE_BIT, SH4_BIT, SH4A_BIT, FMOVD_BIT)
1801         (SH5_BIT, SPACE_BIT, BIGTABLE_BIT, RELAX_BIT, USERMODE_BIT)
1802         (HITACHI_BIT, NOMACSAVE_BIT, PREFERGOT_BIT, PADSTRUCT_BIT)
1803         (LITTLE_ENDIAN_BIT, IEEE_BIT, SAVE_ALL_TR_BIT, HARD_SH2A_BIT)
1804         (HARD_SH2A_DOUBLE_BIT, INDEXED_ADDRESS_BIT, PT_FIXED_BIT)
1805         (INVALID_SYMBOLS_BIT, ADJUST_UNROLL_BIT, TARGET_DUMPISIZE)
1806         (TARGET_ALIGN_DOUBLE, TARGET_SH1, TARGET_SH2, TARGET_SH3)
1807         (TARGET_HARD_SH4, TARGET_FPU_SINGLE, TARGET_SH5, TARGET_FMOVD)
1808         (TARGET_IEEE, TARGET_SMALLCODE, TARGET_BIGTABLE, TARGET_RELAX)
1809         (TARGET_HITACHI, TARGET_NOMACSAVE, TARGET_PADSTRUCT)
1810         (TARGET_LITTLE_ENDIAN, TARGET_USERMODE, TARGET_PREFERGOT)
1811         (TARGET_SAVE_ALL_TARGET_REGS, TARGET_ALLOW_INDEXED_ADDRESS)
1812         (TARGET_PT_FIXED, TARGET_INVALID_SYMBOLS, TARGET_ADJUST_UNROLL)
1813         (TARGET_SWITCH_SH1, TARGET_SWITCH_SH2, TARGET_SWITCH_SH2E)
1814         (TARGET_SWITCH_SH2A, TARGET_SWITCH_SH2A_SINGLE_ONLY)
1815         (TARGET_SWITCH_SH2A_SINGLE, TARGET_SWITCH_SH2A_NOFPU)
1816         (TARGET_SWITCH_SH3, TARGET_SWITCH_SH3E, TARGET_SWITCH_SH4_SINGLE_ONLY)
1817         (TARGET_SWITCH_SH4_SINGLE, TARGET_SWITCH_SH4_NOFPU, TARGET_SWITCH_SH4)
1818         (TARGET_SWITCH_SH4A, TARGET_SWITCH_SH4A_SINGLE_ONLY)
1819         (TARGET_SWITCH_SH4A_SINGLE, TARGET_SWITCH_SH4A_NOFPU)
1820         (TARGET_SWITCH_SH4AL, TARGET_SWITCH_SH5_64MEDIA)
1821         (TARGET_SWITCH_SH5_64MEDIA_NOFPU, TARGET_SWITCHES_SH5_32MEDIA)
1822         (TARGET_SWITCHES_SH5_32MEDIA_NOFPU, TARGET_SWITCH_SH5_32_ANY_EXTRA)
1823         (TARGET_SWITCH_SH5_MEDIA_ANY_EXTRA, TARGET_SWITCHES)
1824         (SUBTARGET_SWITCHES): Delete.
1825         (TARGET_SH2E, TARGET_SH2A, TARGET_SH2A_SINGLE, TARGET_SH2A_DOUBLE)
1826         (TARGET_SH3E, TARGET_CACHE32, TARGET_SUPERSCALAR, TARGET_HARVARD)
1827         (TARGET_FPU_DOUBLE, TARGET_SH4A_ARCH, TARGET_SHMEDIA32)
1828         (TARGET_SHMEDIA64): Redefine using other TARGET_* macros.
1829         (TARGET_SH4): Undefine options.h definition and check MASK_SH1 as well.
1830         (SUPPORT_SH1, SUPPORT_SH2E, SUPPORT_SH4, SUPPORT_SH4_SINGLE)
1831         (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Make numeric.
1832         (SUPPORT_SH2): Define to 1 if SUPPORT_SH1.
1833         (SUPPORT_SH3): Likewise SUPPORT_SH2.
1834         (SUPPORT_SH4_NOFPU): Likewise SUPPORT_SH3.
1835         (SUPPORT_SH4A_NOFPU, SUPPORT_SH4AL, SUPPORT_SH2A_NOFPU): Likewise
1836         SUPPORT_SH4_NOFPU.
1837         (SUPPORT_SH3E): Likewise SUPPORT_SH2E.
1838         (SUPPORT_SH4_SINGLE_ONLY, SUPPORT_SH4A_SINGLE_ONLY)
1839         (SUPPORT_SH2A_SINGLE_ONLY): Likewise SUPPORT_SH3E.
1840         (SUPPORT_SH4A): Likewise SUPPORT_SH4.
1841         (SUPPORT_SH4A_SINGLE): Likewise SUPPORT_SH4_SINGLE.
1842         (SUPPORT_SH5_32MEDIA): Likewise SUPPORT_SH5_COMPACT.
1843         (SUPPORT_SH5_32MEDIA_NOFPU): Likewise SUPPORT_SH5_COMPACT_NOFPU.
1844         (SUPPORT_ANY_SH5_32MEDIA, SUPPORT_ANY_SH5_64MEDIA)
1845         (SUPPORT_ANY_SH5): New macros.
1846         (TARGET_NONE): Replace with...
1847         (MASK_ARCH): ...this new macro.
1848         * config/sh/elf.h: Update mask names
1849         * config/sh/linux.h: Likewise.
1850         * config/sh/little.h: Likewise.
1851         * config/sh/netbsd-elf.h: Likewise.
1852         * config/sh/symbian-pre.h: Likewise.
1853         * config/sh/sh.c (sh_handle_option): New function.
1854         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
1855         (calc_live_regs): Use MASK_FPU_SINGLE instead of FPU_SINGLE_BIT.
1856         (sh_target_switches, target_switches): Delete.
1857         (sh_pch_valid_p): Check for specific differences in the target_flags
1858         settings.
1859         (sh_init_cumulative_args): Use MASK_HITACHI instead of HITACHI_BIT.
1860         * config/sh/sh.opt: New file.
1862 2005-05-18  Richard Henderson  <rth@redhat.com>
1864         PR target/21632
1865         * config/ia64/ia64.c (ia64_extra_constraint) <'T'>: Use
1866         small_addr_symbolic_operand.
1868 2005-05-18  Jeff Law  <law@redhat.com>
1870         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
1871         propagate an ADDR_EXPR if the definition and use sites are
1872         in different EH regions.
1874 2005-05-18  Ian Lance Taylor  <ian@airs.com>
1876         * read-rtl.c (mode_attr_index): Use obstack_grow0, not
1877         obstack_grow.
1879 2005-05-18  Daniel Berlin  <dberlin@dberlin.org>
1881         * cfgrtl.c (purge_dead_edges): Don't remove fake edges.
1883 2005-05-18  Daniel Berlin  <dberlin@dberlin.org>
1884         
1885         Fix PR tree-optimization/21407
1887         * tree-ssa-operands.c (note_addressable): Change
1888         COMPONENT_REF handling in response to aliasing
1889         discussion.
1891 2005-05-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
1893         * config/sparc/sol2.h (TARGET_DEFAULT): Add back MASK_APP_REGS.
1894         * config/sparc/sol2-64.h (TARGET_DEFAULT): Likewise.
1895         * config/sparc/sp-elf.h (TARGET_DEFAULT): Delete.
1896         * doc/invoke.texi (SPARC options): Document that -mapp-regs is
1897         the default on Solaris too.
1899 2005-05-17  Daniel Berlin  <dberlin@dberlin.org>
1901         * tree-ssa-pre.c (find_or_generate_expression): CALL_EXPR
1902         is okay too.
1904 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
1906         * timevar.def (TV_SCEV_CONST): New timevar.
1907         * tree-optimize.c (init_tree_optimization_passes): Add
1908         pass_scev_cprop.
1909         * tree-pass.h (pass_scev_cprop): Declare.
1910         * tree-scalar-evolution.c (scev_const_prop): New function.
1911         * tree-scalar-evolution.h (scev_const_prop): Declare.
1912         * tree-ssa-loop.c (gate_scev_const_prop, pass_scev_cprop):
1913         New.
1914         * tree-cfg.c (replace_uses_by): Export.
1915         * tree-flow.h (replace_uses_by): Declare.
1917 2005-05-17  Ziemowit Laski  <zlaski@apple.com>
1918             Mike Stump  <mrs@apple.com>
1920         Yet more Objective-C++...
1922         * c-common.h (objc_finish_try_stmt): Add.
1923         (objc_build_synchronized): Add.
1924         (objc_generate_write_barrier): Add.
1925         * stub-objc.c (objc_build_synchronized): Add return value.
1926         (objc_finish_try_stmt): Likewise.
1927         (objc_generate_write_barrier): Add.
1929         * c-common.h (objc_rewrite_function_call): Add.
1930         * c-typeck.c (build_function_call): Allow objc to rewrite
1931         FUNCTION_DECLs.
1932         (build_modify_expr): Allow objc to generate write barriers.
1933         * c.opt (Wassign-intercept): Add.
1934         (Wstrict-selector-match): Add.
1935         (fobjc-call-cxx-cdtors): Add.
1936         (fobjc-direct-dispatch): Add.
1937         (fobjc-gc): Add.
1938         * dbxout.c (get_lang_number): Add Objective-C++ support.
1939         * doc/invoke.texi (-fobjc-call-cxx-cdtors): Likewise.
1940         (-Wstrict-selector-match): Likewise.
1941         (-fobjc-direct-dispatch): Likewise.
1942         (-Wassign-intercept): Likewise.
1943         (Overall Options): Likewise.
1944         * gengtype.c (get_output_file_with_visibility): Likewise.
1945         * stub-objc.c (objc_rewrite_function_call): Add.
1946         * config/darwin.h (ASM_OUTPUT_LABELREF): Improved quoting support.
1948         * c-common.c (flag_objc_exceptions): Remove.
1949         (flag_objc_sjlj_exceptions): Remove.
1950         * c-decl.c (objc_mark_locals_volatile): Don't change decls
1951         that are already ok.
1952         * c-opts.c (c_common_handle_option, case
1953         OPT_fobjc_exceptions): Remove.
1954         (case OPT_fobjc_sjlj_exceptions): Remove
1955         * c.opt (fobjc-call-cxx-cdtors): Have opt create the flag.
1956         (fobjc-exceptions): Likewise.
1957         (fobjc-sjlj-exceptions): Likewise.
1958         * config/rs6000/darwin.h (OFFS_MSGSEND_FAST): Add.
1959         (OFFS_ASSIGNIVAR_FAST): Add.
1960         
1961 2005-05-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
1963         * config/sparc/sparc.md (movhi): Do not test constness
1964         of operand #1 twice.
1965         (movsi): Likewise.
1966         (movdi): Unconditionally accept zero as second operand
1967         when the first is memory.
1968         (movdi_insn_sp32): Handle above case.
1969         (DImode splitter): Use predicates.
1970         (DImode splitter): Use const_zero_operand predicate.
1971         (movsf_insn): Swap 2 alternatives.
1973 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
1975         * tree-ssa-loop-ivopts.c (find_bivs, find_givs_in_stmt_scev): Apply
1976         expand_simple_operations to bases of the ivs.
1977         (tree_int_cst_sign_bit): Export.
1978         * tree-flow.h (expand_simple_operations): Declare.
1979         * tree-ssa-loop-niter.c (number_of_iterations_cond): Use
1980         tree_int_cst_sign_bit.
1981         (expand_simple_operations): Export.
1982         * tree.h (tree_int_cst_sign_bit): Declare.
1984 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
1986         * tree-cfg.c (tree_can_merge_blocks_p): Allow phi nodes in the
1987         merged block.
1988         (replace_uses_by): New function.
1989         (tree_merge_blocks): Eliminate the phi nodes in the merged block.
1990         * tree-flow.h (fold_stmt_inplace): Declare.
1991         * tree-ssa-ccp.c (fold_stmt_inplace): New function.
1992         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update dominance
1993         info after cfg cleanup.
1995 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
1997         * cfgloop.h (just_once_each_iteration_p): Declaration changed.
1998         * cfgloopanal.c (just_once_each_iteration_p): Make the loop argument
1999         const.
2001 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
2003         * ggc-page.c (ggc_alloc_stat): Record amount of memory allocated.
2004         * ggc-zone.c (ggc_alloc_zone_1): Ditto.
2005         * timevar.c (timevar_ggc_mem_total): New variable.
2006         (GGC_MEM_BOUND): New constant.
2007         (get_time): Record ggc memory status.
2008         (timevar_accumulate): Accumulate amount of ggc memory.
2009         (timevar_print): Print consumption of ggc memory.
2010         * timevar.def (TV_FIND_REFERENCED_VARS, TV_TREE_REDPHI,
2011         TV_TREE_LOOP_BOUNDS, TV_TREE_LOOP_IVCANON, TV_TREE_VECTORIZATION,
2012         TV_TREE_LINEAR_TRANSFORM): Shorten strings to fit in 22 characters.
2013         * timevar.h (struct timevar_time_def): Add ggc_mem field.
2014         (timevar_ggc_mem_total): Declare.
2016 2005-05-17  Kazu Hirata  <kazu@cs.umass.edu>
2018         * tree-into-ssa.c (update_ssa): Clean up by shortening the
2019         live range of DFS.
2021 2005-05-17  Hans-Peter Nilsson  <hp@axis.com>
2023         * config/cris/cris.md (ncond, ocode, rcond): Remove separate
2024         define_code_attr.
2025         ("b<ncond:code>", "b<ocond:code>", "b<rcond:code>")
2026         ("*b<ncond:code>_reversed", "*b<ocond:code>_reversed")
2027         ("*b<rcond:code>_reversed", "s<ncond:code>", "s<rcond:code>")
2028         ("s<ocond:code>"): Rename from respectively "b<ncond>",
2029         "b<ocond>", "b<rcond>", ("*b<ncond>_reversed",
2030         "*b<ocond>_reversed", "*b<rcond>_reversed", "s<ncond>",
2031         "s<rcond>" and "s<ocond>".
2032         ("b<ocond:code>", "*b<ocond:code>_reversed")
2033         ("*b<rcond:code>_reversed"): Remove extraneous backslashes in
2034         output statement section.
2036 2005-05-17  Roger Sayle  <roger@eyesopen.com>
2038         * c-typeck.c (common_type): Also handle BOOLEAN_TYPEs.
2040 2005-05-17  Steven Bosscher  <stevenb@suse.de>
2041             Stuart Hastings <stuart@apple.com>
2042             Jan Hubicka  <jh@suse.cz>
2043             Dale Johannesen  <dalej@apple.com>
2045         * cgraph.h (cgraph_node): Add 'lowered' state.
2046         (cgraph_lower_function): Declare.
2047         * cgraphunit.c (cgraph_finalize_function): Initialize lowered flag.
2048         (cgraph_lower_function): New function.
2049         (cgraph_create_edges): Deal with lowered function bodies.
2050         (verify_cgraph_node): Likewise.
2051         (cgraph_analyze_function): Do lowering job.
2052         (cgraph_build_static_cdtor): Likewise.
2053         * function.h (struct function): Add saved_eh and saved_cfg.
2054         * integrate.c (copy_decl_for_inlining): Kill LABEL_DECL_UID field.
2055         * tree-cfg.c (fold_cond_expr_cond): Export.
2056         * tree-flow.h (fold_cond_expr_cond): Declare.
2057         * tree-inline.c: Include basic-block, ggc, tree-flow, except.h and
2058         pointer-set.
2059         (struct_inline_data): Kill fnd, first_inlined_fn, ret_label,
2060         in_target_cleanup_p, tree_pruner, tsi; add callee, caller and
2061         callee_cfun, block, eh_region, eh_region_offset.
2062         (inlining_p): New predicate.
2063         (remap_decl): Update for new inline_data; declare newly created inline
2064         vars in low gimple way.
2065         (copy_body_r): Update for new datastructure, simplify some of handling
2066         when we are in gimple; remap LABEL_DECLs for EH; copy TREE_BLOCK;
2067         deal with RESX_EXPRs.
2068         (copy_bb): New.
2069         (copy_edges_for_bb): Likewise.
2070         (remap_decl_1): New.
2071         (copy_cfg_body): New.
2072         (copy_generic_body): Rewrite to work on low gimple.
2073         (copy_body): Turn into simple wrapper around copy_cfg_body.
2074         (setup_one_parameter): Insert new statements into given basic block.
2075         (initialize_initialized_parameters): Likewise, reorganize way things are
2076         gimplified.
2077         (declare_return_variable): Update for new inline data datastructure.
2078         (inline_forbidden_p): Work on low gimple.
2079         (estimate_num_insns): Likewise.
2080         (expand_call_inline): Work on CFG.
2081         (push_cfun, pop_cfun): New functions.
2082         (cfun_stack): New stack.
2083         (add_lexical_block): New function.
2084         (gimple_expand_calls_inline): Work on basic block.
2085         (optimize_inline_calls): Likewise.
2086         (clone_body, save_body, unsave_ewpr_now): Update for new
2087         datastructures.
2088         (declare_inline_vars): Work on block instead of bind_expr.
2089         (inlining_p): New predicate.
2090         * tree-inline.h (push_cfun, pop_cfun): Declare.
2091         * tree-optimize.c: Include except.h
2092         (all_lowering_passes): New variable.
2093         (execute_fixup_cfg, pass_fixup_cfg): New pass.
2094         (init_tree_optimization_passes): Move some to all_lowering_passes.
2095         (tree_lowering_passes): New function.
2096         (tree_rest_of_compilation): Register cfg hooks; save/unsave eh.
2097         * tree-pass.h (tree_lowering_passes): Declare
2099 2005-05-17  Nathan Sidwell  <nathan@codesourcery.com>
2101         * unwind-dw2-fde-darwin.c: Include tsystem.h.
2103 2005-05-17  Jeff Law  <law@redhat.com>
2105         * Makefile.in (tree-ssa-forwprop.o): Depend on langhooks.h.
2106         * tree-ssa-forwprop.c: Include langhooks.h.
2107         (forward_propagate_addr_expr_into_variable_array_index): New.
2108         (forward_propagate_addr_expr): New.
2109         (tree_ssa_forward_propagate_single_use_vars): Loop over all
2110         the statements in the block instead of just the last statement.
2111         Call forward_propagate_addr_expr as needed.
2112         (pass_forwprop): Update the SSA graph after forward propagation is
2113         complete.
2115 2005-05-17  Nathan Sidwell  <nathan@codesourcery.com>
2117         * unwind-dw2-fde-glibc.c (base_from_cb_data,
2118         _Unwind_IteratePhdrCallback): Use gcc_assert and gcc_unreachable as
2119         appropriate.
2120         * unwind-dw2-fde.c (__deregister_frame_info_bases,
2121         base_from_object, fde_split, end_fde_sort): Likewise.
2122         * unwind-dw2.c (_Unwind_GetGR, _Unwind_SetGR, execute_stack_op, 
2123         execute_cfa_program, _Unwind_SetSpColumn, uw_update_context_1,
2124         uw_init_context_1): Likewise.
2125         * unwind.inc (_Unwind_RaiseException_Phase2, _Unwind_Resume,
2126         _Unwind_Resume_or_Rethrow): Likewise.
2127         * unwind-pe.h (__gxx_abort): Do not define.
2128         (size_of_encoded_value, base_of_encoded_value,
2129         read_encoded_value_with_base): Use gcc_unreachable.
2130         * unwind.h (_Unwind_GetTextRelBase): Likewise.
2132 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
2134         * config/arm/lib1funcs.asm (cfi_pop, cfi_push, cfi_start)
2135         (cfi_end): New macros.
2136         (RETLDM): Use cfi_pop.  Expect an eight byte stack frame.
2137         (ARM_LDIV0, THUMB_LDIV0, DIV_FUNC_END): Use CFI macros.  Create
2138         an eight byte stack frame.
2139         (__NR_tkill): Define.
2140         (__div0): Use gettid tkill on GNU/Linux.
2141         (_arm_return): Add CFI.
2142         (Lchange_\register, .Lchange_lr): Create an eight byte stack frame.
2144 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
2146         * configure.ac: Remove spaces around assignment to
2147         gcc_cv_ld_sysroot.
2148         * configure: Regenerated.
2150 2005-05-17  David Edelsohn  <edelsohn@gnu.org>
2152         * config/rs6000/aix.h (TARGET_ALTIVEC_VRSAVE): Delete.
2153         * config/rs6000/rs6000.c (rs6000_explicit_options): Add
2154         aix_struct_ret.
2155         (rs6000_override_options): Do not protect TARGET_ALTIVEC_VRSAVE.
2156         Modify aix_struct_return variable, not target_flags.
2157         (rs6000_handle_option): Do not protect TARGET_ALTIVEC_VRSAVE.
2158         (rs6000_return_in_memory): Test aix_struct_return.
2159         * config/rs6000/rs6000.opt (maix-struct-return): Convert to
2160         independent variable.  Report mxl-compat.
2162 2005-05-17  Bernd Schmidt  <bernd.schmidt@analog.com>
2164         * config/bfin/bfin.md (eh_return): Add missing DONE.
2166 2005-05-17  Ian Lance Taylor  <ian@airs.com>
2168         * read-rtl.c (struct macro_traverse_data): Add unknown_mode_attr
2169         field.
2170         (mode_attr_index): Remove check for defined attribute.  Remove
2171         infile parameter.  Change all callers.
2172         (apply_mode_maps): Add unknown parameter.  Change caller.  Always
2173         return after finding attribute.
2174         (apply_macro_to_rtx): Add unknown_mode_attr parameter.  Change
2175         callers.
2176         (apply_macro_traverse): Set mtd->unknown_mode_attr.
2177         (read_rtx): Use mtd.unknown_mode_attr to check for an undefined
2178         attribute used for a mode.
2180 2005-05-17  Paolo Bonzini  <bonzini@gnu.org>
2182         * tree-ssa-math-opts.c: New file.
2184 2005-05-17  Paolo Bonzini  <bonzini@gnu.org>
2186         * tree-ssa-math-opts.c: New file.
2188 2005-05-17  Paolo Bonzini  <bonzini@gnu.org>
2190         * Makefile.in: Add tree-ssa-math-opts.c.
2191         * expr.c (expand_expr_real_1) <case RDIV_EXPR>: Never emit as a*(1/b).
2192         * fold-const.c (distribute_real_division): New.
2193         (fold_binary) <case PLUS_EXPR, case MINUS_EXPR>: Use it.
2194         * tree-pass.h (pass_cse_reciprocals): New.
2195         * tree-optimize.c (init_tree_optimization_passes): Run it.
2196         * doc/passes.texi: Document the new pass.
2198 2005-05-17  Richard Guenther  <rguenth@gcc.gnu.org>
2200         PR middle-end/21595
2201         * builtins.c (fold_builtin_constant_p): Handle
2202         &"string cst"[0] as constant.
2204 2005-05-17  Richard Henderson  <rth@redhat.com>
2206         * config/i386/sse.md (mulv16qi3, mulv2di3): New.
2208 2005-05-17  Jakub Jelinek  <jakub@redhat.com>
2210         PR middle-end/21492
2211         * cfgcleanup.c (try_crossjump_to_edge): update_forwarder_flag for
2212         src2 if src2 has been split.
2214         PR tree-optimization/21610
2215         * c-typeck.c (decl_constant_value_for_broken_optimization): If not
2216         returning DECL, call unshare_expr.
2218 2005-05-17  Hans-Peter Nilsson  <hp@axis.com>
2220         * config/cris/cris.md: Unquote preparation and output statements.
2221         (BWD, WD, BW): New, mode-macros.
2222         (S, s, m, mm, nbitsm1): New, mode-attrs.
2223         (szext, shift, shiftrt, ncond, ocond, rcond): New, code-macros.
2224         (u, su, shlr, slr, ncond, ocond, rcond, rCC, oCC, roCC): New,
2225         code-attrs.
2226         ("tst<mode>"): Replace "tstqi", "tsthi" and "tstsi".
2227         ("*cmp_ext<mode>"): Replace "*cmp_extsi" and "*cmp_exthi".
2228         ("*cmp_swapext<mode>"): Replace "*cmp_swapextqi" and
2229         "*cmp_swapexthi".
2230         ("cmp<mode>"): Replace "cmphi" and "cmpqi".
2231         ("movdi"): Move misplaced head comment regarding necessity of
2232         movdi from movsi to here.
2233         ("*mov_side<mode>_biap"): Replace "*mov_sideqi_biap" and
2234         "*mov_sidehi_biap".
2235         ("*mov_side<mode>"): Replace "*mov_sideqi" and "*mov_sidehi".
2236         ("*mov_side<mode>_biap_mem", "*mov_sidehi_biap_mem"): Replace
2237         "*mov_sideqi_biap_mem".
2238         ("*mov_side<mode>_mem"): Replace "*mov_sideqi_mem" and
2239         "*mov_sidehi_mem".
2240         ("*clear_side<mode>_biap"): Replace "*clear_sidesi_biap",
2241         "*clear_sidehi_biap" and "*clear_sideqi_biap".
2242         ("*clear_side<mode>"): Replace "*clear_sidesi", "*clear_sidehi"
2243         and "*clear_sideqi".
2244         ("*ext_side<mode>si_biap"): Replace "*ext_sideqisi_biap" and
2245         "*ext_sidehisi_biap".
2246         ("*ext_side<mode>si"): Replace "*ext_sideqisi" and
2247         "*ext_sidehisi".
2248         ("reload_in<mode>"): Replace "reload_inhi" and "reload_inqi".
2249         ("reload_out<mode>"): Replace "reload_outhi" and "reload_outqi".
2250         ("extend<mode>di2"): Replace "extendhidi2" and "extendqidi2".
2251         ("extend<mode>si2"): Replace "extendhisi2" and "extendqisi2".
2252         ("zero_extend<mode>si2"): Replace "zero_extendhisi2" and
2253         "zero_extendqisi2".
2254         ("*op_side<mode>_biap"): Replace "*op_sideqi_biap",
2255         "*op_sidehi_biap" and "*op_sidesi_biap".
2256         ("*op_side<mode>"): Replace "*op_sideqi", "*op_sidehi" and
2257         "*op_sidesi".
2258         ("*op_swap_side<mode>_biap"): Replace "*op_swap_sideqi_biap",
2259         "*op_swap_sidehi_biap" and "*op_swap_sidesi_biap".
2260         ("*op_swap_side<mode>"): Replace "*op_swap_sideqi",
2261         "*op_swap_sidehi" and "*op_swap_sidesi".
2262         ("sub<mode>3"): Replace "subhi3" and "subqi3", correcting a typo
2263         in the N alternative of "subqi3".
2264         ("*extop<mode>si_side_biap"): Replace "*extopqisi_side_biap" and
2265         "*extophisi_side_biap".
2266         ("*extop<mode>si_side"): Replace "*extopqisi_side" and
2267         "*extophisi_side".
2268         ("*extop<mode>si_swap_side_biap"): Replace
2269         "*extopqisi_swap_side_biap" and "*extophisi_swap_side_biap".
2270         ("*extop<mode>si_swap_side"): Replace "*extopqisi_swap_side" and
2271         "*extophisi_swap_side".
2272         ("*extop<mode>si"): Replace "*extopqisi" and "*extophisi".
2273         ("*extop<mode>si_swap"): Replace "*extopqisi_swap" and
2274         "*extophisi_swap".
2275         ("<u>mul<s><mode>3"): Replace "umulhisi3", "umulqihi3",
2276         "mulqihi3", "mulhisi3" and "mulhisi3".
2277         ("<u>mulsidi3"): Replace "mulsidi3" and "umulsidi3".
2278         ("<su>mulsi3_highpart"): Replace "smulsi3_highpart" and
2279         "umulsi3_highpart".
2280         ("xor<mode>3"): Replace "xorhi3" and "xorqi3".
2281         ("neg<mode>2"): Replace "negsi2", "neghi2" and "negqi2".
2282         ("one_cmpl<mode>2"): Replace "one_cmplhi2" and "one_cmplqi2".
2283         ("<shlr>si3"): Replace "ashrsi3", "lshrsi3" and "ashlsi3".
2284         ("ashr<mode>3"): Replace "ashrhi3" and "ashrqi3".
2285         ("*expanded_<shlr><mode>"): Replace "*expanded_ashrhi",
2286         "*expanded_ashrqi", "*expanded_lshrhi" and "*expanded_lshrqi".
2287         ("*<shlr><mode>_lowpart"): Replace "*ashrhi_lowpart",
2288         "*ashrqi_lowpart", "*lshrhi_lowpart" and "*lshrqi_lowpart".
2289         ("lshr<mode>3"): Replace "lshrhi3" and "lshrqi3".
2290         ("ashl<mode>3"): Replace "ashlhi3" and "ashlqi3".
2291         ("*ashl<mode>_lowpart"): Replace "*ashlqi_lowpart" and
2292         "*ashlhi_lowpart".
2293         ("abs<mode>2"): Replace "abshi2" and "absqi2".
2294         ("b<ncond>"): Replace "beq", "bne", "bgtu", "bltu", "bgeu" and
2295         "bleu".
2296         ("b<ocond>"): Replace "bgt" and "ble".
2297         ("b<rcond>"): Replace "blt" and "bge".
2298         ("*b<ncond>_reversed"): Replace "*beq_reversed", "*bne_reversed",
2299         "*bgtu_reversed", "*bltu_reversed", "*bgeu_reversed" and
2300         "*bleu_reversed".
2301         ("*b<ocond>_reversed"): Replace "*bgt_reversed" and
2302         "*ble_reversed".
2303         ("*b<rcond>_reversed"): Replace "*blt_reversed" and
2304         "*blt_reversed".
2305         ("s<ncond>"): Replace "sgeu", "sltu", "seq", "sgtu", "sleu" and
2306         "sne".
2307         ("s<rcond>"): Replace "sge" and "slt".
2308         ("s<ocond>"): Replace "sgt" and "sle".
2309         ("clear.[bwd] [rx=rx+rz.S2]"): Replace split clear.d
2310         [rx=rx+rz.S2], clear.w [rx=rx+rz.S2] and clear.b [rx=rx+rz.S2].
2311         ("clear.[bwd] [rx=rx+i]"): Replace splits clear.d [rx=rx+i],
2312         clear.w [rx=rx+i] and clear.b [rx=rx+i].
2314 2005-05-17  Jakub Jelinek  <jakub@redhat.com>
2316         * varasm.c (struct constant_descriptor_tree): Add hash field.
2317         (const_desc_hash): Just return hash field.
2318         (const_desc_eq): If hash values are different, return 0 immediately.
2319         (output_constant_def): Compute hash field of temporary key, use
2320         htab_find_slot_with_hash instead of htab_find_slot.  Set hash in
2321         newly built constant descriptor.
2322         (lookup_constant_def): Compute hash field of temporary key, use
2323         htab_find_with_hash instead of htab_find.
2325 2005-05-16  Richard Henderson  <rth@redhat.com>
2327         * config/i386/sse.md (mulv4si3): New.
2329 2005-05-17  Hans-Peter Nilsson  <hp@axis.com>
2331         * config/cris/cris.h (EXTRA_CONSTRAINT_T): Remove FIXME and
2332         tests for noncanonical versions of reg+constant and
2333         reg+reg*{1,2,4}.
2335 2005-05-16  Richard Henderson  <rth@redhat.com>
2336             Steven Bosscher <stevenb@suse.de>
2338         PR tree-opt/21399
2339         * tree-eh.c (maybe_clean_or_replace_eh_stmt): Rename from 
2340         maybe_clean_eh_stmt; take old stmt parameter.  Update EH
2341         region data structure to match replacement.
2342         * tree-flow.h: Update to match.
2343         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
2344         * tree-ssa-dom.c (optimize_stmt): Likewise.
2345         * tree-ssa-pre.c (eliminate): Likewise.
2346         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
2348 2005-05-16  Caroline Tice  <ctice@apple.com>
2350         * bb-reorder.c (verify_hot_cold_block_grouping):  Replace
2351         internal_error with gcc_assert.
2352         * dwarf2out.c (dwarf2out_switch_text_section):  Likewise.
2353         * function.h (struct function): Remove space between "*" and
2354         struct field names.
2355         * varasm.c (initialize_cold_section_name):   Add gcc_assert;
2356         modify to use alloca.
2357         (unlikely_text_section): Add check for flag_function_sections.
2358         (assemble_start_function):  Move call to resolve_section, so it
2359         comes before first call to unlikely_text_section.
2360         (assemble_end_function):  Add test and call to function_section
2361         if appropriate.
2362         
2363 2005-05-16  Roger Sayle  <roger@eyesopen.com>
2365         * c-common.c (c_common_truthvalue_conversion): Use fold_build2
2366         instead of build_binary_op when performing code transformations
2367         to avoid error messages about constructs not it the user's code.
2369 2005-05-16  Kazu Hirata  <kazu@cs.umass.edu>
2371         * tree-ssa-pre.c: Fix a comment typo.
2373 2005-05-16  Richard Henderson  <rth@redhat.com>
2375         PR target/21556
2376         * config/ia64/ia64.md (load_dtpmod, load_ltoff_dtpmod, load_dtprel,
2377         load_dtprel64, load_dtprel22, load_dtprel_gd, load_ltoff_dtprel,
2378         add_dtprel, add_dtprel14, add_dtprel22, load_tprel, load_tprel64,
2379         load_tprel22, load_tprel_ie, load_ltoff_tprel, add_tprel, add_tprel14,
2380         add_tprel22): Remove mode from symbolic operand.
2382 2005-05-16  Richard Sandiford  <rsandifo@redhat.com>
2384         * optc-gen.awk: Include intl.h after the externally-provided files.
2386 2005-05-16  Kazu Hirata  <kazu@cs.umass.edu>
2388         * tree-ssa-copy.c (copy_prop_visit_assignment): Clean up by
2389         folding a COND_EXPR_COND in a nondestructive manner.
2391 2005-05-16  Fariborz Jahanian <fjahanian@apple.com>
2393         * config/rs6000/altivec.md (altivec_vmrghb, altivec_vmrghh, 
2394         altivec_vmrghw, altivec_vmrglb, altivec_vmrglh, altivec_vmrglw):
2395         New values for vec_select definitions and bitmask for element
2396         selection.
2397          
2398 2005-05-16  Kazu Hirata  <kazu@cs.umass.edu>
2400         * dwarf2out.c (used_rtx_varray): Rename to used_rtx_array.
2401         Change the type to VEC(rtx,gc)*.
2402         (mem_loc_descriptor, add_const_value_attributes,
2403         dwarf2out_init): Adjust uses of used_rtx_varray.
2405         * tree-data-ref.c (compute_all_dependences): Change the type
2406         of dependence_relations to VEC(ddr_p,heap)**.
2407         (compute_data_dependences_for_loop): Change the type of
2408         allrelations to VEC(ddr_p,heap)*.
2410 2005-05-16  Richard Sandiford  <rsandifo@redhat.com>
2412         * Makefile.in (options.c): Tell optc-gen.awk to include config.h,
2413         system.h, coretypes.h and tm.h.
2414         (options.o): Update dependencies accordingly.
2415         * optc-gen.awk: Allow header_name to be a list of filenames.
2416         Handle the "Condition" flag.
2417         * opts.h (CL_DISABLED): New flag.
2418         * opts.c (handle_option): Print an error for CL_DISABLED options.
2419         * doc/options.texi: Document the "Condition" option flag.
2421 2005-05-16  Paolo Bonzini  <bonzini@gnu.org>
2423         * tree-inline.c (estimate_num_insns_1): Handle VEC_COND_EXPR.
2425 2005-05-15  Roger Sayle  <roger@eyesopen.com>
2427         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Only
2428         check for TREE_OVERFLOW on INTEGER_CST trees.
2429         * tree-chrec.c (chrec_convert): Only clear TREE_OVERFLOW on
2430         CONSTANT_CLASS_P tree nodes.
2432 2005-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2434         PR target/21551
2435         * config/ia64/ia64.c (ia64_expand_move): Don't add addend twice.
2437 2005-05-15  Daniel Berlin  <dberlin@dberlin.org>
2438             
2439         Fix PR tree-optimization/21576
2440         
2441         * tree-ssa-pre.c (expression_node_pool): New pool.
2442         (comparison_node_pool): Ditto.
2443         (list_node_pool): Ditto.
2444         (pool_copy_list): New function.
2445         (phi_translate): Handle CALL_EXPR.
2446         (valid_in_set): Ditto.
2447         (create_expression_by_pieces): Ditto.
2448         (insert_into_preds_of_block): Ditto.
2449         (insert_aux): Ditto.
2450         (compute_avail): Ditto.
2451         (create_value_expr_from): Handle TREE_LIST and CALL_EXPR.
2452         (can_value_number_call): New function.
2453         (find_leader): Update comment.
2454         (init_pre): Create new pools.
2455         (fini_pre): Free new pools.
2456         (pass_pre): Add TODO_update_ssa for the future when we are going
2457         to need vops.
2458         * tree-vn.c (expressions_equal_p): Handle TREE_LIST.
2459         (set_value_handle): Ditto.
2460         (get_value_handle): Ditto.
2462 2005-05-15  Richard Earnshaw  <richard.earnshaw@arm.com>
2464         * arm.c (thumb_unexpanded_epilogue): Delete unused variable 'mode'.
2466 2005-05-15  Andreas Jaeger  <aj@suse.de>
2468         * gcc.c (pfatal_pexecute): Remove unused local function.
2470 2005-05-15  Richard Sandiford  <rsandifo@redhat.com>
2472         * optc-gen.awk: Remove excess indentation.
2473         * opth-gen.awk: Likewise.
2475 2005-05-14  Kaz Kojima  <kkojima@gcc.gnu.org>
2477         * config/sh/sh.c (sh_output_mi_thunk): Check cfun->cfg instead
2478         of basic_block_info.  Call init_flow and find_basic_blocks
2479         before dbr_schedule if needed.
2481 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
2483         * tree-optimize.c (init_tree_optimization_passes): Move
2484         pass_cd_dce in place of the last pass_dce.
2486         PR tree-optimization/21563
2487         * tree-vrp.c (compare_value): Return boolean_false_node when
2488         SSA_NAME in "if (SSA_NAME == CST)" is strictly smaller than or
2489         strictly larger than CST.
2491 2005-05-14  Nathan Sidwell  <nathan@codesourcery.com>
2492             Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2494         * config/vax/vax.c: (print_operand_address) Use gcc_unreachable() and
2495         gcc_assert().
2496         (rev_cond_name) Likewise.
2497         (vax_float_literal) Likewise.
2498         * config/vax/vax.md: Likewise.
2500 2005-05-14  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2502         * config/vax/vax.md: define_constant VAXens AP, FP, SP and PC
2503         registers and use them (specifically the stack pointer).
2504         * config/vax/vax.h: Use above defines right here.
2506         * config/vax/vax.c: (override_options) Remove 'register' keyword.
2507         (split_quadword_operands) Likewise. (rev_cond_name) Likewise.
2508         (vax_float_literal) Likewise. (vax_rtx_costs) Remove trailing
2509         whitespace.
2510         * config/vax/vax.h: Remove 'register' keyword. Misc. whitespace fixes,
2511         mostly removal of trailing spaces...
2512         * config/vax/vax-modes.def: Remove trailing whitespace.
2514         * config/vax/elf.h: Update whitespace.
2516 2005-05-14  Richard Guenther  <rguenth@gcc.gnu.org>
2518         Revert
2519         2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
2520         * fold-const.c (fold_indirect_ref_1): Avoid removing
2521         NOP_EXPRs with type qualifiers like const.
2523 2005-05-14  Jan Hubicka  <jh@suse.cz>
2525         Patch by Richard Henderson:
2526         * tree-eh.c (tree_can_throw_internal, tree_can_throw_external):
2527         Handle RESX expressions properly.
2529         * tree-eh.c (record_stmt_eh_region): Use add_stmt_to_eh_region.
2530         (add_stmt_to_eh_region_fn): Nest into CALL_EXPR.
2531         (remove_stmt_from_eh_region_fn): Likewise.
2533         * tree-cfg.c (execute_warn_function_return): Break out noreturn
2534         warning too..
2535         (execute_warn_function_noreturn): ... here.
2536         (pass_warn_function_noreturn): New pass.
2537         * tree-pass.h (pass_warn_function_noreturn): Declare
2538         * tree-optimize.c (init_tree_optimization_passes): Move return
2539         warnings early and add noreturn warnings at place of previous
2540         return warnings.
2542 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
2544         * tree-ssa-live.c (tpa_init, tpa_delete, tpa_compact,
2545         root_var_init, type_var_init): Use VEC instead of VARRAY.
2546         * tree-ssa-live.h (tree_partition_associator_d): Change the
2547         type of trees to VEC(tree,heap)*.
2548         (tpa_tree): Use VEC instead of VARRAY.
2550 2005-05-14  Richard Guenther  <rguenth@gcc.gnu.org>
2552         * fold-const.c (div_if_zero_remainder): New function.
2553         (try_move_mult_to_index): Use it.
2555 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
2557         * tree-eh.c (leh_tf_state): Change the type of dest_array to
2558         VEC(tree,heap)*.
2559         (maybe_record_in_goto_queue, lower_try_finally_onedest,
2560         lower_try_finally_copy, lower_try_finally_switch,
2561         lower_try_finally): Use VEC instead of VARRAY.
2563 2005-05-14  Hans-Peter Nilsson  <hp@axis.com>
2565         * config/cris/cris.h (Node: Register Classes): Remove obsoleted
2566         comment regarding defined register classes.
2567         (LEGITIMIZE_RELOAD_ADDRESS): Do not define.
2569 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
2571         * tree-optimize.c (init_tree_optimization_passes): Move
2572         pass_merge_phi before the first pass_dominator.
2574 2005-05-13  Richard Earnshaw  <richard.earnshaw@arm.com>
2576         * arm.h (INITIALIZE_TRAMPOLINE): Make the call to __clear_cache
2577         unconditional.
2579 2005-05-13  Josh Conner  <jconner@apple.com>
2581         * config/arm/arm.c (arm_size_return_regs): New.
2582         (thumb_unexpanded_epilogue): replace in-line calculation
2583         of return registers with call to arm_size_return_regs.
2584         (use_return_insn): Include test of which registers are
2585         being used to hold return values, to accommodate
2586         vector return values.
2588 2005-05-11  Aldy Hernandez  <aldyh@redhat.com>
2590         * config/rs6000/sysv4.opt (mlittle): Handle.
2592         * config/rs6000/rs6000.c (rs6000_handle_option): Set
2593         target_flags_explicit when appropriate.
2595 2005-05-13  J"orn Rennecke <joern.rennecke@st.com>
2597         PR middle-end/20714:
2598         * optabs.c (no_conflict_data): New struct.
2599         (no_conflict_move_test): New function.
2600         (emit_no_conflict_block): Use it.
2602 2005-05-13  Adam Nemet  <anemet@lnxw.com>
2604         * doc/invoke.texi (Debugging Options): Option
2605         -fdump-translation-unit only works with C++ now.
2607 2005-05-13  Hans-Peter Nilsson  <hp@axis.com>
2609         Replace calls to abort in CRIS port.
2610         * config/cris/cris.h (CRIS_ASSERT): New macro.
2611         * config/cris/cris.md ("*movsi_internal"): Use CRIS_ASSERT and
2612         internal_error instead of abort.
2613         ("movsi"): Ditto.  Unquote preparation statement section.
2614         ("call", "call_value"): Ditto, but use gcc_assert where
2615         appropriate.  Tweak comments.
2616         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Define in terms of
2617         CRIS_ASSERT.
2618         (cris_op_str): Call internal_error, not abort.
2619         (cris_print_operand): Tweak "abort" reference to "die" in comment.
2620         (cris_initial_elimination_offset): Call gcc_unreachable, not abort.
2621         (cris_notice_update_cc): Call internal_error, not abort.
2622         (cris_expand_return, cris_expand_prologue, cris_gen_movem_load)
2623         (cris_emit_movem_store, cris_asm_output_symbol_ref)
2624         (cris_output_addr_const_extra): Use CRIS_ASSERT, don't call abort.
2625         (cris_symbol, cris_got_symbol): Use CRIS_ASSERT instead of
2626         ENABLE_CHECKING-guarded abort call.
2627         (cris_split_movdx): Use CRIS_ASSERT instead of abort with test.
2628         Use internal_error at end of test-chain.
2630 2005-05-13  J"orn Rennecke <joern.rennecke@st.com>
2632         PR rtl-optimization/20769:
2633         * bt-load.c (compute_defs_uses_and_gen): Check for the blockage
2634         pattern emitted by expand_nl_goto_receiver.
2636         PR middle-end/20793:
2637         * integrate.c (allocate_initial_values): Update register liveness
2638         information.
2640 2005-05-13  Josh Conner  <jconner@apple.com>
2642         * arm.c (arm_return_in_memory): Add handling for vector return types.
2644 2005-05-13  David Ung  <davidu@mips.com>
2646         * config/mips/mips.h (processor_type): Add new PROCESSOR_4KP
2647         name.
2648         * config/mips/mips.c: Add 4km alias.
2649         * config/mips/mips.md: Add 4kp to cpu attrib and include 4k.md.
2650         * config/mips/4k.md: New file, add 4Kc/4Kp DFA pipeline
2651         description.
2653 2005-05-13  Jan Hubicka  <jh@suse.cz>
2655         * c-decl.c (finish_function): Suppress "control reaches end of
2656         non-void function" when "no return statement in function
2657         returning non-void" is issued.
2659         * tree-inline.c (copy_body_r): Simplify substituted ADDR_EXPRs.
2660         * tree-optimize.c (pass_gimple): Kill.
2661         (init_tree_optimization_passes): Kill pass_gimple.
2662         * tree-cfg.c (build_tree_cfg): Do verify_stmts to check that we are gimple.
2663         * tree-dump.c (dump_files): Rename .generic to .gimple.*
2665 2005-05-13  J"orn Rennecke <joern.rennecke@st.com>
2667         PR rtl-optimization/20756:
2668         * basic-block.h (PROP_DEAD_INSN): Define.
2669         * flow.c (propagate_one_insn): Set during mark_set_regs call
2670         for a dead insn.
2671         (mark_set_1): Emit a clobber when we are about to delete a dead insn
2672         that kills a live register.
2674 2005-05-13  Adrian Straetling  <straetling@de.ibm.com>
2676         * config/s390/s390.md: ("DBL"): New mode attribute.
2677         ("*movmem_long_64", "*movmem_long_31"): Merge to "*movmem_long".
2678         ("*clrmem_long_64", "*clrmem_long_31"): Merge to "*clrmem_long".
2679         ("*cmpmem_long_64", "*cmpmem_long_31"): Merge to "*cmpmem_long".
2681 2005-05-13  Richard Guenther  <rguenth@gcc.gnu.org>
2683         * c-format.c (check_format_arg): Handle string literals of
2684         the form &"string"[offset].
2686         * g++.dg/warn/format4.C: New testcase.
2688 2005-05-13  Kazu Hirata  <kazu@cs.umass.edu>
2690         * config/mips/3000.md, config/mips/4000.md,
2691         config/mips/4100.md, config/mips/4300.md, config/mips/4600.md,
2692         config/mips/5000.md, config/mips/7000.md, config/mips/9000.md,
2693         config/mips/generic.md, config/pdp11/pdp11.md,
2694         config/sh/crt1.asm, config/sh/lib1funcs.asm,
2695         config/sh/sh-modes.def, config/sh/sh-protos.h,
2696         config/sh/shmedia.md, config/sh/ushmedia.h: Update copyright.
2698 2005-05-13  Richard Henderson  <rth@redhat.com>
2700         * function.c (instantiate_virtual_regs_in_insn): Do not simplify
2701         addition to move unless dest is a register.  Do not skip
2702         instantiation in dest on addition simplification.
2704 2005-05-13  Hans-Peter Nilsson  <hp@axis.com>
2706         * config/cris/cris.c (cris_print_operand) <case 'H'; case
2707         CONST_INT>: Use operand_subword and HOST_WIDE_INT_PRINT_DEC for
2708         output; don't have special case for HOST_BITS_PER_WIDE_INT == 32.
2710 2005-05-13  Jan Hubicka  <jh@suse.cz>
2712         * basic-block.h (FOR_ALL_BB_FN): New macro.
2713         (init_flow): Initialize cfg structure.
2714         * function.c (allocate_struct_function): Do not initialize cfg structure.
2715         * tree-cfg.c (init_empty_tree_cfg): Break out from ...
2716         (build_tree_cfg): ... here.
2717         * tree-flow.h (init_empty_tree_cfg): Declare.
2719 2005-05-12  Steven Bosscher <stevenb@suse.de>
2721         Fix PR tree-optimization/21520
2722         * tree-ssa-pre.c (phi_translate): Use fully_constant_expression
2723         to attempt to fold constants.
2725 2005-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
2727         * config/sh/sh.c: Declare the prototype of sh_adjust_unroll_max
2728         only when TARGET_ADJUST_UNROLL_MAX is defined.
2729         (general_movsrc_operand): Use the C style comment.
2730         (ua_offset): Use prototype.
2732 2005-05-12  Zdenek Dvorak  <dvorakz@suse.cz>
2734         * tree-ssa-loop-im.c (struct mem_ref): Add field "next".
2735         (struct hmr_data, hoist_memory_reference, memref_del,
2736         struct fmrv_data): Removed.
2737         (hoist_memory_references, free_mem_ref, free_mem_refs): New functions.
2738         (gather_mem_refs, gather_mem_refs_stmt): Add new references to the
2739         list.
2740         (find_more_ref_vops): Traverse the list of memory references.
2741         (determine_lsm_loop): Work with the list of memory references instead
2742         of traversing the hashtable.
2744 2005-05-12  Steven Bosscher  <stevenb@suse.de>
2745             Stuart Hastings <stuart@apple.com>
2746             Jan Hubicka  <jh@suse.cz>
2748         * except.c  (duplicate_eh_region_1, duplicate_eh_region_2,
2749         duplicate_eh_regions): New functions, based on old
2750         implementation removed with RTL inliner.
2751         (reachable_next_level): Modify behaviour pre-inline.
2752         * except.h (duplicate_eh_regions_map, duplicate_eh_regions):
2753         Declare.
2754         * function.h (struct function): Add after_inlining flag.
2755         * tree-optimize.c (tree_rest_of_compilation): Set it.
2756         * tree-eh.c (add_stmt_to_eh_region_fn): Initialize hashtable
2757         when needed.
2758         * tree-cfg.c (label_to_block_fn): Deal with cases where
2759         label was never insterted into code.
2761 2005-05-12  Zack Weinberg  <zack@codesourcery.com>
2763         * doc/cpp.texi: Document that #sccs is a synonym for #ident.
2765 2005-05-12  Daniel Berlin  <dberlin@dberlin.org>
2767         Fix PR tree-optimization/21532
2768         * tree-ssa-pre.c (create_expression_by_pieces): stmt
2769         needs to go onto the inserted_exprs list.
2771 2005-05-12  Ian Lance Taylor  <ian@airs.com>
2773         * c-common.h (statement_code_p): Don't declare.
2774         (STATEMENT_CODE_P): Don't define.
2775         (INIT_STATEMENT_CODES): Don't define.
2776         * c-common.c (statement_code_p): Don't define.
2778 2005-05-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
2780         * config/sparc/sparc.h: Remove dead code.
2781         * config/sparc/sparc.c (sparc_compute_frame_size): Use
2782         FIRST_PARM_OFFSET for the size of the register window area.
2783         (emit_save_regs): Rename into emit_save_or_restore_regs.
2784         Add 'action' parameter.  Use 4095 as upper bound for the offset.
2785         Pass 'action' to save_or_restore_regs.
2786         (emit_restore_regs): Delete.
2787         (sparc_expand_prologue): Call emit_save_or_restore_regs.
2788         (sparc_expand_epilogue): Likewise.
2789         * config/sparc/sparc.md (mode macro P): Move.
2790         (movdi_insn_sp32_v9, movdi_insn_sp32): Swap.
2791         (mov<V32:mode> expander): Move to the top of the V32 section.
2792         (movdf_insn_sp32_v9_no_fpu, movdf_insn_sp32_v9): Swap.
2793         (movtf_insn_sp64_hq, movtf_insn_sp64): Swap.
2794         (sibcall_epilogue): Move.
2796 2005-05-12  Richard Earnshaw  <richard.earnshaw@arm.com>
2798         PR target/21501
2799         * arm.c (arm_gen_constant): Sign-extend intermediate values when
2800         synthesizing a constant of the difference of two immediates.
2802 2005-05-12  Richard Earnshaw  <richard.earnshaw@arm.com>
2804         * arm/vfp.md (negsf2_vfp): Add alternative using integer registers.
2805         (negdf2_vfp): Likewise.  Convert to define_insn_and_split and split
2806         the alternatives using integer registers into the appropriate
2807         primitives.
2809 2005-05-11 Kenneth Zadeck <zadeck@naturalbridge.com>
2811         * bitmap.c (bitmap_elmt_to_freelist, bitmap_element_allocate,
2812         bitmap_elt_clear_from, bitmap_clear): Changed freelist structure.
2813         * bitmap.h: Fixed comments.
2815 2005-05-11  Richard Henderson  <rth@redhat.com>
2817         PR target/21412
2818         * config/ia64/ia64.c (TARGET_CANNOT_FORCE_CONST_MEM): New.
2819         (ia64_cannot_force_const_mem): New.
2820         (tls_symbolic_operand_type): New.
2821         (ia64_legitimate_constant_p): New.
2822         (ia64_expand_load_address): Return true on success.  Improve
2823         checks for when we should not split.
2824         (ia64_expand_tls_address): New addend operand.  Distribute it
2825         as appropriate to the tls_kind.  Delay referencing gp.
2826         (ia64_expand_move): Split symbolic addend as necessary.  Handle
2827         tls symbols with addends.
2828         * config/ia64/ia64-protos.h: Update.
2829         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): False for r0,
2830         p0, f0, f1, and r13.
2831         (LEGITIMATE_CONSTANT_P): Move to ia64_legitimate_constant_p.
2832         * config/ia64/ia64.md (UNSPEC_DTPMOD): New.
2833         (symbolic_operand splitter): Pass everything through
2834         ia64_expand_load_address and FAIL or DONE as appropriate.
2835         (load_fptr): Only accept after reload.
2836         (load_fptr_internal1, gprel64_offset, load_gprel64, load_symptr_high,
2837         load_symptr_low, load_ltoff_dtpmod,
2838         (load_dtpmod): New.
2839         (load_dtprel): Only accept tls symbols.
2840         (load_dtprel64, load_dtprel22): Likewise.
2841         (load_tprel, load_tprel64, load_tprel22): Likewise.
2842         (load_dtprel_gd, load_ltoff_dtprel, load_tprel_ie): New.
2843         (add_dtprel): Only accept tls symbols.  Canonicalize PLUS.
2844         (add_dtprel14, add_dtprel22): Likewise.
2845         (add_tprel, add_tprel14, add_tprel22): Likewise.
2846         * config/ia64/predicates.md (small_addr_symbolic_operand): New.
2847         (any_offset_symbol_operand, aligned_offset_symbol_operand): New.
2848         (got_symbolic_operand): Check CONST offsets.
2849         (tls_symbolic_operand, ld_tls_symbolic_operand): New.
2850         (ie_tls_symbolic_operand, le_tls_symbolic_operand): New.
2851         (move_operand): Don't handle tls here.  Check CONST offsets.
2853 2005-05-11  Richard Sandiford  <rsandifo@redhat.com>
2855         * config/mips/7000.md (rm7_impy_si_mult): Just match imul and imadd.
2856         Remove hilo_operand check.
2857         (rm7_impy_si_mul): Just match imul3.  Remove hilo_operand check.
2858         * config/mips/predicates.md (hilo_operand): Delete.
2860 2005-05-11  Richard Sandiford  <rsandifo@redhat.com>
2862         * config/mips/sr71k.md, config/mips/7000.md: Reformat.
2864 2005-05-11  Kazu Hirata  <kazu@cs.umass.edu>
2866         PR tree-optimizer/18472
2867         * tree-if-conv.c (tree_if_convert_stmt,
2868         if_convertible_modify_expr_p): Don't handle GOTO_EXPR.
2870 2005-05-11  Jan Hubicka  <jh@suse.cz>
2872         * Makefile.in (tree-eh.o: Kill gt-tree-eh.h dependency.
2873         (GTFILES): add except.h.
2874         * except.c (eh_status): Add throw_stmt_table.
2875         (set_eh_throw_stmt_table, get_eh_throw_stmt_table): New functions.
2876         * except.h (add_stmt_to_eh_region_fn, remove_stmt_from_eh_region_fn,
2877         lookup_stmt_eh_region_fn): Declare.
2878         (throw_stmt_node): New structure.
2879         (set_eh_throw_stmt_table, get_eh_throw_stmt_table): New.
2880         * gengtype.c (open_base_files): Add except.h to inlines.
2881         * tree-eh.c (throw_stmt_node): Kill.
2882         (record_stmt_eh_region): Update.
2883         (add_stmt_to_eh_region_fn): Break out from ...
2884         (add_stmt_to_eh_region): ... here.
2885         (remove_stmt_from_eh_region_fn): Break out from ...
2886         (remove_stmt_from_eh_region): ... here.
2887         (lookup_stmt_eh_region_fn): Break out from ...
2888         (lookup_stmt_eh_region): ... here.
2889         (honor_protect_cleanup_actions): Use build_resx.
2890         (lower_try_finally_onedest): Likewise.
2891         (lower_try_finally_copy): Likewise.
2892         (lower_try_finally_switch): Likewise.
2893         (lower_eh_constructs): Update eh table construction.
2894         * tree.c (build_resx): New.
2895         * tree.h (build_resx): Declare.
2897 2005-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2899         * libgcov.c (gcov_exit): Set prefix_length to 0 if no relocation
2900         is needed.
2902 2005-05-11  Kazu Hirata  <kazu@cs.umass.edu>
2904         * fold-const.c, libgcov.c: Fix comment typos.
2906         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove
2907         redundant code.
2909 2005-05-11  Daniel Jacobowitz  <dan@codesourcery.com>
2911         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
2912         * config/arm/arm.h (SUBTARGET_FRAME_POINTER_REQUIRED): Provide
2913         default definition.
2914         (FRAME_POINTER_REQUIRED): Use SUBTARGET_FRAME_POINTER_REQUIRED.
2916 2005-05-11  Nathan Sidwell  <nathan@codesourcery.com>
2918         PR bootstrap/21481
2919         * crtstuff.c: Include auto-host.h again, for now.
2921 2005-05-11  Richard Sandiford  <rsandifo@redhat.com>
2923         * config/mips/24k.md: Remove trailing whitespace.
2925 2005-05-11  David Ung  <davidu@mips.com>
2927         * config/mips/mips.md (type): Add imul3.
2928         (length, hazard, may_clobber_hilo): Check for imul3.
2929         (mulsi3_mult3, muldi3_mult3, *muls, <su>mulsi3_highpart_mulhi_internal)
2930         (*<su>mulsi3_highpart_neg_mulhi_internal): Set attr to imul3.
2931         * config/mips/24k.md (r24k_int_mul3): Enable this reservation
2932         for a 3 operand mul and its bypasses.
2933         * config/mips/3000.md (r3k_imul): Add imul3 to reservations.
2934         * config/mips/4000.md (r4k_imul): Likewise.
2935         * config/mips/4100.md (r4100_imul_si, r4100_imul_di):  Likewise.
2936         * config/mips/4130.md (vr4130_class, vr4130_mulsi)
2937         (vr4130_muldi): Likewise.
2938         * config/mips/4300.md (r4300_imul_si, r4300_imul_di): Likewise.
2939         * config/mips/4600.md (r4600_imul, r4650_imul): Likewise.
2940         * config/mips/5000.md (r5k_imul_si, r5k_imul_di): Likewise.
2941         * config/mips/5400.md (ir_vr54_imul_si, ir_vr54_imul_di)
2942         (ir_vr54_imadd_si): Likewise.
2943         * config/mips/5500.md (ir_vr55_imul_si, ir_vr55_imul_di):  Likewise.
2944         * config/mips/7000.md (rm7_impy_si_mult, rm7_impy_si_mul)
2945         (rm7_impy_di): Likewise.
2946         * config/mips/9000.md (rm9k_mulsi, rm9k_muldi):  Likewise.
2947         * config/mips/generic.md (generic_imul): Likewise.
2948         * config/mips/sb1.md (ir_sb1_mulsi, ir_sb1_muldi): Likewise.
2949         * config/mips/sr71k.md (ir_sr70_imul_si, ir_sr70_imul_di):  Likewise.
2951 2005-05-11  J"orn Rennecke <joern.rennecke@st.com>
2953         PR middle-end/20371:
2954         * tree.h (record_layout_info_s): New member prev_packed.
2955         * stor-layout.c (update_alignment_for_field): Fix comment about
2956         KNOWN_ALIGN.  For MS bitfields, if we start a new run, make sure
2957         we start it properly aligned.
2958         (place_field): At the beginning of a record, pass 0 as KNOWN_ALIGN
2959         to update_alignment_for_field, and recompute it afterwards using
2960         the alignment of the record.
2961         When a packed bitfield precedes an MS bitfield, don't add padding
2962         at the end of the packed bitfield on behalf of the base type of
2963         the packed bit field.
2964         Don't adjust rli->bitpos at the end
2965         of an MS bitfield run if we already adjusted bitpos/offset for an
2966         alignment as large or larger than the bitfield type size.
2967         Take possible record alignment > BIGGEST_ALIGNMENT into account
2968         when calculating actual_align.
2969         Only put packed buit fields into rli->prev_field if they end up
2970         suitably aligned.
2971         Also set rli->remaining_in_alignment when we re-set rli->prev_field.
2972         Update rli->remaining_in_alignment when we have already started a
2973         run of bit fields and we process a packed bit field.
2975 2005-05-11  Sebastian Pop  <pop@cri.ensmp.fr>
2977         * tree-data-ref.c (find_data_references_in_loop): Give up when
2978         the body of the loop contains a CALL_EXPR or an ASM_EXPR: they
2979         may embed arbitrary side effects.
2980         Remove the assumption that GIMPLE form contains a single array
2981         access per statement.
2982         When the statement contains virtual operands, fail if it is not
2983         a MODIFY_EXPR or a CALL_EXPR.
2984         Return after the dont know node is inserted.
2986 2005-05-11  Richard Earnshaw  <richard.earnshaw@arm.com>
2988         * arm.md (negsf2, negdf2): Permit these expands when compiling for VFP.
2990 2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
2992         PR middle-end/19807
2993         PR tree-optimization/19639
2994         * fold-const.c (try_move_mult_to_index): Handle INTEGER_CST
2995         and generic summands for char* as s * delta, too, folding &a[i]
2996         CODE x to &a[i CODE x/s].  Use tree_int_cst_equal
2997         for comparison of steps.  Convert types for index addition.
2998         (fold_binary): Adjust the callers to always dispatch to
2999         try_move_mult_to_index.
3000         * tree-ssa-propagate.c (set_rhs): Avoid setting rhs to
3001         expr with non-gimple ARRAY_REF offset.
3003 2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
3005         * fold-const.c (fold_indirect_ref_1): Avoid removing
3006         NOP_EXPRs with type qualifiers like const.
3008 2005-05-11  Richard Henderson  <rth@redhat.com>
3010         PR c/21502
3011         * c-decl.c (finish_decl): Propagate the completed array type of
3012         a global variable into the binding.
3014 2005-05-10  Matt Kraai  <kraai@ftbfs.org>
3016         * Makefile.in (gtype-desc.o, build/genautomata.o)
3017         (build/varray.o): Depend on $(VARRAY_H).
3019 2005-05-10  Diego Novillo  <dnovillo@redhat.com>
3021         * tree-optimize.c (init_tree_optimization_passes): Re-organize
3022         optimization passes to do an initial batch of scalar cleanups.
3024 2005-05-10  Ian Lance Taylor  <ian@airs.com>
3026         * read-rtl.c (struct macro_traverse_data): Define.
3027         (map_attr_string): New static function, broken out of
3028         apply_macro_to_string.
3029         (mode_attr_index, apply_mode_maps): New static functions.
3030         (apply_macro_to_string): Call map_attr_string.
3031         (apply_macro_to_rtx): Add mode_maps and infile parameters.  Change
3032         all callers.
3033         (apply_macro_traverse): Expect data to point to a struct
3034         macro_traverse_data.
3035         (read_rtx): Add mode_maps local variable.  Use mode_traverse_data
3036         to pass data through htab_traverse.
3037         (read_rtx_1): Add mode_maps parameter.  Change all callers.
3038         Handle mode names which are attribute strings.
3039         * doc/md.texi (Substitutions): Rename from String Substitutions.
3040         Change references.  Document using attributes as modes.
3042 2005-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
3044         * tree-cfg.c (tree_duplicate_sese_region): Update profile.
3045         * tree-optimize.c (init_tree_optimization_passes) Swap
3046         pass_ch and pass_profile.
3047         * tree-ssa-loop-ch.c (copy_loop_headers): Do not update profile
3048         here.  Remove rewrite_into_loop_closed_ssa call.
3050 2005-05-10  Adrian Straetling  <straetling@de.ibm.com>
3052         * config/s390/s390.c: (s390_const_double_ok_for_constraint_p): New
3053         function.
3054         (legitimate_reload_constant_p): Add check for const double zero.
3055         * config/s390/s390.md: Add comment for constraint letter 'G'.
3056         ("*movdf_64", "*movdf_31", "movsf"): Add constraint and proper
3057         attributes for new case.
3058         * config/s390/s390.h: (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Define it as
3059         s390_const_double_ok_for_constraint_p.
3060         * config/s390/s390-protos.h (s390_const_double_ok_for_constraint_p):
3061         Add prototype.
3063 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
3065         PR tree-optimization/21170
3066         * tree-ssa-dom.c, tree-ssa-threadupdate.c: Replace
3067         rewrite_ssa_into_ssa in comments with update_ssa.
3069 2005-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
3071         * tree-ssa-loop-im.c: Include hashtab.h.
3072         (struct mem_ref_loc): New.
3073         (struct mem_ref): Describe the set of references with the same
3074         shape.
3075         (max_stmt_uid, get_stmt_uid, record_mem_ref, free_mem_refs,
3076         maybe_queue_var, fem_single_reachable_address,
3077         for_each_memref, single_reachable_address,
3078         is_call_clobbered_ref, determine_lsm_reg): Removed.
3079         (record_mem_ref_loc, free_mem_ref_locs, determine_lsm_ref,
3080         hoist_memory_reference, memref_hash, memref_eq, memref_del,
3081         gather_mem_refs_stmt, gather_mem_refs, find_more_ref_vops):
3082         New functions.
3083         (rewrite_mem_refs, schedule_sm): Use mem_ref_loc list.
3084         (determine_lsm_loop): Rewritten.
3085         (determine_lsm): Do not set stmt uids.
3087 2005-05-10  Adrian Straetling  <straetling@de.ibm.com>
3089         * config/s390/s390.md: Add comment lines for 'f' and 't' constraint
3090         letters.
3092 2005-05-10  Adrian Straetling  <straetling@de.ibm.com>
3094         * config/s390/s390.md: ("anddi3","andsi3","andhi3","andqi3"): Merge.
3095         ("iordi3", "iorsi3", "iorhi3", "iorqi3"): Merge.
3096         ("xordi3", "xorsi3", "xorhi3", "xorqi3"): Merge.
3098 2005-05-10  Jeff Law  <law@redhat.com>
3100         * tree-ssa-dom.c (dom_opt_finalize_block): Do not call
3101         thread_across_edge for any abnormal edges.
3103 2005-05-10  Richard Henderson  <rth@redhat.com>
3105         * config/ia64/ia64.c (ia64_expand_atomic_op): New.
3106         * config/ia64/ia64-protos.h: Declare it.
3107         * config/ia64/sync.md (I124MODE, FETCHOP, fetchop_name): New.
3108         (sync_add<I48MODE>, sync_old_add<I48MODE>): Remove.
3109         (sync_<FETCHOP><IMODE>, sync_nand<IMODE>): New.
3110         (sync_old_<FETCHOP><IMODE>, sync_old_nand<IMODE>): New.
3111         (sync_new_<FETCHOP><IMODE>, sync_new_nand<IMODE>): New.
3112         (cmpxchg_rel_<I124MODE>): Split from cmpxchg_acq_<IMODE>.  Zero
3113         extend result; use release semantics.
3114         (cmpxchg_rel_di): Rename from cmpxchg_acq_<IMODE>; use release.
3115         (sync_val_compare_and_swap_<IMODE>): Update to match.
3117 2005-05-10  Richard Henderson  <rth@redhat.com>
3119         * optabs.c (expand_compare_and_swap_loop): Don't clobber old value
3120         before comparing it for success.
3122 2005-05-10  Richard Henderson  <rth@redhat.com>
3124         * config/ia64/sync.md (sync_add<I48MODE>): Fix arguments for
3125         no return value pattern.
3127 2005-05-10  Grigory Zagorodnev  <grigory.zagorodnev@intel.com>
3128             H.J. Lu  <hongjiu.lu@intel.com>
3130         * libgcov.c (create_file_directory): New function. Create
3131         directory for the given file name.
3132         (gcov_max_filename): New static var. Keeps size of the longest
3133         file name.
3134         (gcov_exit): Always try to create directory for output
3135         file. Relocate each filename basing on environment vars.
3136         (__gcov_init): Remember the longest file name.
3137         * tsystem.h: include filenames.h to get IS_DIR_SEPARATOR
3138         * doc/gcov.texi (Cross-profiling): New node documenting
3139         cross-profiling management.
3140         * doc/invoke.texi (-fprofile-arcs): Add xref to cross-profiling.
3142 2005-05-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
3144         * config/sparc/sparc.c (mem_min_alignment): Do not rely
3145         on MEM_ALIGN if TARGET_UNALIGNED_DOUBLES.
3147 2005-05-10  Bob Wilson  <bob.wilson@acm.org>
3149         * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Rearrange special
3150         case code to avoid one move instruction.
3151         (__umodsi3, __modsi3): Merge duplicated code sequences.
3153 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
3155         * config/mips/24k.md, config/sh/divtab.c, config/sh/sh.c,
3156         config/sh/sh.md, config/sh/superh.h: Fix comment typos.
3157         * doc/invoke.texi: Fix typos.
3159         * tree-data-ref.c (analyze_array_indexes, analyze_array,
3160         init_data_ref, access_functions_are_affine_or_constant_p,
3161         free_data_refs): Use VEC instead of VARRAY.
3162         * tree-data-ref.h (data_reference): Change the type of
3163         access_fns to VEC(tree,gc)*.
3164         (DR_ACCESS_FN, DR_NUM_DIMENSIONS): Use VEC instead of VARRAY.
3166 2005-05-10  Gabor Loki <loki@gcc.gnu.org>
3168         PR c/17913
3169         * c-typeck.c (build_conditional_expr): Remove reducing cond_expr.
3170         * fold-const.c (fold): Expand the condition of reducing cond_expr.
3171         (contains_label_1, contains_label_p): New functions for checking
3172         labels in a sub-tree.
3174 2005-05-10  Joseph S. Myers  <joseph@codesourcery.com>
3176         PR c/21342
3177         * c-decl.c (pushdecl): When there is a declaration in the current
3178         scope and the declarations are external linkage, check for
3179         compatibility with the type in the external scope and update the
3180         type in the external scope with the composite type information.
3181         Do not form a composite type of the new type and the visible type
3182         if they are incompatible.
3184 2005-05-10  Nathan Sidwell  <nathan@codesourcery.com>
3186         * crtstuff.c: Revert part of 2005-05-08 Change.
3187         (IN_LIBGCC2): Define.
3189 2005-05-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
3191         * config/sparc/sparc.c (fp_sethi_p): Test !SPARC_SIMM13_P and
3192         remove redundant test.
3193         (fp_mov_p): Accept 0.
3194         (fp_high_losum_p): Remove redundant test.
3195         * config/sparc/predicates.md (const_high_operand): Explicitly test
3196         (not small_int_operand).
3197         (fp_const_high_losum_operand): New.
3198         * config/sparc/sparc.md (movsi_insn): Do not emit 'clr'.  Reorder.
3199         (movdi_insn_sp32_v9): Use canonical predicates.
3200         (movdi_insn_sp32): Test !TARGET_V9 instead of !TARGET_ARCH64.
3201         (movdi_insn_sp64_novis): Delete.
3202         (movdi_insn_sp64_vis): Rename into movdi_insn_sp64.
3203         (movsf_insn_novis): Delete.
3204         (movsf_insn_vis): Rename into movsf_insn.
3205         (movsf_no_f_insn): Rename into movsf_insn_no_fpu.
3206         (movsf_lo_sum): Use fp_const_high_losum_operand.
3207         (movsf_high): Likewise.
3208         (movsf_high_losum splitter): Likewise.
3209         (mov<V32:mode> expander): Use register_or_zero_operand.
3210         (mov<V64:mode> expander): Likewise.
3211         (movdf_insn_sp32): Use register_or_zero_operand.
3212         (movdf_no_e_insn_sp32): Use register_or_zero_operand.
3213         Rename into movdf_insn_sp32_no_fpu.
3214         (movdf_no_e_insn_v9_sp32): Use register_or_zero_operand.
3215         Rename into movdf_insn_sp32_v9_no_fpu.
3216         (movdf_insn_v9only_novis): Delete.
3217         (movdf_insn_v9only_vis): Rename into movdf_insn_sp32_v9.
3218         (movdf_insn_sp64_novis): Delete.
3219         (movdf_insn_sp64_vis): Rename into movdf_insn_sp64.
3220         (movdf_no_e_insn_sp64): Use register_or_zero_operand.
3221         Rename into movdf_insn_sp64_no_fpu.
3222         (movtf expander): Use register_or_zero_operand.
3223         (movtf_insn_sp32): Delete.
3224         (movtf_insn_vis_sp32): Use register_or_zero_operand.
3225         Rename into movtf_insn_sp32.
3226         (movtf_no_e_insn_sp32): Use register_or_zero_operand.
3227         Rename into movtf_insn_sp32_no_fpu.
3228         (movtf_insn_hq_sp64): Delete.
3229         (movtf_insn_hq_vis_sp64): Use register_or_zero_operand.
3230         Rename into movtf_insn_sp64_hq.
3231         (movtf_insn_sp64): Delete.
3232         (movtf_insn_vis_sp64): Use register_or_zero_operand.
3233         Rename into movtf_insn_sp64.
3234         (movtf_no_e_insn_sp64): Use register_or_zero_operand.
3235         Rename into movtf_insn_sp64_no_fpu.
3237 2005-05-10  Nathan Sidwell  <nathan@codesourcery.com>
3239         * config/stormy16/stormy16.c (xstormy16_emit_cbranch): Use
3240         gcc_assert and gcc_unreachable as appropriate.
3241         (xstormy16_split_cbranch, xstormy16_output_cbranch_hi,
3242         xstormy16_output_cbranch_si, xstormy16_split_move,
3243         xstormy16_initial_elimination_offset,
3244         xstormy16_encode_section_info, xstormy16_print_operand_address,
3245         xstormy16_expand_call, xstormy16_expand_arith,
3246         xstormy16_output_shift, xstormy16_init_builtins): Likewise.
3248 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
3250         * tree-outof-ssa.c (_elim_graph): Change the type of nodes and
3251         const_copies to VEC(tree,heap)*.
3252         (new_elim_graph, delete_elim_graph, elim_graph_size,
3253         elim_graph_add_node, eliminate_build, eliminate_phi): Use VEC
3254         instead of VARRAY.
3256 2005-05-10  Joseph S. Myers  <joseph@codesourcery.com>
3258         PR other/21052
3259         * doc/extend.texi (Type Attributes): Correct example syntax.
3261 2005-05-09  Joseph S. Myers  <joseph@codesourcery.com>
3263         PR c/21160
3264         * doc/invoke.texi (-Wuninitialized): Update documentation.
3266 2005-05-09  Richard Earnshaw  <richard.earnshaw@arm.com>
3268         * arm.c (const_ok_for_arm): Use a faster algorithm.
3270 2005-05-09  David Edelsohn  <edelsohn@gnu.org>
3272         PR target/21477
3273         * config/rs6000/rs6000.md (add_op2): New.
3274         (add<mode>3): Use it.
3276 2005-05-09  Richard Earnshaw  <richard.earnshaw@arm.com>
3278         * arm.c (arm_gen_constant): Add new heuristic for generating
3279         constant integers that can be expressed as the difference of two
3280         valid immediates.
3282 2005-05-09  Roger Sayle  <roger@eyesopen.com>
3284         * c-tree.h (parser_build_unary_op): New prototype.
3285         * c-typeck.c (parser_build_unary_op): New function to construct
3286         a unary operation in the C parser.
3287         * c-parser.c (c_parser_unary_expression):  Use the new function
3288         parser_build_unary_op when appropriate.
3290 2005-05-09  Mark Mitchell  <mark@codesourcery.com>
3292         PR 18655
3293         * dwarf2out.c (output_call_frame_info): Use DWARF2_FRAME_REG_OUT
3294         before outputting DWARF_FRAME_RETURN_COLUMN.
3296 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
3298         * config/s390/s390.c: (s390_branch_condition_mask,
3299         s390_branch_condition_mnemonic, s390_extra_constraint_str,
3300         s390_const_ok_for_constraint_p, s390_expand_plus_operand,
3301         legitimize_pic_address, s390_emit_tls_call_insn,
3302         legitimize_tls_address, legitimize_tls_address,
3303         s390_expand_addcc, print_shift_count_operand, print_operand,
3304         addr_generation_dependency_p, annotate_constant_pool_refs,
3305         s390_split_branches, find_constant_pool_ref,
3306         replace_constant_pool_ref, s390_add_constant, s390_find_constant,
3307         s390_find_execute, s390_mainpool_start, s390_chunkify_start,
3308         s390_output_pool_entry, s390_function_value,
3309         s390_call_saved_register_used, s390_emit_call): Replace
3310         conditional aborts by gcc_assert and unconditional by gcc_unreachable.
3311         (s390_select_ccmode, s390_match_ccmode_set, s390_extract_part,
3312         s390_cannot_force_const_mem, s390_output_dwarf_dtprel,
3313         get_some_local_dynamic_name, s390_function_arg_size,
3314         s390_function_arg_advance, s390_function_arg,
3315         s390_expand_builtin, s390_gen_rtx_const_DI): Replace abort in
3316         default case by gcc_unreachable.
3317         * config/s390/s390.md: ("*cjump_31", "*icjump_31", "*jump31"): Replace
3318         conditional abort by gcc_assert.
3319         ("doloop_si31"): Replace abort in last else by gcc_unreachable.
3320         ("main_pool", "pool"): Replace unconditional abort by gcc_unreachable.
3322 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
3324         * config/s390/s390.c: (s390_decompose_address,
3325         tls_symbolic_operand, legitimate_pic_operand_p,
3326         legitimate_constant_p, legitimate_reload_constant_p,
3327         s390_expand_plus_operand, legitimate_address_p,
3328         legitimate_la_operand_p, ): Remove 'register' from signature.
3329         (symbolic_reference_mentioned_p,
3330         tls_symbolic_reference_mentioned_p): Remove 'register' from local
3331         variable declarations.
3332         (legitimize_address): Remove 'register' from
3333         signature and local variable declarations.
3335 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
3337         * config/s390/s390-protos.h: (s390_match_ccmode,
3338         s390_match_ccmode_set, reg_used_in_mem_p,
3339         symbolic_reference_mentioned_p, tls_symbolic_reference_mentioned_p,
3340         legitimate_la_operand_p, preferred_la_operand_p,
3341         s390_short_displacement, addr_generation_dependency_p,
3342         legitimate_reload_constant_p, legitimate_address_p): Change return type
3343         into 'bool'.
3344         (s390_tm_ccmode): Change type of parameter "mixed" into 'bool'.
3345         * config/s390/s390.c: (s390_match_ccmode,
3346         symbolic_reference_mentioned_p, tls_symbolic_reference_mentioned_p,
3347         legitimate_reload_constant_p): Change return type into 'bool'.
3348         (preferred_la_operand_p,legitimate_la_operand_p, legitimate_address_p):
3349         Likewise.  Additionally adapted comment.
3350         (s390_extra_constraint_p): Change Comment to reflect 'int' return type.
3351         (s390_tm_ccmode): Change type of parameter "mixed" into 'bool'.
3352         (s390_decompose_address): Change the type of the internal flags
3353         "pointer", "base_ptr", "indx_ptr", and the return value into 'bool'.
3354         (struct s390_address): Change type of "pointer" into bool.
3355         * config/s390/s390.md: ("*tmdi_reg", "*tmsi_reg", "tm<mode>_full"):
3356         Adapt calls for 's390_tm_ccmode' to the new signature.
3358 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
3360         * config/s390/s390.c: (s390_match_ccmode_set,
3361         s390_branch_condition_mnemonic, s390_short_displacement,
3362         s390_decompose_address, get_thread_pointer, legitimize_tls_address,
3363         print_shift_count_operand, get_some_local_dynamic_name,
3364         get_some_local_dynamic_name_1, reg_used_in_mem_p,
3365         addr_generation_dependency_p, s390_split_branches,
3366         annotate_constant_pool_refs, find_constant_pool_ref,
3367         replace_constant_pool_ref, find_ltrel_base, replace_ltrel_base,
3368         s390_optimize_prologue, find_unused_clobbered_reg, s390_frame_area,
3369         s390_register_info, s390_frame_info, s390_init_frame_layout,
3370         s390_update_frame_layout, save_fpr, restore_fpr, save_gprs,
3371         restore_gprs, s390_function_arg_size, s390_function_arg_float,
3372         s390_init_machine_status, s390_assemble_integer, s390_handle_option,
3373         s390_encode_section_info, s390_cannot_force_const_mem,
3374         s390_delegitimize_address, s390_return_in_memory, s390_init_builtins,
3375         s390_expand_builtin, s390_output_mi_thunk, s390_safe_attr_type,
3376         s390_adjust_priority, s390_issue_rate,
3377         s390_first_cycle_multipass_dfa_lookahead, s390_cannot_copy_insn_p,
3378         s390_rtx_costs, s390_address_cost, s390_reorg, s390_valid_pointer_mode,
3379         s390_build_builtin_va_list, s390_gimplify_va_arg,
3380         s390_function_ok_for_sibcall, s390_call_saved_register_used,
3381         s390_pass_by_reference, s390_fixed_condition_code_regs,
3382         s390_cc_modes_compatible s390_mainpool_start,, s390_mainpool_finish,
3383         s390_mainpool_cancel, s390_chunkify_start, s390_chunkify_finish,
3384         s390_chunkify_cancel, s390_start_pool, s390_end_pool,
3385         s390_add_pool_insn, s390_find_pool, s390_add_constant,
3386         s390_find_constant, s390_add_execute, s390_find_execute,
3387         s390_execute_label, s390_execute_target, s390_dump_pool,
3388         s390_dump_execute, s390_alloc_pool, s390_free_pool): Remove prototypes.
3389         Move target macro definitions to the end of the file.  Move several
3390         functions within the file to assure correct compiling.
3392 2005-05-09  Steven Bosscher  <stevenb@suse.de>
3394         * calls.c (purge_reg_equiv_notes): Remove, fold into...
3395         (fixup_tail_calls): ...here.  Only look at insns between the
3396         start of the function and the FUNCTION_BEG insn note.
3398         * gcse.c (one_cprop_pass): Fix typos in dumps.
3400         * tree-ssa-operands.h (FOR_EACH_PHI_ARG): Fix typos.
3402 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
3404         * config/s390/s390.h: Move xxx_REGNUM definitions to s390.md.
3405         * config/s390/s390.md: ("SIBCALL_REGNUM", "BASE_REGNUM",
3406         "RETURN_REGNUM", "CC_REGNUM", "TP_REGNUM"): New constants.
3407         Replace every occurrence of '(reg:<MODE> 33)' by '(reg:<MODE>
3408         CC_REGNUM)'.
3409         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Replace
3410         '(reg:<MODE> 36)' by '(reg:<MODE> TP_REGNUM)'.
3411         ("*sibcall_br", "*sibcall_value_br"): Replace '(reg:DI 1)' by '(reg:DI
3412         REG_SC)'.
3414 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
3416         * config/s390/s390.md: ("gf") New mode attribute.
3417         ("fixuns_truncdfdi2", "fixuns_truncdfsi2", "fixuns_truncsfdi2",
3418         "fixuns_truncsfsi2"): Merge.
3419         ("fix_truncdfdi2", "fix_truncsfdi2"): Merge.
3420         ("fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee", "fix_truncsfdi2_ieee",
3421         "fix_truncsfsi2_ieee"): Merge.
3423 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
3425         * config/s390/s390.md: ("FPR") New mode macro.
3426         ("de", "dee"): New mode attributes.
3427         ("cmpdf", "cmpsf"): Merge.
3428         ("*cmpdf_ccs_0", "*cmpsf_ccs_0"): Merge.
3429         ("*cmpdf_ccs_0_ibm", "*cmpdf_ccs_0_ibm"): Merge.
3430         ("*cmpdf_ccs", "*cmpsf_ccs"): Merge.
3431         ("*cmpdf_ccs_ibm", "*cmpsf_ccs_ibm"): Merge.
3432         ("floatdidf2", "floatdisf2"): Merge.
3433         ("adddf3", "addsf3"): Merge.
3434         ("*adddf3", "*addsf3"): Merge.
3435         ("*adddf3_cc", "*addsf3_cc"): Merge.
3436         ("*adddf3_cconly", "*addsf3_cconly"): Merge.
3437         ("*adddf3_ibm", "*addsf3_ibm"): Merge.
3438         ("subdf3", "subsf3"): Merge.
3439         ("*subdf3", "*subsf3"): Merge.
3440         ("*subdf3_cc", "*subsf3_cc"): Merge.
3441         ("*subdf3_cconly", "*subsf3_cconly"): Merge.
3442         ("*subdf3_ibm", "*subsf3_ibm"): Merge.
3443         ("muldf3", "mulsf3"): Merge.
3444         ("*muldf3", "*mulsf3" "): Merge.
3445         ("*muldf3_ibm", "*mulsf3_ibm"): Merge.
3446         ("*fmadddf", "*fmaddsf"): Merge.
3447         ("*fmsubdf", "*fmsubsf"): Merge.
3448         ("divdf3", "divsf3"): Merge.
3449         ("*divdf3", "*divsf3"): Merge.
3450         ("*divdf3_ibm", "*divsf3_ibm"): Merge.
3451         ("negdf2", "negsf2"): Merge.
3452         ("*negdf2_cc", "*negsf2_cc"): Merge.
3453         ("*negdf2_cconly", "*negsf2_cconly"): Merge.
3454         ("*negdf2", "*negsf2"): Merge.
3455         ("*negdf2_ibm", "*negsf2_ibm"): Merge.
3456         ("absdf2", "abssf2"): Merge.
3457         ("*absdf2_cc", "*abssf2_cc"): Merge.
3458         ("*absdf2_cconly", "*abssf2_cconly"): Merge.
3459         ("*absdf2", "*abssf2"): Merge.
3460         ("*absdf2_ibm", "*abssf2_ibm"): Merge.
3461         ("*negabsdf2_cc", "*negabssf2_cc"): Merge.
3462         ("*negabsdf2_cconly", "*negabssf2_cconly"): Merge.
3463         ("*negabsdf2", "*negabssf2"): Merge.
3464         ("sqrtdf2", "sqrtsf2"): Merge.
3466 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
3468         * config/s390/s390.c: (s390_adjust_priority): Adapt to changed
3469         attribute names.
3470         * config/s390/2084.md: ("x_fsimpd", "x_fsimps", "x_fdivd", "x_fdivs",
3471         "x_floadd", "x_floads", "x_fstored", "x_fstores"): Rename to
3472         ("x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
3473         "x_floadsf", "x_fstoredf", "x_fstoresf") and replace 'type'
3474         attribute names.
3475         * config/s390/s390.md: ("type"): Rename "fsimpd, fsimps, floadd, floads,
3476         fstored, fstores, fmuld, fmuls, fdivd, fdivs, fsqrtd, fsqrts" to
3477         "fsimpdf, fsimpsf, floaddf, floadsf, fstoredf, fstoresf, fmuldf,
3478         fmulsf, fdivdf, fdivsf, fsqrtdf, fsqrtsf".
3479         ("*cmpdf_ccs_0", "*cmpdf_css_0_ibm", "*cmpdf_ccs",
3480         "*cmpdf_ccs_ibm", "*cmpsf_ccs_0", "*cmpsf_css_0_ibm",
3481         "*cmpsf_ccs", "*cmpsf_ccs_ibm", "*movdi_64", "*movdi_31",
3482         "*movsi_zarch", "*movsi_esa", "*movdf_64", "*movdf_31", "movsf",
3483         "*muldf3", "*muldf3_ibm", "*fmadddf", "*fmsubdf", "*mulsf3",
3484         "mulsf3_ibm", "*fmaddsf", "fmsubsf", "*divdf3", "*divdf3_ibm",
3485         "*negdf2_cc", "*negdf2_cconly", "*negdf2", "*negdf2_ibm",
3486         "*negsf2_cc", "*negsf2_cconly", "*negsf2", "*absdf2_cc",
3487         "*absdf2_cconly", "*absdf2", "*absdf2_ibm", "*abssf2_cc",
3488         "*abssf2_cconly", "*abssf2", "*abssf2_ibm", "*negabsdf2_cc",
3489         "*negabsdf2_cconly", "*negabsdf2", "*negabssf2_cc",
3490         "*negabssf2_cconly", "*negabssf2", "sqrtdf2", "sqrtsf2"): Rename
3491         'type' value.
3492         ("*divsf3"): Additionally rename second pattern to
3493         "*divsf3_ibm".
3494         ("truncdfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
3495         "*adddf3", "*adddf3_cc", "*adddf3_cconly", "*adddf3_ibm",
3496         "*addsf3", "*addsf3_cc", "*addsf3_cconly", "*subdf3",
3497         "subdf3_cc", "*subdf3_cconly", "*subdf3_ibm", "*subsf3",
3498         "subsf3_cc", "*subsf3_cconly", "*subsf3_ibm"): Merge identical
3499         'type values' and rename 'type' value.
3500         ("*addsf3"): Additionally rename second pattern to
3501         "*addsf3_ibm".
3503 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
3505         * config/s390/s390.md: ("SHIFT"): New mode macro.
3506         ("lr", "shift"): New mode attributes.
3507         ("ashldi3", "lshrdi3"): Merge.
3508         ("*ashldi3_31", "*lshrdi3"_31): Merge.
3509         ("*ashldi3_64", "*lshrdi3"_64): Merge.
3510         ("ashlsi3", "lshrsi3"): Merge.
3512 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
3514         * config/s390/s390.md: ("DSI", "SCOND"): New mode
3515         macros.
3516         ("E", "g"): New mode attributes.
3517         ("*adddi3_alc_cc", "*addsi3_alc_cc"): Merge.
3518         ("*adddi3_alc", "*addsi3_alc"): Merge.
3519         ("*subdi3_slb_cc", "*subsi3_slb_cc"): Merge.
3520         ("*subdi3_slb", "*subsi3_slb"): Merge.
3521         ("adddicc", "addsicc"): Merge.
3522         ("*sconddi", "*scondsi"): Merge.
3523         ("*sconddi_neg", "*scondsi_neg"): Merge.
3524         ("sltu", "sgtu", "sleu", "sgeu"): Merge.
3525         ("negdi2", "negsi2"): Extract expander pattern from
3526         "negsi2" and merge with "negdi2".
3527         ("*negdi2"): Merge with instruction pattern of "negsi2".
3528         ("*negdi2_cc", "*negsi2_cc"): Merge.
3529         ("*negdi2_cconly", "*negsi2_cconly"): Merge.
3530         ("rotldi3", "rotlsi3"): Merge.
3532 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
3534         * config/s390/s390.md: ("hc"): New mode attribute.
3535         ("extendhidi2", "extendqidi2"): Merge.
3536         ("*extendhidi2", "*extendqidi2"): Merge.
3537         ("extendhisi2", "extendqisi2"): Merge.
3538         ("zero_extendhidi2", "zero_extendqidi2"): Merge.
3539         ("*zero_extendhidi2", "*zero_extendqidi2"): Merge.
3540         Merged 2 define_split.
3541         ("*zero_extendhisi2", "*zero_extendqisi2"): Merge.
3542         ("*zero_extendhisi2_64", "*zero_extendqisi2_64"): Merge.
3544 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
3546         * config/s390/s390.md: ("COMPARE"): New mode macro.
3547         ("beq", "bne", "bgt", "bgtu", "blt", "bltu", "bge", "bgeu",
3548         "ble", "bleu", "bunordered", "bordered", "buneq", "bunlt",
3549         "bungt", "bunle", "bunge", "bltgt"): Merge.
3551 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
3553         * config/s390/s390.md: ("INT"): New mode macro.
3554         ("one_cmpldi2", "one_cmplsi2", "one_cmplhi2", "one_cmplqi2"):
3555         Merge.
3557 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
3559         * config/s390/s390.md: ("GPR", "P"): New mode macros.
3560         ("cmpdi", "cmpsi"): Merge.
3561         ("strlendi", "strlensi"): Merge.
3562         ("*strlendi", "*strlensi"): Merge.
3563         ("movmemdi", "movmemsi"): Merge.
3564         ("clrmemdi", "clrmemsi"): Merge.
3566 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
3568         * config/s390/s390.md: ("HQI"): New mode macro.
3569         ("icm_lo", "icm_hi", "max_uint"): New mode attributes.
3570         ("*tmhi_full", "*tmqi_full"): Merge.
3571         ("*tsthiCCT", "*tstqiCCT"): Merge.
3572         ("*tsthi", "*tstqi"): Merge.
3573         ("*tsthi_cconly", "tstqi_cconly"): Merge.
3574         ("*sethighhisi", "*sethighqisi"): Merge.
3576 2005-05-09  Kazu Hirata  <kazu@cs.umass.edu>
3578         * crtstuff.c, integrate.h, tree-scalar-evolution.h,
3579         config/alpha/unicosmk.h, config/arc/arc.md,
3580         config/arm/bpabi.h, config/arm/coff.h, config/arm/elf.h,
3581         config/arm/ieee754-df.S, config/arm/ieee754-sf.S,
3582         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
3583         config/arm/semi.h, config/arm/uclinux-elf.h,
3584         config/arm/wince-pe.h, config/fr30/fr30.c,
3585         config/rs6000/altivec.h: Update copyright.
3587 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
3589         * config/pdp11/pdp11.c (pdp11_output_function_prologue): Use
3590         gcc_assert and gcc_unreachable as appropriate.
3591         (pdp11_output_function_epilogue, output_move_double,
3592         output_move_quad, print_operand_address, output_jump,
3593         output_addr_const_pdp11): Likewise.
3594         * config/pdp11/pdp11.h (FUNCTION_PROFILER,
3595         ASM_OUTPUT_ALIGN): Likewise.
3596         * config/pdp11/pdp11.md: Likewise.
3597         (extendhisi2, subhi3, subqi3): Likewise.
3599 2005-05-09  David Edelsohn  <edelsohn@gnu.org>
3601         PR middle-end/21237
3602         * dojump.c (do_jump, MINUS_EXPR): Build NE_EXPR and fall through
3603         to NE_EXPR case.
3605 2005-05-09  Kazu Hirata  <kazu@cs.umass.edu>
3607         * config/ia64/ia64.c: Fix a comment typo.
3609 2005-05-09  Richard Earnshaw  <rearnsha@arm.com>
3611         PR target/21397
3612         * arm.c (ARM_OPT_SET_CPU, ARM_OPT_SET_ARCH, ARM_OPT_SET_TUNE): Define.
3613         (arm_override_options): Use them instead of manifest constants.  Don't
3614         allow -march to override the -mtune setting.
3616 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
3618         * config/iq2000/iq2000.c (abort_with_insn): Use fancy_abort.
3619         (gen_int_relational): Use gcc_unreachable and gcc_assert as necessary.
3620         (function_arg_advance, function_arg, save_restore_insns,
3621         iq2000_expand_prologue, iq2000_output_conditional_branch,
3622         expand_one_builtin, print_operand):
3623         * config/iq2000/iq2000.md (tablejump): Likewise.
3625 2005-05-09  David Ung  <davidu@mips.com>
3627         * config/mips/mips.h (processor_type): Add names for the 24K.
3628         * config/mips/mips.c (mips_cpu_info_table): Add names for the 24K
3629         processor family.
3630         * config/mips/mips.md (cnv_mode): New attribute for recording the
3631         conversion types of float convert insns.
3632         (cpu): Add 24k and 24kx.
3633         (include): Include 24k.md file.
3634         (truncdfsf2, extendsfdf2, fix_truncdfsi2_insn, fix_truncdfsi2_macro)
3635         (fix_truncdfdi2, fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2)
3636         (floatdisf2): Setup cnv_mode.
3637         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): Changed mode to SF and
3638         setup cnv_mode.
3639         * config/mips/24k.md: New file, contains 24k DFA pipeline
3640         description.
3642 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
3644         * config/sh/sh.c (print_operand_address): Use gcc_assert and
3645         gcc_unreachable as appropriate.
3646         (print_operand, prepare_move_operands, prepare_scc_operands,
3647         output_movedouble, output_branch, shift_insns_rtx, gen_shifty_op,
3648         gen_shl_and, shl_sext_kind, gen_datalabel_ref, dump_table,
3649         fixup_mova, gen_far_branch, sh_reorg, split_branches,
3650         final_prescan_insn, output_stack_adjust, sh_expand_epilogue,
3651         sh_set_return_address, sh_setup_incoming_varargs,
3652         initial_elimination_offset, sh_pch_valid_p, get_free_reg,
3653         sh_expand_builtin, sh_output_mi_thunk, extract_sfunc_addr,
3654         check_use_sfunc_addr): Likewise.
3655         * config/sh/netbsd-elf.h (FUNCTION_PROFILER): Likewise.
3656         * config/sh/sh.h (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
3657         * config/sh/symbian.c (sh_symbian_mark_dllexport,
3658         sh_symbian_mark_dllimport): Likewise.
3659         * config/sh/sh.md: Likewise.
3660         (movdicc, call_pop, call_value_pop, casesi_worker_1,
3661         casesi_worker_2, casesi_shift_media, casesi_load_media,
3662         return_media): Likewise.
3664 2005-05-08  Roger Sayle  <roger@eyesopen.com>
3666         PR inline-asm/8788
3667         * stmt.c (expand_asm_operands): Avoid calling force_reg on BLKmode
3668         operands.
3670 2005-05-08  Richard Henderson  <rth@redhat.com>
3672         * config/alpha/alpha.c (adjust_address): Fix typo last change.
3674 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
3676         * config/m68hc11/m68hc11.h (REG_VALID_P): A regno must be >= 0
3677         and -1 can happen in reg_renumber when no hard register is assigned.
3679 2005-05-08  Steven Bosscher  <stevenb@suse.de>
3680             Kazu Hirata  <kazu@cs.umass.edu>
3682         PR tree-optimization/14841, tree-optimization/15838
3683         * tree-ssa-ccp.c (fold_const_aggregate_ref): New.
3684         (evaluate_stmt): Call it.
3686 2005-05-08  Jakub Jelinek  <jakub@redhat.com>
3688         * config/ia64/ia64.c (ia64_override_options): Don't set
3689         ia64_flag_var_tracking and clear flag_var_tracking here...
3690         (ia64_file_start): ... but here.
3692 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
3694         * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use gcc_assert
3695         and gcc_unreachable as appropriate.
3696         (expand_prologue, expand_epilogue, m68hc11_gen_lowpart,
3697         m68hc11_gen_highpart, print_operand, print_operand_address,
3698         m68hc11_expand_compare, m68hc11_expand_compare_and_branch,
3699         m68hc11_gen_movhi): Likewise.
3700         * config/m68hc11/m68hc11.h (HARD_X_REGNUM): Reword comment.
3701         * config/m68hc11/m68hc11.md: Reword comment.
3703 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
3705         PR target/21281
3706         * config/m68hc11/predicates.md (splitable_operand): An immediate is
3707         allowed.
3709 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
3711         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Do not allow
3712         the 68HC12 address indirect addressing mode as it is not supported by
3713         bset and bclr.
3714         * config/m68hc11/m68hc11-protos.h
3715         (m68hc11_valid_addressing_p): Declare.
3716         (m68hc11_add_mode): Declare.
3717         * config/m68hc11/m68hc11.c (m68hc11_valid_addressing_p): Rename from
3718         register_indirect_p and export it.
3719         (m68hc11_z_replacement): Use emit_insn_after when adding the save Z
3720         instruction so that it is part of the good BB.
3721         (m68hc11_gen_movhi): Fix invalid generation of indexed indirect
3722         addressing with movw.
3723         (m68hc11_gen_movqi): Use pula and pulb instead of lda and ldb for
3724         68HC12.
3725         * config/m68hc11/m68hc11.h (ADDR_STRICT, ADDR_INCDEC, ADDR_INDEXED,
3726         ADDR_OFFSET, ADDR_INDIRECT, ADDR__CONST): Moved from m68hc11.c.
3727         * config/m68hc11/m68hc11.md ("movhi_const0"): Use this pattern only
3728         for 68HC11.
3729         ("*movhi_68hc12"): Handle movhi_const0.
3730         ("*subhi3", "subqi3"): Use general_operand for operand 1.
3731         ("*subhi3_zext"): Likewise.
3733 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
3735         PR target/19051
3736         * config/m68hc11/m68hc11.md ("mulqi3"): Use general_operand for
3737         operand 1 and fix constraints.
3738         ("mulqihi3"): Use general_operand for operand 2.
3740 2005-05-08  Julian Brown  <julian@codesourcery.com>
3741             H.J. Lu  <hongjiu.lu@intel.com>
3742             Paul Brook  <paul@codesourcery.com>
3744         * configure.ac: Set ld_vers_major, ld_vers_minor and ld_vers_patch for
3745         GNU linker. Support linker version x.x.x.x.x. Require GNU linker
3746         20050308/2.16.0 or newer for comdat group.
3747         * configure: Regenerated.
3748         * config.in: Regenerated.
3749         * varasm.c (default_function_rodata_section): Put .rodata section in
3750         COMDAT group when necessary.
3751         (default_elf_asm_named_section): Rename HAVE_GAS_COMDAT_GROUP to
3752         HAVE_COMDAT_GROUP.
3753         (default_unique_section_1): Don't use .gnu.linkonce when COMDAT is
3754         available.
3756 2005-05-08  Kazu Hirata  <kazu@cs.umass.edu>
3758         * tree-dfa.c (referenced_vars, add_referenced_var): Use VEC
3759         instead of VARRAY.
3760         * tree-flow.h (num_referenced_var, referenced_var): Likewise.
3761         * tree-into-ssa.c (mark_def_site_blocks): Likewise.
3762         * tree-ssa.c (init_tree_ssa, delete_tree_ssa): Likewise.
3763         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
3765 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
3767         PR target/16925
3768         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Handle split of
3769         64-bit constants on 64-bit hosts.
3770         (m68hc11_split_logical): Simplify.
3771         (m68hc11_split_move): Likewise.
3773 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
3774             Paolo Bonzini  <bonzini@gnu.org>
3776         * Makefile.in (cs-tconfig.h): Pass USED_FOR_TARGET to mkconfig.sh
3777         * aclocal.m4 (GCC_TARGET_TEMPLATE, AH_TEMPLATE): New.
3778         * configure.ac (enable_checking): Fix typos in runtime_checking.
3779         (ENABLE_RUNTIME_CHECKING): Mark as target template.
3780         (xm_file): Prepend auto-host.h
3781         (HAVE_GAS_HIDDEN, HAVE_LD_EH_FRAME_HDR): Mark as target template.
3782         * mkconfig.sh: Do not automatically define USED_FOR_TARGET in
3783         tconfig.h.
3784         * crtstuff.c: Do not include auto-host.h.
3785         (IN_LIBGCC2): Do not define.
3786         * gcov-io.h: Include tconfig.h, not auto-host.h.
3787         * libgcc2.c: Do not include auto-host.h.
3788         (abort): Do not undefine.
3789         * libgcov.c: Remove unneeded comment about config.h.
3790         * unwind-dw2-fde-glibc.c: Do not inlude auto-host.h.
3791         * config.in, configure: Regenerated.
3793 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
3794             Falk Hueffner  <falk@debian.org>
3796         * config/alpha/alpha.c (tls_symbolic_operand_1): Use gcc_assert
3797         and gcc_unreachable as appropriate.
3798         (get_aligned_mem, get_unaligned_address,
3799         alpha_emit_set_long_const, alpha_emit_conditional_branch,
3800         alpha_emit_setcc, alpha_emit_conditional_move,
3801         alpha_lookup_xfloating_lib_func, alpha_compute_xfloating_mode_arg,
3802         alpha_emit_xfloating_libcall, alpha_split_tfmode_pair,
3803         alpha_expand_unaligned_load, alpha_expand_block_move,
3804         alpha_expand_zap_mask, get_trap_mode_suffix,
3805         get_round_mode_suffix, get_some_local_dynamic_name,
3806         print_operand_address, function_arg, alpha_return_in_memory,
3807         function_value, alpha_expand_builtin,
3808         alpha_initial_elimination_offset, alpha_expand_epilogue,
3809         summarize_insn, alpha_handle_trap_shadows, alphaev5_insn_pipe,
3810         alphaev5_next_group, alpha_align_insns,
3811         unicosmk_initial_elimination_offset, unicosmk_unique_section,
3812         unicosmk_ssib_name): Likewise.
3813         * config/alpha/alpha.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
3814         * config/alpha/unicosmk.h (TRAMPOLINE_TEMPLATE,
3815         ASM_OUTPUT_ADDR_DIFF_ELT, ASM_OUTPUT_ADDR_DIFF_VEC): Likewise.
3816         * config/alpha/vms.h (INITIAL_ELIMINATION_OFFSET,
3817         ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3818         * config/alpha/alpha.md (*divmodsi_internal_er,
3819         *divmoddi_internal_er, ashldi3, *insxl, sibcall, call_osf,
3820         call_nt, call_umk, call_vms, call_value, sibcall_value,
3821         call_value_osf, call_value_nt, call_value_vms, call_value_umk,
3822         *call_vms_1, *movmemdi_1, *clrmemdi_1, *call_value_vms_1): Likewise.
3823         * config/alpha/predicates.md (input_operand): Likewise.
3825 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
3827         * config/frv/frv.c (frv_default_flags_for_cpu): Use gcc_assert and
3828         gcc_unreachable, as appropriate.
3829         (frv_function_prologue, frv_alloc_temp_reg,
3830         frv_initial_elimination_offset, frv_expand_block_move,
3831         frv_expand_block_clear, frv_print_operand_jump_hint,
3832         frv_legitimize_tls_address, unspec_got_name, frv_emit_move,
3833         frv_emit_movsi, frv_split_cond_move, frv_split_minmax,
3834         frv_ifcvt_modify_insn, frv_ifcvt_modify_final,
3835         frv_adjust_field_align, frv_insn_unit, frv_cond_flags,
3836         frv_sort_insn_group, frv_reorder_packet, frv_matching_accg_mode,
3837         frv_in_small_data_p, frv_asm_out_constructor,
3838         frv_asm_out_destructor, frv_output_dwarf_dtprel): Likewise.
3839         * config/frv/frv.md (reload_incc_fp, *cond_exec_si_binary1,
3840         *cond_exec_si_binary2, *cond_exec_si_divide, *cond_exec_si_unary1,
3841         *cond_exec_sf_conv, *cond_exec_sf_add, call, sibcall, call_value,
3842         sibcall_value, casesi): Likewise.
3844         * config/mn10300/mn10300.c (print_operand): Use gcc_assert and
3845         gcc_unreachable as appropriate.
3846         (print_operand_address, mn10300_print_reg_list, expand_prologue,
3847         expand_epilogue, notice_update_cc, initial_offset,
3848         mn10300_address_cost_1): Likewise.
3849         * config/mn10300/mn10300.md: Likewise.
3850         (absdf2, abssf2, negdf2, negsf2): Likewise.
3852 2005-05-08  Richard Sandiford  <rsandifo@redhat.com>
3854         PR target/21416
3855         * config/mips/mips.c (mips_emit_compare): Don't reverse UNGE and UNGT
3856         comparisons.
3857         * config/mips/mips.md (swapped_fcond): New code macro and attribute.
3858         (sgt_<mode>, sge_<mode>): Generalize to all members of swapped_fcond,
3859         including sunge_<mode> and sungt_<mode>.
3861 2005-05-08  Richard Sandiford  <rsandifo@redhat.com>
3863         * integrate.h (get_hard_reg_initial_val): Change type of register
3864         parameter from int to unsigned int.
3865         (has_hard_reg_initial_val): Likewise.
3866         * integrate.c (get_hard_reg_initial_val): Likewise.
3867         (has_hard_reg_initial_val): Likewise.  Remove cast to unsigned int.
3869 2005-05-08  Kazu Hirata  <kazu@cs.umass.edu>
3871         * except.c (eh_status): Change the type of ttype_data to
3872         VEC(tree,gc)*.
3873         (add_ttypes_entry, assign_filter_values,
3874         output_function_exception_table): Use VEC instead of VARRAY.
3876 2005-05-07  David Edelsohn  <edelsohn@gnu.org>
3878         * config/rs6000/rs6000.md (popcount<mode>2): Fix non-C90 constant.
3880 2005-05-07  Paul Brook  <paul@codesourcery.com>
3882         * Makefile.in: Fix dependencies.
3883         (GCOV_IO_H, VARRAY_H): Set.
3885 2005-05-07  Anthony Green  <green@redhat.com>
3887         PR bootstrap/21403
3888         * configure.ac (STMP_FIXPROTO): Fix [ ] consumption problem in
3889         x$STMP_FIXPROTO test.
3890         * configure: Rebuilt.
3892 2005-05-07  Joseph S. Myers  <joseph@codesourcery.com>
3894         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Do not define
3895         inappropriate feature test macros if flag_iso.
3897 2005-05-07  Joseph S. Myers  <joseph@codesourcery.com>
3899         * config/ia64/hpux.h (NO_IMPLICIT_EXTERN_C): Define.
3901 2005-05-07  Hans-Peter Nilsson  <hp@axis.com>
3903         PR target/21441
3904         * config/cris/cris.md ("*movdi_insn", "*mov_sidesisf_biap")
3905         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
3906         Handle moved operand being in special register.
3907         ("smulsi3_highpart", "umulsi3_highpart"): Change .error into
3908         presumed working insn.
3909         (mover2side): Add FIXME.
3911 2005-05-07  Richard Sandiford  <rsandifo@redhat.com>
3913         * integrate.c (get_func_hard_reg_initial_val): Delete.
3914         (has_func_hard_reg_initial_val): Delete.
3915         (get_hard_reg_initial_val): Inline the old implementation of
3916         get_func_hard_reg_initial_val.  Use has_hard_reg_initial_val
3917         instead of has_func_hard_reg_initial_val to test for an existing
3918         pseudo.  Only create an rtx if a new initial value entry is needed.
3919         (has_hard_reg_initial_val): Scan the initial value list directly.
3920         Don't create an rtx.
3922 2005-05-07  David Edelsohn  <edelsohn@gnu.org>
3924         * config.gcc ({powerpc,rs6000}-ibm-aix*): Remove rs6000/aix.opt
3925         from extra_options.
3926         * config.in (HAVE_AS_POPCNTB): New.
3927         * configure.ac (HAVE_AS_MFCRF): Add .machine "pwr5" to AIX test.
3928         (HAVE_AS_POPCNTB): New.
3929         * configure: Regenerated.
3930         * config/rs6000/aix.h (TARGET_XL_COMPAT): Delete.
3931         * config/rs6000/rs6000.c (rs6000_override_options, power5): Add
3932         MASK_POPCNTB.  Uncomment rs6000_sched_restricted_insns_priority
3933         and rs6000_sched_costly_dep.
3934         * config/rs6000/rs6000.h (TARGET_POPCNTB): New.
3935         (TARGET_XL_COMPAT): Delete.
3936         * config/rs6000/rs6000.md (UNSPEC_POPCNTB): New.
3937         (popcount<mode>2): New.
3938         (popcntb<mode>2): New.
3939         * config/rs6000/rs6000.opt (mpopcntb): New.
3941         * opt-functions.awk (var_set): Emit OPTION_MASK_ for InverseMask
3942         if variable name exists.
3944 2005-05-07  Matt Kraai  <kraai@ftbfs.org>
3946         * Makefile.in (c-gimplify.o): Depend on $(RTL_H) instead of rtl.h.
3948 2005-05-07  Richard Henderson  <rth@redhat.com>
3950         PR target/21412
3951         * config/rs6000/rs6000.c (rs6000_emit_move): Look for tls addresses
3952         with constant offsets.
3954 2005-05-07  Nathan Sidwell  <nathan@codesourcery.com>
3956         * config/v850/v850.c (print_operand): Use gcc_assert and
3957         gcc_unreachable, as appropriate.
3958         (print_operand_address, v850_handle_data_area_attribute,
3959         v850_encode_data_area, construct_restore_jr, construct_save_jarl,
3960         v850_insert_attributes, construct_prepare_instruction): Likewise.
3961         * config/v850/v850.h (INITIAL_ELIMINATION_OFFSET): Likewise.
3962         * config/v850/v850.md (movsicc, *sasf_1): Likewise.
3964 2005-05-07  Kazu Hirata  <kazu@cs.umass.edu>
3966         * tree-ssa-loop-ivcanon.c, config/i386/i386.c,
3967         config/rs6000/rs6000.h: Fix comment typos.
3969 2005-05-07  Richard Sandiford  <rsandifo@redhat.com>
3971         * doc/invoke.texi: Remove documentation for MIPS' -mint64 option.
3972         * config/mips/mips.c (TARGET_SCALAR_MODE_SUPPORTED_P): Delete.
3973         (mips_scalar_mode_supported_p): Delete.
3975 2005-05-06  Eric Christopher  <echristo@redhat.com>
3977         * config/mips/mips.opt: Remove -mint64 option.
3978         * config/mips/mips.c (override_options): Remove -mint64
3979         handling.
3980         * config/mips/mips.h (INT_TYPE_SIZE): Define to 32.
3981         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove
3982         64-bit integer handling.
3983         * doc/invoke.texi (Option Summary): Remove -mint64 for
3984         mips.
3986 2005-05-06  Zdenek Dvorak  <dvorakz@suse.cz>
3988         PR tree-optimization/19401
3989         * tree-flow.h (tree_unroll_loops_completely): Declaration changed.
3990         * tree-ssa-loop-ivcanon.c (enum unroll_level): New.
3991         (estimated_unrolled_size): New function.
3992         (try_unroll_loop_completely, canonicalize_loop_induction_variables,
3993         tree_unroll_loops_completely): Always unroll loops if the code size
3994         does not increase.
3995         * tree-ssa-loop.c (tree_complete_unroll): Indicate whether all
3996         loops should be unrolled completely.
3997         (gate_tree_complete_unroll): Run complete unrolling unconditionally.
3999 2005-05-06  Zdenek Dvorak  <dvorakz@suse.cz>
4001         PR rtl-optimization/21254
4002         * loop-iv.c (iv_number_of_iterations): Simplify infiniteness
4003         assumptions for loops that otherwise do not roll.
4004         (find_simple_exit): Prefer # of iterations that is guaranteed
4005         not to be infinite.
4006         * loop-unroll.c (decide_peel_once_rolling,
4007         decide_peel_completely): Check whether the loop is infinite.
4009 2005-05-06  Pat Haugen  <pthaugen@us.ibm.com>
4011         * config/rs6000/sysv4.opt: Fix typo.
4013 2005-05-06  Denis Vlasenko  <vda@port.imtp.ilyichevsk.odessa.ua>
4014             Jakub Jelinek  <jakub@redhat.com>
4016         PR target/21329
4017         * config/i386/i386.c (ix86_expand_movmem): Don't use rep; movsb
4018         for -Os if (movsl;)*(movsw;)?(movsb;)? sequence is shorter.
4019         Don't use rep; movs{l,q} if the repetition count is really small,
4020         instead use a sequence of movs{l,q} instructions.
4022 2005-05-06  Jeff Law  <law@redhat.com>
4024         PR tree-optimization/21380
4025         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
4026         thread through a block with no preds.
4028 2005-05-06  Kazu Hirata  <kazu@cs.umass.edu>
4030         * tree-ssa-operands.c (clobbered_v_may_defs, clobbered_vuses,
4031         ro_call_vuse, fini_ssa_operands, add_call_clobber_ops,
4032         add_call_read_ops): Use VEC instead of VARRAY.
4034 2005-05-06  Nathan Sidwell  <nathan@codesourcery.com>
4036         * config/mcore/mcore.c (mcore_print_operand_address): Use
4037         gcc_assert and gcc_unreachable as appropriate.
4038         (mcore_print_operand, mcore_gen_compare_reg, mcore_output_call,
4039         mcore_output_andn, output_inline_const, mcore_output_move,
4040         mcore_output_movedouble, mcore_expand_block_move,
4041         layout_mcore_frame, mcore_initial_elimination_offset,
4042         mcore_expand_prolog, mcore_mark_dllexport,
4043         mcore_mark_dllimport): Likewise.
4044         * config/mcore/mcore.h (switch_to_section): Likewise.
4045         * config/mcore/mcore.md: Likewise.
4047 2005-05-06  Aldy Hernandez  <aldyh@redhat.com>
4049         * config/rs6000/linux64.h: Remove MASK_PROFILE_KERNEL, and
4050         TARGET_PROFILE_KERNEL.
4052         * config/rs6000/rs6000.c (output_profile_hook): Add comment to
4053         TARGET_PROFILE_KERNEL use.
4055 2005-05-06  Nathan Sidwell  <nathan@codesourcery.com>
4057         * config/m32r/m32r.c (m32r_encode_section_info): Use gcc_assert
4058         and gcc_unreachable, as appropriate.
4059         (gen_compare, gen_split_move_double, m32r_setup_incoming_varargs,
4060         m32r_expand_prologue, m32r_output_function_epilogue,
4061         m32r_legitimize_pic_address, m32r_print_operand_address,
4062         emit_cond_move, m32r_function_symbol,
4063         m32r_output_block_move): Likewise.
4064         * config/m32r/m32r.h (INITIAL_ELIMINATION_OFFSET): Likewise.
4065         * config/m32r/m32r.md ( *movsi_insn, *zero_branch_insn,
4066         *rev_zero_branch_insn): Likewise.
4068 2005-05-06  Jakub Jelinek  <jakub@redhat.com>
4070         PR c++/20961
4071         * varasm.c (merge_weak): Remove NEWDECL from WEAK_DECLS chain
4072         if both NEWDECL and OLDDECL are already weak.
4074 2005-05-06  Richard Sandiford  <rsandifo@redhat.com>
4076         * config/rs6000/sysv4.h (EXTRA_SUBTARGET_SWITCHES): Delete.
4078 2005-05-05  J"orn Rennecke  <joern.rennecke@st.com>
4079             Kaz Kojima  <kkojima@gcc.gnu.org>
4081         * config/sh/sh.c (sh_builtin_saveregs): Use copy_to_mode_reg
4082         and plus_constant.
4084 2005-05-05  Aldy Hernandez  <aldyh@redhat.com>
4085             David Edelsohn  <edelsohn@gnu.org>
4087         * config.gcc: Add .opt magic for the rs6000 ports.
4089         * doc/invoke.texi: Document -mabi= option properly.  Document
4090         -misel and -mno-sel.  Document -mspe and -mno-spe.  Document
4091         -mvrsave and -mno-vrsave.  Document deprecation of -mspe= and
4092         -misel=.
4094         * config/rs6000/aix.h: Remove XL_COMPAT stuff.  Remove
4095         SUBTARGET_SWITCHES and SUBSUBTARGET_SWITCHES.  Define
4096         TARGET_XL_COMPAT.
4098         * config/rs6000/aix.opt: New.
4099         * config/rs6000/aix41.opt: New.
4100         * config/rs6000/aix64.opt: New.
4101         * config/rs6000/darwin.opt: New.
4102         * config/rs6000/linux64.opt: New.
4103         * config/rs6000/rs6000.opt: New.
4104         * config/rs6000/sysv4.opt: New.
4106         * config/rs6000/sysv4.h: Delete definitions of MASK_* and
4107         associated TARGET_*.  Remove SUBTARGET_OPTIONS,
4108         SUBTARGET_SWITCHES.
4109         Define TARGET_USES_SYSV4_OPT.
4110         * config/rs6000/aix41.h: Remove SUBSUBTARGET_SWITCHES.
4111         * config/rs6000/aix43.h: Remove SUBSUBTARGET_SWITCHES.  Define
4112         TARGET_USES_AIX64_OPT.
4113         * config/rs6000/aix51.h: Same.
4114         * config/rs6000/aix52.h: Same.
4115         * config/rs6000/darwin.h: Remove SUBTARGET_SWITCHES,
4116         MASK_MACHO_DYNAMIC_NO_PIC, TARGET_MACHO_DYNAMIC_NO_PIC.
4117         Use TARGET_ALTIVEC_VRSAVE instead of rs6000_altivec_vrsave.
4118         Define TARGET_DYNAMIC_NO_PIC as TARGET_MACHO_DYNAMIC_NO_PIC.
4119         * config/rs6000/linux64.h: Use
4120         rs6000_explicit_options.  Remove EXTRA_SUBTARGET_SWITCHES.
4122         * config/rs6000/rs6000.c: Remove definitions of
4123         rs6000_sched_restricted_insns_priority,
4124         rs6000_long_double_size_string, rs6000_altivec_vrsave,
4125         rs6000_altivec_vrsave_string, rs6000_isel, rs6000_spe,
4126         rs6000_float_gprs_string, rs6000_isel_string, rs6000_spe_string,
4127         rs6000_abi_string, rs6000_warn_altivec_long, rs6000_longcall,
4128         rs6000_alignment_string.  Define rs6000_explicit_options.
4129         (rs6000_parse_abi_options): Remove.
4130         (rs6000_parse_alignment_option): Remove.
4131         (rs6000_parse_float_gprs_option): Remove.
4132         (rs6000_handle_option): New.  Define TARGET_HANDLE_OPTION.  Define
4133         TARGET_DEFAULT_TARGET_FLAGS.
4134         (rs6000_override_options): Revamp to use new .opt machinery.
4136         * config/rs6000/rs6000.h: Remove old MASK_* and TARGET_* in favor
4137         of new .opt machinery.  Remove target_flags.  Redefine
4138         TARGET_MFCRF and TARGET_POWERPC64.  Remove TARGET_SWITCHES,
4139         SUBTARGET_SWITCHES, TARGET_OPTIONS, SUBTARGET_OPTIONS,
4140         rs6000_float_gprs_string, rs6000_isel_string, rs6000_spe_string,
4141         rs6000_altivec_vrsave_string, rs6000_altivec_vrsave,
4142         rs6000_longcall_switch, rs6000_default_long_calls,
4143         rs6000_sched_costly_dep_str, rs6000_sched_costly_dep,
4144         rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch, and
4145         TARGET_ALTIVEC_VRSAVE.
4147 2005-05-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
4149         * config.gcc (hppa1.1-*-rtems*): Remove.
4150         * config/pa/rtems.h: Remove.
4152 2005-05-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
4154         * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
4155         Exclude roe/603e multilib variants.
4157 2005-05-04  Denis Chertykov  <denisc@overta.ru>
4159         PR target/21284
4160         * config/avr/avr.c (avr_output_addr_vec_elt): Use special section
4161         for output.
4163 2005-05-05  Richard Sandiford  <rsandifo@redhat.com>
4165         * config.gcc (arm*-wince-pe*, arm-*-pe*, strongarm-*-pe): Add
4166         arm/pe.opt to $extra_options.
4167         * config/arm/arm.h (target_flags, target_fpu_name, target_fpe_name)
4168         (target_float_abi_name, target_float_switch, target_abi_name)
4169         (ARM_FLAG_APCS_FRAME, ARM_FLAG_POKE, ARM_FLAG_FPE, ARM_FLAG_APCS_STACK)
4170         (ARM_FLAG_APCS_FLOAT, ARM_FLAG_APCS_REENT, ARM_FLAG_BIG_END)
4171         (ARM_FLAG_INTERWORK, ARM_FLAG_LITTLE_WORDS, ARM_FLAG_NO_SCHED_PRO)
4172         (ARM_FLAG_ABORT_NORETURN, ARM_FLAG_SINGLE_PIC_BASE)
4173         (ARM_FLAG_LONG_CALLS, ARM_FLAG_THUMB, THUMB_FLAG_BACKTRACE)
4174         (THUMB_FLAG_LEAF_BACKTRACE, THUMB_FLAG_CALLEE_SUPER_INTERWORKING)
4175         (THUMB_FLAG_CALLER_SUPER_INTERWORKING, CIRRUS_FIX_INVALID_INSNS)
4176         (TARGET_APCS_FRAME, TARGET_POKE_FUNCTION_NAME, TARGET_FPE)
4177         (TARGET_APCS_STACK, TARGET_APCS_FLOAT, TARGET_APCS_REENT)
4178         (TARGET_BIG_END, TARGET_INTERWORK, TARGET_LITTLE_WORDS)
4179         (TARGET_NO_SCHED_PRO, TARGET_ABORT_NORETURN, TARGET_SINGLE_PIC_BASE)
4180         (TARGET_LONG_CALLS, TARGET_THUMB, TARGET_CALLER_INTERWORKING)
4181         (TARGET_CIRRUS_FIX_INVALID_INSNS, SUBTARGET_SWITCHES, TARGET_SWITCHES)
4182         (TARGET_OPTIONS, arm_cpu_select, arm_select,  structure_size_string)
4183         (arm_pic_register_string): Delete.
4184         (TARGET_BACKTRACE): Redefine using TARGET_TPCS_LEAF_FRAME and
4185         TARGET_TPCS_FRAME.
4186         (TARGET_DEFAULT, CONDITIONAL_REGISTER_USAGE): Update mask names.
4187         * config/arm/coff.h (TARGET_DEFAULT): Likewise.
4188         * config/arm/elf.h (TARGET_DEFAULT): Likewise.
4189         * config/arm/netbsd-elf.h (TARGET_DEFAULT): Likewise.
4190         * config/arm/netbsd.h (TARGET_DEFAULT): Likewise.
4191         * config/arm/semi.h (TARGET_DEFAULT): Likewise.
4192         * config/arm/uclinux-elf.h (TARGET_DEFAULT): Likewise.
4193         * config/arm/wince-pe.h (TARGET_DEFAULT): Likewise.
4194         * config/arm/pe.h (TARGET_DEFAULT): Likewise.
4195         (TARGET_FLAG_NOP_FUN, TARGET_NOP_FUN_DLLIMPORT): Delete.
4196         (SUBTARGET_SWITCHES): Delete.
4197         * config/arm/arm.c (target_float_switch): Delete.
4198         (arm_cpu_select): Moved from config/arm/arm.h.
4199         (target_fpu_name, target_fpe_name, target_float_abi_name)
4200         (target_abi_name, structure_size_string, arm_pic_register_string)
4201         (arm_select): Make static.
4202         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
4203         (arm_handle_option): New function.
4204         (arm_override_options): Update target_flags checks for new mask names.
4205         Remove target_float_switch code.
4206         (arm_expand_prologue, thumb_expand_prologue): Check
4207         !TARGET_SCHED_PROLOG instead of TARGET_NO_SCHED_PRO.
4208         * config/arm/arm.opt, config/arm/pe.opt: New files.
4210 2005-05-05  Nathan Sidwell  <nathan@codesourcery.com>
4212         * config/arc/arc.c (get_arc_condition_code): Use gcc_assert &
4213         gcc_unreachable as appropriate.
4214         (arc_double_limm_p, arc_setup_incoming_varargs,
4215         arc_compute_function_type, arc_output_function_prologue,
4216         arc_output_function_epilogue, arc_eligible_for_epilogue_delay,
4217         output_shift, arc_print_operand, arc_print_operand_address,
4218         arc_final_prescan_insn): Likewise.
4219         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
4221 2005-05-04  Geoffrey Keating  <geoffk@apple.com>
4223         * config/rs6000/rs6000.md (P): Use TARGET_*BIT rather than
4224         comparing Pmode.
4225         (SDI): New.
4226         (cmp): Delete.
4227         (wd): New.
4228         (add<mode>3, add<mode>3_internal1, add<mode>3_internal2,
4229         add<mode>3_internal3, one_cmpl<mode>2, sub<mode>3, neg<mode>2,
4230         clz<mode>2, ctz<mode>2, ffs<mode>2): New.
4231         (addsi3, addsi3_internal1, addsi3_internal2, addsi3_internal3,
4232         (one_cmplsi2, subsi3, negsi2, clzsi2, ctzsi2, ffssi2): Remove.
4233         (adddi3, adddi3_internal1, adddi3_internal2, adddi3_internal3,
4234         (one_cmpldi2, subdi3, negdi2, clzdi2, ctzdi2, ffsdi2): Remove.
4235         (sync_compare_and_swap<mode>): Use <wd> rather than <cmp>.
4237 2005-05-05  Paul Brook  <paul@codesourcery.com>
4239         * Makefile.in: Replace dependencies on basic-block.h, c-pragma.h,
4240         cfgloop.h, diagnostic.h, insn-attr.h, langhooks-def.h, params.h,
4241         regs.h, system.h, tree-dump.h, tree-gimple.h, tree-scalar-evolution.h
4242         and tree-data-ref.h with *_H variables.
4244 2005-05-05  Kelley Cook  <kcook@gcc.gnu.org>
4246         * config/m32r/xm-m32r.h, config/m32r/xm-linux.h: Delete files.
4248 2005-05-05  Kelley Cook  <kcook@gcc.gnu.org>
4250         * system.h: Poison BYTEORDER and HOST_WORDS_BIG_ENDIAN.
4252 2005-05-04  Gerald Pfeifer  <gerald@pfeifer.com>
4254         * doc/contrib.texi (Contributors): Add Mostafa Hagog and Ayal Zaks.
4256 2005-05-04 Fariborz Jahanian <fjahanian@apple.com>
4258         * config/rs6000/rs6000.c (rs6000_emit_prologue): Emit
4259         setting of vrsave register for current function after
4260         call to save_world is emitted.
4262 2005-05-05  Hans-Peter Nilsson  <hp@bitrange.com>
4264         * config/mmix/predicates.md: New file.
4265         * config/mmix/mmix.c (mmix_symbolic_or_address_operand)
4266         (mmix_reg_or_constant_operand, mmix_reg_cc_operand)
4267         (mmix_foldable_comparison_operator, mmix_comparison_operator)
4268         (mmix_reg_or_0_operand, mmix_reg_or_8bit_operand): Remove.
4269         * config/mmix/mmix.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
4270         Don't define.
4271         * config/mmix/mmix.md: Include predicates.md.
4272         ("call", "call_value"): Force address to register if it isn't a
4273         mmix_symbolic_or_address_operand.
4275 2005-05-04  Andrew MacLeod  <amacleod@redhat.com>
4277         * tree-flow-inline.h (op_iter_init_use, op_iter_init_def): Assert that
4278         the flags are of appropriate types.
4279         (num_ssa_operands): Generalize using the generic interface.
4280         * tree-ssa-dce.c (remove_dead_stmt): Don't ask for kills on a DEF
4281         iterator.
4283 2005-05-04  Richard Sandiford  <rsandifo@redhat.com>
4285         * protoize.c (version_flag, quiet_flag, nochange_flag, nosave_flag)
4286         (keep_flag, local_flag, global_flag, cplusplus_flag): Make extern.
4288 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
4290         * tree-outof-ssa.c (edge_leader, stmt_list,
4291         analyze_edges_for_bb): Use VEC instead of VARRAY.
4292         (init_analayze_edges_for_bb, fini_analayze_edges_for_bb): New.
4293         (perform_edge_inserts): Call init_analayze_edges_for_bb and
4294         fini_analayze_edges_for_bb.
4296 2005-05-04  James E Wilson  <wilson@specifixinc.com>
4298         PR driver/21112
4299         * gcc.c (process_command): In the second argv scan loop, ignore
4300         Xassembler and Xpreprocessor, along with their argument.
4302 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
4304         * tree-flow-inline.h, tree-ssa-operands.c,
4305         tree-ssa-operands.h, tree-ssa-opfinalize.h:
4306         Likewise. tree-vn.c: Fix comment typos.
4307         * doc/passes.texi, doc/tree-ssa.texi: Fix typos.
4309 2005-05-04  Paolo Bonzini  <bonzini@gnu.org>
4311         * doc/tm.texi (Target Hooks): Document
4312         TARGET_RESOLVE_OVERLOADED_BUILTIN.
4314 2005-05-04  Paul Brook  <paul@codesourcery.com>
4316         * Makefile.in: Change dependencies on target.h to $(TARGET_H).
4318 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
4320         * dwarf2out.c (incomplete_types, retry_incomplete_types,
4321         gen_struct_or_union_type_die, dwarf2out_init): Use VEC instead
4322         of VARRAY.
4324         * loop-unroll.c (var_to_expand, analyze_insn_to_expand_var,
4325         get_expansion, expand_var_during_unrolling,
4326         insert_var_expansion_initialization,
4327         combine_var_copies_in_loop_exit, release_var_copies): Use VEC
4328         instead of VARRAY.
4330         * tree-ssa-loop-ivopts.c (rewrite_address_base): Don't call
4331         update_stmt.
4333 2004-05-03  Andrew Pinski  <pinskia@physics.uc.edu>
4335         PR middle-end/15618
4336         * fold-const.c (fold_widened_comparison): Treat BOOLEAN_TYPE
4337         the same as INTEGER_TYPE.
4338         (fold_binary): Fold "bool_var != 0" to bool_var.
4339         Fold "bool_var == 1" to bool_var.
4341 2004-05-03  Richard Henderson  <rth@redhat.com>
4343         PR middle-end/21318
4344         * function.c (instantiate_virtual_regs_in_insn): Use the mode
4345         from recog_data instead of insn_data.
4347 2005-05-03  DJ Delorie  <dj@redhat.com>
4349         * common.opt (fdiagnostics-show-option): No variable is needed.
4350         * diagnostic.h (diagnostic_context): Add show_option_requested flag.
4351         * diagnostic.c (diagnostic_initialize): Initialize show_option_requested.
4352         (diagnostic_report_diagnostic): Test for enabled diagnostics here.
4353         Save and restore original message format.  Use flag in context
4354         instead of global.
4355         (warning): Don't test for enabled warnings here.
4356         * opts.c (common_handle_option): Handle -fdiagnostics-show-option
4357         here.
4359 2005-05-04  Kelley Cook  <kcook@gcc.gnu.org>
4361         * config/m32r/xm-m32r.h: Don't define HOST_WORDS_BIG_ENDIAN.
4362         * config/m32r/xm-linux.h: Don't undefine HOST_WORDS_BIG_ENDIAN.
4363         * mips-tfile.c: Use WORDS_BIG_ENDIAN instead of HOST_WORDS_BIG_ENDIAN.
4364         * aclocal.m4: Don't include accross.m4.
4365         * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
4366         Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
4367         * configure, config.in: Regenerate.
4369 2005-05-04  Jakub Jelinek  <jakub@redhat.com>
4371         PR middle-end/21265
4372         * expr.h (enum block_op_methods): Add BLOCK_OP_TAILCALL.
4373         (clear_storage): Add argument.
4374         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall):
4375         Add tailcall argument, set CALL_EXPR_TAILCALL of the CALL_EXPR to
4376         tailcall.
4377         (emit_block_move): Handle BLOCK_OP_TAILCALL method.
4378         (clear_storage): Add method argument, handle BLOCK_OP_TAILCALL.
4379         (store_expr, store_constructor): Adjust callers.
4380         * builtins.c (expand_builtin_memcpy): Pass BLOCK_OP_TAILCALL
4381         to emit_block_move if CALL_EXPR_TAILCALL (exp).
4382         (expand_builtin_memmove): Add ORIG_EXP argument, copy
4383         CALL_EXPR_TAILCALL from ORIG_EXP to the new CALL_EXPR.
4384         (expand_builtin_bcopy): Replace ARGLIST and TYPE arguments
4385         with EXP.  Pass EXP to expand_builtin_memmove.
4386         (expand_builtin_memset): Add ORIG_EXP argument, pass
4387         BLOCK_OP_TAILCALL to clear_storage if CALL_EXPR_TAILCALL (orig_exp).
4388         (expand_builtin_bzero): Replace ARGLIST argument with EXP.
4389         Pass EXP to expand_builtin_memset.
4390         (expand_builtin_strcmp): Copy CALL_EXPR_TAILCALL from EXP to
4391         the new CALL_EXPR.
4392         (expand_builtin_strncmp): Likewise.
4393         (expand_builtin_printf): Replace ARGLIST argument with EXP.
4394         Copy CALL_EXPR_TAILCALL from EXP to the new CALL_EXPR.
4395         (expand_builtin_fprintf): Likewise.
4396         (expand_builtin): Adjust calls to
4397         expand_builtin_{memmove,bcopy,memset,bzero,{,f}printf}.
4399         * config/i386/i386.c (ix86_expand_vector_set): Fix setting 3rd and 4th
4400         item in V4SF mode.
4402         PR rtl-optimization/21239
4403         * combine.c (combine_simplify_rtx) <case VEC_SELECT>: Fix a typo.
4405 2005-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4407         * tree-flow.h (tree_ann_common_d): Move aux to ...
4408         (stmt_ann_d): ... here.
4409         * tree-ssa-loop-im.c (LIM_DATA, determine_invariantness_stmt,
4410         move_computations_stmt, schedule_sm): Update references to
4411         aux.
4412         * tree-vectorizer.h (set_stmt_info, vinfo_for_stmt): Likewise.
4414         * tree-cfg.c (remove_bb): Remove a redundant call to
4415         set_bb_for_stmt.
4416         * tree-if-conv.c (replace_phi_with_cond_modify_expr):
4417         Likewise.
4419 2005-05-03  Richard Henderson  <rth@redhat.com>
4421         * config/rs6000/rs6000.c: Remove conflict markers.
4423         * cfg.c (dump_flow_info): Use max_reg_num, not max_regno.
4425 2005-05-03  James E Wilson  <wilson@specifixinc.com>
4427         * dwarf2out.c (lookup_filename): Call maybe_emit_file.
4429 2005-05-03  DJ Delorie  <dj@redhat.com>
4431         * c-decl.c (store_parm_decls_oldstyle): Let diagnostic machinery
4432         decide if the warning will be printed.
4433         * calls.c (expand_call): Likewise.
4434         * function.c (init-function_start): Likewise.
4436         * common.opt (-fdiagnostics-show-option): New.
4437         * opts.c (option_enabled): Accept the option index instead of a
4438         pointer to the option descriptor.
4439         * opts.h (option_enabled): Likewise.
4440         * toplev.c (print_switch_values): Pass option index, not option
4441         descriptor.
4442         * diagnostic.h (diagnostic_info): Add option_index.
4443         * diagnostic.c: Include opts.h.
4444         (diagnostic_set_info): Initialize option_index.
4445         (diagnostic_report_diagnostic): Amend option name if appropriate.
4446         (warning): Check to see if the specified warning is enabled.
4447         Store option index.
4448         * doc/invoke.texi (-fdiagnostics-show-options): Document.
4450 2005-05-03  Richard Henderson  <rth@redhat.com>
4452         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix ALL_REGS and
4453         SPEC_OR_GEN_REGS definitions.
4455 2005-05-03  Alexandre Oliva  <aoliva@redhat.com>
4457         PR target/16888
4458         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Clear reg names
4459         for unavailable registers.
4461 2005-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4463         * tree-cfg.c (tree_forwarder_block_p): Fix a typo.
4465         * cfglayout.c (block_locators_blocks,
4466         insn_locators_initialize, insn_scope): Use VEC instead of
4467         VARRAY.
4469         * tree-mudflap.c (deferred_static_decls, mudflap_enqueue_decl,
4470         mudflap_finish_file, mudflap_finish_file): Use VEC instead of
4471         VARRAY.
4473 2005-05-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
4475         * config/sparc/predicates.md (const_compl_high_operand): New.
4476         * config/sparc/sparc.c (sparc_emit_set_safe_HIGH64): Rename into
4477         gen_safe_HIGH64.
4478         (sparc_emit_set_const64_quick1): Adjust for above change.
4479         (sparc_emit_set_const64_quick2): Likewise.
4480         (sparc_emit_set_const64_longway): Likewise.
4481         (sparc_emit_set_const64): Likewise.
4482         * config/sparc/sparc.md (movhi_const64_special, movsi_const64_special,
4483         movdi_const64_special): Delete.
4484         (logical constant splitters): Use const_compl_high_operand.
4486 2005-05-03  Richard Guenther  <rguenth@gcc.gnu.org>
4488         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Use STRIP_TYPE_NOPS
4489         rather than STRIP_NOPS.
4491 2005-05-03  Jakub Jelinek  <jakub@redhat.com>
4493         PR rtl-optimization/21330
4494         * loop-unswitch.c (may_unswitch_on): Set *cinsn only when
4495         returning non-NULL.
4496         (unswitch_single_loop): Clear cinsn when retrying.
4498         PR target/21297
4499         * config/i386/i386.c (legitimize_address): When canonicalizing
4500         ASHIFT into MULT, multiply by 1 << shift_count instead of
4501         1 << log2 (shift_count).
4503 2005-05-03  Andrew MacLeod  <amacleod@redhat.com>
4505         * lambda-code.c (gcc_loop_to_lambda_loop,
4506         lambda_loopnest_to_gcc_loopnest, phi_loop_edge_uses_def,
4507         stmt_is_bumper_for_loop, perfect_nest_p, replace_uses_of_x_with_y): Use
4508         generic operand interface.
4509         * tree-data-ref.c (find_data_references_in_loop): Use generic interface.
4510         * tree-dfa.c (collect_dfa_stats_r, mark_new_vars_to_rename): Use
4511         generic operand interface.
4512         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
4513         link_imm_use, link_imm_use_stmt, relink_imm_use, relink_imm_use_stmt,
4514         next_safe_imm_use, has_zero_uses, has_single_use, single_imm_use,
4515         num_imm_uses): Use ssa_use_operand_t.
4516         (get_def_ops, get_use_ops, get_v_may_def_ops, get_vuse_ops,
4517         get_v_must_def_ops): Delete.
4518         (get_def_from_ptr, get_phi_result_ptr): Get def directly now.
4519         (get_use_op_ptr, get_def_op_ptr, get_v_may_def_result_ptr,
4520         get_v_may_def_op_ptr, get_vuse_op_ptr, get_v_must_def_result_ptr,
4521         get_v_must_def_kill_ptr): Delete.
4522         (delink_stmt_imm_use): Move and use new operand interface.
4523         (op_iter_next_use, op_iter_next_def, op_iter_next_tree, op_iter_init,
4524         op_iter_next_tree): Use new operand implementation.
4525         (clear_and_done_ssa_iter): New.  Initialize a blank operand iterator.
4526         (op_iter_init_use, op_iter_init_def, op_iter_init_tree): Add iterator
4527         type check.
4528         (op_iter_next_mustdef, op_iter_next_maydef,
4529         op_iter_next_must_and_may_def): Delete. Replace with...
4530         (op_iter_next_maymustdef): New.  Combine must and may next operations.
4531         (op_iter_init_maydef, op_iter_init_mustdef,
4532         op_iter_init_must_and_may_def): Use new interface.
4533         (single_ssa_tree_operand ): New.  Process single operands only as trees.
4534         (single_ssa_use_operand): New.  Process single operands only as uses.
4535         (single_ssa_def_operand): New.  Process single operands only as defs.
4536         (zero_ssa_operands): New.  Return TRUE if there are zero operands of the
4537         specified types.
4538         (num_ssa_operands): New.  Count the number of specified operands.
4539         (compare_ssa_operands_equal): New.  Compare two statements' operands.
4540         (single_phi_def): New.  Return true if PHI has one def of the specified
4541         operand type.
4542         (op_iter_init_phiuse): New.  Initialize the iterator for PHI arguments.
4543         (op_iter_init_phidef): New.  Initialize the iterator for the PHI def.
4544         * tree-flow.h (struct immediate_use_iterator_d): Use ssa_use_operand_t.
4545         (struct stmt_ann_d): Operands field no longer require GTY().
4546         (vn_compute, vn_lookup_or_add, vn_add, vn_lookup): Change prototype.
4547         * tree-into-ssa.c (mark_def_sites): Use SSA_OP_VMUSTKILL.
4548         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
4549         dump_replaceable_exprs, rewrite_trees): Use generic interface.
4550         * tree-phinodes.c (make_phi_node, release_phi_node, resize_phi_node):
4551         Use use_operand_p instead of ssa_imm_use_t *.
4552         * tree-pretty-print.c (dump_vops): check if operands are active before
4553         dumping virtual operands.
4554         * tree-sra.c (sra_walk_function): Use ZERO_SSA_OPERANDS.
4555         * tree-ssa-ccp.c (likely_value): Use ZERO_SSA_OPERANDS.
4556         (ccp_fold): Use new interface.
4557         (ccp_visit_stmt): Remove unused variables and code.
4558         (convert_to_gimple_builtin): Insert statements before calling
4559         mark_new_vars_to_rename.
4560         * tree-ssa-copy.c (stmt_may_generate_copy): Use ZERO_SSA_OPERANDS.
4561         (copy_prop_visit_cond_stmt): Use generic interface.
4562         * tree-ssa-dom.c (struct expr_hash_elt): Use stmt pointer, not the
4563         annotation in table.
4564         (thread_across_edge): Use generic interface.
4565         (initialize_hash_element): Initialzie with stmt, not annotation.
4566         (eliminate_redundant_computations): Use generic interface.
4567         (record_equivalences_from_stmt): Pass stmt, not annotation.
4568         (avail_expr_hash, real_avail_expr_hash, avail_expr_eq): Use generic
4569         interface.
4570         * tree-ssa-dse.c (dse_optimize_stmt): Use ZERO_SSA_OPERANDS.
4571         * tree-ssa-loop-ivopts.c (find_invariants_stmt,
4572         find_interesting_uses_stmt, protect_loop_closed_ssa_form_use): Use
4573         generic operand interface.
4574         * tree-ssa-loop-niter.c (chain_of_csts_start, get_val_for): Use generic
4575         interface.
4576         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Use Generic operand
4577         Interface.
4578         * tree-ssa-operands.c (struct opbuild_list_d): New.  Operand build type.
4579         (build_defs, build_uses, build_v_may_defs, build_vuses,
4580         build_v_must_defs): Change type to struct opbuild_list_d.
4581         (ops_active): New.  Operands active boolean.
4582         (operand_memory, operand_memory_index): New.  Operand memory managers.
4583         (allocate_def_optype, allocate_use_optype, allocate_v_may_def_optype,
4584         allocate_vuse_optype, allocate_v_must_def_optype): Delete.
4585         (free_uses, free_defs, free_vuses, free_v_may_defs, free_v_must_defs):
4586         Change from functions to static variable list heads.
4587         (opbuild_initialize_virtual): New.  Initialize a virtual build list.
4588         (opbuild_initialize_real): New.  Initialize a virtual build list.
4589         (opbuild_free): New.  Free a build list.
4590         (opbuild_num_elems): New.  Number of items in a list.
4591         (opbuild_append_real): New.  Add a real (tree *) operand.
4592         (opbuild_append_virtual): New.  Add and sort a virtual (tree) operand.
4593         (opbuild_first): New.  Return first element index in a list.
4594         (opbuild_next): New.  Return next element in a list.
4595         (opbuild_elem_real): New.  Return real element.
4596         (opbuild_elem_virtual): New.  Return virtual element.
4597         (opbuild_elem_uid): New.  Return UID of virtual element.
4598         (opbuild_clear): New.  Reset an operand list.
4599         (opbuild_remove_elem): New.  Remove an element form a list.
4600         (ssa_operands_active): New.  Return true if operand cache is active.
4601         (init_ssa_operands, fini_ssa_operands): Initialize new implementation.
4602         (ssa_operand_alloc): New.  Allocate memory from an operand chunk.
4603         (correct_use_link): Use use_operand_p.
4604         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_defs,
4605         finalize_ssa_vuses, finalize_ssa_v_must_defs): New implmentation.
4606         (cleanup_v_may_defs): Use new implmentation.
4607         (finalize_ssa_stmt_operands, start_ssa_stmt_operands): New
4608         implementation.
4609         (append_def, append_use, append_v_may_def, append_vuse,
4610         append_v_must_def): Call opbuild_append routine instead of using varray.
4611         (build_ssa_operands): Simplify to simply use stmt, don't maintain a
4612         global parse_old_ops variable.
4613         (free_ssa_operands): New implementation.
4614         (update_stmt_operands): Move.  Change argument to build_ssa_operands.
4615         (copy_virtual_operands): Move. New generic implementation.
4616         (create_ssa_artficial_load_stmt): Move. New implementation.
4617         (swap_tree_operands): Update for new implementation.
4618         (get_expr_operands): Add stmt parameter to calls to swap_tree_operands.
4619         (add_call_clobber_ops, add_call_read_ops): Initialize opbuild list
4620         rather than a varray.
4621         (verify_imm_links): Use use_operand_p.
4622         (dump_immediate_uses_for): If the immediate use variable is a virtual
4623         variable, show the virtual ops in the stmt.
4624         * tree-ssa-operands.h (def_operand_p): No longer a structure.
4625         (NULL_DEF_OPERAND_P): Now a #define.
4626         (def_optype_d, use_optype_d, v_def_use_operand_type, v_may_def_optype_d,
4627         vuse_operand_type, vuse_optype_d, v_must_def_optype_d): Delete.
4628         (def_optype_d, use_optype_d, maydef_optype_d, vuse_optype_d,
4629         mustdef_optype_d): New.  Use Linked list representation.
4630         (SSA_OPERAND_MEMORY_SIZE): New.  Size of operand memory chunk.
4631         (struct ssa_operand_memory_d): New.  Allocated Chunk node.
4632         (struct stmt_operands_d): Change to new pointers that are not GTY.
4633         (STMT_USE_OPS, NUM_USES, SET_USE_OP, STMT_DEF_OPS, NUM_DEFS, SET_DEF_OP,
4634         STMT_V_MAY_DEF_OPS, NUM_V_MAY_DEFS, SET_V_MAY_DEF_RESULT,
4635         SET_V_MAY_DEF_OP, STMT_VUSE_OPS, NUM_VUSES, SET_VUSE_OP,
4636         STMT_V_MUST_DEF_OPS, NUM_V_MUST_DEFS, SET_V_MUST_DEF_RESULT,
4637         SET_V_MUST_DEF_KILL): Delete.
4638         (V_MAY_DEF_OPS, V_MAY_DEF_RESULT_PTR, V_MAY_DEF_RESULT,
4639         V_MAY_DEF_OP_PTR, V_MAY_DEF_OP): Rename to MAYDEF_*.
4640         (V_MUST_DEF_OPS, V_MUST_DEF_RESULT_PTR, V_MUST_DEF_RESULT,
4641         V_MUST_DEF_KILL_PTR, V_MUST_DEF_KILL): Rename to MUSTDEF_*.
4642         (enum ssa_op_iter_type): Operand iterator typechecking values.
4643         (struct ssa_operand_iterator_d): Use linked lists of operands.
4644         (SSA_OP_VMUSTDEFKILL): Rename to SSA_OP_VMUSTKILL.
4645         (FOR_EACH_SSA_MAYDEF_OPERAND, FOR_EACH_SSA_MUSTDEF_OPERAND,
4646         FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): Use op_iter_next_maymustdef.
4647         (FOR_EACH_PHI_ARG): New.  Iterate over PHI arguments.
4648         (FOR_EACH_PHI_OR_STMT_USE): New.  Iterate over PHI or stmt uses.
4649         (FOR_EACH_PHI_OR_STMT_DEF): New.  Iterate over PHI or stmt defs.
4650         (SINGLE_SSA_TREE_OPERAND, SINGLE_SSA_USE_OPERAND,
4651         SINGLE_SSA_DEF_OPERAND, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): New.
4652         * tree-ssa-opfinalize.h: New.  Function templates for expansion.
4653         (FINALIZE_ALLOC): Expands into alloc_def, alloc_use, alloc_maydef,
4654         alloc_vuse, and alloc_mustdef.
4655         (FINALIZE_FUNC): Expands into finalize_ssa_def_ops,
4656         finalize_ssa_use_ops, finalize_ssa_v_may_def_ops, finalize_ssa_vuse_ops,
4657         and finalize_ssa_v_must_def_ops.
4658         * tree-ssa-pre.c (add_to_sets): Pass tree to vn_add.
4659         (create_value_expr_from): Use stmt not vuse_optype as a parameter. Pass
4660         stmt around.
4661         (compute_avail): Use generic iterator interface.
4662         * tree-ssa-propagate.c (first_vdef): Use generic operand interface.
4663         (stmt_makes_single_load, stmt_makes_single_store): Use
4664         ZERO_SSA_OPERANDS.
4665         * tree-ssa-sink.c (is_hidden_global_store): Use ZERO_SSA_OPERANDS.
4666         (statement_sink_location): Use generic interface.
4667         * tree-ssa.c (verify_ssa):  Use %p in fprintf.  Use generic interface.
4668         (delete_tree_ssa): Don't call release_defs.  Call release_ssa_name and
4669         reset the immediate use link nodes.
4670         (stmt_references_memory_p): Use ZERO_SSA_OPERANDS.
4671         * tree-ssanames.c (make_ssa_name): Use use_operand_p.
4672         * tree-tailcall.c (find_tail_calls): Use ZERO_SSA_OPERANDS.
4673         (eliminate_tail_call): Use generic operand interface.
4674         * tree-vect-analyze.c (vect_analyze_data_refs): Use ZERO_SSA_OPERANDS.
4675         (vect_mark_relevant, vect_mark_stmts_to_be_vectorized): Use generic
4676         interface.
4677         * tree-vect-transform.c (update_vuses_to_preheader): Use generic
4678         interface.
4679         * tree-vectorizer.c (rename_variables_in_bb): Use generic interface.
4680         * tree-vn.c (struct val_expr_pair_d): Cache statment pointer instead of
4681         vuse_optype.
4682         (vn_compute, val_expr_pair_hash, vn_add, vn_lookup, vn_lookup_or_add):
4683         Use statement pointer instead of vuse_optype.  Use generic interface.
4684         * tree-vrp.c (maybe_add_assert_expr): Use generic interface.
4685         (stmt_interesting_for_vrp, vrp_visit_stmt): Use ZERO_SSA_OPERANDS.
4686         * tree.h (struct ssa_imm_use_d): Renamed to ssa_use_operand_d.
4687         (tree_ssa_name, phi_arg_d): Use ssa_use_operand_d.
4688         * doc/tree-ssa.texi: Update documentation for operand interface.
4690 2005-05-03  Nathan Sidwell  <nathan@codesourcery.com>
4692         * config/darwin.c (machopic_define_symbol): Use gcc_assert or
4693         gcc_unreachable as appropriate.
4694         (machopic_function_base_name, machopic_indirect_data_reference,
4695         machopic_legitimize_pic_address, darwin_non_lazy_pcrel): Likewise.
4696         * config/host-darwin.c (darwin_gt_pch_use_address): Likewise
4697         * config/rs6000/altivec.md (*mov<mode>_internal,
4698         build_vector_mask_for_load): Likewise.
4699         * config/rs6000/darwin.md (movdf_low_si, movdf_low_di,
4700         *call_nonlocal_darwin64, *call_value_nonlocal_darwin64,
4701         *sibcall_symbolic_64, *sibcall_value_symbolic_64): Likewise.
4702         * config/rs6000/predicates.md (easy_fp_constant,
4703         logical_operand): Likewise.
4704         * config/rs6000/rs6000.c (spe_expand_predicate_builtin,
4705         compute_save_world_info, rs6000_emit_prologue,
4706         rs6000_output_mi_thunk): Reword comments to avoid 'abort'.
4707         * config/rs6000/host-darwin.c (segv_handler): Use fancy_abort
4708         directly.
4710 2005-05-03  Uros Bizjak  <uros@kss-loka.si>
4712         PR middle-end/21282
4713         * convert.c (convert_to_integer): Convert ceil and floor in
4714         c99 mode only.
4716 2005-04-29  Geoffrey Keating  <geoffk@apple.com>
4718         PR target/20813
4719         * config/rs6000/rs6000.md (floatsidf2_internal): Merge to create
4720         define_insn_and_split.  Split only when memory operand is
4721         offsettable.  Use adjust_address rather than plus_constant.
4722         (floatunssidf2_internal): Likewise.
4723         (fix_truncdfsi2_internal): Split only when memory operand is
4724         offsettable.  Use adjust_address rather than plus_constant.
4725         (fix_trunctfsi2_internal): Likewise.
4726         (floatsidf2_internal): Likewise.
4728 2005-05-02  Diego Novillo  <dnovillo@redhat.com>
4730         * tree-vrp.c (set_value_range_to_nonnull): Declare inline.
4731         (set_value_range_to_null): Likewise.
4732         (set_value_range_to_varying): New function.  Use it in all
4733         call sites that used to call set_value_range (vr, VR_VARYING, ...).
4734         (extract_range_from_assert): If the integral type has a
4735         super-type, and LIMIT is not within MIN and MAX values of that
4736         type, set the resulting range to VR_VARYING.
4738 2005-05-02  Hans-Peter Nilsson  <hp@bitrange.com>
4740         * config/mmix/mmix.opt: New file.
4741         * config/mmix/mmix.h: Move options-related comments to mmix.opt.
4742         (mmix_cc1_ignored_option): Don't declare.
4743         (TARGET_OPTIONS, TARGET_MASK_LIBFUNCS, TARGET_MASK_ABI_GNU)
4744         (TARGET_MASK_FCMP_EPSILON, TARGET_MASK_ZERO_EXTEND)
4745         (TARGET_MASK_KNUTH_DIVISION, TARGET_MASK_TOPLEVEL_SYMBOLS)
4746         (TARGET_MASK_BRANCH_PREDICT, TARGET_MASK_USE_RETURN_INSN)
4747         (TARGET_MASK_BASE_ADDRESSES, TARGET_LIBFUNC, TARGET_ABI_GNU,
4748         (TARGET_FCMP_EPSILON, TARGET_ZERO_EXTEND, TARGET_KNUTH_DIVISION)
4749         (TARGET_TOPLEVEL_SYMBOLS, TARGET_BRANCH_PREDICT)
4750         (TARGET_BASE_ADDRESSES, TARGET_USE_RETURN_INSN, TARGET_SWITCHES):
4751         Don't define.
4752         (TARGET_DEFAULT): Change TARGET_MASK_... to MASK_...
4753         * config/mmix/mmix.c (mmix_cc1_ignored_option): Remove.
4754         (TARGET_DEFAULT_TARGET_FLAGS): Override default.
4756 2005-05-02  Joseph S. Myers  <joseph@codesourcery.com>
4758         PR c/15698
4759         * c-tree.h (C_DECL_BUILTIN_PROTOTYPE): New.
4760         * c-decl.c (current_function_prototype_built_in,
4761         current_function_prototype_arg_types): New.
4762         (merge_decls): Keep source location of prototype followed by
4763         nonprototype declaration.  Update C_DECL_BUILTIN_PROTOTYPE.
4764         (builtin_function): Set C_DECL_BUILTIN_PROTOTYPE.
4765         (start_function): Always set current_function_prototype_locus,
4766         current_function_prototype_built_in and
4767         current_function_prototype_arg_types.  Check for external
4768         prototype whether or not visible for external function and set
4769         current_function_prototype_arg_types accordingly.
4770         (store_parm_decls_oldstyle): Use
4771         current_function_prototype_arg_types for checking old-style
4772         definition against prototype.  Give warnings only if
4773         current_function_prototype_built_in).
4775 2005-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
4777         * ggc.h (ggc_alloc_zone_pass_stat): New macro.
4778         (ggc_alloc_zone_stat): Don't define.
4779         * ggc-zone.c (ggc_alloc_typed_stat, ggc_alloc_stat): Use
4780         ggc_alloc_zone_pass_stat.
4781         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Likewise.
4782         * tree.c (make_node_stat, copy_node_stat, make_tree_binfo_stat)
4783         (make_tree_vec_stat, tree_cons_stat, build1_stat): Likewise.
4785 2005-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
4787         * calls.c (expand_call): Handle current_function_pretend_args_size
4788         when checking for sibcalls.
4790 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
4792         PR tree-optimization/21294
4793         * tree-vrp.c (vrp_expr_computes_nonzero): New.
4794         (extract_range_from_expr): Call vrp_expr_computes_nonzero.
4796 2005-05-02  Janis Johnson  <janis187@us.ibm.com>
4798         PR 19985
4799         * gcov-io.h: Declare gcov external functions hidden.
4801 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
4803         * tree-ssa-uncprop.c (equiv_hash_elt, remove_equivalence,
4804         record_equiv, tree_ssa_uncprop, uncprop_into_successor_phis):
4805         Use VEC instead of VARRAY.
4806         (equiv_free): New.
4808         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Factor
4809         out common code.
4811 2005-05-02  Paolo Bonzini  <bonzini@gnu.org>
4813         * c-common.c (resolve_overloaded_builtin): Forward to target
4814         hook for BUILT_IN_MD built-ins.
4815         * c-typeck.c (finish_call_expr): Call resolve_overloaded_builtin
4816         for all types of built-in.
4817         * target-def.h (TARGET_RESOLVE_OVERLOADED_BUILTIN): New.  Use it
4818         in the definition of the target hooks struct.
4819         * target.h (struct gcc_target): Add resolve_overloaded_builtin.
4820         * config/rs6000/altivec.h: Rewritten.
4821         * config/rs6000/rs6000-c.c (struct altivec_builtin_types,
4822         altivec_resolve_overloaded_builtin, altivec_build_resolved_builtin,
4823         rs6000_builtin_type, rs6000_builtin_type_compatible,
4824         altivec_overloaded_builtins, rs6000_builtin_type,
4825         rs6000_builtin_type_compatible): New.
4826         * config/rs6000/rs6000.c (rs6000_builtin_types, rs6000_builtin_decls):
4827         New.
4828         (def_builtin): Turn into a function.  Check for duplicates and store
4829         the builtin into rs6000_builtin_decls.
4830         (bdesc_3arg, bdesc_dst, bdesc_altivec_preds, bdesc_2arg,
4831         bdesc_1arg): Add overloaded builtins.
4832         (altivec_expand_builtin): Check for unresolved overloaded builtins,
4833         do not support ALTIVEC_COMPILETIME_ERROR.
4834         (rs6000_init_builtins): Add opaque 128-bit vector, and internal
4835         nodes to represent front-end types.
4836         (altivec_init_builtins, rs6000_common_init_builtins): Create builtins
4837         with opaque arguments and/or return values.
4838         * config/rs6000/rs6000.h (enum rs6000_builtins): Remove
4839         ALTIVEC_COMPILETIME_ERROR and add Altivec overloaded builtins.
4840         (rs6000_builtin_type_index): New.
4841         (is_ev64_opaque_type): Rename to...
4842         (rs6000_is_opaque_type): ... this.
4843         (rs6000_cpu_cpp_builtins): Install the resolve_overloaded_builtin
4844         target hook.
4846 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
4848         * function.c (reorder_blocks, reorder_blocks_1): Use VEC
4849         instead of VARRAY.
4851 2005-05-02  Nathan Sidwell  <nathan@codesourcery.com>
4852             Bernd Schmidt  <bernd.schmidt@analog.com>
4854         * config/bfin/bfin.c (emit_link_insn, effective_address_32bit_p,
4855         print_address_operand, print_operand, legitimize_pic_address,
4856         asm_conditional_branch, bfin_gen_compare, output_push_multiple,
4857         output_pop_multiple): Use gcc_assert or gcc_unreachable as
4858         appropriate.
4859         * config/bfin/bfin.md (movsf splitter, beq, bne): Likewise.
4861 2005-05-02  Dorit Naishlos  <dorit@il.ibm.com>
4863         * doc/passes.texi: Document vectorization pass.
4865 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
4867         * tree-scalar-evolution.c (get_exit_conditions_rec,
4868         select_loops_exit_conditions,
4869         number_of_iterations_for_all_loops,
4870         analyze_scalar_evolution_for_all_loop_phi_nodes,
4871         scev_analysis): Use VEC instead of VARRAY.
4873 2005-05-02  Michael Matz  <matz@suse.de>
4875         PR c++/19542
4876         * c-common.c (c_common_nodes_and_builtins): Create global null_node.
4877         (warn_strict_null_sentinel): Define.
4878         (check_function_sentinel): Check for null_node as valid sentinel too.
4879         * c-common.h (c_tree_index): Added CTI_NULL.
4880         (null_node) Define global_tree[CTI_NULL].
4881         (warn_strict_null_sentinel): Declare.
4882         * c-opts.c: (c_common_handle_option): Handle -Wstrict-null-sentinel.
4883         * c.opt: (Wstrict-null-sentinel): New C++ option.
4884         * doc/invoke.texi (C++ Options): Document -Wstrict-null-sentinel.
4886 2005-05-01  Kazu Hirata  <kazu@cs.umass.edu>
4888         * gimplify.c (gimplify_compound_lval): Use VEC instead of
4889         VARRAY.
4891         * global.c (calculate_reg_pav): Use VEC instead of VARRAY.
4893         * dwarf2out.c (decl_scope_table, push_decl_scope,
4894         pop_decl_scope, scope_die_for, dwarf2out_init): Use VEC
4895         instead of VARRAY.
4897 2005-05-01  Mark Mitchell  <mark@codesourcery.com>
4899         PR C++/14391
4900         * c-cppbuiltin.c (c_cpp_builtins): Do not define __GXX_WEAK__ to 1
4901         if !flag_weak.
4902         * doc/cpp.texi (__DEPRECATED): Document.
4903         (__EXCEPTIONS): Likewise.
4904         (__GXX_WEAK__): Likewise.
4906         * function.c (INVOKE__main): Do not define.
4907         (expand_main_function): Check HAS_INIT_SECTION when determining
4908         whether or not to call __main.
4910 2005-05-01  Kazu Hirata  <kazu@cs.umass.edu>
4912         * tree-ssa-loop-ivopts.c: Fix a comment typo.
4914 2005-01-05  Paul Brook  <paul@codesourcery.com>
4916         * config/arm/arm.h (ARM_EMIT_TRAMPOLINE_CACHE_CLEAR): Define.
4917         (INITIALIZE_TRAMPOLINE): Use it.
4918         * config/arm/linux-gas.h (INITIALIZE_TRAMPOLINE): Remove.
4919         * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Remove.
4920         * config/arm/netbsd-elf.h (INITIALIZE_TRAMPOLINE): Remove.
4922 2005-05-01  Gerald Pfeifer  <gerald@pfeifer.com>
4924         * doc/install.texi (Specific): Omit dots in the @anchors names
4925         for i?86-*-sco3.2v5*, i?86-*-solaris2.10, and sparc-sun-solaris2.7.
4926         Omit underscores for x86_64-*-* and the "all ELF targets" entry.
4928 2005-05-01  Zdenek Dvorak  <dvorakz@suse.cz>
4930         PR tree-optimization/18316
4931         PR tree-optimization/19126
4932         * tree.c (build_int_cst_type): Avoid shift by size of type.
4933         * tree-scalar-evolution.c (simple_iv): Add allow_nonconstant_step
4934         argument.
4935         * tree-scalar-evolution.h (simple_iv): Declaration changed.
4936         * tree-ssa-loop-ivopts.c (struct iv_cand): Add depends_on
4937         field.
4938         (dump_cand): Dump depends_on information.
4939         (determine_biv_step): Add argument to simple_iv call.
4940         (contains_abnormal_ssa_name_p): Handle case expr == NULL.
4941         (find_bivs, find_givs_in_stmt_scev): Do not require step to be a
4942         constant.
4943         (add_candidate_1): Record depends_on for candidates.
4944         (tree_int_cst_sign_bit, constant_multiple_of): New functions.
4945         (get_computation_at, get_computation_cost_at, may_eliminate_iv):
4946         Handle ivs with nonconstant step.
4947         (iv_ca_set_remove_invariants, iv_ca_set_add_invariants): New functions.
4948         (iv_ca_set_no_cp, iv_ca_set_cp): Handle cand->depends_on.
4949         (create_new_iv): Unshare the step before passing it to create_iv.
4950         (free_loop_data): Free cand->depends_on.
4951         (build_addr_strip_iref): New function.
4952         (find_interesting_uses_address): Use build_addr_strip_iref.
4953         (strip_offset_1): Split the recursive part from strip_offset.
4954         Strip constant offset component_refs and array_refs.
4955         (strip_offset): Split the recursive part to strip_offset_1.
4956         (add_address_candidates): Removed.
4957         (add_derived_ivs_candidates): Do not use add_address_candidates.
4958         (add_iv_value_candidates): Add candidates with stripped constant
4959         offset.  Consider all candidates with initial value 0 important.
4960         (struct affine_tree_combination): New.
4961         (aff_combination_const, aff_combination_elt, aff_combination_scale,
4962         aff_combination_add_elt, aff_combination_add,
4963         tree_to_aff_combination, add_elt_to_tree, aff_combination_to_tree,
4964         fold_affine_sum): New functions.
4965         (get_computation_at): Use fold_affine_sum.
4966         * tree-ssa-loop-manip.c (create_iv): Handle ivs with nonconstant step.
4967         * tree-ssa-loop-niter.c (number_of_iterations_exit): Add argument
4968         to simple_iv call.
4970 2005-04-30  Michael Matz  <matz@suse.de>
4972         * config/i386/i386.md (movmemsi): Also active when
4973         TARGET_INLINE_ALL_STRINGOPS.
4975 2005-04-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
4977         PR bootstrap/20633
4978         * config/freebsd-spec.h (FBSD_CPP_SPEC): Add %(cpp_arch).
4980 2005-04-30  Paul Brook  <paul@codesourcery.com>
4982         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Always use .thumb_set in
4983         thumb mode.
4984         * config/arm/ieee754-df.S: Use __INTERWORKING_STUBS__.
4985         * config/arm/ieee754-sf.S: Ditto.
4986         * config/arm/lib1funcs.asm: Define and use __INTERWORKING_STUBS__.
4987         (FUNC_ALIAS): Use .thumb_set for thumb routines.
4989 2005-04-30  Kazu Hirata  <kazu@cs.umass.edu>
4991         * tree-ssanames.c: Fix a comment typo.
4992         * doc/options.texi: Fix a typo.
4994 2005-04-30  Nathan Sidwell  <nathan@codesourcery.com>
4996         * config/h8300/h8300.c (byte_reg): Use gcc_assert and
4997         gcc_unreachable as appropriate.
4998         (split_adds_subs, cond_string, print_operand,
4999         h8300_initial_elimination_offset, h8300_classify_operand,
5000         h8300_unary_length, h8300_short_immediate_length,
5001         h8300_bitfield_length, h8300_binary_length,
5002         h8300_insn_length_from_table, compute_mov_length, output_plussi,
5003         compute_plussi_length, compute_plussi_cc, output_logical_op,
5004         compute_logical_op_length, compute_logical_op_cc,
5005         output_h8sx_shift, get_shift_alg, h8300_shift_needs_scratch_p,
5006         output_a_shift, compute_a_shift_length, compute_a_shift_cc,
5007         output_a_rotate, compute_a_rotate_length, fix_bit_operand,
5008         h8300_regs_ok_for_stm): Likewise.
5009         * config/h8300/h8300.md (*movsi_h8300, *movsf_h8300,
5010         monitor_prologue): Likewise.
5012 2005-04-30  Kazu Hirata  <kazu@cs.umass.edu>
5014         * loop-invariant.c (invariants, create_new_invariant,
5015         get_inv_cost, best_gain_for_invariant,
5016         find_invariants_to_move, move_invariants,
5017         init_inv_motion_data, free_inv_motion_data): Use VEC instead
5018         of VARRAY.
5020 2005-04-29  Richard Henderson  <rth@redhat.com>
5022         * function.c (instantiate_decls): Remove valid_only argument.
5023         (instantiate_decls_1, instantiate_decl): Likewise.
5024         (instantiate_virtual_regs_1): Delete.
5025         (instantiate_virtual_regs_lossage): Delete.
5026         (instantiate_virtual_regs_in_rtx): New.
5027         (safe_insn_predicate): New.
5028         (instantiate_virtual_regs_in_insn): New.
5029         (instantiate_virtual_regs): Update to match all that.  Only run
5030         instantiate_decls once.
5032 2005-04-29  Richard Henderson  <rth@redhat.com>
5033             Daniel Jacobowitz  <dan@codesourcery.com>
5035         * gengtype.c (write_func_for_structure): Split out ...
5036         (output_type_enum): ... new function.  Fix thinko accessing
5037         TYPE_PARAM_STRUCT data.
5039 2005-04-29  Tom Tromey  <tromey@redhat.com>
5041         * tree.c (build_block): Removed unused 'tags' argument.
5042         * tree.h (build_block): Removed argument.
5044 2005-04-29  Michael Matz  <matz@suse.de>
5046         PR rtl-optimization/21144
5047         * postreload.c (reload_cse_move2add): Check for VOIDmode.
5049 2005-04-29  Bob Wilson  <bob.wilson@acm.org>
5051         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Define to disable
5052         flag_reorder_blocks.
5054 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
5056         PR tree-optimization/21030
5057         * tree-vrp.c (adjust_range_with_scev): Do not create invalid
5058         ranges where VR->MAX is smaller than VR->MIN.
5060 2005-04-29  Devang Patel  <dpatel@apple.com>
5062         PR tree-optimization/21272
5063         PR tree-optimization/21266
5064         * tree-if-conv.c (find_phi_replacement_condition): Fix think-o.
5066 2005-04-29  Kazu Hirata  <kazu@cs.umass.edu>
5068         * tree-flow-inline.h: Fix a comment typo.
5069         * doc/tree-ssa.texi: Fix a typo.
5071         * tree-flow-inline.h, tree-ssa-operands.c: Fix comment typos.
5073 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
5075         * config/fr30/fr30.c (fr30_expand_prologue): Use gcc_assert and
5076         gcc_unreachable as appropriate.
5077         (fr30_expand_epilogue, fr30_setup_incoming_varargs,
5078         fr30_print_operand, fr30_move_double): Likewise.
5079         * config/fr30/fr30.md (*movsi_internal, *movsf_internal): Likewise.
5081 2005-04-29  Mark Mitchell  <mark@codesourcery.com>
5083         * config/arm/arm.h (ARM_EABI_CTORS_SECTION_OP): Do not define if a
5084         definition has already been provided.
5085         (ARM_EABI_DTORS_SECTION_OP): Likewise.
5086         * config/arm/symbian.h (ARM_EABI_CTORS_SECTION_OP): Define.
5087         (ARM_EABI_DTORS_SECTION_OP): Likewise.
5089 2005-04-29  Jim Tison  <jtison@us.ibm.com>
5091         * config/s390/s390.md ("prologue_tpf", "epilogue_tpf"): Alter
5092         trace hooks calls to improve performance.
5094 2005-04-29  Julian Brown  <julian@codesourcery.com>
5095             Mark Mitchell  <mark@codesourcery.com>
5096             Paul Brook  <paul@codesourcery.com>
5098         * crtstuff.c: Handle targets that use .init_array.
5099         * function.c (HAS_INIT_SECTION): Do not define. Instead, make sure
5100         that INVOKE__main is set correctly.
5101         (expand_main_function): Test INVOKE__main.
5102         * libgcc2.c: Do not define __main when using .init_array.
5103         * config/arm/arm.c (arm_elf_asm_constructor): New function.
5104         * config/arm/arm.h (CTORS_SECTION_ASM_OP): Define, with specialized
5105         libgcc version.
5106         (DTORS_SECTION_ASM_OP): Likewise.
5107         (CTOR_LIST_BEGIN): Define specially when in libgcc.
5108         (CTOR_LIST_END): Likewise.
5109         (DTOR_LIST_BEGIN): Likewise.
5110         (DTOR_LIST_END): Likewise.
5111         * config/arm/bpapi.h (INIT_SECTION_ASM_OP): Do not define it.
5112         (FINI_SECTION_ASM_OP): Likewise.
5113         (INIT_ARRAY_SECTION_ASM_OP): Define.
5114         (FINI_ARRAY_SECTION_ASM_OP): Likewise.
5115         * config/arm/elf.h (TARGET_ASM_CONSTRUCTOR): Define.
5116         (SUPPORTS_INIT_PRIORITY): Evaluate to false for EABI based targets.
5117         * doc/tm.texi (INIT_ARRAY_SECTION_ASM_OP): Document.
5118         (FINI_ARRAY_SECTION_ASM_OP): Likewise.
5120 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
5122         * config/m68k/m68k.c (m68k_initial_elimination_offset): Use
5123         gcc_assert and gcc_unreachable as appropriate.
5124         (output_dbcc_and_branch, output_scc_di, legitimize_pic_address,
5125         const_int_cost, output_move_const_into_data_reg,
5126         output_move_qimode, output_move_double, find_addr_reg,
5127         print_operand, print_operand_address): Likewise.
5128         * config/m68k/m68k.md (adddi3, subdi3, negsf2, negdf2, abssf2,
5129         absdf2, sordered, sunordered, suneq, sunge, sungt, sunle, sunlt,
5130         sltgt, bordered, bunordered, buneq, bunge, bungt, bunle, bunlt,
5131         bltgt, *bordered_rev, *bunordered_rev, *buneq_rev, *bunge_rev,
5132         *bunle_rev, *bunlt_rev, *bltgt_rev, negxf2, absxf2,
5133         conditional_trap): Likewise.
5134         * config/m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Remove unreachable code.
5136 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
5138         * config/xtensa/xtensa.c (gen_int_relational): Use gcc_assert and
5139         gcc_unreachable as appropriate.
5140         (gen_conditional_move, xtensa_split_operand_pair,
5141         xtensa_split_operand_pair, xtensa_copy_incoming_a7,
5142         xtensa_copy_incoming_a7, xtensa_copy_incoming_a7,
5143         xtensa_copy_incoming_a7, xtensa_output_literal,
5144         xtensa_output_literal, xtensa_output_literal): Likewise.
5145         * config/xtensa/xtensa.h (INITIAL_ELIMINATION_OFFSET): Likewise.
5146         * config/xtensa/xtensa.md (*btrue, *bfalse, *ubtrue, *ubfalse,
5147         *bittrue, *bitfalse, *masktrue, *maskfalse, movsicc_internal0,
5148         movsicc_internal1, movsfcc_internal0,
5149         movsfcc_internal1): Likewise.
5151 2005-04-28  James E Wilson  <wilson@specifixinc.com>
5153         * config/i386/i386.h (HI_REGISTER_NAMES): Fix typos in comment.
5154         (ADDITIONAL_REGISTER_NAMES): Delete obsolete mmx register entries.
5156 2005-04-28  DJ Delorie  <dj@redhat.com>
5158         * opt-functions.awk (var_set): Emit proper initializer for
5159         non-target bitfields.
5161 2005-04-28  Devang Patel  <dpatel@apple.com>
5163         * dbxout.c (have_used_extensions): Remove.
5164         (dbxout_type_fileds, dbxout_type, dbxout_symbol): Remove use of
5165         have_used_extensions.
5167 2005-04-28  James E Wilson  <wilson@specifixinc.com>
5169         * doc/install.texi: Update -enable-languages info.  Correct path to
5170         html docs.
5172 2005-04-28  DJ Delorie  <dj@redhat.com>
5174         * optc-gen.awk (END): Make sure no variable is defined more
5175         than once.
5176         * opth-gen.awk (END): Allocate bits on a per-variable basis.
5177         Allow for bitfield variables other than target_flags.
5178         * doc/options.text (Mask): Document that you may specify a
5179         variable other than target_flags.
5181 2005-04-28  Martin Koegler <mkoegler@auto.tuwien.ac.at>
5183         PR rtl-optimization/18877
5184         * reload.c (decompose) <case REG, case SUBREG>: Handle pseudo reg
5185         number in val.start.
5187 2005-04-28  David Edelsohn  <edelsohn@gnu.org>
5189         PR target/20813
5190         * config/rs6000/aix43.h (SUBSUBTARGET_SWITCHES, aix64): Add
5191         MASK_PPC_GFXOPT.
5192         * config/rs6000/aix51.h (SUBSUBTARGET_SWITCHES, aix64): Same.
5193         * config/rs6000/aix52.h (SUBSUBTARGET_SWITCHES, aix64): Same.
5194         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES, 64): Same.
5196 2005-04-28  Richard Earnshaw  <richard.earnshaw@arm.com>
5198         * arm.c (legitimize_pic_address): Fix sense of assertion test for
5199         creating pseudos when the base offset is too large.
5201 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
5203         * global.c (earlyclobber_regclass): Change the type to
5204         VEC(int,heap).
5205         (check_earlyclobber): Update uses of earlyclobber_regclass.
5206         (mark_reg_use_for_earlyclobber): Likewise.
5207         (calculate_local_reg_bb_info): Allocate and free
5208         earlyclobber_regclass using the VEC API.
5210 2005-04-28  Nathan Sidwell  <nathan@codesourcery.com>
5212         * tree-ssa-alias.c (push_fields_onto_fieldstack): Remove bogus
5213         assert.
5215 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
5217         * modulo-sched.c, tree-stdarg.c: Use targetm.foo instead of
5218         (*targetm.foo).
5220         * config.gcc: Obsolete c4x-* and tic4x-*.
5222         * tree.h (edge_def): Remove.
5224         * bt-load.c, cfgexpand.c, dwarf2out.c, emit-rtl.c, expr.c,
5225         function.c, global.c, lcm.c, loop-invariant.c, optabs.c,
5226         reorg.c, resource.c, tree-ssa-loop-ivopts.c, value-prof.c: Use
5227         JUMP_P, LABEL_P, REG_P, MEM_P, NONJUMP_INSN_P, and INSN_P
5228         where appropriate.
5230         * attribs.c, c-pragma.c, caller-save.c, cfghooks.h,
5231         coverage.c, cselib.h, domwalk.c, domwalk.h, errors.c,
5232         errors.h, gcov-dump.c, gcov-io.c, gcov-io.h, gen-protos.c,
5233         genattrtab.h, genextract.c, gthr-win32.h, insn-notes.def,
5234         integrate.c, lambda-mat.c, lambda.h, libgcov.c, local-alloc.c,
5235         machmode.def, mips-tfile.c, params.c, pretty-print.c,
5236         print-rtl.c, protoize.c, regmove.c, sched-vis.c, tree-chrec.h,
5237         tree-data-ref.h, vec.h, config/darwin-c.c, config/sol2-c.c,
5238         config/sol2.c, config/arm/arm-cores.def, config/arm/cirrus.md,
5239         config/arm/symbian.h, config/c4x/c4x.c, config/c4x/c4x.h,
5240         config/i386/cygming.h, config/i386/djgpp.h,
5241         config/i386/lynx.h, config/i386/netware.c,
5242         config/i386/winnt.c, config/ia64/ia64-c.c,
5243         config/iq2000/iq2000.c, config/m32r/little.h,
5244         config/m68k/m68k-protos.h, config/m68k/m68k.h,
5245         config/m68k/m68k.md, config/mcore/mcore.c,
5246         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.md,
5247         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
5248         config/mn10300/mn10300.h, config/ns32k/netbsd.h,
5249         config/ns32k/ns32k.c, config/ns32k/ns32k.h,
5250         config/pa/pa-hpux11.h, config/pdp11/pdp11.c,
5251         config/pdp11/pdp11.h, config/rs6000/darwin.h,
5252         config/rs6000/default64.h, config/rs6000/rs6000-c.c,
5253         config/s390/2064.md, config/s390/2084.md,
5254         config/s390/s390-modes.def, config/s390/s390-protos.h,
5255         config/s390/tpf.h, config/sh/sh.h, config/sh/symbian.c,
5256         config/stormy16/stormy16.c, config/vax/vax-protos.h,
5257         config/vax/vax.c, config/vax/vax.h,
5258         config/xtensa/lib1funcs.asm, config/xtensa/xtensa.md: Update
5259         copyright.
5261 2005-04-28  Joseph S. Myers  <joseph@codesourcery.com>
5263         * c-typeck.c (build_compound_expr): Correct logic in last change.
5265 2005-04-27  James E. Wilson  <wilson@specifixinc.com>
5267         * config/ia64/ia64.c (update_set_flags): Delete ppred and pcond
5268         parameters.  Replace conditional move code with assert checking for
5269         ar.lc.  Delete obsolete comments.
5270         (set_src_needs_barrier): Delete cond parameter, and code using it.
5271         (rtx_needs_barrier): Delete initialization of cond.  Fix typo in
5272         assert checking for PR_REGS.  Fix calls to update_set_flags and
5273         set_src_needs_barrier.
5274         (group_barrier_needed): Renamed from group_barrier_needed_p.  Fix all
5275         callers.  Rewrite explanatory comment before the function.
5276         (safe_group_barrier_needed): Renamed from safe_group_barrier_needed_p.
5277         Fix all callers.
5279 2005-04-27  Mike Stump  <mrs@apple.com>
5281         * doc/cpp.texi: gcc now implements universal character names.
5283 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
5285         PR c/21159
5286         * c-typeck.c (build_compound_expr): Don't warn for left-hand side
5287         being a compound expression whose right-hand side is cast to void.
5289 2005-04-27  Caroline Tice  <ctice@apple.com>
5291         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
5292         Remove targetm.have_named_sections test.
5293         (fix_edges_for_rarely_executed_code): Likewise.
5294         (insert_section_boundary_note): Likewise.
5295         (reorder_basic_blocks): Check partitioning flag before calling
5296         verify_hot_cold_block_grouping.
5297         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
5298         the function struct rather than global variables.
5299         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
5300         (COLD_END_LABEL): Likewise
5301         (cold_text_section_label): New static global variable.
5302         (cold_end_label): Likewise.
5303         (dwarf2out_switch_text_section): Get hot/cold section labels from
5304         the function struct rather than global variables; test to make sure
5305         cfun is defined.
5306         (output_aranges): Use cold_text_section_label and cold_end_label;
5307         check partitioning flag before putting out delta.
5308         (output_ranges): Remove incorrect code attempting to use
5309         hot/cold labels.
5310         (output_line_info): Get cold section label from function struct; test
5311         to make sure cfun is defined.
5312         (add_location_or_const_value_attribute): Likewise.
5313         (dwarf2out_var_location): Likewise.
5314         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
5315         write out cold_text_section_label if partition flag is set.
5316         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
5317         * function.h (struct function): Add new fields to point to hot/cold
5318         section labels: hot_section_label, cold_section_label,
5319         hot_section_end_label and cold_section_end_label; also add new field
5320         for cold text section name, unlikely_text_section_name.
5321         * opts.c (decode_options): Turn off partitioning flag if
5322         !targetm.have_named_sections.
5323         * output.h (hot_section_label): Remove.
5324         (hot_section_end_label): Remove.
5325         (cold_section_end_label): Remove.
5326         (unlikely_section_label): Remove.
5327         (unlikely_text_section_name): Remove.
5328         * passes.c (rest_of_handle_final):  Remove extra blank line.
5329         * varasm.c (unlikely_section_label): Remove.
5330         (hot_section_label): Remove.
5331         (hot_section_end_label): Remove.
5332         (cold_section_end_label): Remove.
5333         (unlikely_text_section_name):  Remove.
5334         (initialize_cold_section_name): Modify to call
5335         targetm.strip_name_encoding; to store cold section name in current
5336         function struct, if it exists; and to only use the decl_section_name
5337         if flag_named_sections is true.
5338         (unlikely_text_section): Modify to get section name out of current
5339         function struct, if there is one; otherwise build it from
5340         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
5341         (in_unlikely_text_section): Likewise.
5342         (named_section): Modify to get/put cold section name in current function
5343         struct, if there is one.
5344         (function_section):  Change 'bool unlikely' to 'int reloc'; check
5345         targetm.have_named_sections before calling named_section.
5346         (current_function_section): Likewise.
5347         (assemble_start_function): Modify to get/put unlikely_text_section_name
5348         in current function struct; modify to get hot/cold section labels
5349         from function struct; initialize labels using
5350         ASM_GENERATE_INTERNAL_LABEL;
5351         test partitioning flag before writing out hot section label.
5352         (assemble_end_function): Test partitioning flag before writing out
5353         hot/cold section labels.
5354         (default_section_type_flags_1):  Get cold text section name from
5355         function struct if there is one; Set flags correctly for
5356         cold text section if there is not a current function struct.
5358 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
5360         * tree-ssa-propagate.c (set_rhs): Revert last change.
5362 2005-04-27  Steve Ellcey  <sje@cup.hp.com>
5364         * explow.c (convert_memory_address): Add gcc_assert.
5366 2005-04-27  Mark Mitchell  <mark@codesourcery.com>
5368         * configure.ac: Check for ld --sysroot support.
5369         * gcc.c: Document %R specifier for specs.
5370         (SYSROOT_SPEC): New macro.
5371         (sysroot_spec): New variable.
5372         (static_specs): Add sysroot_spec.
5373         (main): Pass the sysroot spec to the linker if appropriate.
5374         * configure: Regenerated.
5375         * config.in: Likewise.
5377 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
5379         * fold-const.c (fold_binary): Use build_fold_addr_expr
5380         for address calculation and INDIRECT_REF handling.
5382 2005-04-27  Andrew Haley  <aph@redhat.com>
5384         * postreload-gcse.c (hash_scan_set): Remove bogus assertion.
5386 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
5388         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Reserve arm frame
5389         pointer when thumb backtracing is on.
5391         * config/fp-bit.c (abort): Revert change.
5393 2005-04-27  Ian Lance Taylor  <ian@airs.com>
5395         * c-semantics.c (add_stmt): Don't test STATEMENT_CODE_P.
5397 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
5399         * tree-ssa-dce.c: Fix a comment typo.
5401 2005-04-27  David S. Miller  <davem@davemloft.net>
5403         * explow.c (allocate_dynamic_stack_space SETJMP_VIA_SAVE_AREA):
5404         Kill setjmpless_size.  current_function_calls_setjmp is completely
5405         computed when we are called, so just use the optimized size value
5406         instead of using REG_SAVE_AREA notes.
5407         (optimize_save_area_alloca): Delete....
5408         * rtl.h (optimize_save_area_alloca): Likewise...
5409         * passes.c (rest_of_compilation): and don't call it any more.
5410         * reg-notes.def (SAVE_AREA): Delete.
5412 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
5414         * config/fp-bit.c (abort): Add noreturn attribute.
5416         * config/avr/avr.c (avr_naked_function_p): Use gcc_assert and
5417         gcc_unreachable as appropriate.
5418         (ptrreg_to_str, cond_string, avr_normalize_condition): Likewise.
5419         * config/avr/avr.h (ASM_OUTPUT_REG_PUSH,
5420         ASM_OUTPUT_REG_POP): Likewise.
5422 2005-04-27  Paolo Bonzini  <bonzini@gnu.org>
5424         * tree-complex.c (expand_vector_operations_1): Do not build
5425         VIEW_CONVERT_EXPR's for the lhs.
5427 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
5429         * config/pa/pa.h (PRINT_OPERAND_ADDRESS): Use gcc_assert, remove
5430         unnecessary noncanonical RTL handling.
5431         * config/pa/pa64-linux.h (INITIAL_ELIMINATION_OFFSET): Use
5432         gcc_assert and gcc_unreachable.
5434         * config/arm/arm.h (ARM_PRINT_OPERAND_ADDRESS): Use gcc_assert and
5435         gcc_unreachable as appropriate.
5436         (THUMB_PRINT_OPERAND_ADDRESS): Likewise.
5437         * config/arm/arm.c (arm_override_options, arm_compute_func_type,
5438         use_return_insn, const_ok_for_op, arm_gen_constant,
5439         arm_canonicalize_comparison, legitimize_pic_address,
5440         thumb_find_work_register, arm_load_pic_register, arm_rtx_costs_1,
5441         arm_cirrus_insn_p, cirrus_reorg, minmax_code,
5442         load_multiple_sequence, emit_ldm_seq, store_multiple_sequence,
5443         emit_stm_seq, arm_gen_movmemqi, arm_select_dominance_cc_mode,
5444         arm_select_cc_mode, arm_reload_in_hi, arm_reload_out_hi,
5445         move_minipool_fix_forward_ref, move_minipool_fix_backward_ref,
5446         dump_minipool, create_fix_barrier, push_minipool_fix, arm_reorg,
5447         fp_immediate_constant, fp_const_from_val, vfp_output_fstmx,
5448         output_call, output_mov_long_double_fpa_from_arm,
5449         output_mov_long_double_arm_from_fpa,
5450         output_mov_double_fpa_from_arm, output_mov_double_arm_from_fpa,
5451         output_move_double, arithmetic_instr, shift_op, int_log2,
5452         output_return_instruction, arm_output_function_prologue,
5453         arm_output_epilogue, arm_output_function_epilogue,
5454         emit_multi_reg_push, arm_get_frame_offsets,
5455         arm_compute_initial_elimination_offset, arm_expand_prologue,
5456         arm_print_operand, arm_assemble_integer, get_arm_condition_code,
5457         arm_final_prescan_insn, arm_init_iwmmxt_builtins,
5458         arm_expand_binop_builtin, thumb_pushpop, thumb_far_jump_used_p,
5459         thumb_compute_initial_elimination_offset,
5460         thumb_output_function_prologue, thumb_load_double_from_address,
5461         thumb_output_move_mem_multiple, thumb_reload_out_hi,
5462         arm_emit_vector_const, arm_dbx_register_number): Likewise.
5463         * config/arm/pe.c (arm_mark_dllexport, arm_mark_dllimport): Likewise.
5464         * config/arm/arm.md (thumb_extendhisi2,
5465         *thumb_extendhisi2_insn_v6, *thumb_extendqisi2,
5466         *thumb_extendqisi2_v6, movhi, *thumb_movhi_insn,
5467         thumb_movhi_clobber, movqi, *arm_buneq, *arm_bltgt,
5468         *arm_buneq_reversed, *arm_bltgt_reversed, suneq, sltgt): Likewise.
5469         * config/arm/cirrus.md (*cirrus_arm_movdi,
5470         *cirrus_movdf_hard_insn): Likewise.
5471         * config/arm/vfp.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
5473 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
5475         * tree-flow.h (ssa_names): Change the type to VEC(tree,gc).
5476         (num_ssa_names): Use VEC_length.
5477         (ssa_names): Use VEC_index.
5478         * tree-ssanames.c (ssa_names): Change the type to
5479         VEC(tree,gc).
5480         (init_ssanames, fini_ssa_names, make_ssanames,
5481         release_ssa_name): Update uses of ssa_names.
5483         * dojump.c, emit-rtl.c, expmed.c, expr.c, stmt.c, stor-layout.c:
5484         Use fold_buildN instead of fold (buildN (...)).
5486 2005-04-27  Devang Patel <dpatel@apple.com>
5488         * dbxout.c (dbxout_type): Check use_gnu_debug_info_extensions.
5490 2005-04-27  Matt Thomas <matt@3am-software.com>
5491             Jan-Benedict Glaw <jbglaw@microdata-pos.de>
5493         * config/vax/vax.c (vax_rtx_costs): Whitespace cleanup.
5494         (vax_output_mi_thunk): Ditto.
5495         (vax_notice_cc_update): Ditto.
5496         (INDEX_REGISTER_P): Add trailing \.
5497         (BASE_REGISTER_P): Add trailing \.
5498         (legitimate_address_p): Whitespace cleanup.  Remove trailing \.
5500 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
5502         * tree-ssa-propagate.c (set_rhs): Check operand of
5503         ADDR_EXPR for gimpliness, too.
5505 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
5507         * tree-ssa-pre.c: Fix a comment typo.
5509 2005-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
5511         PR tree-optimization/21171
5512         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not
5513         record address uses if the reference is volatile.
5515 2004-04-27  Paolo Bonzini  <bonzini@gnu.org>
5517         * tree-complex.c (expand_vector_operation): New, extracted from
5518         expand_vector_operations_1.
5519         (tree_vec_extract): Build a NOP_EXPR.
5520         (expand_vec_parallel): Do not care about returning the correct type.
5521         (expand_vector_operations_1): Call expand_vector_operation.
5522         Build the VIEW_CONVERT_EXPR on the left side of MODIFY_EXPRs.
5524         * tree-complex.c (gate_expand_vector_operations): New.
5525         (pass_lower_vector_ssa): Use it.
5526         * tree-optimize.c (init_tree_optimization_passes): Include
5527         pass_lower_vector_ssa.
5528         * tree-vect-transform.c (vect_min_worthwhile_factor): New.
5529         (vectorizable_operation): Use it.
5530         * tree-vectorizer.c (get_vectype_for_scalar_type): Accept
5531         integer modes for the vector type.
5533         * defaults.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
5534         * tree-vect-analyze.c (vect_enhance_data_refs_alignment):
5535         Do not cope with UNITS_PER_SIMD_WORD == 0.
5536         * tree-vectorizer.c (get_vectype_for_scalar_type): Check
5537         if the scalar type is not bigger than UNITS_PER_SIMD_WORD.
5538         (vectorize_loops): Do not check that UNITS_PER_SIMD_WORD > 0.
5539         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
5540         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
5541         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
5542         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
5544         * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): Remove.
5545         * config/bfin/bfin.h (UNITS_PER_SIMD_WORD): Remove.
5546         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): Remove.
5548         * doc/tm.texi (UNITS_PER_WORD): Rephrase more accurately.
5549         (UNITS_PER_SIMD_WORD): New.
5551 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
5553         * config/ia64/ia64.c (ia64_encode_addr_area): Use gcc_assert and
5554         gcc_unreachable as appropriate.
5555         (ia64_expand_load_address, ia64_expand_tls_address,
5556         ia64_split_tmode, ia64_split_tmode_move, ia64_expand_compare,
5557         ia64_expand_vecint_compare, ia64_expand_vecint_minmax,
5558         next_scratch_gr_reg, ia64_initial_elimination_offset,
5559         ia64_expand_prologue, ia64_expand_epilogue,
5560         ia64_output_dwarf_dtprel, ia64_print_operand,
5561         ia64_register_move_cost, first_instruction, rws_access_regno,
5562         update_set_flags, rtx_needs_barrier, group_barrier_needed_p,
5563         ia64_sched_init, ia64_variable_issue,
5564         ia64_first_cycle_multipass_dfs_lookahead_guard,
5565         ia64_dfa_new_cycle, issue_nops_and_insn, get_template, bundling,
5566         ia64_st_address_bypass_p, ia64_ld_address_bypass_p, process_set,
5567         process_for_unwind_directive, ia64_hpux_file_end): Likewise.
5568         * config/ia64/ia64.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
5569         * config/ia64/ia64.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
5570         * config/ia64/predicates.md (got_symbolic_operand,
5571         sdata_symbolic_operand): Likewise.
5572         * config/ia64/vect.md (vcondv2sf): Likewise.
5574 2005-04-27  Matt Thomas <matt@3am-software.com>
5576         * config/vax/vax.c (legitimate_constant_address_p): New.  Formerly
5577         CONSTANT_ADDRESS_P in config/vax/vax.h
5578         (legitimate_constant_p): Added.  Formerly CONSTANT_P in vax.h.
5579         (INDEX_REGISTER_P): New.
5580         (BASE_REGISTER_P): New.
5581         (indirectable_constant_address_p): New.  Adapted from
5582         INDIRECTABLE_CONSTANT_ADDRESS_P in vax.h. Use SYMBOL_REF_LOCAL_P.
5583         (indirectable_address_p): New.  Adapted from
5584         INDIRECTABLE_ADDRESS_P in vax.h.
5585         (nonindexed_address_p): New.  Adapted from
5586         GO_IF_NONINDEXED_ADDRESS in vax.h.
5587         (index_temp_p): New.  Adapted from INDEX_TERM_P in vax.h.
5588         (reg_plus_index_p): New.  Adapted from GO_IF_REG_PLUS_INDEX in vax.h.
5589         (legitimate_address_p): New.  Adapted from
5590         GO_IF_LEGITIMATE_ADDRESS in vax.h.
5591         (vax_mode_dependent_address_p): New.  Adapted from
5592         GO_IF_MODE_DEPENDENT_ADDRESS in vax.h.
5593         * config/vax/vax.h (CONSTANT_ADDRESS_P): Use
5594         legitimate_constant_address_p.
5595         (CONSTANT_P): Use legitimate_constant_p.
5596         (INDIRECTABLE_CONSTANT_ADDRESS_P): Removed.
5597         (INDIRECTABLE_ADDRESS_P): Removed.
5598         (GO_IF_NONINDEXED_ADDRESS): Removed.
5599         (INDEX_TEMP_P): Removed.
5600         (GO_IF_REG_PLUS_INDEX): Removed.
5601         (GO_IF_LEGITIMATE_ADDRESS): Use legitimate_address_p. Two
5602         definitions, depending on whether REG_OK_STRICT is defined.
5603         (GO_IF_MODE_DEPENDENT_ADDRESS): Use vax_mode_dependent_address_p.
5604         Two definitions, depending on whether REG_OK_STRICT is defined.
5605         * config/vax/vax-protos.h (legitimate_constant_address_p): Prototype
5606         added.
5607         (legitimate_constant_p): Prototype added.
5608         (legitimate_address_p): Prototype added.
5609         (vax_mode_dependent_address_p): Prototype added.
5611 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
5613         * tree.h (phi_arg_d): Expand a comment in phi_arg_d.
5615 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
5617         PR c/21213
5618         * c-decl.c (finish_struct): Don't dereference NULL TYPE_FIELDS of
5619         transparent union.
5621 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
5623         PR c/20740
5624         * c-format.c (init_dynamic_asm_fprintf_info): Give errors, not
5625         assertion failures, if __gcc_host_wide_int__ is not properly
5626         defined.
5627         (init_dynamic_diag_info): Give errors, not assertion failures, if
5628         location_t, tree or __gcc_host_wide_int__ are not properly
5629         defined.
5631 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
5633         * tree-ssa-loop-ivopts.c (ivopts_data, decl_rtl_to_reset,
5634         n_iv_uses, iv_use, n_iv_cands, iv_cand,
5635         tree_ssa_iv_optimize_init, record_use, add_candidate_1,
5636         prepare_decl_rtl, free_loop_data,
5637         tree_ssa_iv_optimize_finalize): Use the VEC API instead of
5638         VARRAY.
5640         * tree.h (tree_phi_node): Add a comment about the order of PHI
5641         arguments.
5643 2005-04-26  Paul Brook  <paul@codesourcery.com>
5645         * config/arm/arm.md (thumb_mulsi3): Use two-operand assembly form.
5647 2005-04-26  Nathan Sidwell  <nathan@codesourcery.com>
5649         * config/mips.mips.c (mips_legitimize_tls_address): Use
5650         gcc_unreachable.
5652         * config/mmix/mmix.c (mmix_assemble_integer): Use gcc_assert.
5653         * config/mmix/crti.asm (_init): Reword comment to avoid 'abort'.
5654         * config/mmix/mmix.md (nonlocal_goto_receiver): Likewise.
5656         * config/sparc/sparc.h (enum reg_class): Reword comment to avoid
5657         'abort'.
5659 2005-04-26  Jeff Law  <law@redhat.com>
5661         * tree-flow-inline.h (op_iter_next_must_and_may_def): New.
5662         (op_iter_init_must_and_may_def): Likewise.
5663         (unmodifiable_var_p): Move to a later point in the file.
5664         * tree-ssa-operands.h (FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): New.
5665         * tree-ssa-dse.c (need_imm_uses_for): Remove, no longer needed.
5666         (dse_record_phis): Directly check for virtual operands rather than
5667         using need_imm_uses_for.
5668         (dse_optimize_stmt): Handle V_MUST_DEF operands.  Handle case where
5669         store has multiple V_{MAY,MUST}_DEF operands.
5671 2005-04-26  Andrew MacLeod  <amacleod@redhat.com>
5673         * tree-cfg.c (bsi_replace): Delink immediate uses for the original
5674         stmt.
5676 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
5678         * tree-cfg.c (lv_adjust_loop_header_phi): Speed up moving a
5679         call to find_edge outside a loop to go through a PHI chain.
5681 2004-04-26  Richard Guenther  <rguenth@gcc.gnu.org>
5683         PR tree-optimization/17598
5684         * fold-const.c (fold_binary): Fold comparisons of addresses
5685         of COMPONENT_REFs which reference the same field to
5686         comparisons of the addresses of the base objects.
5688 2005-04-26  Julian Brown  <julian@codesourcery.com>
5690         * config/arm/arm.c (arm_return_in_msb): New function.
5691         (arm_must_pass_in_stack): New function.
5692         (TARGET_RETURN_IN_MSB): Define target hook.
5693         (TARGET_MUST_PASS_IN_STACK): Define target hook.
5694         (arm_function_value): Pad small aggregate return.
5695         (arm_pad_arg_upward): New function.
5696         (arm_pad_reg_upward): New function.
5697         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Include complex values.
5698         (FUNCTION_ARG_PADDING): Define macro.
5699         (BLOCK_REG_PADDING): Define macro.
5700         (PAD_VARARGS_DOWN): Correct padding for AAPCS.
5701         * config/arm/arm-protos.h (arm_pad_arg_upward): Declare function.
5702         (arm_pad_reg_upward): Declare function.
5704 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
5706         * basic-block.h (ei_cond): New.
5707         (FOR_EACH_EDGE): Call ei_cond.
5709         PR tree-optimization/21047
5710         * fold-const.c (fold_binary): Abort on ASSERT_EXPR.
5711         (fold): Don't handle ASSERT_EXPR.
5713 2005-04-25  Roger Sayle  <roger@eyesopen.com>
5715         * sched-deps.c (sched_analyze_1): On STACK_REGS targets, x87, treat
5716         all writes to any stack register as a read/write dependency on
5717         FIRST_STACK_REG.
5718         (sched_analyze_2): Likewise, for reads from any stack register.
5720 2005-04-25  Richard Henderson  <rth@redhat.com>
5722         * final.c (output_addr_const): Revert 2005-04-09 change.
5724 2005-04-25  Mike Stump  <mrs@apple.com>
5726         * config/darwin.c (darwin_encode_section_info): Always set
5727         MACHO_SYMBOL_STATIC for all ! TREE_PUBLIC symbols.
5729 2005-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5731         * collect2.c, gcc.c, gcov-dump.c, gcov.c, gen-protos.c,
5732         gensupport.c, protoize.c, toplev.c: Replace calls to
5733         `unlock_stream' with `unlock_std_streams'.
5735 2005-04-25  Devang Patel <dpatel@apple.com>
5737         * dbxout.c (dbxout_type): Emit attribute vector.
5739 2005-04-05  Paul Brook  <paul@codesourcery.com>
5741         * target-def.h (TARGET_CXX_USE_AEABI_ATEXIT): Define.
5742         * target.h (struct gcc_target): Add cxx.use_aeabi_atexit.
5743         * config/arm/arm.c (arm_cxx_atexit_name): New function.
5744         (TARGET_CXX_USE_AEABI_ATEXIT): New macro.
5745         * cp/decl.c (get_atexit_node): Reorder arguments for __aeabi_atexit.
5746         (register_dtor_fn): Likewise.
5747         * doc/tm.texi: Document TARGET_CXX_USE_AEABI_ATEXIT.
5749 2005-04-25  Ian Lance Taylor  <ian@airs.com>
5751         * c-common.def (EXPR_STMT): Remove, moved to C++ frontend.
5752         * c-common.h (EXPR_STMT_EXPR): Don't define.
5753         (c_common_stmt_codes): Don't define.
5754         * c-dump.c (c_dump_tree): Remove EXPR_STMT case.
5755         * c-gimplify.c (gimplify_expr_stmt): Remove.
5756         (c_gimplify_expr): Remove EXPR_STMT case.
5757         * c-objc-common.c (c_objc_common_init): Remove stmt_codes and call
5758         to INIT_STATEMENT_CODES.
5759         * c-pretty-print.c (pp_c_statement): Just call dump_generic_node.
5761 2005-04-25  Jan Hubicka  <jh@suse.cz>
5763         * tree-cfg.c (tree_duplicate_bb): Duplicate EH region too.
5765         * except.c: Include diagnostic.h
5766         (dump_eh_tree, verify_eh_tree): New functions.
5767         * except.h (verify_eh_tree, dump_eh_tree, verify_eh_edges): Declare.
5768         * tree-cfg.c (tree_verify_flow_info): verify eh edges.
5769         (dump_function_to_file): dump eh tree.
5770         * tree-eh.c (mark_eh_edge): New function.
5771         (mark_eh_edge_found_error): New static variable.
5772         (verify_eh_edges): New function.
5774 2005-04-25  Nathan Sidwell  <nathan@codesourcery.com>
5776         * tree-ssa-alias.c (fieldoff_t): Remove.
5777         (fieldoff_s): typedef the structure itself.  Create a vector of
5778         objects.
5779         (push_fields_onto_fieldstack): Return count of fields pushed.
5780         Remove peeling of first field.  Adjust.
5781         (fieldoff_compare): Adjust.
5782         (create_overlap_variables_for): Adjust.
5784 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
5786         * doc/invoke.texi (Blackfin Options): Avoid empty @opindex line.
5788 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
5790         PR bootstrap/21215
5791         * doc/install.texi: Document correct assembler and linker to use
5792         on i?86-*-solaris2.10.
5794 2005-04-25  Steven Bosscher  <stevenb@suse.de>
5796         Fix PR tree-optimization/21173
5798         * tree-ssa-pre.c (create_expression_by_pieces): Simplify code.
5799         Unshare expression we pass to force_gimple_operand.
5801 2005-04-25  J"orn Rennecke <joern.rennecke@st.com>
5802             Stephen Clarke <stevec@superh.com>
5803             Roger Sayle <roger@eyesopen.com>
5805         PR rtl-optimization/20413
5806         * cfgrtl.c (redirect_edge_and_branch): Use Pmode instead of
5807         VOIDmode for LABEL_REF.
5808         * final.c (shorten_branches): Likewise.
5809         * jump.c (mark_all_labels, redirect_exp_1): Likewise.
5810         * loop.c (reg_dead_after_loop): Likewise.
5811         * varasm.c (decode_addr_const): Likewise.
5812         * doc/rtl.texi: Document mode requirement for LABEL_REF.
5814 2005-04-25  Ralf Corsepius  <ralf.corsepius@rtems.org>
5816         * config.gcc (avr-*-*): Remove redundant "case".
5818 2005-04-25  Kazu Hirata  <kazu@cs.umass.edu>
5820         * tree-vect-analyze.c (vect_mark_relevant): Take
5821         VEC(tree,heap) instead of varray_type as an argument.
5822         (vect_mark_stmts_to_be_vectorized): Change the type of
5823         worklist to VEC(tree,heap).  Adjust uses of worklist.
5825 2005-04-24  Devang Patel  <dpatel@apple.com>
5827         *  config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
5829 2005-04-24  Ian Lance Taylor  <ian@airs.com>
5831         * c-semantics.c (build_stmt): Remove test of specific tree codes
5832         for TREE_SIDE_EFFECTS handling.
5834 2005-04-24  Per Bothner  <per@bothner.com>
5836         * c-opts.c (finish_options):  Make the line-number of the <built-in>
5837         location 0, as assumed elsewhere, rather than 1.
5839 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
5841         * tree-ssa-uncprop.c (equiv_stack): Change the type o
5842         VEC(tree,heap).
5843         (tree_ssa_uncprop, uncprop_finalize_block,
5844         uncprop_initialize_block): Update uses of equiv_stack.
5846 2005-04-24  Richard Henderson  <rth@redhat.com>
5848         PR rtl-opt/21163
5849         * simplify-rtx.c (simplify_binary_operation) <IOR>: Check
5850         for SCALAR_INT_MODE_P instead of not MODE_CC before returning
5851         constm1_rtx.
5852         <AND, LSHIFTRT, UMIN>: Use CONST0_RTX.
5853         <UDIV, UMOD>: Use CONST0_RTX and CONST1_RTX.
5854         <DIV, MOD>: Likewise.
5856 2005-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5858         * collect2.c (main): Unlock the stdio streams.
5859         * gcc.c (main): Likewise.
5860         * gcov-dump.c (main): Likewise.
5861         * gcov.c (main): Likewise.
5862         * gen-protos.c (main): Likewise.
5863         * gensupport.c (init_md_reader_args_cb): Likewise.
5864         * protoize.c (main): Likewise.
5865         * toplev.c (general_init): Likewise.
5867 2005-04-24  Jakub Jelinek  <jakub@redhat.com>
5869         PR middle-end/20991
5870         * cgraph.h (cgraph_local_info): Add vtable_method field.
5871         * varasm.c (mark_decl_referenced): If cgraph_global_info_ready
5872         and node is vtable_method, finalized and not reachable, don't do
5873         anything.
5875 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
5877         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Use
5878         COMPARISON_CLASS_P.
5879         * tree-ssa-pre.c (create_value_expr_from): Use
5880         CONSTANT_CLASS_P and REFERENCE_CLASS_P.
5881         * tree-ssa-propagate.c (stmt_makes_single_load,
5882         stmt_makes_single_store): Use REFERENCE_CLASS_P.
5883         * tree-vect-transform.c (vect_is_simple_cond): Use
5884         COMPARISON_CLASS_P.
5885         * tree-vrp.c (extract_range_from_assert,
5886         build_assert_expr_for, fp_predicate, has_assert_expr): Use
5887         COMPARISON_CLASS_P.
5889         * tree-ssa-live.c (build_tree_conflict_graph): Change the type
5890         of tpa_to_clear to VEC(int,heap).  Update uses of
5891         tpa_to_clear.  Free tpa_to_clear at the end.
5893 2005-04-24  Andrew Pinski  <pinskia@physics.uc.edu>
5895         * tree.h (TREE_THIS_VOLATILE): Document the effect on a
5896         function decl.
5898 2005-04-24  Nathan Sidwell  <nathan@codesourcery.com>
5900         * config/rs6000/rs6000.c (rs6000_override_options): Use gcc_assert
5901         and gcc_unreachable as appropriate.
5902         (num_insns_constant, output_vec_const_move,
5903         build_mask64_2_operands, rs6000_output_dwarf_dtprel,
5904         rs6000_emit_set_const, rs6000_emit_move,
5905         spe_build_register_parallel, function_arg,
5906         rs6000_move_block_from_reg, altivec_expand_predicate_builtin,
5907         spe_expand_predicate_builtin, spe_expand_evsel_builtin,
5908         rs6000_expand_builtin, spe_init_builtins, altivec_init_builtins,
5909         rs6000_common_init_builtins, expand_block_clear,
5910         expand_block_move, validate_condition_mode, ccr_bit, extract_MB,
5911         extract_ME, rs6000_get_some_local_dynamic_name,
5912         rs6000_output_function_entry, print_operand,
5913         print_operand_address, rs6000_generate_compare, rs6000_emit_sCOND,
5914         output_cbranch, output_e500_flip_gt_bit,
5915         rs6000_emit_vector_compare, rs6000_emit_vector_compare,
5916         rs6000_emit_cmove, rs6000_emit_minmax, rs6000_split_multireg_move,
5917         compute_save_world_info, rs6000_stack_info,
5918         rs6000_emit_load_toc_table, rs6000_frame_related,
5919         spe_synthesize_frame_save, rs6000_emit_epilogue,
5920         rs6000_output_function_epilogue, rs6000_hash_constant, output_toc,
5921         output_function_profiler, rs6000_trampoline_size,
5922         rs6000_initialize_trampoline, find_addr_reg,
5923         rs6000_machopic_legitimize_pic_address,
5924         rs6000_initial_elimination_offset,
5925         rs6000_dbx_register_number): Likewise.
5926         * config/rs6000/rs6000.md (*fix_truncdfsi2_internal,
5927         *movdf_hardfloat32, *movdf_softfloat32, *fix_trunctfsi2_internal,
5928         *movti_power, *movti_string, call, call_value, sibcall,
5929         sibcall_value): Likewise.
5930         * config/rs6000/spe.md (*movdf_e500_double,
5931         *movv2si_internal): Likewise.
5932         * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Remove 'abort'
5933         from comment.
5935 2005-04-24  Richard Henderson  <rth@redhat.com>
5937         PR target/21101
5938         * config/i386/i386.h (CANNOT_CHANGE_MODE_CLASS): Move guts to ...
5939         * config/i386/i386.c (ix86_cannot_change_mode_class): ... here.
5940         Deny modes smaller than 4 bytes.
5941         * config/i386/i386-protos.h: Update.
5943 2005-04-24  Ralf Corsepius  <ralf.corsepius@rtems.org>
5945         * config.gcc (h8300-*-rtems*): Add h8300-*-rtemscoff*.
5946         Switch h8300-*-rtems* to ELF.
5948 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
5950         * vec.h (VEC_safe_grow): Replace grow with safe_grow.
5952 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
5954         * ipa-inline.c, tree-ssa-operands.h: Fix comment typos.
5956 2005-04-23  Richard Guenther  <rguenth@gcc.gnu.org>
5958         PR middle-end/21082
5959         * fold-const.c: Fold &a[i]-&a[j] to i-j.
5961 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
5963         * tree-ssa-loop-niter.c (tree_simplify_using_condition): Expand simple
5964         definitions of ssa names in condition.  Split recusive part to ...
5965         (tree_simplify_using_condition_1): New function.
5966         (expand_simple_operations): New function.
5968 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
5970         * tree-ssa-loop-ivopts.c (struct cost_pair): Add value field.
5971         (find_interesting_uses_cond): Do not use integer_zerop and
5972         integer_nonzerop to check for integer constants.
5973         (set_use_iv_cost): Record the value field.
5974         (determine_use_iv_cost_generic, determine_use_iv_cost_address,
5975         determine_use_iv_cost_outer): Set the value field of the cost pair.
5976         (may_eliminate_iv): Do not return the comparison code.
5977         (iv_elimination_compare): New function.
5978         (determine_use_iv_cost_condition): Set the value field.  Record
5979         noneliminable invariants correctly.
5980         (rewrite_use_compare, rewrite_use_outer): Use the value field.
5982 2005-04-23  DJ Delorie  <dj@redhat.com>
5984         * diagnostic.c (warning): Accept parameter to classify warning option.
5985         (warning0): New, for when a pointer to an error() like function is needed.
5986         * errors.c (warning): Likewise.
5987         * errors.h (warning, warning0): Adjust prototypes.
5988         * toplev.h (warning, warning0): Likewise.
5990         * attribs.c, builtins.c, c-common.c, c-decl.c, c-format.c,
5991         c-gimplify.c, c-lex.c, c-objc-common.c, c-opts.c, c-parser.c,
5992         c-pragma.c, c-typeck.c, calls.c, cgraph.c, coverage.c, emit-rtl.c,
5993         fold-const.c, fortran/trans-decl.c, function.c, gcse.c,
5994         genautomata.c, haifa-sched.c, opts.c, passes.c, regclass.c,
5995         reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
5996         tree-dump.c, tree-inline.c, tree-mudflap.c, tree-optimize.c,
5997         tree-ssa.c, tree.c, varasm.c: Adjust warning() callers.
5999         * config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
6000         config/avr/avr.c, config/bfin/bfin.c, config/c4x/c4x-c.c,
6001         config/c4x/c4x.c, config/cris/cris.c, config/darwin-c.c,
6002         config/darwin.c, config/darwin.h, config/h8300/h8300.c,
6003         config/i386/cygming.h, config/i386/djgpp.h, config/i386/i386.c,
6004         config/i386/winnt.c, config/ia64/ia64-c.c, config/ia64/ia64.c,
6005         config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
6006         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.c,
6007         config/mmix/mmix.c, config/ns32k/ns32k.c, config/pa/pa-hpux11.h,
6008         config/pa/pa.c, config/rs6000/aix43.h, config/rs6000/aix51.h,
6009         config/rs6000/aix52.h, config/rs6000/darwin.h,
6010         config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
6011         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
6012         config/sh/symbian.c, config/sol2-c.c, config/sol2.c,
6013         config/stormy16/stormy16.c, config/v850/v850-c.c,
6014         config/v850/v850.c, config/xtensa/xtensa.c: Adjust warning()
6015         callers.
6017 2005-04-23  Richard Henderson  <rth@redhat.com>
6019         PR rtl-opt/21102
6020         * simplify-rtx.c (simplify_binary_operation): Fix mode check before
6021         performing some integral scalar simplifications.
6023 2005-04-23  Richard Henderson  <rth@redhat.com>
6025         PR target/21099
6026         * config/i386/i386.c (ix86_split_to_parts): Use proper mode when
6027         simplifying CONST_VECTOR.
6029 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
6031         * tree-ssa-live.c (live_worklist): Take a stack allocated on
6032         heap as an argument.  Update uses of stack.
6033         (calculate_live_on_entry): Allocate stack on heap.
6035         * tree-ssa-live.c (build_tree_conflict_graph): Allocate
6036         partition_link and tpa_nodes on heap.
6038         * tree-ssa-dce.c (worklist): Change to VEC(tree,heap).
6039         (mark_stmt_necessary, propagate_necessity,
6040         mark_really_necessary_kill_operand_phis): Update uses of
6041         worklist.
6042         (tree_dce_init): Allocate worklist using VEC_alloc.
6043         (tree_dce_done): Free worklist using VEC_free.
6045 2005-04-23  Mike Stump  <mrs@apple.com>
6047         * config/darwin.c (machopic_indirection_name): Don't use
6048         quotes needlessly.
6049         (darwin_emit_unwind_label): Use user_label_prefix instead of
6050         "_".
6052 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
6054         * final.c, ipa-inline.c, varasm.c: Fix comment typos.
6056 2005-04-23  Hans-Peter Nilsson  <hp@axis.com>
6058         * config.gcc <cris-*>: Specify .opt files.
6059         * config/cris/cris.opt, config/cris/elf.opt, config/cris/aout.opt,
6060         config/cris/linux.opt: New files.
6061         * config/cris/aout.h (CRIS_SUBTARGET_SWITCHES)
6062         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
6063         (TARGET_ELF): Override to 0.
6064         (CRIS_SUBTARGET_HANDLE_OPTION): Override to handle -melinux and
6065         -melinux-stacksize=N.
6066         * config/cris/cris.c: (cris_handle_option): New function.
6067         (TARGET_DEFAULT_TARGET_FLAGS): Override.
6068         (TARGET_HANDLE_OPTION): Override to cris_handle_option.
6069         (cris_override_options): Use MASK_*, not TARGET_MASK_*.
6070         * config/cris/cris.h (TARGET_MASK_SVINTO, TARGET_SVINTO,
6071         (TARGET_MASK_CCINIT, TARGET_CCINIT, TARGET_MASK_PDEBUG)
6072         (TARGET_PDEBUG, TARGET_MASK_SIDE_EFFECT_PREFIXES)
6073         (TARGET_SIDE_EFFECT_PREFIXES, TARGET_MASK_EXPAND_MUL)
6074         (TARGET_EXPAND_MUL, TARGET_MASK_STACK_ALIGN, TARGET_STACK_ALIGN)
6075         (TARGET_MASK_CONST_ALIGN, TARGET_CONST_ALIGN)
6076         (TARGET_MASK_DATA_ALIGN, TARGET_DATA_ALIGN)
6077         (TARGET_MASK_PROLOGUE_EPILOGUE, TARGET_PROLOGUE_EPILOGUE)
6078         (TARGET_MASK_ETRAX4_ADD, TARGET_ETRAX4_ADD)
6079         (TARGET_MASK_ALIGN_BY_32, TARGET_ALIGN_BY_32, TARGET_MASK_ELF)
6080         (TARGET_ELF, TARGET_MASK_LINUX, TARGET_LINUX)
6081         (TARGET_MASK_AVOID_GOTPLT, TARGET_AVOID_GOTPLT)
6082         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG, TARGET_SWITCHES)
6083         (CRIS_SUBTARGET_SWITCHES, TARGET_OPTIONS)
6084         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
6085         (TARGET_LINUX): Define 0.
6086         (TARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
6087         (CRIS_SUBTARGET_DEFAULT): Define to 0, not TARGET_MASK_ELF.
6088         (CRIS_SUBTARGET_DEFAULT): New empty default macro.
6089         * config/cris/linux.h (CRIS_SUBTARGET_SWITCHES): Don't define.
6090         (TARGET_LINUX): Override to 1.
6091         (CRIS_SUBTARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
6093 2005-04-23  Nathan Sidwell  <nathan@codesourcery.com>
6095         * haifa-sched.c (schedule_block): Fix thinko in previous
6096         assertification patch.
6098 2005-04-23  Richard Sandiford  <rsandifo@redhat.com>
6100         * config.gcc (hppa[12]*-*-hpux10*): Add pa/pa-hpux.opt to
6101         $extra_options.  Also add pa/pa-hpux1010.opt for hpux10.[1-9]*.
6102         (hppa*64*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
6103         pa/pa-hpux.opt, pa/pa-hpux1010.opt and pa/pa64-hpux.opt to
6104         $extra_options.  Also add pa/pa-hpux1111.opt for hpux11.[1-9]*.
6105         (hppa[12]*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
6106         pa/pa-hpux.opt to $extra_options.  Also add pa/pa-hpux1111.opt
6107         for hpux11.[1-9]*.
6108         * config/pa/pa.h (architecture_type, rtx_def, pa_arch_string, pa_arch)
6109         (pa_fixed_range_string, pa_cpu_string, pa_unix_string, target_flags)
6110         (MASK_PA_11, MASK_DISABLE_FPREGS, TARGET_DISABLE_FPREGS)
6111         (MASK_NO_SPACE_REGS, TARGET_NO_SPACE_REGS, MASK_JUMP_IN_DELAY)
6112         (TARGET_JUMP_IN_DELAY, MASK_DISABLE_INDEXING, TARGET_DISABLE_INDEXING)
6113         (MASK_PORTABLE_RUNTIME, TARGET_PORTABLE_RUNTIME, MASK_GAS, TARGET_GAS)
6114         (MASK_SOFT_FLOAT, TARGET_SOFT_FLOAT, MASK_LONG_LOAD_STORE)
6115         (TARGET_LONG_LOAD_STORE, MASK_FAST_INDIRECT_CALLS)
6116         (TARGET_FAST_INDIRECT_CALLS, MASK_BIG_SWITCH, TARGET_BIG_SWITCH)
6117         (MASK_PA_20, MASK_SIO, TARGET_SIO, MASK_GNU_LD, TARGET_GNU_LD)
6118         (MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_PA_11, TARGET_PA_20)
6119         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS)
6120         (SUBTARGET_OPTIONS): Delete.
6121         (TARGET_PA_10): Redefine in terms of TARGET_PA_11 and TARGET_PA_20.
6122         (TARGET_SCHED_DEFAULT): Define to a PROCESSOR_* enum (PROCESSOR_8000)
6123         instead of a string.
6124         * config/pa/pa.c (pa_arch, pa_arch_string, pa_fixed_range_string)
6125         (pa_cpu_string, pa_unix_string): Delete.
6126         (pa_cpu): Initialize to TARGET_SCHED_DEFAULT.
6127         (flag_pa_unix): Initialize based on TARGET_HPUX_11_11 and
6128         TARGET_HPUX_10_10.
6129         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
6130         (pa_handle_option): New function.
6131         (override_options): Remove handling of -march=, -mfixed-range=,
6132         -mschedule= and -munix=.
6133         * config/pa/pa-hpux.h (SUBTARGET_SWITCHES): Delete.
6134         * config/pa/pa-hpux1010.h (SUBTARGET_OPTIONS): Delete.
6135         * config/pa/pa-hpux10.h (SUBTARGET_OPTIONS): Delete.
6136         * config/pa/pa-hpux1111.h (SUBTARGET_OPTIONS): Delete.
6137         * config/pa/pa-hpux11.h (SUBTARGET_OPTIONS): Delete.
6138         * config/pa/pa64-hpux.h (SUBTARGET_SWITCHES): Delete.
6139         * config/pa/pa64-start.h (TARGET_PA_11, TARGET_PA_20): #undef before
6140         redefining.
6141         * config/pa/pa.opt: New file.
6142         * config/pa/pa-hpux.opt: New file.
6143         * config/pa/pa-hpux1010.opt: New file.
6144         * config/pa/pa-hpux1111.opt: New file.
6145         * config/pa/pa64-hpux.opt: New file.
6147 2005-04-22  David S. Miller  <davem@davemloft.net>
6149         * rtl.h (CONST_DOUBLE): Fix comment, a CONST_DOUBLE holds an
6150         integer when it's mode is VOIDmode not DImode.
6152 2005-04-22  Geoffrey Keating  <geoffk@apple.com>
6154         * config/rs6000/rs6000.md (sync_add<mode>_internal,
6155         sync_addshort_internal, sync_sub<mode>_internal, sync_andsi_internal,
6156         sync_anddi_internal, sync_boolsi_internal, sync_booldi_internal,
6157         sync_boolc<mode>_internal, sync_boolc<mode>_internal2,
6158         sync_boolcc<mode>_internal, sync_lock_test_and_set<mode>): Use
6159         "bne- $-xxx" rather than local labels.
6160         (sync_lock_release<mode>): Add second operand.
6161         (lwsync): Use .long rather than a more meaningful opcode.
6162         * doc/md.texi (Standard Names): Add description of second
6163         parameter to sync_lock_test_and_set.
6165 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
6167         PR tree-optimization/21088
6168         * fold-const.c (fold_unary, fold_binary, fold_ternary):
6169         Export.
6170         * tree-vrp.c (compare_values): Use fold_binary to compare
6171         pointers.  Use boolean_type_node as the type of a comparison
6172         expression being folded.
6173         * tree.h: Add prototypes for fold_unary, fold_binary,
6174         fold_ternary.
6176         * tree-ssa-dom.c: Fix formatting.
6178 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
6180         * Makefile.in (tree-into-ssa.o): Add dependency on PARAMS_H.
6181         * lambda-code.c (perfect_nestify): Mark virtual operands in
6182         the moved statement for renaming.
6183         * params.def (PARAM_MIN_VIRTUAL_MAPPINGS): Define.
6184         (PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
6185         * params.h (MIN_VIRTUAL_MAPPINGS): Define.
6186         (VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
6187         * tree-flow.h (struct var_ann_d): Update comments.
6188         (rewrite_to_new_ssa_names_bb, rewrite_to_new_ssa_names,
6189         allocate_ssa_names, find_phi_node_for, dump_tree_ssa,
6190         debug_tree_ssa, debug_def_blocks, dump_tree_ssa_stats,
6191         debug_tree_ssa_stats, rewrite_ssa_into_ssa,
6192         dump_repl_tbl, debug_repl_tbl, dump_names_replaced_by,
6193         debug_names_replaced_by): Remove declarations.
6194         (delete_update_ssa, get_current_def, set_current_def): Declare.
6195         (rewrite_into_loop_closed_ssa): Add new argument.  Update
6196         all callers.
6197         * tree-into-ssa.c: Include params.h.
6198         (old_virtual_ssa_names): Remove.  Update all users.
6199         (need_to_replace_names_p): Remove.  Update all users.
6200         (struct update_ssa_stats_d): Declare.
6201         (update_ssa_stats): New local.
6202         (dump_tree_ssa, debug_tree_ssa, debug_def_blocks,
6203         dump_tree_ssa_stats, debug_tree_ssa_stats,
6204         dump_update_ssa, debug_update_ssa,
6205         dump_names_replaced_by, debug_names_replaced_by): Declare.
6206         (get_current_def, set current_def): Make extern.
6207         (is_old_name, is_new_name): Protect against references
6208         past the end of the sets.
6209         (add_new_name_mapping): Assert that OLD and NEW are
6210         different SSA names for the same symbol.
6211         When adding a virtual mapping, update stats for virtual
6212         mapping heuristic.
6213         (insert_phi_nodes_for): If UPDATE_P is true, create the
6214         LHS of the new PHI by duplicating SSA name VAR.
6215         (insert_phi_nodes_1): Remove.  Update all users.
6216         (insert_phi_nodes): Remove second argument.  Update all
6217         users.
6218         (maybe_replace_use, maybe_replace_def): New.
6219         (rewrite_update_stmt): Call them.
6220         (mark_def_interesting): Remove calls to is_gimple_reg.
6221         (prepare_phi_args_for_update): Remove.  Update all users.
6222         (prepare_block_for_update): Only process virtual operands
6223         and GIMPLE registers in normal form.
6224         (prepare_use_sites_for): New.
6225         (prepare_names_to_update): Rename from prepare_def_sites.
6226         Call prepare_use_sites_for.
6227         (dump_update_ssa): Rename from dump_repl_tbl.
6228         Update all users.
6229         Show statistics for virtual mapping heuristic.
6230         (debug_update_ssa): Rename from debug_debug_repl_tbl.
6231         (init_update_ssa): Initialize UPDATE_SSA_STATS.
6232         (delete_update_ssa): Make extern.
6233         (mark_set_for_renaming): If the set is empty, do nothing.
6234         (release_ssa_name_after_update_ssa): Update comment.
6235         (insert_updated_phi_nodes_for): Do not remove existing
6236         PHI nodes for symbols.
6237         (switch_virtuals_to_full_rewrite_p): New.
6238         (switch_virtuals_to_full_rewrite): New.
6239         (update_ssa): Call them.
6240         Clear REWRITE_THIS_STMT and REGISTER_DEFS_IN_THIS_STMT
6241         for every statement before updating.
6242         If all the names in NEW_SSA_NAMES have been marked for
6243         removal, do nothing.
6244         Only start at the top of the CFG if there are symbols in
6245         SYMS_TO_RENAME.
6246         (ssa_rewrite_finalize_block): Remove.
6247         (ssa_register_new_def): Remove.
6248         (ssa_rewrite_stmt): Remove.
6249         (ssa_rewrite_phi_arguments): Remove.
6250         (ssa_rewrite_initialize_block): Remove.
6251         (ssa_mark_def_sites): Remove.
6252         (ssa_mark_def_sites_initialize_block): Remove.
6253         (ssa_mark_phi_uses): Remove.
6254         (rewrite_ssa_into_ssa): Remove.
6255         * tree-phinodes.c (find_phi_node_for): Remove.
6256         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
6257         Call update_ssa.
6258         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops):
6259         Remove calls to verify_dominators and
6260         verify_loop_structure.
6261         (tree_unswitch_single_loop): Call update_ssa.
6262         * tree-ssa.c (verify_ssa): Assert that need_ssa_update_p
6263         returns false.
6264         Call verify_stmts.
6265         (delete_tree_ssa): Assert that need_ssa_update_p returns
6266         false.
6267         * tree-vect-transform.c (vect_transform_loop): Call update_ssa.
6268         * tree-vectorizer.c (allocate_new_names, rename_def_op,
6269         free_new_names): Remove.  Update all users.
6270         (rename_use_op): Call get_current_def.
6271         (rename_variables_in_bb): Do not handle any real or
6272         virtual definition.
6273         (slpeel_update_phis_for_duplicate_loop): Call
6274         get_current_def and set_current_def instead of using
6275         SSA_NAME_AUX.
6276         (slpeel_update_phi_nodes_for_guard2): Reformat comments.
6277         (slpeel_can_duplicate_loop_p): Call need_ssa_update_p,
6278         ssa_names_to_replace and delete_update_ssa.
6279         * doc/invoke.texi: Document --param min-virtual-mappings
6280         and --param virtual-mappings-ratio.
6282 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
6284         * tree-cfg.c (tree_duplicate_bb): Call create_new_def_for
6285         for newly created PHI nodes.
6286         Call create_new_def_for for every new V_MAY_DEF and
6287         V_MUST_DEF on the copied statement.
6288         (struct ssa_name_map_entry): Remove.
6289         (ssa_name_map_entry_hash): Remove.
6290         (ssa_name_map_entry_eq): Remove.
6291         (allocate_ssa_names): Remove.
6292         (rewrite_to_new_ssa_names_def): Remove.
6293         (rewrite_to_new_ssa_names_use): Remove.
6294         (rewrite_to_new_ssa_names_bb): Remove.
6295         (rewrite_to_new_ssa_names): Remove.
6296         (tree_duplicate_sese_region): Remove variables ver,
6297         definitions, phi, ssa_name_map and bi.
6298         Call need_ssa_update_p instead of any_marked_for_rewrite_p.
6299         Call update_ssa.
6300         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
6301         update_ssa instead of rewrite_ssa_into_ssa.
6302         * tree-ssa-loop-manip.c (add_exit_phis_edge): Call
6303         create_new_def_for.
6304         (find_uses_to_rename_use): Add argument 'need_phis'.
6305         (find_uses_to_rename_stmt): Do not scan virtual operands.
6306         (find_uses_to_rename): Only scan PHI nodes for
6307         non-virtual names.
6308         (rewrite_into_loop_closed_ssa): Call update_ssa.
6309         (check_loop_closed_ssa_use): Ignore virtual operands.
6310         (check_loop_closed_ssa_stmt): Likewise.
6311         (verify_loop_closed_ssa): Do nothing if CURRENT_LOOPS is
6312         NULL.
6313         (rename_variables, set_phi_def_stmts): Remove.
6314         (tree_duplicate_loop_to_header_edge): Reformat comment.
6315         Remove variables BB, I and DEFINITIONS.
6316         Call need_ssa_update_p.
6317         Call update_ssa.
6318         (lv_adjust_loop_header_phi): Reformat comment.
6319         * tree-ssanames.c (ssa_names_to_rewrite): Remove.
6320         (marked_for_rewrite_p, any_marked_for_rewrite_p,
6321         mark_for_rewrite, unmark_all_for_rewrite,
6322         marked_ssa_names): Remove.  Update all users.
6323         (release_ssa_name): If VAR has been registered for SSA
6324         updating, do nothing.
6325         * tree-vrp.c (new_ssa_names, old_ssa_names): Remove.
6326         (build_assert_expr_for): Call register_new_name_mapping.
6327         (insert_range_assertions): Update call to update_ssa.
6328         * tree.h (mark_for_rewrite, unmark_all_for_rewrite,
6329         marked_for_rewrite_p, any_marked_for_rewrite_p,
6330         marked_ssa_names): Remove.
6332 2005-04-22  Jeff Law  <law@redhat.com>
6334         * tree-ssa-dom.c (block_defs_stack): Remove, no longer needed.
6335         (restore_currdefs_to_original_value): Likewise.
6336         (register_definitions_for_stmt): Likewise.
6337         (tree_ssa_dominator_optimize): No longer initialize CURRENT_DEF
6338         for each variable.  Do not allocate/free block_defs_stack either.
6339         Do not iterate if we just thread jumps.  Only iterate if the
6340         tree_cleanup_cfg does useful work (temporary).
6341         (dom_opt_initialize_block): No longer push a marker on
6342         BLOCK_DEFS_STACK.
6343         (dom_opt_finalize_block): Removal call to restore currdefs.
6344         Relax restrictions for recording edge equivalences.
6345         (record_equivalences_from_phis): No longer need to track
6346         CURRENT_DEF.
6347         (optimize_stmt): Similarly.
6348         (thread_across_edge): Simplify by removing the requirement that
6349         statements in the block we are threading through must be nops.
6350         (initialize_hash_element): Handle GOTO_EXPR.
6352 2005-04-22  David S. Miller  <davem@davemloft.net>
6354         * sched-vis.c (print_value): Use CONST_DOUBLE_LOW and
6355         CONST_DOUBLE_HIGH.
6356         * config/sparc/sparc.c (sparc_rtx_costs): Likewise, and
6357         fix check on CONST_DOUBLE mode.  It should be VOIDmode
6358         when it is representing an integer.
6360 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
6362         * builtins.c (gimplify_va_arg_expr): Reword comments to avoid
6363         'abort'. Use gcc_assert and gcc_unreachable as appropriate.
6364         * c-format.c (get_constant, decode_format_attr, get_flag_spec,
6365         find_char_info_specifier_index,
6366         find_length_info_modifier_index): Likewise.
6367         * c-typeck.c (composite_type, pop_init_level): Likewise.
6368         * combine.c (cant_combine_insn_p, try_combine): Likewise.
6369         * cse.c (cse_insn): Likewise
6370         * dominance.c (calc_dfs_tree): Likewise
6371         dwarf2out.c (loc_descriptor_from_tree_1,
6372         add_abstract_origin_attribute, force_decl_die,
6373         force_type_die): Likewise
6374         emit-rtl.c (operand_subword_force): Likewise
6375         explow.c (hard_function_value): Likewise
6376         expmed.c (store_bit_field, expand_divmod,
6377         emit_store_flag_force): Likewise
6378         expr.c (emit_move_multi_word, store_expr,
6379         expand_expr_real_1): Likewise
6380         final.c (this_is_asm_operands, shorten_branches, final_scan_insn,
6381         output_operand): Likewise
6382         flow.c (recompute_reg_usage): Likewise
6383         * function.c (assign_stack_temp_for_type, assign_temp,
6384         handle_epilogue_set): Likewise
6385         * genextract.c (main): Likewise
6386         * gimplify.c (mostly_copy_tree_r, gimplify_return_expr,
6387         gimplify_modify_expr_rhs, gimplify_expr): Likewise
6388         * haifa-sched.c (ready_lastpos, ready_remove_first, ready_element,
6389         ready_remove, rm_line_notes, rm_other_notes,
6390         schedule_block): Likewise
6391         mips-tfile.c (copy_object, out_of_bounds): Likewise
6393 2005-04-22 David Edelsohn  <edelsohn@gnu.org>
6395         PR target/20813
6396         * config/rs6000/default64.h (TARGET_DEFAULT): Add MASK_PPC_GFXOPT.
6397         * config/rs6000/rs6000.c (processor_target_table): Rename rs64a to
6398         rs64.  Add MASK_PPC_GFXOPT to powerpc64 and rs64.
6399         (rs6000_init_libfuncs): Set TFmode optabs to xlq names if
6400         TARGET_XL_COMPAT.
6401         * doc/invoke.texi (PowerPC options): Change rs64a to rs64.
6403 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
6405         * lambda-code.c: Define VEC(int,heap), VEC(lambda_loop,heap).
6406         (gcc_tree_to_linear_expression): Convert to heap allocated
6407         vectors.
6408         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
6409         lbv_to_gcc_expression, lle_to_gcc_expression,
6410         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
6411         perfect_nestify): Likewise.
6412         lambda.h (gcc_loopnest_to_lambda_loopnest,
6413         lambda_loopnest_to_gcc_loopnest): Likewise.
6414         tree-loop-linear.c (linear_transform_loops): Likewise.
6416 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
6418         * config/sparc/predicates.md (arith_double_operand): Use
6419         trunc_int_for_mode if HOST_BITS_PER_WIDE_INT >=64.
6420         * config/sparc/sparc.md (movqi, movhi, movsi, movqi): Use gen_int_mode.
6421         (DImode, DFmode constant splitters): Likewise.  Remove code for
6422         TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT < 64.
6423         (logical constant splitters): Use const_int_operand predicate.
6424         (lshrsi3_extend): Remove code for TARGET_ARCH64 &&
6425         HOST_BITS_PER_WIDE_INT < 64.
6427 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
6429         * config/pa/pa.c (legitimize_pic_address): Use gcc_assert and
6430         gcc_unreachable as appropriate.
6431         (force_mode, emit_move_sequence, singlemove_string,
6432         output_move_double, output_fp_move_double, find_addr_reg,
6433         output_block_move, output_block_clear, output_and,
6434         output_64bit_and, output_ior, output_64bit_ior, store_reg_modify,
6435         pa_adjust_cost, pa_issue_rate, print_operand,
6436         output_global_address, output_arg_descriptor, output_cbranch,
6437         output_lbranch, output_bb, output_bvb, output_dbra, output_movb,
6438         output_call): Likewise.
6439         * config/pa/pa.md (call, call_value, sibcall, sibcall_value,
6440         prefetch, prefetch_cc, prefetch_nocc): Likewise.
6442 2005-04-22  Zdenek Dvorak  <dvorakz@suse.cz>
6444         * Makefile.in (LIBGCOV): Add _gcov_interval_profiler,
6445         _gcov_pow2_profiler and _gcov_one_value_profiler.
6446         (tree-profile.o): Add GGC_H and gt-tree-profile.h dependency.
6447         (GTFILES): Add $(srcdir)/tree-profile.c.
6448         * gcov-io.h (__gcov_interval_profiler, __gcov_pow2_profiler,
6449         __gcov_one_value_profiler): Declare.
6450         * gimplify.c (force_gimple_operand): Check whether the statements
6451         should be produced in ssa form.
6452         (force_gimple_operand_bsi): New function.
6453         * libgcov.c (__gcov_interval_profiler, __gcov_pow2_profiler,
6454         __gcov_one_value_profiler): New functions.
6455         * rtl-profile.c (rtl_gen_pow2_profiler): Only measure whether
6456         the profiled value is a power of two or not.
6457         * tree-cfg.c (tree_block_ends_with_condjump_p): Handle empty blocks.
6458         * tree-flow.h (in_ssa_p): Declare.
6459         (force_gimple_operand_bsi): Declare.
6460         * tree-into-ssa.c (in_ssa_p): New variable.
6461         (rewrite_into_ssa): Set in_ssa_p.
6462         * tree-outof-ssa.c (rewrite_out_of_ssa): Set in_ssa_p.
6463         * tree-profile.c: Include ggc.h and gt-tree-profile.h.
6464         (gcov_type_node, tree_interval_profiler_fn, tree_pow2_profiler_fn,
6465         tree_one_value_profiler_fn): New variables.
6466         (tree_init_edge_profiler): Initialize the profiler function decls.
6467         (tree_gen_edge_profiler): Use global gcov_type_node.
6468         (prepare_instrumented_value): New function.
6469         (tree_gen_interval_profiler, tree_gen_interval_profiler,
6470         tree_gen_one_value_profiler): Call the library functions instead of
6471         creating instrumentation code.
6472         * tree.c (build_fn_decl): New function.
6473         * tree.h (build_fn_decl): Declare.
6474         * value-prof.c (rtl_divmod_values_to_profile,
6475         rtl_find_values_to_profile, rtl_mod_pow2_value_transform,
6476         tree_mod_pow2_value_transform, tree_find_values_to_profile):
6477         Do not handle may_be_other and precise values of exponents at pow2
6478         profiler.
6479         (tree_mod_subtract_transform): Reflect that value field of
6480         histogram has changed meaning.
6481         (tree_divmod_values_to_profile): Record the values correctly.
6482         (tree_values_to_profile): Update comment.
6483         * value-prof.h (struct histogram_value_t): Remove pow2 data.
6485 2005-04-22  Joseph S. Myers  <joseph@codesourcery.com>
6487         * varasm.c (do_assemble_alias): Return early if TREE_ASM_WRITTEN
6488         (decl).
6490 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
6492         * config/i386/i386.md (length_immediate): Use gcc_assert or
6493         gcc_unreachable, as appropriate.
6494         (*movsi_1, *movqi_1, reload_outqi, *movdi_1_rex64, *pushsf,
6495         *pushsf_rex64, *truncxfsf2_mixed, *truncxfsf2_i387,
6496         *truncxfdf2_mixed, *truncxfdf2_i387, *adddi_1_rex64,
6497         *adddi_2_rex64, *adddi_3_rex64, *adddi_4_rex64, *adddi_5_rex64,
6498         *addsi_1, addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
6499         *addsi_3_zext, *addsi_4, *addsi_5, *addhi_1_lea, *addhi_1,
6500         *addhi_2, *addhi_3, *addhi_4, *addhi_5, *addqi_1_lea, *addqi_1,
6501         *addqi_1_slp, *addqi_2, *addqi_3, *addqi_4, *addqi_5, addqi_ext_1,
6502         *addqi_ext_1_rex64, *anddi_1_rex64, *andsi_1, *andhi_1,
6503         *ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashlsi3_1, *ashlsi3_1_zext,
6504         *ashlsi3_cmp, *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1,
6505         *ashlhi3_cmp, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
6506         pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64,
6507         pro_epilogue_adjust_stack_rex64_2, prefetch, *prefetch_sse,
6508         *prefetch_sse_rex): Likewise.
6509         * config/i386/predicates.md (x86_64_immediate_operand,
6510         x86_64_zext_immediate_operand, symbolic_operand,
6511         no_seg_address_operand, aligned_operand,
6512         memory_displacement_operand): Likewise.
6513         * config/i386/sse.md (*mov<mode>_internal,
6514         *movv2df_internal): Likewise.
6516 2005-04-22  Jan Hubicka  <jh@suse.cz>
6518         * Makefile.in (ipa.o, ipa-inline.o): New files.
6519         * cgraph.h (cgraph_remove_unreachable_nodes, cgraph_postorder,
6520         cgraph_decide_inlining_incrementally, cgraph_clone_inlined_nodes,
6521         cgraph_mark_inline_edge, cgraph_default_inline_p): Declare.
6522         * cgraphunit.c (cgraph_default_inline_p,
6523         cgraph_decide_inlining_incrementally,  ncalls_inlined,
6524         nfunctions_inlined, initial_insns, overall_insns,
6525         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
6526         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6527         cgraph_mark_inline, cgraph_check_inline_limits,
6528         cgraph_default_inline_p, cgraph_recursive_inlining_p,
6529         update_callee_keys, lookup_recursive_calls,
6530         cgraph_decide_recursive_inlining, cgraph_set_inline_failed,
6531         cgraph_decide_inlining_of_small_functions, cgraph_decide_inlining,
6532         cgraph_decide_inlining_incrementally, cgraph_gate_inlining,
6533         pass_ipa_inline): Move to ipa-inline.c
6534         (cgraph_postorder, cgraph_remove_unreachable_nodes): Move to ipa.c
6535         * ipa.c: New file.
6536         * ipa-inline.c: New file.
6538 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
6540         * doc/invoke.texi (SPARC options): Document that -mapp-regs
6541         is turned off by default on Solaris.
6543 2005-04-21  Roger Sayle  <roger@eyesopen.com>
6545         * c-common.h (objc_build_method_signature): Update prototype.
6546         * stub-objc.c (objc_build_method_signature): Update the stub
6547         implementation to accept and ignore additional parameter.
6548         * c-parser.c (c_parser_objc_method_decl): Reorgnize to pass
6549         the value of ellipsis to objc_build_method_signature instead
6550         of setting TREE_OVERFLOW on the parms TREE_LIST node.
6552 2005-04-21  Geoffrey Keating  <geoffk@apple.com>
6554         * config/rs6000/rs6000-protos.h (rs6000_emit_sync): New.
6555         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Use
6556         gen_rtx_* not gen_rtx_fmt_*.
6557         (rs6000_emit_vector_select): Likewise.
6558         (rs6000_emit_sync): New.
6559         * config/rs6000/rs6000.md (GPR, INT, INT1): New mode macros.
6560         (larx, stcx, cmp): New mode substitutions.
6561         (UNSPEC_SYNC, UNSPEC_SYNC_OP, UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC,
6562         UNSPEC_ISYNC): New constants.
6563         (rlwinm): Give name.
6564         (memory_barrier, isync, lwsync): New insns.
6565         (sync_compare_and_swap<mode>, sync_lock_test_and_set<mode>): New insn.
6566         (sync_lock_release<mode>): New expander.
6567         (sync_add<mode>, sync_sub<mode>, sync_ior<mode>, sync_and<mode>,
6568         sync_xor<mode>, sync_nand<mode>, sync_old_add<mode>,
6569         sync_old_sub<mode>, sync_old_ior<mode>, sync_old_and<mode>,
6570         sync_old_xor<mode>, sync_old_nand<mode>, sync_new_add<mode>,
6571         sync_new_sub<mode>, sync_new_ior<mode>, sync_new_and<mode>,
6572         sync_new_xor<mode>, sync_new_nand<mode>): New expanders.
6573         (sync_add<mode>_internal, sync_addshort_internal,
6574         sync_sub<mode>_internal, sync_andsi_internal, sync_anddi_internal,
6575         sync_boolsi_internal, sync_booldi_internal, sync_boolc<mode>_internal,
6576         sync_boolc<mode>_internal2, sync_boolcc<mode>_internal): New insns.
6578         * doc/md.texi (Standard Names): sync_compare_and_swap's operand 0
6579         is the memory before, not after, the operation.  Clarify
6580         barrier requirements.
6582 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
6584         * cfghooks.h (struct cfg_hooks): Reword comments to avoid 'abort'.
6585         * lambda.h (lambda_vector_min_nz): Likewise.
6586         * langhooks.h (struct lang_hooks_for_types,
6587         struct lang_hooks): Likewise.
6588         * output.h (assemble_integer, this_is_asm_operands): Likewise.
6589         * tree.h: Likewise.
6590         * vec.h: Likewise.
6591         * tree-flow-inline.h (relink_imm_use): Use gcc_assert.
6593         * optabs.c (prepare_cmp_insn, emit_cmp_and_jump_insns): Reword
6594         comments to avoid 'abort'.  Use gcc_assert as necessary.
6595         * opts.c (common_handle_option): Likewise.
6596         * pretty-print.c (pp_base_format_text): Likewise.
6597         * print-rtl.c (print_rtx): Likewise.
6598         * read-rtl.c (read_rtx_filename, read_rtx_1): Likewise.
6599         * regmove.c (try_auto_increment): Likewise.
6600         * reload.c (find_valid_class, find_reloads_toplev,
6601         find_equiv_reg): Likewise.
6602         * reload1.c (reload, forget_old_reloads_1, function_invariant_p,
6603         merge_assigned_reloads): Likewise.
6604         * tree-inline.c (inline_forbidden_p_1,
6605         estimate_num_insns_1): Likewise.
6606         * tree-optimize.c (execute_todo): Likewise.
6607         * tree-outof-ssa.c (eliminate_phi): Likewise.
6608         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
6609         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Likewise.
6610         * tree-ssa-operands.c (parse_ssa_operands,
6611         get_indirect_ref_operands, create_ssa_artficial_load_stmt): Likewise.
6612         * tree-ssa-pre.c (find_or_generate_expression): Likewise.
6613         * tree-ssanames.c (release_ssa_name): Likewise.
6614         * tree.c (int_bit_position, int_byte_position, tree_low_cst,
6615         walk_tree): Likewise.
6617         * tree-ssa-operands.c (verify_abort): Fold into ..
6618         (verify_imm_links): ... here.
6620 2005-04-21  Richard Henderson  <rth@redhat.com>
6622         * config/alpha/sync.md (sync_new_nand<I48MODE>): Fix constraints
6623         on non-memory operand for previous inversion.
6625 2005-04-21  Devang Patel  <dpatel@apple.com>
6627         PR optimization/20994
6628         * tree-if-conv.c (find_phi_replacement_condition): Avoid generating
6629         x = !(a == b) : p , q;.
6630         (pass_if_conversion): Verify stmts and flow.
6632 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
6634         * optabs.c (gen_conditional_trap): Restore #define.
6636         * alias.c (true_dependence): Remove 'abort' from comments. Use
6637         gcc_assert and gcc_unreachable as appropriate.
6638         (canon_true_dependence): Likewise.
6639         * bb-reorder.c (connect_traces): Likewise.
6640         * c-common.c (c_add_case_label): Likewise.
6641         * c-decl.c (finish_function): Likewise.
6642         * caller-save.c (insert_restore, insert_save): Likewise.
6643         * cfg.c (update_bb_profile_for_threading): Likewise.
6644         * cfganal.c (flow_active_insn_p): Likewise.
6645         * cfgexpand.c (add_reg_br_prob_note): Likewise.
6646         * cfgrtl.c (rtl_redirect_edge_and_branch_force, rtl_split_edge,
6647         cfg_layout_merge_blocks): Likewise.
6648         * ifcvt.c (cond_exec_process_insns, merge_if_block,
6649         find_if_block): Likewise.
6650         * integrate.c (allocate_initial_values): Likewise.
6651         * jump.c (reverse_condition, reverse_condition_maybe_unordered,
6652         swap_condition, unsigned_condition, signed_condition,
6653         mark_jump_label, invert_jump_1, rtx_renumbered_equal_p,
6654         reg_or_subregno): Likewise.
6655         * lambda-code.c (lambda_compute_auxillary_space,
6656         lambda_transform_legal_p): Likewise.
6657         * lambda-mat.c (lambda_matrix_inverse_hard): Likewise.
6658         * langhooks.c (lhd_set_decl_assembler_name, lhd_type_promotes_to,
6659         lhd_incomplete_type_error, lhd_expand_expr,
6660         lhd_types_compatible_p, lhd_tree_size): Likewise.
6661         * lcm.c (create_pre_exit, optimize_mode_switching): Likewise.
6662         * local-alloc.c (update_equiv_regs): Likewise.
6663         * loop-unroll.c (peel_loop_completely
6664         unroll_loop_constant_iterations, unroll_loop_runtime_iterations,
6665         peel_loop_simple, unroll_loop_stupid,
6666         analyze_iv_to_split_insn): Likewise.
6667         * loop.c (gen_prefetch, find_and_verify_loops,
6668         basic_induction_var): Likewise.
6669         * modulo-sched.c (normalize_sched_times, check_nodes_order): Likewise.
6670         * value-prof.c (tree_find_values_to_profile): Likewise.
6671         * varasm.c (named_section, default_assemble_integer,
6672         decode_addr_const): Likewise.
6674 2005-04-21 Alan Modra  <amodra@bigpond.net.au>
6675            Fariborz Jahanian <fjahanian@apple.com>
6677         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Fix size of
6678         portion of argument passed in fpr.
6679         * expr.c (emit_push_insn): Fix computation of 'offset' used to
6680         decide on partial argument save on stack.
6682 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
6684         * config/sparc/predicates.md, config/sparc/sparc.md: Fix
6685         comment typos.
6687 2005-04-21  Jan Hubicka  <jh@suse.cz>
6689         * cgraphunit.c: Include tree-pass.h
6690         (cgraph_decide_recursive_inlining,
6691         cgraph_decide_inlining_of_small_function, cgraph_set_inline_failed,
6692         cgraph_decide_inlining): Dump goes to dump_file.
6693         (cgraph_optimize): Call ipa passes instead of inliner.
6694         (cgraph_gate_inlining, pass_ipa_inline): New.
6695         * tree-optimize.c (all_ipa_passes): New static variable.
6696         (register_one_dump_file): Dead with IPA passes.
6697         (register_dump_files): Likewise.
6698         (init_tree_optimization_passes): Initialize IPA passes.
6699         (execute_todo): Do cgraph dump when asked to, do not dump function body
6700         for IPA pass.
6701         * tree-pass.h (TODO_dump_cgraph): New macro.
6702         (ipa_passes): Declare.
6703         * Makefile.in (cgraphunit.o): Add dependency on cgraphunit.h
6705 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
6707         * config/i386/i386.c (type_natural_mode): Use gcc_unreachable and
6708         gcc_assert instead of abort.
6709         (classify_argument, examine_argument, construct_container,
6710         contains_128bit_aligned_vector_p, ix86_check_movabs,
6711         standard_80387_constant_opcode, standard_80387_constant_rtx,
6712         ix86_initial_elimination_offset, ix86_compute_frame_layout,
6713         pro_epilogue_adjust_stack, ix86_expand_epilogue,
6714         ix86_address_cost, legitimate_address_p, legitimize_pic_address,
6715         legitimize_tls_address, output_pic_addr_const,
6716         i386_output_dwarf_dtprel, put_condition_code, print_reg,
6717         get_some_local_dynamic_name, print_operand, print_operand_address,
6718         output_387_binary_op, emit_i387_cw_initialization,
6719         output_fix_trunc, output_fp_compare, ix86_output_addr_vec_elt,
6720         ix86_expand_clear, ix86_expand_binary_operator,
6721         ix86_expand_unary_operator, ix86_match_ccmode, ix86_cc_mode,
6722         ix86_cc_modes_compatible, ix86_fp_comparison_codes,
6723         ix86_fp_comparison_arithmetics_cost, ix86_expand_fp_compare,
6724         ix86_expand_branch, ix86_expand_setcc,
6725         ix86_expand_carry_flag_compare, ix86_expand_fp_movcc,
6726         ix86_expand_int_addcc, ix86_split_to_parts, ix86_split_long_move,
6727         ix86_expand_movmem, ix86_expand_call, assign_386_stack_local,
6728         memory_address_length, ix86_attr_length_immediate_default,
6729         ix86_attr_length_address_default, ix86_agi_dependant,
6730         x86_initialize_trampoline, ix86_init_mmx_sse_builtins,
6731         ix86_expand_binop_builtin, ix86_force_to_memory,
6732         ix86_secondary_memory_needed, ix86_avoid_jump_misspredicts,
6733         x86_emit_floatuns): Likewise.
6734         * config/i386/netware.c (gen_regparm_prefix,
6735         i386_nlm_strip_name_encoding): Likewise.
6736         * config/i386/winnt.c (i386_pe_mark_dllexport): Likewise.
6738 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
6740         * optabs.c (gen_condiational_trap): Remove #define.
6741         (add_equal_note): Assertify. Remove explicit indirection from
6742         call via function pointer.
6743         (expand_ternary_op, expand_simple_binop, expand_binop,
6744         expand_twoval_unop, expand_twoval_binop,
6745         expand_twoval_binop_libfunc, expand_simple_unop expand_unop,
6746         emit_unop_insn,  emit_no_conflict_block,  prepare_cmp_insn,
6747         prepare_operand emit_cmp_and_jump_insn_1, emit_cmp_and_jump_insns,
6748         prepare_float_lib_cmp, emit_conditional_move,
6749         emit_conditional_add, gen_add2_insn, gen_add3_insn,
6750         have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn,
6751         expand_float, expand_fix, debug_optab_libfuncs, gen_cond_trap,
6752         vector_compare_rtx, expand_vec_cond_expr): Likewise.
6754 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
6756         * vec.h: Update API to separate allocation mechanism from type.
6757         (VEC_safe_grow): New.
6758         * vec.c (calculate_allocation): New.
6759         (vec_gc_o_reserve, vec_heap_o_reserve): Adjust.
6760         (vec_gc_free, vec_heap_free): Remove.
6761         * gengtype-lex.l (DEF_VEC_): Process mult-argument macros.  Adjust.
6762         (VEC): Likewise.
6763         (mangle_macro_name): New.
6764         (struct macro_def): New.
6765         (struct macro): Add multiple argument values.
6766         (macro_expans_end): New.
6767         (push_macro_expansion):  Chain on new macro. Process multiple
6768         args, create follow on expansion. Return follow on argument.
6769         (macro_input): Deal with multiple arguments.
6771         * tree.h: Define VEC(tree,heap) and VEC(tree,gc).
6772         (struct tree_binfo): Adjust.
6773         * basic-block.h: Define VEC(edge,gc).
6774         (struct edge_def): Adjust.
6775         (struct basic_block_def, struct edge_iterator): Likewise.
6776         (ei_container, ei_start_1, ei_last_1): Likewise.
6777         * cfg.c (connect_src, connect_dest): Likewise.
6778         * cfgrtl.c (force_nonfallthru_and_redirect)
6779         * dbxout.c (dbxout_type)
6780         * dwarf2out.c (gen_member_die)
6781         * lambda-code.c: Define VEC(int,gc), VEC(lambda_loop,gc).
6782         (gcc_tree_to_linear_expression): Adjust.
6783         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
6784         lbv_to_gcc_expression, lle_to_gcc_expression,
6785         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
6786         perfect_nestify): Likewise.
6787         * lambda.h (gcc_loopnest_to_lambda_loopnest,
6788         lambda_loopnest_to_gcc_loopnest): Adjust prototypes.
6789         * profile.c (instrument_values): Adjust.
6790         * tree-cfg.c (modified_noreturn_calls): Adjust.
6791         (remove_fallthru_edge): Likewise.
6792         * tree-dump.c (dequeue_and_dump): Adjust.
6793         * tree-flow-inline.h (mark_stmt_modified): Adjust.
6794         * tree-flow.h (modified_noreturn_calls): Adjust.
6795         (tree_on_heap): Remove. (yay!)
6796         (register_new_def): Adjust.
6797         * tree-into-ssa.c: Define VEC(int,heap).
6798         (block_defs_stack): Adjust.
6799         (find_idf, insert_phi_nodes, register_new_def,
6800         rewrite_initialize_block, rewrite_finalize_block,
6801         register_new_update_single, rewrite_update_init_block,
6802         rewrite_update_fini_block, rewrite_blocks,
6803         ssa_rewrite_finalize_block, ssa_register_new_def,
6804         ssa_rewrite_initialize_block, rewrite_ssa_into_ssa): Likewise.
6805         * tree-loop-linear.c (linear_transform_loops): Adjust.
6806         * tree-ssa-alias.c: Define VEC(fieldoff_t,heap).
6807         (push_fields_onto_fieldstack, create_overlap_variables_for): Adjust.
6808         * tree-ssa-dom.c (avail_exprs_stack, block_defs_stack,
6809         stmts_to_rescan, const_and_copies_stack, nonzero_vars_stack,
6810         vrp_variables_stack): Adjust declarations.
6811         (tree_ssa_dominator_optimize): Adjust.
6812         (dom_opt_initialize_block, remove_local_expressions_from_table,
6813         restore_nonzero_vars_to_original_value,
6814         restore_vars_to_original_value,
6815         restore_currdefs_to_original_value, dom_opt_finalize_block,
6816         record_var_is_nonzero, record_cond, record_const_or_copy_1,
6817         optimize_stmt, update_rhs_and_lookup_avail_expr,
6818         lookup_avail_expr, record_range): Likewise.
6819         * tree-ssa-pre.c: Define VEC(basic_block,heap).
6820         (compute_antic_aux): Adjust.
6821         (inserted_exprs, create_expression_by_pieces,
6822         insert_into_preds_of_block, eliminate, mark_operand_necessary,
6823         remove_dead_inserted_code, fini_pre): Likewise.
6824         * tree-ssa-propagate.c (interesting_ssa_edges): Adjust.
6825         (varying_ssa_edges, add_ssa_edge, process_ssa_edge_worklist.
6826         ssa_prop_init): Likewise.
6827         * tree-ssa.c: Define VEC(bitmap,heap).
6828         (verify_name_tags): Adjust.
6829         * value-prof.c (rtl_divmod_values_to_profile): Adjust.
6830         (insn_prefetch_values_to_profile, rtl_find_values_to_profile,
6831         tree_divmod_values_to_profile, tree_find_values_to_profile,
6832         value_profile_transformations): Likewise.
6833         * value-prof.h: Define VEC(histogram_value,heap).
6834         * varasm.c: Remove alias_pair pointer typedef, define
6835         VEC(alias_pair,gc).
6836         (finish_aliases_1, finish_aliases_2, assemble_alias): Adjust.
6838         * config/pa/pa.c (typedef extern_symbol): Typedef the structure,
6839         not a pointer to it.  Create an object vector.
6840         (extern_symbols): Turn into an object vector.
6841         (pa_hpux_asm_output_external, pa_hpux_file_end): Adjust.
6843 2005-04-21  Sebastian Pop  <pop@cri.ensmp.fr>
6845         PR/20742
6846         * Makefile.in (tree-chrec.o): Depend on params.h.
6847         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): New parameter with
6848         default value 20.
6849         * tree-chrec.c: Depend on params.h.  Replace build with buildN,
6850         and fold build with fold_buildN.
6851         (chrec_fold_plus_1): Fail with a chrec_don_know when the size of
6852         the expression exceeds PARAM_SCEV_MAX_EXPR_SIZE.
6853         (tree_contains_chrecs): Compute an estimation of the size of the
6854         given expression.
6855         * tree-chrec.h (tree_contains_chrecs): Modify its declaration.
6856         (tree_does_not_contain_chrecs): Update the use of tree_contains_chrecs.
6857         * tree-scalar-evolution.c (simple_iv): Ditto.
6858         * doc/invoke.texi (scev-max-expr-size): Documented.
6860 2005-04-21  Richard Sandiford  <rsandifo@redhat.com>
6862         * config.gcc (*-*-darwin*): Add darwin.opt to $extra_options.
6863         (i[34567]86-pc-msdosdjgpp*): Likewise i386/djgpp.opt.
6864         (i[34567]86-*-lynxos*, powerpc-*-lynxos*): Likewise lynx.opt.
6865         (i[34567]86-*-sco3.2v5*): Likewise i386/sco5.opt.
6866         (i[34567]86-*-pe, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
6867         (i[34567]86-*-uwin*): Likewise i386/cygming.opt.
6868         * config/darwin.h (darwin_one_byte_bool, darwin_fix_and_continue)
6869         (darwin_fix_and_continue_switch, SUBTARGET_OPTIONS): Delete.
6870         * config/darwin.c (darwin_one_byte_bool, darwin_fix_and_continue)
6871         (darwin_fix_and_continue_switch): Delete.
6872         * config/lynx.h (SUBTARGET_OS_LYNX_SWITCHES): Delete.
6873         (SUBTARGET_SWITCHES): Delete.
6874         * config/i386/i386.h (target_flags, MASK_80387, MASK_RTD)
6875         (MASK_ALIGN_DOUBLE, MASK_SVR3_SHLIB, MASK_IEEE_FP, MASK_FLOAT_RETURNS)
6876         (MASK_NO_FANCY_MATH_387, MASK_OMIT_LEAF_FRAME_POINTER)
6877         (MASK_STACK_PROBE, MASK_NO_ALIGN_STROPS, MASK_INLINE_ALL_STROPS)
6878         (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS, MASK_MMX)
6879         (MASK_SSE, MASK_SSE2, MASK_SSE3, MASK_3DNOW, MASK_3DNOW_A)
6880         (MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT)
6881         (MASK_TLS_DIRECT_SEG_REFS, MASK_NO_RED_ZONE, TARGET_80387)
6882         (TARGET_RTD, TARGET_ALIGN_DOUBLE, TARGET_PUSH_ARGS)
6883         (TARGET_ACCUMULATE_OUTGOING_ARGS, TARGET_SVR3_SHLIB, TARGET_IEEE_FP)
6884         (TARGET_128BIT_LONG_DOUBLE, TARGET_NO_FANCY_MATH_387)
6885         (TARGET_USE_FANCY_MATH_387, TARGET_OMIT_LEAF_FRAME_POINTER)
6886         (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Delete.
6887         (TARGET_FLOAT_RETURNS_IN_80387): Make an alias of TARGET_FLOAT_RETURNS.
6888         (TARGET_64BIT): Undef before redefining.
6889         (TARGET_TLS_DIRECT_SEG_REFS, TARGET_STACK_PROBE)
6890         (TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS, TARGET_SSE)
6891         (TARGET_SSE2, TARGET_SSE3, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A)
6892         (TARGET_RED_ZONE, TARGET_USE_MS_BITFIELD_LAYOUT, TARGET_SWITCHES)
6893         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS)
6894         (ix86_fpmath_string, ix86_tls_dialect_string, ix86_cmodel_string)
6895         (ix86_asm_string, ix86_regparm, ix86_regparm_string)
6896         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
6897         (ix86_debug_arg_string, ix86_debug_addr_string)
6898         (ix86_align_loops_string, ix86_align_jumps_string)
6899         (ix86_align_funcs_string): Delete.
6900         * config/i386/cygming.h (MASK_NOP_FUN_DLLIMPORT)
6901         (TARGET_NOP_FUN_DLLIMPORT, SUBTARGET_SWITCHES): Delete.
6902         * config/i386/djgpp.h (MASK_BNU210, SUBTARGET_SWITCHES): Delete.
6903         (SUBTARGET_OVERRIDE_OPTIONS): Check TARGET_BNU210.
6904         * config/i386/lynx.h (SUBTARGET_SWITCHES): Delete.
6905         * config/i386/sco5.h (MASK_COFF, TARGET_ELF)
6906         (SUBTARGET_SWITCHES): Delete.
6907         * config/i386/i386.c (ix86_debug_arg_string): Delete.
6908         (ix86_debug_addr_string): Delete.
6909         (ix86_cmodel_string, ix86_asm_string, ix86_tls_dialect_string)
6910         (ix86_fpmath_string, ix86_regparm_string, ix86_regparm)
6911         (ix86_align_loops_string, ix86_align_jumps_string)
6912         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
6913         (ix86_align_funcs_string): Make static.
6914         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
6915         (ix86_handle_option): New function.
6916         (TARGET_USE_MS_BITFIELD_LAYOUT): Delete.
6917         (ix86_ms_bitfield_layout_p): Check TARGET_MS_BITFIELD_LAYOUT.
6918         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove handling
6919         of darwin_fix_and_continue_switch.
6920         (darwin_one_byte_bool): Delete.
6921         * config/rs6000/lynx.h (EXTRA_SUBTARGET_SWITCHES): Delete.
6922         * config/rs6000/rs6000.c (rs6000_override_options): Update assignment
6923         to darwin_one_byte_bool.
6924         * config/darwin.opt, config/lynx.opt, config/i386/cygming.opt,
6925         * config/i386/djgpp.opt, config/i386/i386.opt,
6926         * config/i386/sco5.opt: New files.
6928 2005-04-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
6930         * config/sparc/sparc.c (reg_or_0_operand, const1_operand,
6931         fp_zero_operand, fp_register_operand, intreg_operand,
6932         fcc_reg_operand, fcc0_reg_operand, icc_or_fcc_reg_operand,
6933         call_operand, call_operand_address, tgd_symbolic_operand,
6934         tld_symbolic_operand, tie_symbolic_operand, tle_symbolic_operand,
6935         symbolic_operand, symbolic_memory_operand, label_ref_operand,
6936         sp64_medium_pic_operand, data_segment_operand,
6937         text_segment_operand, splittable_symbolic_memory_operand,
6938         reg_or_nonsymb_mem_operand, splittable_immediate_memory_operand,
6939         eq_or_neq, normal_comp_operator, noov_compare_op,
6940         noov_compare64_op, v9_regcmp_op, extend_op, cc_arithop,
6941         cc_arithopn, arith_operand, arith_4096_operand, arith_add_operand,
6942         const64_operand, const64_high_operand, arith11_operand,
6943         arith10_operand, arith_double_operand, arith_double_4096_operand,
6944         arith_double_add_operand, arith11_double_operand,
6945         arith10_double_operand, small_int, small_int_or_double,
6946         uns_small_int, uns_arith_operand, clobbered_register,
6947         input_operand, compare_operand): Delete.
6948         (sparc_emit_set_const32): Use predicates in assertion.  Remove special
6949         code for TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT != 64.
6950         (sparc_emit_set_const64): Call gcc_unreachable if H_B_P_W_I == 32.
6951         (GEN_HIGHINT64, GEN_INT64): Delete.
6952         (sparc_emit_set_safe_HIGH64, gen_safe_SET64, gen_safe_OR64,
6953         gen_safe_XOR64): Adjust for above deletion.
6954         (sparc_emit_set_const64): Support only H_B_P_W_I == 64 and CONST_INTs.
6955         Use 'unsigned HOST_WIDE_INT' instead of 'long' for bitmask.
6956         (legitimate_constant_p): Use const_zero_operand instead.
6957         (sparc_extra_constraint_check): Likewise.
6958         * config/sparc/sparc.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'O'.
6959         (PREFERRED_RELOAD_CLASS): Use const_zero_operand.
6960         (PREDICATE_CODES): Delete.
6961         * config/sparc/sparc.md: Include predicates.md.
6962         (All patterns): Adjust for new predicate names.
6963         (cmpdi, cmpdi_sp64): Use arith_operand predicate.
6964         (movhi_const64_special, movsi_const64_special): Add 'K' constraint.
6965         (movdi): Use general_operand predicate.
6966         (movdi_sp64_dbl): Delete.
6967         (movdi_const64_special): Add 'N' constraint.
6968         (movdicc): Use arith10_operand predicate.
6969         (movdi_cc_sp64, movdi_cc_sp64_trunc): Use arith11_operand predicate.
6970         (movdi_cc_reg_sp64): Use arith10_operand predicate.
6971         (movdi_cc_reg_sp64_trunc): Delete.
6972         (cmp_zero_extract, cmp_zero_extract_sp64): Use small_int_operand.
6973         (adddi3_sp64, cmp_ccx_plus, cmp_ccx_plus_set): Use arith_operand.
6974         (subdi3_sp32): Delete.
6975         (subdi3_insn_sp32): Change to define_insn_and_split.
6976         (subdi3_sp64, cmp_minus_ccx, cmp_minus_ccx_set): Use arith_operand.
6977         (muldi3, muldi3_sp64, muldi3_v8plus): Likewise.
6978         (smulsi3_highpart_v8plus, const_smulsi3_highpart_v8plus,
6979         umulsi3_highpart_v8plus, const_umulsi3_highpart_v8plus): Use
6980         small_int_operand predicate.
6981         (divdi3, udivdi3): Use arith_operand predicate.
6982         (udivsi3, udivsi3_sp32, udivsi3_sp64): Use nonimmediate_operand.
6983         (and<V64I>3_sp64, ior<V64I>3_sp64, xor<V64I:mode>3_sp64,
6984         xor_not_<V64I:mode>_sp64) : Use arith_operand predicate.
6985         (xordi3_sp64_dbl): Delete.
6986         (cmp_ccx_arith_op, cmp_ccx_arith_op_set, cmp_ccx_xor_not,
6987         cmp_ccx_xor_not_set, cmp_ccx_arith_op_not, cmp_ccx_arith_op_not_set,
6988         cmp_ccx_neg, cmp_ccx_set_neg, one_cmpl<V64I>2_sp64, cmp_ccx_not,
6989         cmp_ccx_set_not): Use arith_operand predicate.
6990         (ashrsi3_extend2, lshrsi3_extend2 et al.): Use small_int_operand.
6991         * config/sparc/predicates.md: New file.
6993 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
6995         PR tree-optimization/14846
6996         * fold-const.c (fold_single_bit_test_into_sign_test): New,
6997         split out from ...
6998         (fold_single_bit_test): ... here.
6999         (fold_binary): Call fold_single_bit_test_into_sign_test
7000         instead of fold_single_bit_test.
7002 2005-04-20  James E Wilson  <wilson@specifixinc.com>
7004         PR c++/20805
7005         * dwarf2out.c (gen_variable_die): Don't emit a specification if this
7006         is another declaration.
7008 2005-04-21  Hans-Peter Nilsson  <hp@axis.com>
7010         * config/cris/predicates.md: New file.
7011         * config/cris/cris-protos.h (cris_store_multiple_op_p)
7012         (cris_movem_load_rest_p): Declare.
7013         * config/cris/cris.c (cris_store_multiple_op): Return bool, not int.
7014         (cris_movem_load_rest_p): Ditto.  Globalize.
7015         (cris_bdap_operand, cris_bdap_biap_operand,
7016         cris_orthogonal_operator, cris_commutative_orth_op,
7017         cris_operand_extend_operator,
7018         cris_additive_operand_extend_operator, cris_extend_operator,
7019         cris_plus_or_bound_operator, cris_mem_op,
7020         cris_general_operand_or_symbol,
7021         cris_general_operand_or_gotless_symbol,
7022         cris_general_operand_or_plt_symbol, cris_mem_call_operand,
7023         cris_load_multiple_op): Remove predicate functions.
7024         (cris_symbol, cris_gotless_symbol) <case UNSPEC>: Return 0, don't
7025         abort, for UNSPECs other than CRIS_UNSPEC_PLT.
7026         * config/cris/cris.h (PREDICATE_CODES): Don't define.
7027         * config/cris/cris.md: Include predicates.md.
7028         ("call", "call_value"): Generate CONSTs of Pmode, not VOIDmode.
7030 2005-04-20  Ian Lance Taylor  <ian@airs.com>
7032         * c-common.def: Remove STMT_EXPR (moved to cp/cp-tree.def).
7033         * c-common.h (STMT_EXPR_STMT): Don't define.
7034         (STMT_EXPR_NO_SCOPE): Don't define.
7035         * c-dump.c (c_dump_tree): Don't handle STMT_EXPR.
7036         * c-pretty-print.c (pp_c_primary_expression): Likewise.
7037         (pp_c_expression): Likewise.
7039 2005-04-20  Richard Henderson  <rth@redhat.com>
7041         PR target/21100
7042         * config/i386/mmx.md (push<MMXMODE>1): Fix predicate thinko.
7044 2005-04-20  Jeff Law  <law@redhat.com>
7046         * reload1.c (reload): Ignore equivalences between pseudos and
7047         read only memory.
7049 2005-04-20  Joseph S. Myers  <joseph@codesourcery.com>
7051         PR c/12913
7052         * c-tree.h (struct c_label_list): Update comment.
7053         (struct c_label_context): Rename to struct c_label_context_se.
7054         (label_context_stack): Rename to label_context_stack_se.
7055         (C_DECL_UNJUMPABLE_VM, C_DECL_UNDEFINABLE_VM, struct
7056         c_label_context_vm, label_context_stack_vm, c_begin_vm_scope,
7057         c_end_vm_scope): New.
7058         (C_DECL_DECLARED_BUILTIN, C_DECL_USED): Use FUNCTION_DECL_CHECK.
7059         * c-decl.c (pop_scope): Call c_end_vm_scope.
7060         (pushdecl): Call c_begin_vm_scope for variably modified
7061         declarations.
7062         (define_label): Check for jumping into scope of identifier with
7063         variably modified type.  Push label on stack for those defined at
7064         current context of identifiers with variably modified type.
7065         (start_function): Create stack level for context of identifiers
7066         with variably modified type.
7067         (finish_function): Pop stack level for context of identifiers with
7068         variably modified type.
7069         * c-typeck.c (label_context_stack): Rename to
7070         label_context_stack_se.
7071         (label_context_stack_vm, c_begin_vm_scope, c_end_vm_scope): New.
7072         (c_finish_goto_label): Check for jumping into scope of identifier
7073         with variably modified type.  Push label on stack for those jumped
7074         to from current context of identifiers with variably modified
7075         type.
7076         (struct c_switch): Add blocked_vm.
7077         (c_start_case): Initialize blocked_vm.
7078         (do_case): Check blocked_vm.
7079         (c_finish_case): Add comment.
7080         (c_begin_stmt_expr, c_finish_stmt_expr): Update for renamed
7081         variable label_context_stack.
7083 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
7085         * tree-ssa-phiopt.c (tree_ssa_phi_opt): Update calls to
7086         conditional_replacement, value_replacement, abs_replacement,
7087         minmax_replacement.
7088         (replace_phi_edge_with_variable): Remove argument BB.
7089         (conditional_replacement, value_replacement,
7090         minmax_replacement, abs_replacement): Remove argument PHI_BB.
7091         Update a call to replace_phi_edge_with_variable.
7093         * tree-ssa-phiopt.c: Fix comments.
7095 2005-04-20  Michael Matz  <matz@suse.de>
7097         PR20973
7098         * reload.c (push_reload, find_dummy_reload): Check for uninitialized
7099         pseudos.
7101 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
7103         * tree-ssa-phiopt.c: Fix comment typos.
7105         PR tree-optimization/21116
7106         * tree-ssa-phiopt.c: Fix a typo.
7108 2005-04-19  Richard Henderson  <rth@redhat.com>
7110         * builtins.c (expand_builtin_sync_operation): Revert last change.
7111         * optabs.c (expand_bool_compare_and_swap): Compare vs old value,
7112         not vs new value.
7113         (expand_compare_and_swap_loop): Likewise.
7114         (expand_sync_operation): Remove fallback from NAND to AND; invert
7115         memory operand when expanding from cmpxchg.
7116         (expand_sync_fetch_operation): Likewise.
7117         * doc/extend.texi (Atomic Builtins): Fix docs for nand and
7118         compare-and-swap.
7120         * config/alpha/alpha.c (alpha_split_atomic_op): Invert memory operand
7121         when implementing NAND.  Fix double-add for AFTER.
7122         * config/alpha/sync.md (sync_nand<I48MODE>): Invert memory operand.
7123         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
7124         (sync_compare_and_swap<I48MODE>): Fix compare vs zero.  Return old
7125         memory value.
7126         (sync_lock_test_and_set<I48MODE>): Remove extra label and last
7127         memory barrier.
7129         * config/i386/sync.md (sync_compare_and_swap<IMODE>): Fix pattern
7130         to return old memory value.
7131         (sync_compare_and_swap_cc<IMODE>): Likewise.
7133         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Early
7134         return pre-reload.  Don't consider output or anti dependencies.
7135         * config/ia64/sync.md (IMODE): New.
7136         (modesuffix): Add QI and HI.
7137         (memory_barrier): Simplify expansion.
7138         (sync_compare_and_swap<IMODE>): Use IMODE, not I48MODE.
7139         (cmpxchg_acq_<IMODE>): Likewise.
7140         (sync_lock_test_and_set<IMODE>): Likewise.
7141         (sync_lock_release<IMODE>): Likewise.
7143 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
7145         * fold-const.c (fold_binary): Fold ~(X ^ Y) to ~X ^ Y or X ^ ~Y if
7146         ~X or ~Y simplify.
7148 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
7150         * fold-const (fold_binary):  Fold ~X ^ ~ Y to X ^ Y.
7152 2005-04-20  Michael Pogue  <michael.pogue@sun.com>
7153             Joseph S. Myers  <joseph@codesourcery.com>
7155         * c.opt (Wint-to-pointer-cast, Wpointer-to-int-cast): New options.
7156         * c-typeck.c (build_c_cast): Check these options.
7157         * doc/invoke.texi: Document these options.
7159 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
7161         * tree-ssa-phiopt.c: Update a comment about the pass.
7163 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
7165         * tree-ssa-phiopt.c, config/arm/arm.c, config/fr30/fr30.md,
7166         config/mcore/mcore.c: Fix comment typos.
7168 2005-04-19  Daniel Jacobowitz  <dan@codesourcery.com>
7170         * Makefile.in (libgcc.mk): Pass GCC_FOR_TARGET.
7171         * mklibgcc.in: Use $GCC_FOR_TARGET instead of ./xgcc.
7173 2005-04-19  Paul Brook  <paul@codesourcery.com>
7175         * config/arm/arm.c (arm_init_libfuncs): Clear mod optabs.
7177 2005-04-19  Andrew Haley  <aph@redhat.com>
7179         PR java/21022
7180         * dbxout.c (dbxout_type_fields): Check DECL_IGNORED_P before
7181         looking at a field's bitpos.
7183 2005-04-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7185         * system.h (fopen, fdopen, freopen): Define these to the unlocked
7186         libiberty functions.
7188 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
7190         PR tree-optimization/21096
7191         * tree-ssa-copy.c (fini_copy_prop): Free cached_last_copy_of.
7193 2005-04-19  Alan Modra  <amodra@bigpond.net.au>
7195         PR target/21098
7196         * config/rs6000/rs6000.c (rs6000_elf_end_indicate_exec_stack): New.
7197         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Use the above.
7199 2005-04-19  Alexandre Oliva  <aoliva@redhat.com>
7201         * tree-cfg.c (dump_function_to_file): Use cfun info only if it
7202         refers to the function being dumped.
7204 2005-04-18  Daniel Jacobowitz  <dan@codesourcery.com>
7206         * varasm.c (assemble_start_function): Remove reset of in_section.
7208 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
7210         PR tree-optimization/21085
7211         * fold-const (fold_binary): Don't change X % -C to X % C if C has
7212         overflowed.
7214 2005-04-19  Ben Elliston  <bje@au.ibm.com>
7216         * doc/invoke.texi (Optimize Options): Refer to the correct
7217         optimisation flag -ftree-dominator-opts, not -ftree-dom.
7219 2005-04-18  Christopher Jaillet <christophe.jaillet@wanadoo.fr>
7221         * config/rs6000/rs6000.c (machopic_output_stub):  Increase
7222         alloca argument to be big enough.
7224 2005-04-18  Alexandre Oliva  <aoliva@redhat.com>
7226         PR middle-end/21049
7227         * tree-cfg.c (dump_function_to_file): Do not crash if cfun or
7228         cfun->cfg are NULL.
7230 2005-04-18  Tom Tromey  <tromey@redhat.com>
7232         * cgraphunit.c (cgraph_finalize_compilation_unit): Fix a comment
7233         typo.
7235 2005-04-18  Richard Henderson  <rth@redhat.com>
7237         * config/alpha/alpha.c (alpha_split_atomic_op): New.
7238         (alphaev5_insn_pipe): Add LD_L, ST_C, MB types.
7239         (alphaev4_insn_pipe): Likewise.  Correct IST and LDSYM pipes.
7240         * config/alpha/alpha-protos.h: Update.
7241         * config/alpha/alpha.md (UNSPECV_MB, UNSPECV_LL, UNSPECV_SC): New.
7242         (UNSPECV_ATOMIC, UNSPECV_CMPXCHG, UNSPECV_XCHG): New.
7243         (attr type): Add ld_l, st_c, mb.
7244         (andsi_internal, andnotsi3, iorsi_internal, one_cmplsi_internal,
7245         iornotsi3, xorsi_internal, xornotsi3): New.
7246         * config/alpha/ev4.md (ev4_ld): Add ld_l.
7247         (ev4_ist_c, ev4_mb): New.
7248         * config/alpha/ev5.md (ev5_st): Add st_c, mb.
7249         (ev5_ld_l): New.
7250         * config/alpha/ev6.md (ev6_ild): Add ld_l.
7251         (ev6_ist): Add st_c.
7252         (ev6_mb): New.
7253         * config/alpha/sync.md: New file.
7255 2005-04-18  Richard Henderson  <rth@redhat.com>
7257         * builtins.c (expand_builtin_sync_operation): Fold nand to and
7258         for constants.
7260         * optabs.c (expand_sync_operation): Fix typo expanding nand to and.
7262 2005-04-18  Devang Patel  <dpatel@apple.com>
7264         * config/rs6000/atlivec.md (mulv4si3): New pattern.
7266 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
7268         PR tree-optimization/20922
7269         * fold-const.c (fold_binary): Fold X - c > X and X + c < X to false.
7270         Fold X + c >= X and fold X - c <= X to true.
7272 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
7274         * config/ia64/unwind-ia64.c (emergency_reg_state_free): Make an
7275         unsigned int.
7276         (emergency_labeled_state_free): Likewise.
7278 2005-04-18  Nick Clifton  <nickc@redhat.com>
7280         * config/h8300/h8300.md (jump): Remove prescan parameter from
7281         calls to final_scan_insn.
7283         * config/arc/arc.c (arc_output_function_epilogue): Remove prescan
7284         parameter from calls to final_scan_insn.
7286         * config.gcc (m68hc12): Use the m68hc11.opt file for target
7287         specific options.
7288         (v850e, v850e1): Use the v850.opt file for target specific
7289         options.
7291 2005-04-18  Kazu Hirata  <kazu@cs.umass.edu>
7293         PR tree-optimization/21001
7294         * tree-optimize.c (init_tree_optimization_passes): Move the
7295         first pass_forwprop immediately before pass_vrp.
7297 2005-04-17  Ian Lance Taylor  <ian@airs.com>
7299         * c-common.def (SIZEOF_EXPR, ARROW_EXPR, ALIGNOF_EXPR): Remove.
7300         * c-common.c (c_sizeof_or_alignof_type): Change second parameter
7301         from enum tree_code op to bool is_sizeof.
7302         * c-common.h (c_sizeof_or_alignof_type): Update declaration.
7303         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
7304         * c-pretty-print.c (pp_c_postfix_expression): Remove ARROW_EXPR
7305         case.
7306         (pp_c_unary_expression): Remove SIZEOF_EXPR and ALIGNOF_EXPR
7307         cases.
7308         (pp_c_expression): Remove ARROW_EXPR, SIZEOF_EXPR, and
7309         ALIGNOF_EXPR cases.
7311 2005-04-17  Ian Lance Taylor  <ian@airs.com>
7313         * system.h: Poison DONT_ACCESS_GBLS_AFTER_EPILOGUE.
7315 2005-04-17  Richard Henderson  <rth@redhat.com>
7317         * config/alpha/alpha.c (va_list_skip_additions): Only define if
7318         TARGET_ABI_OSF.
7319         (TARGET_STDARG_OPTIMIZE_HOOK): Likewise.
7320         (alpha_stdarg_optimize_hook): Likewise.  Allow for one more round
7321         of indirection through ssa names while looking for the gpr counter
7322         field.
7323         (alpha_setup_incoming_varargs) <TARGET_ABI_OSF>: Make use of the
7324         saved va_list_gpr_size and va_list_fpr_size.
7326 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
7328         * tree-vrp.c (compare_values): Check that VAL1 and VAL2 are
7329         both pointers or both integers.
7331         * tree-vrp.c (maybe_add_assert_expr): Don't assert
7332         ASSERT_EXPRs for single-use variable.
7334         * tree-into-ssa.c: Fix a comment typo.
7336 2005-04-17  Richard Sandiford  <rsandifo@redhat.com>
7338         * config/mips/iris6.h (DRIVER_SELF_SPECS): Check -march as well as
7339         -mipsN before forcing a default of -mips2.
7341 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
7343         * predict.h (IS_TAKEN): Remove.
7344         * rtl.h (NOTE_PREDICTION): Likewise.
7346         * modulo-sched.c (CFG_HOOKS): Remove.
7348         * c-parser.c (N_C_TTYPES): Remove.
7350         * tree-flow-inline.h (get_stmt_operands): Remove.
7351         * lambda-code.c, tree-ssa-loop-unswitch.c,
7352         tree-ssa-operands.c, tree-ssa-pre.c, tree-ssa-propagate.c,
7353         tree-ssa-sink.c, tree-ssa.c, tree-tailcall.c,
7354         tree-vect-transform.c, tree-vectorizer.c, tree-vrp.c): Remove
7355         calls to get_stmt_operands.
7356         * doc/tree-ssa.texi: Don't mention get_stmt_operands.
7358 2005-04-17  Richard Henderson  <rth@redhat.com>
7360         PR target/20375
7361         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Advance a copy
7362         of CUMULATIVE_ARGS past the last named argument.
7363         (alpha_va_start): Expect pretend_args_size only if strictly less than
7364         6 named arguments.
7366 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
7368         PR middle-end/21024
7369         * builtins.c (expand_builtin_strcat): Convert the result of
7370         strlen to the right type.
7371         * fold-const.c (fold_binary) <PLUS_EXPR>: Use fold_convert to
7372         avoid creating type mismatches.
7373         <GE_EXPR>: Pass op0 and op1 to fold_build2 to avoid creating
7374         type mismatches.
7376         * c-lex.c (WCHAR_TYPE_SIZE, WCHAR_BYTES): Remove.
7378 2005-04-16  Richard Henderson  <rth@redhat.com>
7380         PR target/21051
7381         * builtins.c (expand_builtin) <BUILT_IN_BOOL_COMPARE_AND_SWAP_*>:
7382         Use the mode of boolean_type_node when the user doesn't provide one.
7383         * config/ia64/sync.md (sync_lock_release<I48MODE>): Use operand 1.
7385 2005-04-16  Alexandre Oliva  <aoliva@redhat.com>
7387         PR target/20126
7388         * loop.c (loop_givs_rescan): Handle non-replaceable (plus (reg)
7389         (const)).
7391         * tree-scalar-evolution.c (interpret_rhs_modify_expr): Fix typo in
7392         comment.
7394 2005-04-16  Roger Sayle  <roger@eyesopen.com>
7395             Steven Bosscher  <stevenb@suse.de>
7397         * fold-const.c (fold_binary_to_constant): Delete obsolete comment.
7398         (fold_unary_to_constant): Likewise.
7400 2005-04-16  Kazu Hirata  <kazu@cs.umass.edu>
7402         * basic-block.h: Adjust the value of PROP_SCAN_DEAD_STORES,
7403         PROP_ASM_SCAN.
7405 2005-04-16  Gerald Pfeifer  <gerald@pfeifer.com>
7407         * doc/install.texi (Specific): Avoid using asterisks in @anchor
7408         names related to target triplets.
7409         Remove i?86-*-esix from platform directory.
7410         Remove powerpc-*-eabiaix from platform directory.
7412 2005-04-16  Joseph S. Myers  <joseph@codesourcery.com>
7414         PR middle-end/20491
7415         * config/ia64/ia64.c (rtx_needs_barrier): Recurse instead of
7416         falling through from SUBREG case to REG.
7418 2005-04-15  Roger Sayle  <roger@eyesopen.com>
7420         * fold-const.c (fold_relational_hi_lo): Delete function and prototype.
7421         (fold_binary): Update comment mentioning fold_relational_hi_lo.
7422         (fold_binary_to_constant): Simplify using fold_binary.
7423         (fold_unary_to_constant): Likewise, simplify using fold_unary.
7425 2005-04-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7427         * gthr-posix.c (pthread_cancel): Define.
7428         (pthread_mutexattr_init): Likewise.
7429         (pthread_mutexattr_settype): Likewise.
7430         (pthread_mutexattr_destroy): Likewise.
7432 2005-04-15  David S. Miller  <davem@davemloft.net>
7434         PR target/20673
7435         * config/sparc/sparc.h (sparc_hard_reg_printed): Mark as GTY(()).
7437 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
7439         PR tree-optimization/21031
7440         * tree-ssa-forwprop.c (ssa_name_defined_by_comparison_p): New.
7441         (forward_propagate_into_cond_1): Call it.  Forward propagate
7442         integer-integer casts into COND_EXPRs.
7444 2005-04-15  Dave Korn  <dave.korn@artimi.com>
7446         * gcc.c (default_compilers): Clarify obscure error message when
7447         reading from standard input.
7449 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
7451         * basic-block.h (PROP_EQUAL_NOTES): Remove.
7452         * flow.c (propagate_one_insn): Don't use PROP_EQUAL_NOTES.
7454         * tree-ssa-alias.c (init_alias_info): Remove a call to
7455         get_stmt_operands.
7457 2005-04-15  Andrew MacLeod  <amacleod@redhat.com>
7459         * tree-vect-analyze.c (vect_stmt_relevant_p): Process immediate uses
7460         of non-virtual PHI nodes like we use to.
7462 2005-05-15  Paolo Bonzini  <bonzini@gnu.org>
7464         * genattrtab.c (ATTR_EQ_ATTR_P): Remove.
7465         (attr_copy_rtx): Do not use it.
7467 2005-04-15  Andrew Macleod  <amacleod@redhat.com>
7469         * doc/tree-ssa.texi: Grammer/abbreviation updates.
7471 2005-04-15  Diego Novillo  <dnovillo@redhat.com>
7473         * tree-vect-transform.c (vectorizable_store): Mark necessary
7474         objects in the vectorized store needing renaming.  Update the
7475         SSA graph for V_MAY_DEF operands in the original store.
7477 2005-04-14  Daniel Berlin <dberlin@dberlin.org>
7479         * tree-ssa-pre.c (compute_avail): It's okay to have
7480         TREE_INVARIANT's here, and value number the resulting expressions.
7481         (create_expression_by_pieces): Make sure operands that were
7482         min_invariant when we started, stay that way.
7484 2005-04-15  David Edelsohn  <edelsohn@gnu.org>
7486         * doc/install.texi (*-ibm-aix*): Add comment about system limits.
7488 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
7490         PR tree-optimization/20936.
7491         * tree-ssa-ccp.c (visit_assignment): Fix a typo.
7493 2005-04-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7495         * doc/invoke.texi: Fix typos.
7496         * doc/md.texi: Likewise.
7497         * doc/rtl.texi: Likewise.
7498         * doc/sourcebuild.texi: Likewise.
7499         * doc/tm.texi: Likewise.
7501 2005-04-15  Uros Bizjak  <uros@kss-loka.si>
7503         PR tree-optimization/21004
7504         * convert.c (convert_to_integer): Convert ceilf, ceill, floorf
7505         and floorl in c99 mode only.
7506         * builtins.c (expand_builtin_int_roundingfn): Assert that
7507         fallback_fndecl is not NULL_TREE.
7509 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
7511         * cfgrtl.c (purge_all_dead_edge): Remove an unused argument.
7512         * basic-block.h: Update the prototype for
7513         purge_all_dead_edges.
7514         * cfgexpand.c (tree_expand_cfg): Update a call to
7515         purge_all_dead_edges.
7516         * combine.c (combine_instructions): Likewise.
7517         * passes.c (rest_of_handle_old_regalloc, rest_of_handle_cse,
7518         rest_of_handle_cse2, rest_of_handle_gcse,
7519         rest_of_handle_postreload): likewise.
7521 2005-04-15  Alexandre Oliva  <aoliva@redhat.com>
7523         PR middle-end/20739
7524         * gimplify.c (gimplify_addr_expr): Compensate for removal of
7525         e.g. cv-qualification conversions.
7527 2005-04-14  Mike Stump  <mrs@apple.com>
7529         * config/darwin-c.c (framework_construct_pathname): We must
7530         find all headers of a framework in the first instance of it
7531         found in the seach path.
7533 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
7535         PR tree-optimization/21021
7536         * tree-vrp.c (compare_values): Work around a bug in the front
7537         end that produces a comparison of mismatched types.
7539 2004-04-14  Richard Henderson  <rth@redhat.com>
7541         * config/ia64/ia64.h (enum fetchop_code): Remove.
7542         (enum ia64_builtins): Move ...
7543         * config/ia64/ia64.c (enum ia64_builtins): ... here.  Remove all
7544         members except BSP and FLUSHRS.
7545         (ia64_init_builtins): Remove __sync builtins.
7546         (ia64_expand_builtin): Likewise.
7547         (ia64_expand_fetch_and_op, ia64_expand_op_and_fetch): Remove.
7548         (ia64_expand_compare_and_swap, ia64_expand_lock_test_and_set): Remove.
7549         (ia64_expand_lock_release): Remove.
7550         * config/ia64/ia64.md (mf): Move to sync.md.
7551         (mf_internal, fetchadd_acq_si, fetchadd_acq_di, cmpxchg_acq_si,
7552         cmpxchg_acq_di, xchgsi, xchgdi): Likewise.
7553         * config/ia64/sync.md: New file.
7554         (memory_barrier): Rename from mf.
7555         (fetchadd_acq_<I48MODE>): Macroize from _si/_di patterns.
7556         (cmpxchg_acq_<I48MODE>): Likewise.
7557         (sync_lock_test_and_set<I48MODE>): Likewise.
7559         * config/ia64/ia64intrin.h: Define nothing for C; limit #defines
7560         to c++.  Remove __sync* declarations.  s/_si/_4/.  s/_di/_8/.
7562 2004-04-14  Richard Henderson  <rth@redhat.com>
7564         * config/i386/i386.c (x86_cmpxchg, x86_xadd): New.
7565         (ix86_compare_emitted): New.
7566         (ix86_expand_compare): Use ix86_compare_emitted if set.
7567         (ix86_expand_setcc): Only emit REG_EQUAL if both ix86_compare_op0
7568         and ix86_compare_op0 are set.
7569         * config/i386/i386.h (x86_cmpxchg, x86_xadd): Declare.
7570         (TARGET_CMPXCHG, TARGET_XADD): New.
7571         (ix86_compare_emitted): Declare.
7572         * config/i386/i386.md: Include sync.md
7573         (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2): New.
7574         (UNSPECV_XCHG, UNSPECV_LOCK): New.
7575         * config/i386/sync.md: New file.
7577 2004-04-14  Richard Henderson  <rth@redhat.com>
7579         PR middle-end/14311
7580         * builtin-types.def (BT_BOOL, BT_VOLATILE_PTR, BT_I1, BT_I2,
7581         BT_I4, BT_I8, BT_FN_VOID_VPTR, BT_FN_I1_VPTR_I1, BT_FN_I2_VPTR_I2,
7582         BT_FN_I4_VPTR_I4, BT_FN_I8_VPTR_I8, BT_FN_BOOL_VPTR_I1_I1,
7583         BT_FN_BOOL_VPTR_I2_I2, BT_FN_BOOL_VPTR_I4_I4, BT_FN_BOOL_VPTR_I8_I8,
7584         BT_FN_I1_VPTR_I1_I1, BT_FN_I2_VPTR_I2_I2, BT_FN_I4_VPTR_I4_I4,
7585         BT_FN_I8_VPTR_I8_I8): New.
7586         * builtins.def (DEF_SYNC_BUILTIN): New.
7587         (BUILT_IN_FETCH_AND_ADD_N, BUILT_IN_FETCH_AND_ADD_1,
7588         BUILT_IN_FETCH_AND_ADD_2, BUILT_IN_FETCH_AND_ADD_4,
7589         BUILT_IN_FETCH_AND_ADD_8, BUILT_IN_FETCH_AND_SUB_N,
7590         BUILT_IN_FETCH_AND_SUB_1, BUILT_IN_FETCH_AND_SUB_2,
7591         BUILT_IN_FETCH_AND_SUB_4, BUILT_IN_FETCH_AND_SUB_8,
7592         BUILT_IN_FETCH_AND_OR_N, BUILT_IN_FETCH_AND_OR_1,
7593         BUILT_IN_FETCH_AND_OR_2, BUILT_IN_FETCH_AND_OR_4,
7594         BUILT_IN_FETCH_AND_OR_8, BUILT_IN_FETCH_AND_AND_N,
7595         BUILT_IN_FETCH_AND_AND_1, BUILT_IN_FETCH_AND_AND_2,
7596         BUILT_IN_FETCH_AND_AND_4, BUILT_IN_FETCH_AND_AND_8,
7597         BUILT_IN_FETCH_AND_XOR_N, BUILT_IN_FETCH_AND_XOR_1,
7598         BUILT_IN_FETCH_AND_XOR_2, BUILT_IN_FETCH_AND_XOR_4,
7599         BUILT_IN_FETCH_AND_XOR_8, BUILT_IN_FETCH_AND_NAND_N,
7600         BUILT_IN_FETCH_AND_NAND_1, BUILT_IN_FETCH_AND_NAND_2,
7601         BUILT_IN_FETCH_AND_NAND_4, BUILT_IN_FETCH_AND_NAND_8,
7602         BUILT_IN_ADD_AND_FETCH_N, BUILT_IN_ADD_AND_FETCH_1,
7603         BUILT_IN_ADD_AND_FETCH_2, BUILT_IN_ADD_AND_FETCH_4,
7604         BUILT_IN_ADD_AND_FETCH_8, BUILT_IN_SUB_AND_FETCH_N,
7605         BUILT_IN_SUB_AND_FETCH_1, BUILT_IN_SUB_AND_FETCH_2,
7606         BUILT_IN_SUB_AND_FETCH_4, BUILT_IN_SUB_AND_FETCH_8,
7607         BUILT_IN_OR_AND_FETCH_N, BUILT_IN_OR_AND_FETCH_1,
7608         BUILT_IN_OR_AND_FETCH_2, BUILT_IN_OR_AND_FETCH_4,
7609         BUILT_IN_OR_AND_FETCH_8, BUILT_IN_AND_AND_FETCH_N,
7610         BUILT_IN_AND_AND_FETCH_1, BUILT_IN_AND_AND_FETCH_2,
7611         BUILT_IN_AND_AND_FETCH_4, BUILT_IN_AND_AND_FETCH_8,
7612         BUILT_IN_XOR_AND_FETCH_N, BUILT_IN_XOR_AND_FETCH_1,
7613         BUILT_IN_XOR_AND_FETCH_2, BUILT_IN_XOR_AND_FETCH_4,
7614         BUILT_IN_XOR_AND_FETCH_8, BUILT_IN_NAND_AND_FETCH_N,
7615         BUILT_IN_NAND_AND_FETCH_1, BUILT_IN_NAND_AND_FETCH_2,
7616         BUILT_IN_NAND_AND_FETCH_4, BUILT_IN_NAND_AND_FETCH_8,
7617         BUILT_IN_BOOL_COMPARE_AND_SWAP_N, BUILT_IN_BOOL_COMPARE_AND_SWAP_1,
7618         BUILT_IN_BOOL_COMPARE_AND_SWAP_2, BUILT_IN_BOOL_COMPARE_AND_SWAP_4,
7619         BUILT_IN_BOOL_COMPARE_AND_SWAP_8, BUILT_IN_VAL_COMPARE_AND_SWAP_N,
7620         BUILT_IN_VAL_COMPARE_AND_SWAP_1, BUILT_IN_VAL_COMPARE_AND_SWAP_2,
7621         BUILT_IN_VAL_COMPARE_AND_SWAP_4, BUILT_IN_VAL_COMPARE_AND_SWAP_8,
7622         BUILT_IN_LOCK_TEST_AND_SET_N, BUILT_IN_LOCK_TEST_AND_SET_1,
7623         BUILT_IN_LOCK_TEST_AND_SET_2, BUILT_IN_LOCK_TEST_AND_SET_4,
7624         BUILT_IN_LOCK_TEST_AND_SET_8, BUILT_IN_LOCK_RELEASE_N,
7625         BUILT_IN_LOCK_RELEASE_1, BUILT_IN_LOCK_RELEASE_2,
7626         BUILT_IN_LOCK_RELEASE_4, BUILT_IN_LOCK_RELEASE_8,
7627         BUILT_IN_SYNCHRONIZE: New.
7628         * builtins.c (called_as_built_in): Rewrite from CALLED_AS_BUILT_IN
7629         as a function.  Accept __sync_ as a prefix as well.
7630         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
7631         expand_builtin_lock_test_and_set, expand_builtin_synchronize,
7632         expand_builtin_lock_release): New.
7633         (expand_builtin): Call them.
7634         * c-common.c (DEF_BUILTIN): Don't require __builtin_ prefix if
7635         neither BOTH_P nor FALLBACK_P are defined.
7636         (builtin_type_for_size): New.
7637         (sync_resolve_size, sync_resolve_params, sync_resolve_return): New.
7638         (resolve_overloaded_builtin): New.
7639         * c-common.h (resolve_overloaded_builtin): Declare.
7640         (builtin_type_for_size): Declare.
7641         * c-typeck.c (build_function_call): Invoke resolve_overloaded_builtin.
7642         * expr.c (sync_add_optab, sync_sub_optab, sync_ior_optab,
7643         sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab,
7644         sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab,
7645         sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab,
7646         sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab,
7647         sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap,
7648         sync_compare_and_swap_cc, sync_lock_test_and_set,
7649         sync_lock_release): New.
7650         * optabs.h: Declare them.
7651         * expr.h (expand_val_compare_and_swap, expand_bool_compare_and_swap,
7652         expand_sync_operation, expand_sync_fetch_operation,
7653         expand_sync_lock_test_and_set): Declare.
7654         * genopinit.c (optabs): Add sync optabs.
7655         * optabs.c (init_optabs): Initialize sync optabs.
7656         (expand_val_compare_and_swap_1, expand_val_compare_and_swap,
7657         expand_bool_compare_and_swap, expand_compare_and_swap_loop,
7658         expand_sync_operation, expand_sync_fetch_operation,
7659         expand_sync_lock_test_and_set): New.
7660         * doc/extend.texi (Atomic Builtins): New section
7661         * doc/md.texi (Standard Names): Add sync patterns.
7663 2005-04-14  Alexandre Oliva  <aoliva@redhat.com>
7665         * tree-eh.c (lower_try_finally_copy): Generate new code in
7666         response to goto_queue entries as if the queue was sorted by
7667         index, not pointers.
7668         (lower_try_finally_switch): Likewise.
7670 2005-04-14  Richard Henderson  <rth@redhat.com>
7672         * config/i386/i386.c (ix86_expand_sse_cmp): Split out from ...
7673         (ix86_expand_sse_movcc): ... here.  Take cmp as a pre-computed
7674         register.
7675         (ix86_expand_fp_movcc): Update to match.
7676         (ix86_expand_fp_vcond, ix86_expand_int_vcond): New.
7677         * config/i386/i386-protos.h: Update.
7678         * config/i386/sse.md (vcondv4sf, vcondv2df): New.
7679         (vcond<SSEMODE124>, vcondu<SSEMODE12>): New.
7681 2005-04-14  Joseph S. Myers  <joseph@codesourcery.com>
7683         * doc/cpp.texi, doc/install.texi: Change references to GCC 3.5 to
7684         refer to 4.0.
7686 2005-04-14  Julian Brown  <julian@codesourcery.com>
7688         * Revert elfos.h part of my patch from 2005-04-13 for causing libstdc++
7689         link failures on ppc64 Linux.
7691 2005-04-14  Andreas Krebbel  <krebbel1@de.ibm.com>
7693         * config.gcc: Set cpu_type for s390.
7695 2005-04-14  Daniel Berlin  <dberlin@dberlin.org>
7697         Fix PR tree-optimization/20963
7698         * tree-ssa-pre.c (compute_avail): Remove special case for
7699         TREE_INVARIANT.
7700         (create_expression_by_pieces): Add value numbers for forced out
7701         statements.
7703 2005-04-14  Hans-Peter Nilsson  <hp@axis.com>
7705         * config/cris/cris.md: Replace references to (reg:SI 16) with
7706         (reg:SI CRIS_SRP_REGNUM).
7708 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
7710         PR tree-optimization/20657
7711         * tree-vrp.c (extract_range_from_expr): Notice INTEGER_CST to
7712         create an appropriate range from it.
7714 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
7716         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST_FLOOR> and
7717         <UNSPEC_FIST_CEIL> case.
7719         * config/i386/i386.md (UNSPEC_FIST_FLOOR, UNSPEC_FIST_CEIL): New.
7720         (*fist<mode>2_floor_1, fistdi2_floor, fistdi2_floor_with_temp)
7721         (fist<mode>2_floor, fist<mode>2_floor_with_temp): New isns patterns
7722         to implement lfloor and llfloor built-ins as x87 intrinsic function.
7723         (fistdi2_floor, fist<mode>2_floor splitters): New splitters.
7724         (lfloor<mode>2): New expanders.
7725         (*fist<mode>2_ceil_1, fistdi2_ceil, fistdi2_ceil_with_temp)
7726         (fist<mode>2_ceil, fist<mode>2_ceil_with_temp): New isns patterns
7727         to implement lceil and llceil built-ins as x87 intrinsic function.
7728         (fistdi2_ceil, fist<mode>2_ceil splitters): New splitters.
7729         (lceil<mode>2): New expanders.
7731 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
7733         * convert.c (convert_to_integer): Convert (long int)trunc{,f,l},
7734         and (long long int)ceil{,f,l} into FIX_TRUNC_EXPR.
7736 2005-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
7738         PR target/20927
7739         * config/s390/s390-modes.def: Define TFmode.
7741 2005-04-13  Richard Sandiford  <rsandifo@redhat.com>
7743         * config/mips/mips.h (ASM_OUTPUT_CASE_LABEL): Delete.
7744         (JUMP_TABLES_IN_TEXT_SECTION): Define.
7745         * config/mips/mips.c (mips16_insn_length): Remove reference to
7746         JUMP_TABLES_IN_TEXT_SECTION.
7748 2005-04-13 Fariborz Jahanian <fjahanian@apple.com>
7750         * simplify-rtx.c (simplify_binary_operation_1): Return
7751         scalar or vector of constant 0, depending on the xor's
7752         mode.
7754 2005-04-13  Dale Johannesen  <dalej@apple.com>
7756         * objc/Make-lang.in (objc-lang.o):  Depend on tree-gimple.h.
7757         (objc-act.o):  Ditto.
7758         * objc/objc-act.c (objc_gimplify_expr):  New.
7759         (objc_get_callee_fndecl):  New.
7760         * objc/objc-act.h:  Include tree-gimple.h.  Declare new functions.
7761         * objc/objc-lang.c (LANG_HOOKS_GIMPLIFY_EXPR):  Define.
7762         (LANG_HOOKS_GET_CALLEE_FNDECL):  Define.
7764 2005-04-13  Devang Patel  <dpatel@apple.com>
7766         * tree-if-conv.c (tree_if_convert_cond_expr): Do not create extra
7767         temp variables.
7769 2005-04-13  Hans-Peter Nilsson  <hp@axis.com>
7771         CRIS prologue as RTL.
7772         * config/cris/cris-protos.h (cris_emit_movem_store)
7773         (cris_expand_prologue): Prototype.
7774         * config/cris/cris.c (struct machine_function): New member
7775         stdarg_regs.
7776         (cfa_label_num, cris_target_asm_function_prologue): Remove.
7777         (TARGET_ASM_FUNCTION_PROLOGUE): Don't override.
7778         (cris_general_operand_or_gotless_symbol): Accept CRIS_UNSPEC_GOT.
7779         (cris_load_multiple_op, cris_return_address_on_stack)
7780         (cris_return_address_on_stack_for_return): ISO-Cify.
7781         (cris_store_multiple_op): New predicate function.
7782         (cris_expand_prologue, cris_emit_movem_store): New functions.
7783         (cris_print_operand) <case 'O'>: Handle modifications other than
7784         post-increment.
7785         (cris_symbol, cris_got_symbol): Return 0 for CRIS_UNSPEC_GOT.
7786         (cris_gotless_symbol): Return 1 for CRIS_UNSPEC_GOT.
7787         (cris_gen_movem_load): Rearrange slightly to make local variable
7788         src a parameter, removing osrc.
7789         (cris_setup_incoming_varargs): Set machine_function member
7790         stdarg_regs to correspond to the number of registers that need to
7791         be saved.
7792         * config/cris/cris.h (EXTRA_CONSTRAINT_S): Accept
7793         CRIS_UNSPEC_GOT.
7794         (PREDICATE_CODES): Add cris_store_multiple_op.  Make
7795         cris_general_operand_or_gotless_symbol accept UNSPEC.
7796         * config/cris/cris.md (CRIS_UNSPEC_GOT): New constant.
7797         ("*movsi_internal") <alternative 8>: Handle CRIS_UNSPEC_GOT.
7798         ("*cris_store_multiple"): New pattern.  Tweak common comment above
7799         this and "*cris_load_multiple".
7800         ("prologue"): New define_expand.
7802         * config/cris/cris.md ("epilogue"): Conditionalize on
7803         TARGET_PROLOGUE_EPILOGUE.
7805 2005-04-13  Steve Ellcey  <sje@cup.hp.com>
7807         PR target/20924
7808         * config/ia64/ia64.md (divsf3_internal_lat): Generate frcpa with
7809         fpsr 0 instead of fpsr 1.
7810         (divsf3_internal_thr): Ditto.
7811         (divdf3_internal_lat): Ditto.
7812         (divdf3_internal_thr): Ditto.
7813         (divxf3_internal_lat): Ditto.
7814         (divxf3_internal_thr): Ditto.
7816 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
7818         PR tree-optimization/20913
7819         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Fold COND_EXPR.
7821         PR tree-optimization/20702
7822         * tree-vrp.c (maybe_add_assert_expr): Recurse into
7823         dominator children that haven't been walked into.
7825 2005-04-13  Julian Brown  <julian@codesourcery.com>
7827         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from
7828         being used for symbols with vague linkage when HAVE_GAS_COMDAT_GROUP
7829         is true.
7831 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
7833         * basic-block.h, tree-ssa-uncprop.c, varasm.c,
7834         config/i386/sse.md: Fix comment typos.
7836         * genattrtab.c (NULL_ATTR): Remove.
7837         * ifcvt.c (NULL_EDGE): Likewise.
7839         * rtl.h (RTX_EXPR_FIRST, RTX_EXPR_LAST): Remove.
7841         * rtl.h (NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS,
7842         NOTE_PREDICT): Remove.
7844 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
7846         * configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf.
7847         * configure: Regenerate.
7848         * config.in: Likewise.
7849         * system.h: Declare vsnprintf if not already declared.
7851 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
7853         * optc-gen.awk: Handle stand-alone Mask records.
7854         * opth-gen.awk: Likewise.
7855         * doc/options.texi (Option file format): Document them.
7856         * config.gcc (sparc-*-netbsdelf*, sparc-*-linux*, sparc64-*-freebsd*,
7857         sparc64-*-linux*, sparc64-*-netbsd*): Add long-double-switch.opt.
7858         (sparc64-*-openbsd*, sparc64-*-elf*): Add little-endian.opt.
7859         * config/sparc/sparc.h (MASK_FPU, MASK_UNALIGNED_DOUBLES,
7860         MASK_V8, MASK_SPARCLITE, MASK_SPARCLET, MASK_V9,
7861         MASK_DEPRECATED_V8_INSNS, MASK_IMPURE_TEXT, MASK_APP_REGS,
7862         MASK_HARD_QUAD, MASK_LITTLE_ENDIAN, MASK_PTR64, MASK_64BIT,
7863         MASK_STACK_BIAS, MASK_FPU_SET, MASK_VIS, MASK_V8PLUS,
7864         MASK_FASTER_STRUCTS, MASK_LONG_DOUBLE_128): Delete.
7865         (TARGET_FPU, TARGET_UNALIGNED_DOUBLES, TARGET_V8, TARGET_SPARCLITE,
7866         TARGET_SPARCLET, TARGET_V9, TARGET_DEPRECATED_V8_INSNS,
7867         TARGET_IMPURE_TEXT, TARGET_APP_REGS, MASK_HARD_QUAD,
7868         TARGET_LITTLE_ENDIAN, TARGET_PTR64, TARGET_64BIT, MASK_STACK_BIAS,
7869         TARGET_FPU_SET, TARGET_VIS, TARGET_V8PLUS, TARGET_FASTER_STRUCTS,
7870         TARGET_LONG_DOUBLE_128): Likewise.
7871         (TARGET_SWITCHES, SUBTARGET_SWITCHES): Likewise.
7872         (TARGET_OPTIONS, SUBTARGET_OPTIONS): Likewise.
7873         * config/sparc/freebsd.h (SUBTARGET_SWITCHES): Likewise.
7874         * config/sparc/linux.h (SUBTARGET_SWITCHES): Likewise.
7875         * config/sparc/linux64.h (SUBTARGET_SWITCHES): Likewise.
7876         * config/sparc/netbsd-elf.h (SUBTARGET_SWITCHES): Likewise.
7877         * config/sparc/sp64-elf.h (SUBTARGET_SWITCHES): Likewise.
7878         * config/sparc/sparc.c (fpu_option_set): New global.
7879         (sparc_handle_option): New function.
7880         (sparc_override_options): Test fpu_option_set.
7881         (TARGET_DEFAULT_TARGET_FLAGS): Set to TARGET_DEFAULT.
7882         (TARGET_HANDLE_OPTION): Set to sparc_handle_option.
7883         * config/sparc/sparc.opt: New file.
7884         * config/sparc/little-endian.opt: Likewise.
7885         * config/sparc/long-double-switch.opt: Likewise.
7887 2005-04-13  Bernd Schmidt  <bernd.schmidt@analog.com>
7889         * config/bfin/bfin.c (bfin_lib_id_given): New static variable.
7890         (bfin_handle_options): Set it if -mshared-library-id= is seen.
7891         * config/bfin/bfin.opt (mshared-library-id=): Lose
7892         Var(bfin_lib_id_given).
7894 2005-04-13  Matt Thomas  <matt@3am-software.com>
7896         * config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C): undefine before
7897         defining.
7899 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
7901         * rtl.h (CLEAR_RTX_FLAGS): Remove.
7903         * cgraphunit.c (INSNS_PER_CALL): Remove.
7905         * tree-ssa-forwprop.c (vars,
7906         record_single_argument_cond_exprs,
7907         substitute_single_use_vars): Remove.
7908         (forward_propagate_into_cond_1, forward_propagate_into_cond):
7909         New.
7910         (tree_ssa_forward_propagate_single_use_vars): Call
7911         forward_propagate_into_cond for each COND_EXPR.
7913         * tree-inline.c (INSNS_PER_STMT): Remove.
7915 2005-04-12  Richard Henderson  <rth@redhat.com>
7917         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Split ...
7918         (ix86_expand_sse_fp_minmax): ... from ...
7919         (ix86_expand_fp_movcc): ... here.
7920         (ix86_expand_sse_movcc): Rewrite from ix86_split_sse_movcc.
7921         * config/i386/i386-protos.h: Update.
7922         * config/i386/i386.md (UNSPEC_IEEE_MIN, UNSPEC_IEEE_MAX): New.
7923         (sse_setccsf, sse_setccdf): Allow before reload.
7924         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): Remove.
7925         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): Remove.
7926         (ieee_sminsf3, ieee_smaxsf3, ieee_smindf3, ieee_smaxdf3): New.
7927         * config/i386/sse.md (andsf3, nandsf3, iorsf3, xorsf3): New.
7928         (anddf3, nanddf3, iordf3, xordf3): New.
7930 2005-04-12  Jeff Law  <law@redhat.com>
7932         * Makefile.in (OBJS-common): Add tree-ssa-uncprop.o.
7933         (tree-ssa-uncprop.o): Add dependencies.
7934         * tree-cfg.c (remove_useless_stmts_bb, remove_useless_stmts): Remove.
7935         * tree-flow.h (remove_useless_stmts): Remove prototype.
7936         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
7937         remove_useless_stmts.
7938         * timevar.def (TV_TREE_SSA_UNCPROP): New timevar.
7939         * tree-optimize.c (init_tree_optimization_passes): Add uncprop pass.
7940         * tree-pass.h (pass_uncprop): Declare.
7941         * tree-ssa-uncprop.c: New file.
7943 2005-04-12  James E. Wilson  <wilson@specifixinc.com>
7945         PR target/20670
7946         * unwind-ia64.c (uw_intall_context): Add missing load of r27.
7948 2005-04-12  Caroline Tice  <ctice@apple.com>
7950         Temporary fix for partitioning problems.
7951         * passes.c (rest_of_handle_final): Remove code that
7952         frees unlikely_text_section_name,
7953         * varasm.c (assemble_start_function): Test for partitioning
7954         flag before writing out section labels.
7955         (assemble_end_function): Test for partitioning flag before
7956         writing out section labels.
7958 2005-04-12  Steven Bosscher  <stevenb@suse.de>
7959             Stuart Hastings <stuart@apple.com>
7960             Jan Hubicka  <jh@suse.cz>
7962         * Makefile.in: Add function.h to BASIC_BLOCK_H.  Remove all
7963         references to gt-tree-cfg.h.
7964         * basic-block.h (struct basic_block_def): Don't skip rbi
7965         for garbage collection.
7966         (struct reorder_block_def): Make GTY-able.
7967         (struct control_flow_graph): New structure.
7968         (n_edges, n_basic_blocks, last_basic_block, basic_block_info,
7969         BASIC_BLOCK, EXIT_BLOCK_PTR, ENTRY_BLOCK_PTR): No longer vars,
7970         but instead defines to the control_flow_graph for cfun.
7971         (label_to_block_map): New define, points to the label map of
7972         the control_flow_graph for cfun.
7973         (n_edges_for_function, n_basic_blocks_for_function,
7974         last_basic_block_for_function, basic_block_info_for_function,
7975         EXIT_BLOCK_PTR_FOR_FUNCTION, ENTRY_BLOCK_PTR_FOR_FUNCTION,
7976         basic_block_info_for_function, label_to_block_map_for_function):
7977         Counterparts for the above, taking a struct function as an extra
7978         argument.
7979         (alloc_rbi_pool, free_rbi_pool): Remove prototypes.
7980         * cfg.c: (n_edges, n_basic_blocks, last_basic_block,
7981         basic_block_info, ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Remove.
7982         (alloc_rbi_pool, free_rbi_pool): Remove.
7983         (initialize_bb_rbi): Use ggc_alloc_cleared instead of pool_alloc.
7984         * cfglayout.c: (cfg_layout_initialize): Don't allocate the rbi pool
7985         here...
7986         (cfg_layout_finalize) ... and don't free it here.
7987         * cfgrtl.c (cfg_layout_delete_block): Zero out rbi so it gets
7988         garbage collected.
7989         * flow.c (free_basic_block_vars): Set label_to_block_map and
7990         n_edges to zero too.
7991         * function.h (struct function): Add cfg field.
7992         * function.c (allocate_struct_function): Allocate the cfg.
7993         * tree-cfg.c (label_to_block_map): Remove.
7994         (build_tree_cfg): Don't allocate the rbi pool here...
7995         (delete_tree_cfg_annotations): ...and don't free it here.
7996         Also don't nullify label_to_block_map for cfun.
7998 2005-04-12  Caroline Tice  <ctice@apple.com>
8000         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8001         Revert my patch from April 9.
8002         (fix_edges_for_rarely_executed_code): Revert my patch from April 9.
8003         (reorder_basic_blocks): Revert my patch from April 9.
8004         (insert_section_boundary_note): Revert my patch from April 9.
8005         * dbxout.c (dbxout_function_end): Revert my patch from April 9.
8006         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): Revert my patch from April 9.
8007         (COLD_END_LABEL):  Revert my patch from April 9.
8008         (cold_text_section_label):  Revert my patch from April 9.
8009         (cold_end_label): Revert my patch from April 9.
8010         (dwarf2out_switch_text_section): Revert my patch from April 9.
8011         (output_aranges): Revert my patch from April 9.
8012         (output_ranges):  Revert my patch from April 9.
8013         (output_line_info): Revert my patch from April 9.
8014         (add_location_or_const_value_attribute):  Revert my patch from April 9.
8015         (dwarf2out_var_location): Revert my patch from April 9.
8016         (dwarf2out_init):  Revert my patch from April 9.
8017         (dwarf2out_finish): Revert my patch from April 9.
8018         * function.h (struct function): Revert my patch from April 9.
8019         * opts.c (decode_options): Revert my patch from April 9.
8020         * output.h (unlikely_section_label, hot_section_label,
8021         hot_section_end_label, cold_section_end_label,
8022         unlikely_text_section_name): Revert my patch from April 9.
8023         * passes.c (rest_of_handle_final): Revert my patch from April 9.
8024         * varasm.c (unlikely_section_label, hot_section_label,
8025         hot_section_end_label, cold_section_end_label,
8026         unlikely_text_section_name): Revert my patch from April 9.
8027         (initialize_cold_section_name): Revert my patch from April 9.
8028         (unlikely_text_section): Revert my patch from April 9.
8029         (in_unlikely_text_section): Revert my patch from April 9.
8030         (named_section): Revert my patch from April 9.
8031         (function_section): Revert my patch from April 9.
8032         (current_function_section): Revert my patch from April 9.
8033         (assemble_start_function): Revert my patch from April 9.
8034         (assemble_end_function): Revert my patch from April 9.
8035         (default_section_type_flags_1): Revert my patch from April 9.
8037 2005-04-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
8039         * config/sparc/sparc.h (APPLY_RESULT_SIZE): Set to 24 in 64-bit mode.
8040         * config/sparc/sparc.md (untyped_call): Save the registers manually.
8042         * config/sparc/sparc.c (legitimate_address_p): Use TARGET_ARCH32.
8044 2005-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
8046         PR middle-end/20917
8047         * config/s390/s390.md ("*set_tp"): Use SET in pattern.
8048         ("set_tp_64", "set_tp_31"): Adapt expanded pattern.
8050 2004-04-12  Richard Henderson  <rth@redhat.com>
8052         * config/i386/i386.md (UNSPEC_FIX, UNSPEC_MOVA, UNSPEC_SHUFFLE,
8053         UNSPEC_PSHUFLW, UNSPEC_PSHUFHW, UNSPEC_ADDSUB, UNSPEC_HADD,
8054         UNSPEC_HSUB, UNSPEC_MOVSHDUP, UNSPEC_MOVSLDUP, UNSPEC_MOVDDUP): Remove.
8055         (UNSPEC_*, UNSPECV_*): Renumber.
8057 2005-04-12  Frank Ch. Eigler  <fche@redhat.com>
8059         PR mudflap/19266
8060         From Richard Henderson <rth@redhat.com>:
8061         * tree-mudflap.c (mf_build_check_statement_for): Correct block
8062         splitting logic.
8064 2005-04-12  Dorit Naishlos  <dorit@il.ibm.com>
8066         * tree-cfg.c (tree_verify_flow_info): Use LABEL_EXPR_LABEL.
8068 2005-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
8070         * config/bfin/bfin.c (bfin_library_id_string): Remove.
8071         (bfin_library_id): New variable.
8072         (bfin_expand_prologue): Use bfin_library_id and bfin_lib_id_given
8073         instead of bfin_library_id_string.
8074         (bfin_handle_option): New function.
8075         (override_options): Remove most code to deal with shared library IDs,
8076         just check they aren't used without -mid-shared-library.
8077         (TARGET_HANDLE_OPTION): Define.
8078         * config/bfin/bfin.h (TARGET_OPTIONS): Delete macro.
8079         * config/bfin/bfin.opt (mshared-library-id=): New.
8081 2005-04-12  Kazu Hirata  <kazu@cs.umass.edu>
8083         * tree-vect-transform.c: Fix comment typos.
8085 2005-04-12 Mostafa Hagog <mustafa@il.ibm.com>
8087         * postreload-gcse.c (eliminate_partially_redundant_load): Don't
8088         split critical edges when not possible/profitable.
8090 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
8092         * config/ns32k/ns32k.h (target_flags, MASK_32081, MASK_RTD)
8093         (MASK_REGPARM, MASK_32532, MASK_32332, MASK_NO_SB, MASK_NO_BITFIELD)
8094         (MASK_HIMEM, MASK_32381, MASK_MULT_ADD, MASK_SRC, MASK_IEEE_COMPARE)
8095         (TARGET_32081, TARGET_32381, TARGET_MULT_ADD, TARGET_RTD)
8096         (TARGET_REGPARM, TARGET_32532, TARGET_32332, TARGET_SB, TARGET_HIMEM)
8097         (TARGET_BITFIELD, TARGET_IEEE_COMPARE, TARGET_SWITCHES): Delete.
8098         (OVERRIDE_OPTIONS): Clear MASK_SB instead of setting MASK_NO_SB.
8099         * config/ns32k/netbsd.h (TARGET_DEFAULT): Remove MASK_NO_SB and
8100         MASK_NO_BITFIELD.
8101         * config/ns32k/ns32k.c (ns32k_handle_option): New function.
8102         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
8103         * config/ns32k/ns32k.opt: New file.
8105 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
8107         * config.gcc (m68k-*-linux*): Add m68k/ieee.opt to $extra_options.
8108         * config/m68k/m68k.h (target_flags, MASK_68020, TARGET_68020)
8109         (MASK_68030, TARGET_68030, MASK_68040, TARGET_68040, MASK_68040_ONLY)
8110         (TARGET_68040_ONLY, MASK_68060, TARGET_68060, MASK_5200, TARGET_5200)
8111         (MASK_CFV3, TARGET_CFV3, MASK_CFV4, TARGET_CFV4, MASK_528x)
8112         (TARGET_528x, MASK_CF_HWDIV, TARGET_CF_HWDIV, MASK_68881, TARGET_68881)
8113         (MASK_BITFIELD, TARGET_BITFIELD, MASK_SHORT, TARGET_SHORT)
8114         (MASK_ALIGN_INT, TARGET_ALIGN_INT, MASK_PCREL, TARGET_PCREL)
8115         (MASK_NO_STRICT_ALIGNMENT, TARGET_STRICT_ALIGNMENT, MASK_RTD)
8116         (TARGET_RTD, MASK_SEP_DATA, TARGET_SEP_DATA, MASK_ID_SHARED_LIBRARY)
8117         (TARGET_ID_SHARED_LIBRARY, MASK_ALL_CF_BITS, TARGET_SWITCHES)
8118         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Delete.
8119         (MASK_COLDFIRE): Formatting fixes.
8120         (TARGET_COLDFIRE): Turn into a boolean value for consistency.
8121         * config/m68k/linux.h (SUBTARGET_SWITCHES): Delete.
8122         * config/m68k/m68k.c (m68k_library_id_string): Initialize to
8123         "_current_shared_library_a5_offset_".
8124         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
8125         (MASK_ALL_CPU_BITS): New macro.
8126         (m68k_handle_option): New function.
8127         (override_options): Remove handling of m68k_library_id_string.
8128         * config/m68k/m68k.opt: New file.
8129         * config/m68k/ieee.opt: New file.
8131 2005-04-11  Mark Mitchell  <mark@codesourcery.com>
8133         * target-def.h (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
8134         (TARGET_CXX_DETERMINE_CLASS_VISIBILITY): New macro.
8135         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
8136         (TARGET_CXX): Adjust accordingly.
8137         * target.h (struct gcc_target): Remove epxort_class_data.  Add
8138         determine_class_data_visibility and class_data_always_comdat.
8139         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
8140         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Document.
8141         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
8142         * config/arm/arm.c (arm_cxx_export_class_data): Remove.
8143         (arm_cxx_determine_class_data_visibility): New.
8144         (arm_cxx_class_data_always_comdat): Likewise.
8145         (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
8146         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
8147         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
8148         * config/arm/arm.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P): Define.
8149         * config/arm/symbian.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P):
8150         Define.
8152 2005-04-11  Devang Patel  <dpatel@apple.com>
8154         * tree-data-ref.c (build_classic_dist_vector,
8155         compute_subscript_distance): Make externally visible.
8156         * tree-data-ref.h (build_classic_dist_vector,
8157         compute_subscript_distance): Same.
8158         * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
8159         Check distance vector against vectorization factor.
8160         (vect_analyze_loop): Determine vectorizaion factor before
8161         analyzing data dependences.
8162         * tree-vectorizer.c (loops_num): Make it externally visible and
8163         rename ...
8164         * tree-vectorizer.c (vect_loops_num): ... new name.
8165         * tree-vectorizer.h  (vect_loops_num): New.
8167 2005-04-11  Devang Patel  <dpatel@apple.com>
8169         * tree-vect-analyze.c (vect_analyze_operations): Check
8170         vectorizable codition.
8171         * tree-vect-transform.c (vect_is_simple_cond): New function.
8172         (vectorizable_condition): New function.
8173         (vect_transform_stmt): Handle condition_vec_info_type.
8174         * tree-vectorizer.h (enum stmt_vec_info_type): Add
8175         condition_vec_info_type.
8176         (vectorizable_condition): New.
8178 2005-04-11  Geoffrey Keating  <geoffk@apple.com>
8180         * config/i386/i386.h (TARGET_FPMATH_DEFAULT): New.
8181         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT): New.
8182         * config/i386/i386.c (override_options): Use TARGET_FPMATH_DEFAULT.
8184         * config/i386/darwin.h (ASM_SPEC): Use -arch i386 not -arch i686.
8185         (SUBTARGET_EXTRA_SPECS): Always 'i386'.
8187         * dwarf2out.c (output_line_info): Don't try to dereference
8188         a NULL current_function_decl.
8190         * config/t-slibgcc-darwin: Don't put shared libraries in
8191         directories other than $(slibdir).
8192         * config/rs6000/darwin.h: Find -m64 libgcc under the name the
8193         OS uses for it.
8195 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
8197         PR tree-optimization/20933
8198         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Move
8199         logic to reject aliases between read-only and writable
8200         variables ...
8201         (may_alias_p): ... here.
8202         (get_tmt_for): Do not associate read-only tags to pointers
8203         whose pointed-to type is not read-only.
8204         * tree-ssa.c (verify_ssa): Check that memory stores have at
8205         least one V_MAY_DEF or V_MUST_DEF.
8207 2005-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8209         PR/17092
8210         * configure.ac (gcc_UNLOCKED_FUNCS): New.
8211         (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for gcc_UNLOCKED_FUNCS.
8212         * system.h (putchar, getc, getchar, clearerr, feof, fileno,
8213         fflush, fgetc, fgets, ferror, fread): Redefine to the associated
8214         _unlocked function.
8215         (fwrite_unlocked): Fix prototype.
8217         * configure, config.in: Regenerate.
8219 2005-04-11  David Edelsohn  <edelsohn@gnu.org>
8221         * tree-ssa-loop-im.c: Include real.h.
8222         (determine_invariantness_stmt): If real division divisor is
8223         invariant and flag_unsafe_math_optimizations enabled, generate
8224         invariant reciprocal for hoisting.
8225         * Makefile.in (tree-ssa-loop-im.o): Add real.h dependency.
8227 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
8229         Fix PR tree-optimization/20926
8231         * tree-ssa-alias.c (add_type_alias): Handle subvars.
8233 2005-04-11  Devang Patel  <dpatel@apple.com>
8235         * config/rs6000.c (rs6000_emit_vector_select): Fix vector select
8236         operand ordering.
8238 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
8240         * fold-const.c (fold_binary_op_with_conditional_arg):
8241         use fold_buildN instead of "fold (buildN" in some
8242         non obvious places.
8243         (fold_unary): Likewise.
8244         (fold_binary): Likewise.
8246 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
8248         Fix PR tree-optimization/20612
8249         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Fix increment
8250         handling
8251         (perfect_nestify): preheaderbb is *not* part of loop of the
8252         old destination.
8254 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
8256         * tree-ssa-alias.c (may_alias_p): If the variable
8257         is a global variable and the pointer is parameter
8258         and -fargument-noalias-global is used, then
8259         the pointer cannot alias the variable.
8261 2005-04-11  James A. Morrison  <phython@gcc.gnu.org>
8263         * config/sparc/sparc.c: Use gcc_assert and gcc_unreachable.
8264         * config/sparc/sparc.h: Likewise.
8265         * config/sparc/sparc.md: Likewise.
8267 2005-04-11  Kazu Hirata  <kazu@cs.umass.edu>
8269         * tree-vrp.c (maybe_add_assert_expr): Move a comment.
8271         * tree-vrp.c: Fix a comment typo.
8273 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
8275         PR tree-optimization/20920
8276         * tree-pretty-print.c (dump_generic_node): Show '(ab)' if an
8277         SSA_NAME flows through an abnormal edge.
8278         * tree-vrp.c (infer_value_range): Ignore SSA names that flow
8279         through abnormal edges.
8280         (maybe_add_assert_expr): Likewise.
8282 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
8284         * config/s390/s390.h (s390_tune_string, s390_arch_string)
8285         (s390_warn_framesize_string, s390_warn_dynamicstack_string)
8286         (s390_stack_size_string, s390_stack_guard_string, target_flags)
8287         (MASK_HARD_FLOAT, MASK_SMALL_EXEC, MASK_DEBUG_ARG, MASK_64BIT)
8288         (MASK_ZARCH, MASK_MVCLE, MASK_TPF_PROFILING, MASK_NO_FUSED_MADD)
8289         (MASK_BACKCHAIN, MASK_PACKED_STACK, TARGET_HARD_FLOAT)
8290         (TARGET_SOFT_FLOAT, TARGET_SMALL_EXEC, TARGET_DEBUG_ARG)
8291         (TARGET_64BIT, TARGET_ZARCH, TARGET_MVCLE, TARGET_TPF_PROFILING)
8292         (TARGET_NO_FUSED_MADD, TARGET_FUSED_MADD, TARGET_BACKCHAIN)
8293         (TARGET_PACKED_STACK, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
8294         * config/s390/s390.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
8295         (TARGET_HANDLE_OPTION): Likewise.
8296         (s390_tune): Initialize to PROCESSOR_max.
8297         (s390_arch_string): Make static.
8298         (s390_tune_string, s390_warn_framesize_string): Delete.
8299         (s390_warn_dynamicstack_string, s390_stack_size_string): Delete.
8300         (s390_stack_guard_string, s390_warn_dynamicstack_p): Delete.
8301         (s390_handle_arch_option, s390_handle_option): New functions.
8302         (override_options): Remove parsing of option strings.
8303         * config/s390/s390.opt: New file.
8305 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
8307         * tree-complex.c (expand_vector_operations): Call
8308         update_stmt_if_modified.
8310 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
8312         * tree-vect-analyze (vect_determine_vectorization_factor):
8313         Do not use GET_MODE_NUNITS.
8314         * tree-vect-transform.c (vect_get_vec_def_for_operand,
8315         (vectorizable_load, vect_transform_loop): Likewise.
8317 2005-04-11  Uros Bizjak  <uros@kss-loka.si>
8319         * builtins.def (BUILT_IN_LCEIL, BUILT_IN_LCEILF, BUILT_IN_LCEILL)
8320         (BUILT_IN_LLCEIL, BUILT_IN_LLCEILF, BUILT_IN_LLCEILL): New.
8321         * optabs.h (enum optab_index): Add new OTI_lceil.
8322         (lceil_optab): Define corresponding macro.
8323         * optabs.c (init_optabs): Initialize lceil_optab.
8324         * genopinit.c (optabs): Implement lceil_optab using lceilsi2
8325         and lceildi2 patterns.
8326         * builtins.c (expand_builtin_int_roundingfn): Handle
8327         BUILT_IN_LCEIL{,F,L} and BUILT_IN_LLCEIL{,F,L}.
8328         (fold_builtin_int_roundingfn): Handle BUILT_IN_LCEIL{,F,L} and
8329         BUILT_IN_LLCEIL{,F,L}.
8330         (fold_builtin_1): Fold BUILT_IN_LCEIL{,F,L} and
8331         BUILT_IN_LLCEIL{,F,L} using fold_builtin_int_roundingfn.
8332         (mathfn_built_in): Handle BUILT_IN LCEIL and BUILT_IN_LLCEIL.
8333         (expand_builtin): Expand BUILT_IN_LCEIL{,F,L} and
8334         BUILT_IN_LLCEIL{,F,L} using expand_builtin_int_roundingfn.
8335         * convert.c (convert_to_integer): Convert (long int)ceil{,f,l},
8336         into lceil built-in function and (long long int)ceil{,f,l} into
8337         llceil built-in function.
8338         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LCEIL and
8339         BUILT_IN_LLCEIL.
8341 2005-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8343         * pa/quadlib.c (_U_Qfneg): Toggle sign bit instead of subtracting from
8344         zero.
8346 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
8348         * config/arm/arm.c: Fix a comment typo.
8349         * doc/tree-ssa.texi: Fix a typo.
8351 2005-04-10  Steven Bosscher  <stevenb@suse.de>
8353         * cselib.c (clear_table): Rename to cselib_clear_table.
8354         * cselib.h (cselib_clear_table): Add prototype.
8355         * gcse.c (gcse_main): Make 'f' argument unused.
8356         (alloc_gcse_mem): Do not walk the insn chain, walk the contents
8357         of each basic block instead.
8358         (compute_sets, compute_hash_table_work): Likewise.
8359         (constprop_register): Change int 'alter_jumps' argument to bool.
8360         (do_local_cprop): Likewise.
8361         (local_cprop_pass): Likewise.  Also walk basic blocks instead of
8362         the insn chain.  Explicitly clear the cselib tables after finishing
8363         one basic block.  Make sure there are no unterminated libcall blocks.
8364         Update compute_sets call.
8365         (cprop): Walk basic blocks instead of the insn chain.
8366         (one_cprop_pass, compute_ld_motion_mems, compute_store_table):
8367         Likewise.
8368         (bypass_jumps): Update alloc_gcse_mem, compute_sets, and
8369         one_cprop_pass calls.
8371 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
8373         * combine.c (combine_simplify_rtx): Remove a transformation that
8374         relies on an invalid assumption about rtl sign-extension semantics.
8376 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
8378         * value-prof.c (tree_divmod_fixed_value_transform): Fix arguments
8379         to build_int_cst_wide.
8381 2005-04-09  Alexandre Oliva  <aoliva@redhat.com>
8383         PR target/20126
8384         * loop.c (loop_givs_rescan): If replacement of DEST_ADDR failed,
8385         set the original address pseudo to the correct value before the
8386         original insn, if possible, and leave the insn alone, otherwise
8387         create a new pseudo, set it and replace it in the insn.
8388         * recog.c (validate_change_maybe_volatile): New.
8389         * recog.h (validate_change_maybe_volatile): Declare.
8391 2005-04-09  Caroline Tice  <ctice@apple.com>
8393         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8394         Remove targetm.have_named_sections test.
8395         (fix_edges_for_rarely_executed_code): Likewise.
8396         (insert_section_boundary_note): Likewise.
8397         (reorder_basic_blocks): Check partitioning flag before calling
8398         verify_hot_cold_block_grouping.
8399         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
8400         the function struct rather than global variables.
8401         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
8402         (COLD_END_LABEL): Likewise
8403         (cold_text_section_label): New static global variable.
8404         (cold_end_label): Likewise.
8405         (dwarf2out_switch_text_section): Get hot/cold section labels from
8406         the function struct rather than global variables.
8407         (output_aranges): Use cold_text_section_label and cold_end_label;
8408         check partitioning flag before putting out delta.
8409         (output_ranges): Remove incorrect code attempting to use
8410         hot/cold labels.
8411         (output_line_info): Get cold section label from function struct.
8412         (add_location_or_const_value_attribute): Likewise.
8413         (get_subprogram_die): Get hot/cold section labels from function struct.
8414         (dwarf2out_var_location): Likewise.
8415         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
8416         write out cold_text_section_label if partition flag is set.
8417         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
8418         * function.h (struct function): Add new fields to point to hot/cold
8419         section labels: hot_section_label, cold_section_label,
8420         hot_section_end_label and cold_section_end_label; also add new field
8421         for cold text section name, unlikely_text_section_name.
8422         * opts.c (decode_options): Turn off partitioning flag if
8423         !targetm.have_named_sections.
8424         * output.h (hot_section_label): Remove.
8425         (hot_section_end_label): Remove.
8426         (cold_section_end_label): Remove.
8427         (unlikely_section_label): Remove.
8428         (unlikely_text_section_name): Remove.
8429         * passes.c (rest_of_handle_final):  Remove code that frees
8430         unlikely_text_section_name.
8431         * varasm.c (unlikely_section_label): Remove.
8432         (hot_section_label): Remove.
8433         (hot_section_end_label): Remove.
8434         (cold_section_end_label): Remove.
8435         (unlikely_text_section_name):  Remove.
8436         (initialize_cold_section_name): Modify to call
8437         targetm.strip_name_encoding; to store cold section name in current
8438         function struct, if it exists; and to only use the decl_section_name
8439         if flag_named_sections is true.
8440         (unlikely_text_section): Modify to get section name out of current
8441         function struct, if there is one; otherwise build it from
8442         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
8443         (in_unlikely_text_section): Likewise.
8444         (named_section): Modify to get/put cold section name in current function
8445         struct, if there is one.
8446         (function_section):  Change 'bool unlikely' to 'int reloc'; check
8447         targetm.have_named_sections before calling named_section.
8448         (current_function_section): Likewise.
8449         (assemble_start_function): Modify to get/put unlikely_text_section_name
8450         in current function struct; modify to get hot/cold section labels
8451         from function struct; initialize labels using
8452         ASM_GENERATE_INTERNAL_LABEL;
8453         test partitioning flag before writing out hot section label.
8454         (assemble_end_function): Test partitioning flag before writing out
8455         hot/cold section labels.
8456         (default_section_type_flags_1):  Modify to use array instead of
8457          char* for unlikely_text_section_name; set flags correctly for
8458          cold text section if there is not a current function decl.
8460 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
8462         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
8463         and TI_VA_LIST_FPR_COUNTER_FIELD.
8464         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
8465         * tree-pass.h (pass_stdarg): Add.
8466         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
8467         * tree-stdarg.c: New file.
8468         * tree-stdarg.h: New file.
8469         * Makefile.in (OBJS-common): Add tree-stdarg.o.
8470         (tree-stdarg.o): Add dependencies.
8471         * function.h (struct function): Add va_list_gpr_size and
8472         va_list_fpr_size fields.
8473         * function.c (allocate_struct_function): Initialize them.
8474         * target.h (struct gcc_target): Add stdarg_optimize_hook.
8475         * target-def.h (TARGET_STDARG_OPTIMIZE_HOOK): Define.
8476         (TARGET_INITIALIZER): Add it.
8478         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
8479         va_list_{g,f}pr_counter_field.
8480         (ix86_setup_incoming_varargs): Don't do anything if reg_save
8481         area will not be used.  Only save registers that tree-stdarg.c
8482         detected they need saving.
8483         (ix86_va_start): Don't set up fields that won't be used.
8485         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
8486         va_list_{g,f}pr_counter_field.
8487         (setup_incoming_varargs): Don't do anything if reg_save
8488         area will not be used.  Only save registers that tree-stdarg.c
8489         detected they need saving.
8490         (rs6000_va_start): Don't set up fields that won't be used.
8492         * config/alpha/alpha.c: Include tree-flow.h and tree-stdarg.h.
8493         (alpha_build_builtin_va_list): Initialize va_list_gpr_counter_field.
8494         (va_list_skip_additions, alpha_stdarg_optimize_hook): New functions.
8495         (TARGET_STDARG_OPTIMIZE_HOOK): Define.
8497 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
8499         PR target/20795
8500         * config/i386/i386.c (construct_container): Pass empty aligned
8501         struct, union or class in memory.
8503 2005-04-09  Kazu Hirata  <kazu@cs.umass.edu>
8505         * dominance.c, gthr-win32.h, reg-stack.c, tree-ssa-copy.c,
8506         tree-ssa-operands.c, tree-ssa.c, tree-vrp.c, varasm.c,
8507         config/alpha/alpha.c, config/arm/arm.c, config/m32r/m32r.h,
8508         config/rs6000/predicates.md: Fix comment typos.
8510         * sched-int.h (haifa_insn_data): Remove blockage and units.
8511         (INSN_UNIT, INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK,
8512         ENCODE_BLOCKAGE, UNIT_BLOCKED, BLOCKAGE_RANGE,
8513         MIN_BLOCKAGE_COST, MAX_BLOCKAGE_COST): Remove.
8515 2005-04-09  Jan Hubicka  <jh@suse.cz>
8516             Steven Bosscher  <stevenb@suse.de>
8518         * cfglayout.c (copy_bbs): Rename n_edges to num_edges.
8519         * cfgloop.c (get_loop_exit_edges): Likewise.
8520         * cfgloopmanip.c (fix_irreducible_loops): Likewise.
8521         (unloop): Likewise.
8522         * loop-unroll.c (analyze_insns_in_loop): Likewise.
8523         * tree-cfg.c (dump_cfg_status): Likewise.
8525 2005-04-09  David Edelsohn  <edelsohn@gnu.org>
8527         * config/rs6000/predicates.md (altivec_register_operand): Remove
8528         redundant match_code test.
8529         (gpc_reg_operand): Same.
8530         (cc_reg_operand): Same.
8531         (cc_reg_not_cr0_operand): Same.
8533 2005-04-09  Jan Hubicka  <jh@suse.cz>
8535         Forgotten hunk from my last merge patch:
8536         * final.c (output_addr_const): Do not call mark_referenced.
8538 2005-04-09  Andrew MacLeod  <amacleod@redhat.com>
8540         * doc/tree-ssa.texi: Add immediate use documentation.
8542 2005-04-09  Richard Earnshaw <richard.earnshaw@arm.com>
8544         * arm.c (FL_WBUF): Define.
8545         (arm_tune_strongarm): Renamed from arm_is_strong.  All uses changed.
8546         (arm_is_6_or_7): Delete.
8547         (arm_tune_wbuf): New.
8548         (arm_override_options): Set arm_tune_wbuf.
8549         * arm.h (arm_tune_strongarm): Renamed from arm_is_strong.
8550         (arm_is_6_or_7): Delete declaration.
8551         (arm_tune_wbuf): New declartion.
8552         * arm.md (is_strongarm): Derive from arm_tune_strongarm.
8553         (model_wbuf): Derive from arm_tune_wbuf.
8554         * arm-cores.def (arm600, arm610, arm620, arm700, arm700i, arm710)
8555         (arm720, arm710c, arm7100, arm7500, arm7500fe, arm710t, arm720t)
8556         (arm740t): Mark CPUs as having a write buffer.
8558 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
8560         * config/i386/i386.md (*fp_jcc_7_387): Use 'const0_operand' instead
8561         of 'const_double_operand' in operand 2 constraints.  Update enable
8562         condition.
8564 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
8566         * builtins.def (BUILT_IN_LFLOOR, BUILT_IN_LFLOORF, BUILT_IN_LFLOORL)
8567         (BUILT_IN_LLFLOOR, BUILT_IN_LLFLOORF, BUILT_IN_LLFLOORL): New.
8568         * optabs.h (enum optab_index): Add new OTI_lfloor.
8569         (lfloor_optab): Define corresponding macro.
8570         * optabs.c (init_optabs): Initialize lfloor_optab.
8571         * genopinit.c (optabs): Implement lfloor_optab using lfloorsi2
8572         and lfloordi2 patterns.
8573         * builtins.c (expand_builtin_int_roundingfn): New prototype.
8574         (expand_builtin_int_roundingfn): New function.
8575         (fold_builtin_int_roundingfn): New prototype.
8576         (fold_builtin_int_roundingfn): New function, renamed from
8577         fold_builtin_lround.
8578         Handle BUILT_IN_LROUND{,F,L}, BUILT_IN_LLROUND{,F,L} and
8579         BUILT_IN_LFLOOR{,F,L}, BUILT_IN_LLFLOOR{,F,L}.
8580         (fold_builtin_1): Fold BUILT_IN_LFLOOR{,F,L} and
8581         BUILT_IN_LLFLOOR{,F,L} using fold_builtin_int_roundingfn.
8582         (mathfn_built_in): Handle BUILT_IN LFLOOR and BUILT_IN_LLFLOOR.
8583         (expand_builtin): Expand BUILT_IN_LFLOOR{,F,L} and
8584         BUILT_IN_LLFLOOR{,F,L} using expand_builtin_int_roundingfn.
8585         * convert.c (convert_to_integer): Convert (long int)floor{,f,l},
8586         into lfloor built-in function and (long long int)floor{,f,l} into
8587         llfloor built-in function.
8588         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LFLOOR and
8589         BUILT_IN_LLFLOOR.
8591 2005-04-08  Ian Lance Taylor  <ian@airs.com>
8593         * c-common.def: Move FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
8594         CONTINUE_STMT, and SWITCH_STMT to cp/cp-tree.def.
8595         * c-common.h (WHILE_COND, WHILE_BODY): Move to cp/cp-tree.h.
8596         (DO_COND, DO_BODY): Likewise.
8597         (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Likewise.
8598         (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Likewise.
8599         (c_common_stmt_codes): Remove FOR_STMT, WHILE_STMT, DO_STMT,
8600         BREAK_STMT, CONTINUE_STMT, and SWITCH_STMT.
8601         (build_continue_stmt, build_break_stmt): Don't declare.
8602         (c_do_switch_warnings): Update declaration.
8603         * c-gimplify.c (enum bc_t): Remove.
8604         (struct c_gimplify_ctx, ctxp): Remove.
8605         (push_context, pop_context): Remove static functions.
8606         (c_genericize): Don't call push_context or pop_context.
8607         (begin_bc_block, finish_bc_block): Remove static functions.
8608         (build_bc_goto): Likewise.
8609         (gimplify_c_loop): Likewise.
8610         (gimplify_for_stmt, gimplify_while_stmt): Likewise.
8611         (gimplify_do_stmt, gimplify_switch_stmt): Likewise.
8612         (c_gimplify_expr): Remove handling of FOR_STMT, WHILE_STMT,
8613         DO_STMT, SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
8614         * c-common.c (c_do_switch_warnings): Rename from
8615         c_do_switch_warnings_1.
8616         (c_do_switch_warnings) [old version]: Remove.
8617         (c_do_switch_expr_warnings): Remove.
8618         * c-typeck.c (c_finish_case): Call new c_do_switch_warnings
8619         function instead of c_do_switch_expr_warnings.
8620         * c-dump.c (c_dump_tree): Remove handling of BREAK_STMT,
8621         CONTINUE_STMT, DO_STMT, FOR_STMT, SWITCH_STMT, and WHILE_STMT.
8622         * c-pretty-print.c (pp_c_statement): Likewise.
8623         * c-semantics.c (build_break_stmt, build_continue_stmt): Remove.
8625 2005-04-08  Devang Patel  <dpatel@apple.com>
8627         * tree-if-conv.c (find_phi_replacement_condition): New parameter, loop.
8628         While selecting replacement condition pay attention to loop header.
8630 2005-04-08  Diego Novillo  <dnovillo@redhat.com>
8632         Merge from tree-cleanup-branch: VRP, store CCP, store
8633             copy-prop, incremental SSA updating of FUD chains and
8634             newly exposed symbols.
8636         * Makefile.in (tree-ssa-copy.o): Depend on tree-ssa-propagate.h.
8637         (OBJS-common): Add tree-vrp.o.
8638         (tree-vrp.o): New rule.
8639         * basic-block.h (nearest_common_dominator_for_set): Declare.
8640         * common.opt (ftree-store-ccp): New flag.
8641         (ftree-copy-prop): New flag.
8642         (ftree-vrp): New flag.
8643         (ftree-store-copy-prop): New flag.
8644         * dominance.c (nearest_common_dominator_for_set): New.
8645         * domwalk.c (walk_dominator_tree): Only traverse
8646         statements in blocks marked in walk_data->interesting_blocks.
8647         * domwalk.h (struct dom_walk_data): Add field interesting_blocks.
8648         * fold-const.c (fold): Handle ASSERT_EXPR.
8649         * opts.c (decode_options): Set flag_tree_copy_prop at -O1.
8650         Set flag_tree_store_ccp, flag_tree_store_copy_prop and
8651         flag_tree_vrp at -O2.
8652         * timevar.def (TV_TREE_VRP): Define.
8653         (TV_TREE_COPY_PROP): Define.
8654         (TV_TREE_STORE_COPY_PROP): Define.
8655         (TV_TREE_SSA_INCREMENTAL): Define.
8656         (TV_TREE_STORE_CCP): Define.
8657         * tree-cfg.c (tree_can_merge_blocks_p): Remove reference
8658         to kill_redundant_phi_nodes from comment.
8659         (verify_expr): Handle ASSERT_EXPR.
8660         * tree-dfa.c (mark_new_vars_to_rename): Remove second
8661         argument.  Update all users.
8662         (mark_call_clobbered_vars_to_rename): Remove.  Update all
8663         users.
8664         * tree-flow-inline.h (unmodifiable_var_p): New.
8665         * tree-flow.h (enum value_range_type): Declare.
8666         (struct value_range_def): Declare.
8667         (value_range): Declare.
8668         (remove_all_phi_nodes_for): Remove.  Update all users.
8669         (find_phi_node_for): Declare.
8670         (add_type_alias): Declare.
8671         (count_uses_and_derefs): Declare.
8672         (kill_redundant_phi_nodes): Remove.
8673         (rewrite_into_ssa): Remove.
8674         (rewrite_def_def_chains): Remove.
8675         (update_ssa, register_new_name_mapping, create_new_def_for,
8676         need_ssa_update_p, name_registered_for_update_p,
8677         release_ssa_name_after_update_ssa, dump_repl_tbl,
8678         debug_repl_tbl, dump_names_replaced_by,
8679         debug_names_replaced_by, mark_sym_for_renaming,
8680         mark_set_for_renaming, get_current_def, set_current_def,
8681         get_value_range, dump_value_range, debug_value_range,
8682         dump_all_value_ranges, debug_all_value_ranges,
8683         expr_computes_nonzero, loop_depth_of_name,
8684         unmodifiable_var_p): Declare.
8685         * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle
8686         ASSERT_EXPR.
8687         * tree-into-ssa.c (block_defs_stack): Update comment.
8688         (old_ssa_names, new_ssa_names, old_virtual_ssa_names,
8689         syms_to_rename, names_to_release, repl_tbl,
8690         need_to_initialize_update_ssa_p, need_to_update_vops_p,
8691         need_to_replace_names_p): New locals.
8692         (NAME_SETS_GROWTH_FACTOR): Define.
8693         (struct repl_map_d): Declare.
8694         (struct mark_def_sites_global_data): Add field
8695         interesting_blocks.
8696         (enum rewrite_mode): Declare.
8697         (REGISTER_DEFS_IN_THIS_STMT): Define.
8698         (compute_global_livein): Use last_basic_block instead of
8699         n_basic_blocks.
8700         (set_def_block): Remove last argument.  Update all callers.
8701         (prepare_use_operand_for_rename): Remove.  Update all callers.
8702         (prepare_def_operand_for_rename): Remove.  Update all callers.
8703         (symbol_marked_for_renaming): New.
8704         (is_old_name): New.
8705         (is_new_name): New.
8706         (repl_map_hash): New.
8707         (repl_map_eq): New.
8708         (repl_map_free): New.
8709         (names_replaced_by): New.
8710         (add_to_repl_tbl): New.
8711         (add_new_name_mapping): New.
8712         (mark_def_sites): Assume that all the operands in the
8713         statement are in normal form.
8714         (find_idf): Assert that the block in the stack is valid.
8715         (get_default_def_for): New.
8716         (insert_phi_nodes_for): Add new argument 'update_p'.
8717         Add documentation.
8718         If update_p is true, add a new mapping between the LHS of
8719         each new PHI and the name that it replaces.
8720         (insert_phi_nodes_1): Only call find_idf if needed.
8721         (get_reaching_def): Call get_default_def_for.
8722         (rewrite_operand): Remove.
8723         (rewrite_stmt): Do nothing if REGISTER_DEFS_IN_THIS_STMT
8724         and REWRITE_THIS_STMT are false.
8725         Assume that all the operands in the statement are in
8726         normal form.
8727         (rewrite_add_phi_arguments): Don't use PHI_REWRITTEN.
8728         (rewrite_virtual_phi_arguments): Remove.
8729         (invalidate_name_tags): Remove.
8730         (register_new_update_single, register_new_update_set,
8731         rewrite_update_init_block, replace_use,
8732         rewrite_update_fini_block, rewrite_update_stmt,
8733         rewrite_update_phi_arguments): New.
8734         rewrite_blocks): Remove argument 'fix_virtual_phis'.
8735         Add arguments 'entry', 'what' and 'blocks'.
8736         Initialize the dominator walker according to 'what' and
8737         'blocks'.
8738         Start the dominator walk at 'entry'.
8739         (mark_def_site_blocks): Add argument 'interesting_blocks'.
8740         Use it to configure the dominator walker.
8741         (rewrite_into_ssa): Remove argument 'all'.
8742         Make internal.
8743         (rewrite_all_into_ssa): Remove.
8744         (rewrite_def_def_chains): Remove.
8745         (mark_def_interesting, mark_use_interesting,
8746         prepare_phi_args_for_update, prepare_block_for_update,
8747         prepare_def_site_for, prepare_def_sites,
8748         dump_names_replaced_by, debug_names_replaced_by,
8749         dump_repl_tbl, debug_repl_tbl, init_update_ssa,
8750         delete_update_ssa, create_new_def_for,
8751         register_new_name_mapping, mark_sym_for_renaming,
8752         mark_set_for_renaming, need_ssa_update_p,
8753         name_registered_for_update_p, ssa_names_to_replace,
8754         release_ssa_name_after_update_ssa,
8755         insert_updated_phi_nodes_for, update_ssa): New.
8756         * tree-loop-linear.c (linear_transform_loops): Call
8757         update_ssa instead of rewrite_into_ssa.
8758         * tree-optimize.c (vars_to_rename): Remove.
8759         Update all users.
8760         (init_tree_optimization_passes): Replace
8761         pass_redundant_phi with pass_copy_prop.
8762         Add pass_vrp.
8763         Replace pass_ccp with pass_store_ccp.
8764         Add pass_store_copy_prop after pass_store_ccp.
8765         (execute_todo): If the TODO_ flags don't include updating
8766         the SSA form, assert that it does not need to be updated.
8767         Call update_ssa instead of rewrite_into_ssa and
8768         rewrite_def_def_chains.
8769         If TODO_verify_loops is set, call verify_loop_closed_ssa.
8770         (tree_rest_of_compilation):
8771         * tree-pass.h (TODO_dump_func, TODO_ggc_collect,
8772         TODO_verify_ssa, TODO_verify_flow, TODO_verify_stmts,
8773         TODO_cleanup_cfg): Renumber.
8774         (TODO_verify_loops, TODO_update_ssa,
8775         TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
8776         TODO_update_ssa_only_virtuals): Define.
8777         (pass_copy_prop, pass_store_ccp, pass_store_copy_prop, pass_vrp):
8778         Declare.
8779         * tree-phinodes.c (make_phi_node): Update documentation.
8780         (remove_all_phi_nodes_for): Remove.
8781         (find_phi_node_for): New.
8782         * tree-pretty-print.c (dump_generic_node): Handle ASSERT_EXPR.
8783         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Likewise.
8784         (interpret_rhs_modify_expr): Likewise.
8785         * tree-sra.c (decide_instantiations): Mark all symbols in
8786         SRA_CANDIDATES for renaming.
8787         (mark_all_v_defs_1): Rename from mark_all_v_defs.
8788         (mark_all_v_defs): New function.  Update all users to call it
8789         with the whole list of scalarized statements, not just the
8790         first one.
8791         * tree-ssa-alias.c (count_ptr_derefs): Make extern.
8792         (compute_flow_insensitive_aliasing): If the tag is
8793         unmodifiable and the variable isn't or vice-versa, don't
8794         make them alias of each other.
8795         (setup_pointers_and_addressables): If the type tag for
8796         VAR is about to change, mark the old one for renaming.
8797         (add_type_alias): New.
8798         * tree-ssa-ccp.c: Document SSA-CCP and STORE-CCP.
8799         (ccp_lattice_t): Rename from latticevalue.
8800         (value): Remove.  Update all users.
8801         (const_val): New local variable.
8802         (do_store_ccp): New local variable.
8803         (dump_lattice_value): Handle UNINITIALIZED.
8804         (debug_lattice_value): New.
8805         (get_default_value): Re-write.
8806         (set_lattice_value): Re-write.
8807         (def_to_varying): Remove.  Update all users.
8808         (likely_value): Return VARYING for statements that make
8809         stores when STORE_CCP is false.
8810         Return VARYING for any statement other than MODIFY_EXPR,
8811         COND_EXPR and SWITCH_EXPR.
8812         (ccp_initialize): Re-write.
8813         (replace_uses_in, replace_vuse_in, substitute_and_fold):
8814         Move to tree-ssa-propagate.c.
8815         (ccp_lattice_meet): Handle memory stores when
8816         DO_STORE_CCP is true.
8817         (ccp_visit_phi_node): Likewise.
8818         (ccp_fold): Likewise.
8819         (evaluate_stmt): Likewise.
8820         (visit_assignment): Likewise.
8821         (ccp_visit_stmt): Likewise.
8822         (execute_ssa_ccp): Add argument 'store_ccp'.  Copy it
8823         into DO_STORE_CCP.
8824         (do_ssa_ccp): New.
8825         (pass_ccp): Use it.
8826         (do_ssa_store_ccp): New.
8827         (gate_store_ccp): New.
8828         (pass_store_ccp): Declare.
8829         * tree-ssa-copy.c: Include tree-ssa-propagate.h.
8830         (may_propagate_copy): Reformat.
8831         Don't abort if ORIG is a virtual and DEST isn't.
8832         If NEW does not have alias information but DEST does,
8833         copy it.
8834         (copy_of, cached_last_copy_of, do_store_copy_prop, enum
8835         copy_prop_kind, which_copy_prop): Declare.
8836         (stmt_may_generate_copy, get_copy_of_val,
8837         get_last_copy_of, set_copy_of_val, dump_copy_of,
8838         copy_prop_visit_assignment, copy_prop_visit_cond_stmt,
8839         copy_prop_visit_stmt, copy_prop_visit_phi_node,
8840         init_copy_prop, fini_copy_prop, execute_copy_prop,
8841         gate_copy_prop, do_copy_prop, gate_store_copy_prop,
8842         store_copy_prop): New.
8843         (pass_copy_prop, pass_store_copy_prop): Declare.
8844         * tree-ssa-dom.c (struct opt_stats_d): Add fields
8845         'num_const_prop' and 'num_copy_prop'.
8846         (cprop_operand): Update them.
8847         (dump_dominator_optimization_stats): Dump them.
8848         (tree_ssa_dominator_optimize): Call update_ssa instead of
8849         rewrite_into_ssa.
8850         (loop_depth_of_name): Declare extern.
8851         (simplify_cond_and_lookup_avail_expr): Guard against NULL
8852         values for LOW or HIGH.
8853         (cprop_into_successor_phis): Only propagate if NEW != ORIG.
8854         (record_equivalences_from_stmt): Call expr_computes_nonzero.
8855         (cprop_operand): Only propagate if VAL != OP.
8856         * tree-ssa-dse.c (dse_optimize_stmt): Mark symbols in removed
8857         statement for renaming.
8858         * tree-ssa-loop-im.c (move_computations): Call update_ssa.
8859         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call
8860         add_type_alias if necessary.
8861         Call mark_new_vars_to_rename.
8862         (tree_ssa_iv_optimize): If new symbols need to be renamed,
8863         mark every statement updated, call update_ssa and
8864         rewrite_into_loop_closed_ssa.
8865         * tree-ssa-loop-manip.c (add_exit_phis): Do not remove DEF_BB
8866         from LIVEIN if VAR is a virtual.
8867         * tree-ssa-loop.c (tree_loop_optimizer_init): Call update_ssa.
8868         * tree-ssa-operands.c (get_expr_operands): Handle ASSERT_EXPR.
8869         (get_call_expr_operands): Reformat statement.
8870         (add_stmt_operand): Don't create V_MAY_DEFs for read-only
8871         symbols.
8872         * tree-ssa-propagate.c (ssa_prop_init): Initialize
8873         SSA_NAME_VALUE for every name.
8874         (first_vdef, stmt_makes_single_load, stmt_makes_single_store,
8875         get_value_loaded_by): New.
8876         (replace_uses_in, replace_vuses_in, replace_phi_args_in,
8877         substitute_and_fold): Move from tree-ssa-ccp.c.
8878         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t,
8879         first_vdef, stmt_makes_single_load, stmt_makes_single_store,
8880         get_value_loaded_by, replace_uses_in, substitute_and_fold):
8881         Declare.
8882         * tree-ssa.c (verify_use): Fix error message.
8883         (propagate_into_addr, replace_immediate_uses, get_eq_name,
8884         check_phi_redundancy, kill_redundant_phi_nodes,
8885         pass_redundant_phi): Remove.  Update all users.
8886         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
8887         add_type_alias, if necessary.
8888         * tree-vectorizer.h (struct _stmt_vect_info): Update
8889         documentation for field 'memtag'.
8890         * tree-vrp.c: New file.
8891         * tree.def (ASSERT_EXPR): Define.
8892         * tree.h (ASSERT_EXPR_VAR): Define.
8893         (ASSERT_EXPR_COND): Define.
8894         (SSA_NAME_VALUE_RANGE): Define.
8895         (struct tree_ssa_name): Add field 'value_range'.
8896         (PHI_REWRITTEN): Remove.
8897         (struct tree_phi_node): Remove field 'rewritten'.
8898         * doc/invoke.texi (-fdump-tree-storeccp, -ftree-copy-prop,
8899         -ftree-store-copy-prop): Document.
8900         * doc/tree-ssa.texi: Remove broken link to McCAT's compiler.
8901         Document usage of update_ssa.
8903 2005-04-08  David Edelsohn  <edelsohn@gnu.org>
8905         PR target/20814
8906         * config/rs6000/predicates.md (altivec_register_operand): Accept
8907         SUBREG.
8908         (and64_operand): Do not limit CONST_INT to mask64_operand.
8909         (and64_2_operand): Do not limit CONST_INT to mask64_1or2_operand.
8910         (and_operand): Do not limit CONST_INT to mask_operand.
8912 2005-04-09  Hans-Peter Nilsson  <hp@axis.com>
8914         PR rtl-optimization/20466
8915         * flow.c (invalidate_mems_from_set): Handle a MEM by checking it
8916         for overlap of the address of each list member.
8917         (mark_set_1): Call invalidate_mems_from_set for MEMs too.
8919 2005-04-08  Mike Stump  <mrs@apple.com>
8921         * config/darwin.c (indirect_data): Fix typo in strncmp logic.
8923         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use 5 nops,
8924         instead of 4.
8926 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
8928         * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove.
8930         * function.c (push_function_context_to): Don't set
8931         contains_functions.
8932         * function.h (function): Remove contains_functions.
8933         (current_function_contains_functions): Remove.
8935         * function.h (function): Remove instrument_entry_exit.
8936         (current_function_instrument_entry_exit): Remove.
8938         * function.h (nonlocal_labels): Remove.
8940         * tree.h (STRIP_MAIN_TYPE_NOPS): Remove.
8942         * genattrtab.c (attr_desc): Remove negative_ok and unsigned_p.
8943         (check_attr_value, write_attr_get, write_expr_attr_cache,
8944         find_attr, make_internal_attr): Don't reference negative_ok or
8945         unsigned_p.
8946         * genattrtab.h (ATTR_NEGATIVE_OK, ATTR_UNSIGNED,
8947         ATTR_FUNC_UNITS, ATTR_BLOCKAGE): Remove.
8948         (ATTR_STATIC): Adjust the value.
8950         * c-common.h (C_ARTIFICIAL_STRING_P): Remove.
8952 2005-04-08  Ulrich Weigand  <uweigand@de.ibm.com>
8954         * config/s390/tpf.h (ASM_SPEC): Define.
8956 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
8958         * tree-flow.h: Remove the prototype for
8959         redirect_immediate_uses.
8960         (TDFA_USE_OPS, TDFA_USE_VOPS): Remove.
8962 2005-04-08  Richard Earnshaw  <richard.earnshaw@arm.com>
8964         * arm.c (arm_const_double_by_parts): New function.
8965         * arm-protos.h (arm_const_double_by_parts): Add prototype.
8966         * arm.md (define_split for 64-bit constants): Add another one.
8968 2005-04-08  Andrew MacLeod  <amacleod@redhat.com>
8970         * tree-ssa-operands.c (correct_use_link): Remove linear scan.
8972 2005-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8974         * system.h: Revert last change.
8976 2005-04-08  Richard Sandiford  <rsandifo@redhat.com>
8978         * config/xtensa/xtensa.h (target_flags, MASK_NO_FUSED_MADD)
8979         (MASK_CONST16, TARGET_NO_FUSED_MADD, TARGET_CONST16)
8980         (TARGET_SWITCHES): Delete.
8981         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
8982         * config/xtensa/xtensa.md (muladdsf3, mulsubsf3): Check
8983         TARGET_FUSED_MADD instead of !TARGET_NO_FUSED_MADD.
8984         * config/xtensa/xtensa.opt: New file.
8986 2005-04-08  Ben Elliston  <bje@au.ibm.com>
8988         * config/fp-bit.c: Include L_mul_tf in #endif comment.
8989         * config/fp-bit.h: Tidy comments.
8991 2005-04-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8993         * system.h: Poison PARAMS.
8995 2005-04-07  Richard Sandiford  <rsandifo@redhat.com>
8997         * config/vax/vax.h (target_flags, MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
8998         (MASK_G_FLOAT, TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT)
8999         (TARGET_SWITCHES): Delete.
9000         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
9001         * config/vax/vax.opt: New file.
9003 2005-04-07  Daniel Berlin  <dberlin@dberlin.org>
9005         * tree-ssa-dse.c (dse_optimize_stmt): Fix incorrect comment.
9007 2005-04-07  Ian Lance Taylor  <ian@airs.com>
9009         * config/iq2000/iq2000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Don't
9010         define.
9011         * config/mips/mips.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
9012         * config/sparc/sparc.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE):
9013         Likewise.
9015 2005-04-07  Kazu Hirata  <kazu@cs.umass.edu>
9017         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Consider
9018         all immediate uses in PHI nodes.
9020 2005-04-07  Richard Earnshaw  <richard.earnshaw@arm.com>
9022         * arm.c (arm_const_double_inline_cost): Handle any constant by
9023         using gen_lowpart and gen_highpart_mode.
9024         (note_invalid_constants): All constants in an RTX with a constraint
9025         that permits memory are now pushed to the constant pool.
9026         (output_move_double): Delete code to handle reg to reg and
9027         constant to reg moves.
9028         (const_double_needs_minipool, output_mov_immediate): Delete.
9029         * arm.h (EXTRA_CONSTRAINT_STR_ARM): All 'D' variants now handle
9030         CONST_INT and CONST_VECTOR.
9031         * arm.md (ANY64): New mode macro.
9032         (arm_movdi): Split reg-reg and const-reg moves.  Simplify constraints.
9033         (movdf_soft_insn): Split reg-reg and const-reg moves.
9034         (split patterns for 64-bit constant and register moves): New.
9035         * cirrus.md (cirrus_arm_movdi): Split reg-reg and const-reg moves.
9036         (cirrus_movdf_hard_insn): Likewise.
9037         * fpa.md (movdf_fpa): Likewise.
9038         * iwmmxt.md (iwmmxt_arm_movdi): Likewise.
9039         (movv8qi_internal, movv4hi_internal, movv2si_internal): Fix
9040         constraints.
9041         (movv2si_internal_2): Likewise.
9042         * vfp.md (arm_movdi_vfp): Split reg-reg and const-reg moves.
9043         (movdf_vfp): Likewise.
9044         * arm-protos.h (output_mov_immediate): Delete prototype.
9046 2005-04-07  Joseph S. Myers  <joseph@codesourcery.com>
9048         PR target/20093
9049         * simplify-rtx.c (simplify_unary_operation_1): Check
9050         SUBREG_PROMOTED_UNSIGNED_P (op) > 0 for zero-extension.
9052 2005-04-06  James E Wilson  <wilson@specifixinc.com>
9054         PR target/20717
9055         * cgraphunit.c (record_call_1, case FDESC_EXPR): Handle same as
9056         ADDR_EXPR.
9058 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
9060         * coverage.h (GCOV_TYPE_NODE): Delete.
9061         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref)
9062         (build_ctr_info_type): Use get_gcov_type () instead of GCOV_TYPE_NODE.
9063         * tree-profile.c (tree_gen_edge_profiler, tree_gen_interval_profiler)
9064         (tree_gen_pow2_profiler, tree_gen_one_value_profiler): Likewise.
9065         * value-prof.c (tree_divmod_fixed_value_transform): Delete.
9067 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
9069         PR other/20792
9070         * Makefile.in (gcc.pot): Remove options.c dependency.
9071         * optc-gen.awk: Don't quote help strings with N_().
9073 2005-04-06  James A. Morrison  <phython@gcc.gnu.org>
9075         * c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if
9076         the function returns a pointer type.
9078 2005-04-06  Daniel Berlin  <dberlin@dberlin.org>
9080         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): New
9081         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): New
9082         * doc/invoke.texi: Documnet salias-max-implicit-fields.
9083         * tree-ssa-alias.c (struct used_part): Add implicit_uses and
9084         explicit_uses members.
9085         (get_or_create_used_part_for): Initialize new fields.
9086         (fieldoff_compare): New function.
9087         (create_overlap_variables_for): Count number of fields, use
9088         heuristic to determine whether to create subvars for vars with
9089         only implicit uses.
9090         Sort the field list by offset and avoid creating duplicate SFT's.
9092 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
9094         * c.opt (-F): Remove trailing whitespace from help string.
9095         (-finput-charset): Use a tab to separate the switch name and help
9096         string.
9097         * common.opt (-fsched-stalled-insns, -fsched-stalled-insns-dep)
9098         (-ftree-vectorizer-verbose): Likewise.
9100 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
9102         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Look at
9103         a PHI argument where a use occurs instead of all PHI arguments.
9105 2005-04-06  Joseph S. Myers  <joseph@codesourcery.com>
9107         * c-decl.c (finish_decl): Apply pending #pragma weak regardless of
9108         scope.
9110 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
9112         * cse.c, tree-flow-inline.h, tree-flow.h, tree-ssa-operands.c,
9113         tree-ssa-sink.c, tree.h, config/bfin/bfin.c,
9114         config/bfin/bfin.h: Fix comment typos.
9116 2005-04-06  Ranjit Mathew  <rmathew@hotmail.com>
9118         * doc/install.texi: Update the URL for Jacks.
9119         * doc/sourcebuild.texi: Likewise.
9121 2005-04-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
9123         PR target/17245
9124         * config/sparc/sparc.c (legitimate_address_p): Remove 'imm2'.
9125         Revert 2004-10-08 patch.  Reject TFmode LO_SUM in 32-bit mode.
9127 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
9129         * Makefile.in (LIBGCC2_CFLAGS): Revert -pipe change.
9131 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
9133         * config/v850/v850-protos.h (override_options): Delete.
9134         * config/v850/v850.h (target_flags, MASK_GHS, MASK_LONG_CALLS, MASK_EP)
9135         (MASK_PROLOG_FUNCTION, MASK_DEBUG, MASK_V850, MASK_V850E)
9136         (MASK_SMALL_SLD, MASK_BIG_SWITCH, MASK_NO_APP_REGS, MASK_DISABLE_CALLT)
9137         (MASK_STRICT_ALIGN, MASK_US_BIT_SET, MASK_US_MASK_SET, TARGET_GHS)
9138         (TARGET_LONG_CALLS, TARGET_EP, TARGET_PROLOG_FUNCTION, TARGET_V850)
9139         (TARGET_BIG_SWITCH, TARGET_DEBUG, TARGET_V850E, TARGET_US_BIT_SET)
9140         (TARGET_SMALL_SLD, TARGET_DISABLE_CALLT, TARGET_NO_APP_REGS)
9141         (TARGET_STRICT_ALIGN, TARGET_SWITCHES, TARGET_OPTIONS)
9142         (OVERRIDE_OPTIONS): Delete.
9143         (MASK_CPU): Redefine as MASK_V850 | MASK_V850E.
9144         (small_memory_info): Remove the value field.
9145         (CONDITIONAL_REGISTER_USAGE): Check !TARGET_APP_REGS rather than
9146         TARGET_NO_APP_REGS.
9147         * config/v850/v850.c (small_memory): Remove the value field.
9148         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
9149         (override_options): Delete.
9150         (v850_handle_memory_option, v850_handle_option): New functions.
9151         * config/v850/v850.opt: New file.
9153 2005-04-06  Geoffrey Keating  <geoffk@apple.com>
9155         * config.host: Add a section for generic hosts, and a subsection
9156         for Darwin.  Add a case for x86-darwin.  Update ppc-darwin case.
9157         * config/host-darwin.c: New, split out of config/rs6000/host-darwin.c.
9158         * config/host-darwin.h: New.
9159         * config/x-darwin: New.
9160         * config/i386/host-i386-darwin.c: New.
9161         * config/i386/x-darwin: New.
9162         * config/rs6000/host-darwin.c: Include host-darwin.h.
9163         (darwin_rs6000_gt_pch_get_address): Move to config/host-darwin.c.
9164         (darwin_rs6000_gt_pch_use_address): Likewise.
9165         * config/rs6000/x-darwin: Change name of .o built, update
9166         dependencies for changes to rs6000/host-darwin.c.
9168 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
9170         PR target/17824
9171         * config/c4x/c4x.h (ASM_PROG, LD_PROG): Remove.
9173 2005-04-06  Dorit Naishlos  <dorit@il.ibm.com>
9175         * tree-vect-analyze.c (vect_analyze_loop_form): Call
9176         split_loop_exit_edge instead of loop_split_edge_with.
9178 2005-04-06  Paolo Bonzini  <bonzini@gnu.org>
9180         * config/rs6000/altivec.md (UNSPEC_VSLW, UNSPEC_SUBS,
9181         UNSPEC_SET_VSCR): New constants, used throughout.
9182         (*andc3_v4sf): New.
9183         (altivec_vspltisb, altivec_vsplitish, altivec_vsplitisw):
9184         Replace with...
9185         (altivec_vspltis<VI_char>): ... this pattern, using
9186         a QImode const_int_operand for the immediate.
9187         (abs<mode>2, absv4sf2, altivec_abss_<mode>): Rewrite as
9188         define_expands.
9190 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
9192         PR target/17822
9193         * config/avr/t-avr (AR_FOR_TARGET,RANLIB_FOR_TARGET): Remove.
9195 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
9197         * Makefile.in (LIBGCC2_CFLAGS): Compile with -pipe.
9199 2005-04-06  Ben Elliston  <bje@au.ibm.com>
9201         * gcc.c: Correct comment about DEFAULT_SWITCH_TAKES_ARG and
9202         DEFAULT_WORD_SWITCH_TAKES_ARG which incorrectly reported these
9203         macros as living in "this file" and not gcc.h.
9205 2005-04-06  Ben Elliston  <bje@au.ibm.com>
9207         * doc/invoke.texi (Optimize Options): Mention -ftree-lrs, not
9208         -ftree-live_range_split.  Perhaps renamed at some point?
9210 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
9212         PR target/20625
9213         * tree-ssa-loop-ivopts.c (generic_type_for): New function.
9214         (add_candidate_1): Use generic_type_for instead of unsigned_type_for.
9216 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
9218         * tree-flow.h (number_of_iterations_cond): Declaration removed.
9219         * tree-ssa-loop-niter.c (number_of_iterations_cond): Made static.
9220         (number_of_iterations_special): New function.
9221         (number_of_iterations_exit): Use number_of_iterations_special.
9222         Use simplify_using_outer_evolutions only at -O3.
9223         (number_of_iterations_cond, tree_simplify_using_condition,
9224         simplify_using_initial_conditions, loop_niter_by_eval,
9225         compare_trees, can_count_iv_in_wider_type_bound,
9226         simplify_using_outer_evolutions): Use fold_build.
9228 2005-04-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
9230         * doc/install.texi (Configuration): Document --with-java-home.
9232 2005-04-05  Richard Henderson  <rth@redhat.com>
9234         PR target/20342
9235         PR target/20447
9236         * config/i386/i386.c (print_operand): Handle vector zeros.
9237         (ix86_split_to_parts): Handle CONST_VECTOR.
9238         (ix86_hard_regno_mode_ok): Allow MMX modes in general regs.
9239         (ix86_modes_tieable_p): Use ix86_hard_regno_mode_ok to decide
9240         what modes to tie for MMX and SSE registers.
9241         * config/i386/i386.h (MMX_REG_MODE_P): Remove.
9242         * config/i386/i386.md: Extend move 0 -> xor peephole to apply
9243         to vector modes as well.
9244         * config/i386/predicates.md (const0_operand): Handle VOIDmode
9245         properly as an input mode.
9247 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
9249         * tree-ssa-operands.c (verify_abort): Use %p for pointers.
9251 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
9253         * tree-pretty-print.c (dump_generic_node): Use %p for pointer.
9255 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
9257         * config/i386/i386.c (init_cumulative_args): For -m32 -mfpmath=sse
9258         and local functions, set sse_nregs to 8 and float_in_sse.
9259         (function_arg_advance, function_arg): If float_in_sse, pass
9260         SFmode and DFmode arguments in SSE registers.
9261         * config/i386/i386.h (CUMULATIVE_ARGS): Add float_in_sse field.
9263         * config/i386/i386.c (ix86_value_regno): Only optimize local functions
9264         of -funit-at-a-time.
9266 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
9268         * config/i386/i386-protos.h (ix86_function_value): Accept two
9269         arguments, like the target macro.
9270         * config/i386/i386.h (FUNCTION_VALUE): Pass both arguments.
9271         * config/i386/i386.c (ix86_function_value): Accept the second
9272         argument of the target macro.
9273         (ix86_function_ok_for_sibcall): Pass a function pointer to
9274         ix86_function_value.
9275         (ix86_function_value, ix86_libcall_value) [!TARGET_64BIT]: Adjust
9276         call to ix86_value_regno).
9277         (ix86_value_regno): Add support for returning floating point values
9278         in SSE registers.
9280 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
9282         PR tree-optimization/20076
9283         * tree-inline.c (inline_forbidden_p_1): Prevent inlining functions
9284         that call __builtin_return or __builtin_apply_args.
9286 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
9288         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use update_stmt.
9289         Use immediate use iterator.
9290         (stmt_is_bumper_for_loop): Use immediate use iterator.
9291         * predict.c (strip_builtin_expect): Use update_stmt.
9292         * tree-cfg.c (update_modified_stmts): New. Call update_stmt_if_modified
9293         on all elements of a STATEMENT_LIST.
9294         (bsi_insert_before, bsi_insert_after): Call update_modified_stmts.
9295         (bsi_remove): Remove imm_use links and mark the stmt as modified.
9296         (bsi_replace): Mark stmt as modified and the update it.
9297         * tree-complex.c (update_complex_assignment): Call mark_stmt_modified.
9298         (expand_complex_libcal): Call update_stmt.
9299         (expand_complex_comparison): Call mark_stmt_modified.
9300         (expand_complex_operations_1): Call update_stmt_if_modified.
9301         (expand_vector_operations_1): Call mark_stmt_modified.
9302         * tree-dfa.c (compute_immediate_uses, free_df_for_stmt, free_df,
9303         compute_immediate_uses_for_phi, compute_immediate_uses_for_stmt,
9304         add_immediate_use, redirect_immediate_use,
9305         redirect_immediate_uses, dump_immediate_uses, debug_immediate_uses,
9306         dump_immediate_uses_for, debug_immediate_uses_for): Delete.
9307         (mark_new_vars_to_rename): Call update_stmt.
9308         * tree-dump.c (dump_option_value_in): Add "stmtaddr".
9309         * tree-flow-inline.h (modify_stmt): Rename to mark_stmt_modified.
9310         Ignore PHI nodes.
9311         (unmodify_stmt): Delete.
9312         (update_stmt): New.  Force an update of a stmt.
9313         (update_stmt_if_modified): update a stmt if it is out of date.
9314         (get_stmt_operands): Verify stmt is NOT modified.
9315         (stmt_modified_p): Update comment.
9316         (delink_imm_use): Remove a use node from its immuse list.
9317         (link_imm_use_to_list): Link a use node to a specific list.
9318         (link_imm_use): Link a node to the correct list.
9319         (set_ssa_use_from_ptr): Set a use node to a specific value, and insert
9320         it in the correct list, if appropriate.
9321         (link_imm_use_stmt): Link a use node, and set the stmt pointer.
9322         (relink_imm_use): Link a use node in place of another node in a list.
9323         (relink_imm_use_stmt): LInk a node in place of another node, and set
9324         the stmt pointer.
9325         (end_safe_imm_use_traverse): New.  Terminate a safe immuse iterator.
9326         (end_safe_imm_use_p): New.  Check for the end of a safe immuse iterator.
9327         (first_safe_imm_use): New.  Initialize a safe immuse iterator.
9328         (next_safe_imm_use): New.  Proceed to next safe immuse iterator value.
9329         (end_readonly_imm_use_p): New.  Check for end of a fast immuse iterator.
9330         (first_readonly_imm_use): New.  Initialize a fast immuse iterator.
9331         (next_readonly_imm_use): New.  Get the next fast immuse iterator value.
9332         (has_zero_uses): New.  Return true if there are no uses of a var.
9333         (has_single_use): New.  Return true if there is only a single use of a
9334         variable.
9335         (single_imm_use): New.  Return the simgle immediate use.
9336         (num_imm_uses): New.  Return the number of immediate uses.
9337         (get_v_must_def_ops): Use is now a pointer.
9338         (use_operand_p, get_v_may_def_op_ptr, get_vuse_op_ptr,
9339         get_v_must_def_kill_ptr, get_phi_arg_def_ptr): Return the address of
9340         the use node.
9341         (get_immediate_uses, num_immediate_uses, immediate_use): Delete.
9342         (delink_stmt_imm_use): Delink all immuses from a stmt.
9343         (phi_arg_index_from_use): New.  Return a phi arg index for a use.
9344         * tree-flow.h (struct dataflow_d): Delete.
9345         (immediate_use_iterator_d): New.  Immediate use iterator struct.
9346         (FOR_EACH_IMM_USE_FAST): New.  Macro for read only immuse iteration.
9347         (FOR_EACH_IMM_USE_SAFE): New.  Macro for write-safe immuse iteration.
9348         (BREAK_FROM_SAFE_IMM_USE): New.  Macro for earlyu exit from write-safe
9349         iteration.
9350         (struct stmt_ann_d): Remove dataflow_t from struct.
9351         * tree-if-conv.c (tree_if_conversion).  Don't call free_df.
9352         (if_convertible_phi_p): Use FAST immuse iterator.
9353         (if_convertible_loop_p): Don't call compute_immediate_uses.
9354         (replace_phi_with_cond_modify_expr): Call update_stmt.
9355         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites): Call
9356         update_stmt_if_modified.
9357         (rewrite_all_into_ssa): Initialize ssa operands.
9358         * tree-loop-linear.c (linear_transform_loops): Don't call free_df or
9359         compute_immediate_uses.
9360         * tree-optimize.c (execute_todo): Call verify_ssa whenever the
9361         ssa_property is available.
9362         (execute_one_pass):  Change parameters passed to execute_todo.
9363         * tree-outof-ssa.c (rewrite_trees): Don't call modify_stmt.
9364         (remove_ssa_form): Call fini_ssa_operands.
9365         (insert_backedge_copies): Delete call to modify_stmt.
9366         * tree-phinodes.c (make_phi_node): Initialize use nodes.
9367         (release_phi_node): Delink any use nodes before releasing.
9368         (resize_phi_node): Relink any use nodes.
9369         (remove_phi_arg_num): Delink the use node.
9370         (remove_phi_node): Release the ssa_name AFTER releasing the phi node.
9371         (remove_all_phi_nodes_for): Release phi node first.
9372         * tree-pretty-print.c (dump_generic_node): Print stmt address.
9373         * tree-sra.c (mark_all_v_defs): Call update_stmt_if_modified.
9374         (scalarize_use, scalarize_copy): Call update_stmt.
9375         * tree-ssa-alias.c (compute_may_aliases): Update all modified stmts.
9376         (compute_points_to_and_addr_escape): Call mark_stmt_modified.
9377         * tree-ssa-cpp.c (need_imm_uses_for): Delete.
9378         (ccp_initialize): Remove call to compute_immediate_uses.
9379         (substitute_and_fold, execute_fold_all_builtins): Call update_stmt.
9380         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update all modified
9381         stmts.
9382         (simplify_cond_and_lookup_avail_expr): Call mark_stmt_modified.
9383         (simplify_switch_and_lookup_avail_expr): Call mark_stmt_modified.
9384         (eliminate_redundant_computations): Call mark_stmt_modified.
9385         (cprop_operand): Call mark_stmt_modified.
9386         (optimize_stmt): Call update_stmt_if_modified and mark_stmt_modified.
9387         * tree-ssa-dse.c (fix_phi_uses, fix_stmt_v_may_defs): Delete.
9388         (dse_optimize_stmt): Use new immuse interface.
9389         (tree_ssa_dse): Remove calls to compute_immediate_uses and free_df.
9390         * tree-ssa-forwprop.c (need_imm_uses_for): Delete.
9391         (substitute_single_use_vars): Use new immuse interface.
9392         (tree_ssa_forward_propagate_single_use_vars): Remove calls to free_df
9393         and compute_immediate_uses.
9394         * tree-ssa-loop-im.c (single_reachable_address): Use new immuse
9395         interface.
9396         (rewrite_mem_refs): Call update_stmt.
9397         (determine_lsm): Remove call to compute_imm_uses and free_df.
9398         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Call update_stmt.
9399         (try_unroll_loop_completely): Call update_stmt.
9400         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call update_stmt.
9401         (rewrite_use_compare): Call update_stmt.
9402         (compute_phi_arg_on_exit): Insert each stmt before trying to process.
9403         (rewrite_use) : Call update_stmt.
9404         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Add arg to call.
9405         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Call
9406         update_stmt.
9407         * tree-ssa-operands.c (NULL_USE_OPERAND_P): Remove declaration.
9408         (allocate_use_optype, allocate_vuse_optype): Adjust allocation size.
9409         (free_uses, free_vuses, free_v_may_defs, free_v_must_defs): Delink
9410         use nodes.
9411         (initialize_vuse_operand): New.  Initialize a vuse operand.
9412         (initialize_v_may_def_operand): New.  Initialize a maydef operand.
9413         (initialize_v_must_def_operand): New.  Initialize a mustdef operand.
9414         (finalize_ssa_defs): Use stmt parameter.
9415         (correct_use_link): Ensure a use node is in the correct list, and has
9416         the correct stmt pointer.
9417         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_vuses,
9418         finalize_ssa_v_must_defs): Also initialize use nodes.
9419         (finalize_ssa_stmt_operands): Pass extra stmt operands.
9420         (build_ssa_operands): Seperate parsing from final operand construction.
9421         (parse_ssa_operands): New.  Parse entry point for operand building.
9422         (swap_tree_operands): New.  Swap 2 tree operands.
9423         (update_stmt_operands): Ranamed from get_stmt_operands.  Always builds
9424         operands.
9425         (get_expr_operands): Call swap_tree_operands when needed.
9426         (copy_virtual_operands): Use initialize routines for virtual use ops.
9427         (create_ssa_artficial_load_stmt): Add extra stmt parameter.
9428         (verify_abort): New.  Issue imm_use error.
9429         (verify_imm_links): New Verify imm_use links for a var.
9430         (dump_immediate_uses_for): New.  Dump imm_uses for a var to file.
9431         (dump_immediate_uses): New.  Dump imm_uses for all vars to file.
9432         (debug_immediate_uses): New.  Dump imm_uses for all vars to stderr.
9433         (debug_immediate_uses_for): New.  Dump imm_uses for a var to stderr.
9434         * tree-ssa-operands.h (struct use_operand_ptr): Delete.
9435         (NULL_USE_OPERAND_P) Define.
9436         (use_optype_d, v_def_use_operand_type, vuse_optype_d): Add immediate
9437         use node.
9438         (struct vuse_operand_type): New struct.
9439         (SET_USE): Call set_ssa_use_from_ptr.
9440         (USE_STMT): Define.
9441         (PHI_ARG_INDEX_FROM_USE): Define.
9442         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Set the phi
9443         argument via SET_USE, not PHI_ARG_DEF_TREE.
9444         * tree-ssa-pre.c (eliminate): Call update_stmt.
9445         * tree-ssa-propagate.c (cfg_blocks_get): Use imm_use iterators.  Don't
9446         call free_df.
9447         * tree-ssa-sink.c (all_immediate_uses_same_place): Use imm_use iterator.
9448         (nearest_common_dominator_of_uses): Use imm_use iterator.
9449         (statement_sink_location): Use imm_use iterator and interface.
9450         (execute_sink_code): Don't call compute_immediate_uses or free-df.
9451         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis): Use
9452         PHI_ARG_DEF, not PHI_ARG_DEF_TREE.
9453         * tree-ssa.c (verify_use, verify_phi_args): Verify some imm_use info.
9454         (verify_ssa): Ensure no stmt is marked modify after optimization pass
9455         if new parameter is true.
9456         (init_tree_ssa): Don't initialize operand cache here.
9457         (delete_tree_ssa): Don't destroy operand cache here.
9458         (propagate_into_addr): Pass in a use pointer, return true if anything
9459         was changed.
9460         (replace_immediate_uses): Use imm_use iterator, call update_stmt.
9461         (check_phi_redundancy): Use imm_use iterator.
9462         (kill_redundant_phi_nodes): Don't call compute_immediate_uses or
9463         free_df.
9464         * tree-ssanames.c (make_ssa_name): Initialize imm_use node.
9465         (release_ssa_name): Delink node and all elements in its imm_use list.
9466         * tree-tailcall.c (adjust_return_value): Call update_stmt.
9467         * tree-vect-analyze.c (vect_stmt_relevant_p): Use imm_use iterator.
9468         * tree-vectorizer.c (need_imm_uses_for): Delete.
9469         (vectorize_loops): Dont call compute_immediate_uses or free_df.
9470         * tree.h (struct ssa_imm_use_d): Define.
9471         (SSA_NAME_IMM_USE_NODE): Define.
9472         (struct tree_ssa_name): Add imm_use node.
9473         (PHI_DF): Delete.
9474         (PHI_ARG_IMM_USE_NODE): Define.
9475         (struct phi_arg_d): Add imm_use node.
9476         (struct tree_phi_node): Remove struct dataflow_d element.
9477         (TDF_STMTADDR): Define.
9479 2005-04-05  Dale Johannesen  <dalej@apple.com>
9481         * doc/invoke.texi (Optimization Options):  Remove
9482         duplicate -fcse-follow-jumps.  Add -fweb.
9483         (-ftree-lim):  Fix spelling (-ftree-loop-im, invariants).
9484         (-fivcanon):  Fix spelling (-ftree-loop-ivcanon).
9486 2005-04-05  Per Bothner  <per@bothner.com>
9488         * tree-ssa.c (execute_early_warn_uninitialized): Pass context node
9489         to talk_tree as 'data' parameter, rather than EXPR_LOCUS.
9490         (warn_uninit): Get EXPR_LOCUS from context now instead.
9491         This fixes a USE_MAPPED_LOCATION testsuite failure.
9493         * tree-ssa.c (warn_uninitialized_var): Remove useless local.
9495 2005-04-05  Per Bothner  <per@bothner.com>
9497         * c-decl.c (finish_function): If USE_MAPPED_LOCATION set the location
9498         of the artification 'return 0' in main() to BUILTINS_LOCATION.
9499         * tree-cfg.c (remove_bb): Check that location isn't BUILTINS_LOCATION
9500         before warning.
9502 2004-04-05  Devang Patel  <dpatel@apple.com>
9504         * config/rs600/altivec.md (altivec_vsr<VI_char>): Rename to ..
9505         (lhsr<mode>3): ... new name.
9506         (altivec_vsra<VI_char>): Rename to ..
9507         (ashr<mode>3): ... new name.
9508         * config/rs6000/rs6000.c (builtin_description): Rename shift
9509         operations.
9511 2004-04-05  Paolo Bonzini  <bonzini@gnu.org>
9513         * combine.c (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Use
9514         gen_lowpart_for_combine.
9515         * cse.c (gen_lowpart_if_possible): Move...
9516         * rtlhooks.c (gen_lowpart_if_possible): ... here.  Also try
9517         gen_lowpart_SUBREG.
9518         (gen_lowpart_no_emit_general): Use it.
9520 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
9522         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Undefine before
9523         overriding.
9525 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
9527         * system.h: Fix typo.
9529 2005-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
9531         * config/bfin/bfin-modes.def: New file.
9532         * config/bfin/bfin-protos.h: New file.
9533         * config/bfin/bfin.c: New file.
9534         * config/bfin/bfin.h: New file.
9535         * config/bfin/bfin.md: New file.
9536         * config/bfin/bfin.opt: New file.
9537         * config/bfin/crti.s: New file.
9538         * config/bfin/crtn.s: New file.
9539         * config/bfin/elf.h: New file.
9540         * config/bfin/lib1funcs.asm: New file.
9541         * config/bfin/predicates.md: New file.
9542         * config/bfin/t-bfin: New file.
9543         * config/bfin/t-bfin-elf: New file.
9544         * doc/extend.texi (exception_handler, kspisusp, nesting, nmi_handler):
9545         Document new attributes.
9546         (interrupt, interrupt_handler, saveall): Update documentation for
9547         these attributes.
9548         * doc/install.texi (Specific): Add entry for the Blackfin.
9549         * doc/invoke.texi (Blackfin Options): New section.
9550         * doc/md.texi (Blackfin family): New section to document constraints.
9551         * config.gcc: Add bfin*-* and bfin*-elf configurations.
9553 2005-04-05  Olivier Hainque  <hainque@adacore.com>
9555         * config/mips/iris6.h (DWARF_FRAME_RETURN_COLUMN): Redefine to
9556         match what the system unwinder expects.
9557         * config/mips/mips.c (mips_frame_set): If we're saving the return
9558         address register and the dwarf return address column number differs
9559         from the hard register number, adjust the note reg to refer to the
9560         former.
9562 2004-04-05  Richard Sandiford  <rsandifo@redhat.com>
9564         * config/mn10300/mn10300-protos.h (mn10300_override_options): Declare.
9565         * config/mn10300/mn10300.h (target_flags, TARGET_MULT_BUG)
9566         (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
9567         (processor_type): New enum.
9568         (mn10300_processor): New variable.
9569         (TARGET_AM33, TARGET_AM33_2): Redefine in terms of mn10300_processor.
9570         (PROCESSOR_DEFAULT, OVERRIDE_OPTIONS): New macros.
9571         * config/mn10300/linux.h (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
9572         (PROCESSOR_DEFAULT): New macro.
9573         * config/mn10300/mn10300.c (mn10300_processor): New variable.
9574         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
9575         (mn10300_handle_option, mn10300_override_options): New functions.
9576         * config/mn10300/mn10300.opt: New file.
9578 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
9579             Sebastian Pop <sebastian.pop@cri.ensmp.fr>
9581         PR tree-optimization/19903
9582         * tree-chrec.c (chrec_convert): Return chrec_dont_know for constants
9583         that don't fit in their type after conversion.
9585 2005-04-05  Uros Bizjak <uros@kss-loka.si>
9587         PR target/20421
9588         * config/i386/i386.md (frndintxf2_floor, frndintxf2_ceil)
9589         (frndintxf2_trunc, frndintxf2_mask_pm): Add FLAGS_REG clobber.
9590         Allocate local stack slots here.  Set ix86_optimize_mode_switching.
9591         flag here. Implement using define_insn_and_split.
9592         (frndintxf2_floor_i387, frndintxf2_ceil_i387, frndintxf2_trunc_i387)
9593         (frndintxf2_mask_pm_i387): New insn patterns.
9594         (floorsf2, floordf2, floorxf2): Remove local stack slot allocations.
9595         Do not set ix86_optimize_mode_switching flag.
9596         (ceilsf2, ceildf2, ceilxf2): Same.
9597         (btruncsf2, btruncdf2, btruncxf2): Same.
9598         (nearbyintsf2, nearbyintdf2, nearbyintxf2): Same.
9600 2005-04-05  Ian Lance Taylor  <ian@airs.com>
9602         PR debug/9963
9603         * config/i386/cygming.h (ASM_OUTPUT_EXTERNAL): Pass DECL to
9604         i386_pe_record_external_function.
9605         (i386_pe_record_external_function): Update declaration.
9606         * config/i386/winnt.c (struct extern_list): Add decl field.
9607         (i386_pe_record_external_function): Add decl parameter.
9608         (i386_pe_file_end): Check TREE_ASM_WRITTEN on decl, not
9609         identifier.
9610         * config/i386/i386-protos.h (i386_pe_record_external_function):
9611         Update declaration.
9613 2005-04-05  Kazu Hirata  <kazu@cs.umass.edu>
9615         * config/m68k/m68k-protos.h: Add a prototype for
9616         valid_dbcc_comparison_p_2.
9617         * config/m68k/m68k.c (not_sp_operand, symbolic_operand,
9618         extend_operator, const_uint32_operand, const_sint32_operand,
9619         general_src_operand, nonimmediate_src_operand,
9620         memory_src_operand, post_inc_operand, pre_dec_operand,
9621         pcrel_address): Move to predicates to predicates.md.
9622         * config/m68k/m68k.h (PREDICATE_CODES): Remove.
9623         * config/m68k/m68k.md: Include predicates.md.
9624         * config/m68k/predicates.md: New.
9626 2005-04-04  Roger Sayle  <roger@eyesopen.com>
9628         * config/i386/i386.md (*truncdfsf2_i387_1): New pattern.
9630         * fold-const.c (maybe_lvalue_p): Delete orphaned comment.
9632 2005-04-04  Ian Lance Taylor  <ian@airs.com>
9634         * c-typeck.c (struct c_switch): Rename switch_stmt field to
9635         switch_expr.
9636         (c_start_case): Build SWITCH_EXPR, not SWITCH_STMT.
9637         (do_case): Use SWITCH_COND rather than SWITCH_STMT_COND.
9638         (c_finish_case): Use SWITCH_BODY rather than SWITCH_STMT_BODY.
9639         Call c_do_switch_expr_warnings rather than c_do_switch_warnings.
9640         * c-common.c (c_do_switch_warnings_1): New static function broken
9641         out of c_do_switch_warnings.
9642         (c_do_switch_warnings): Call c_do_switch_warnings_1.
9643         (c_do_switch_expr_warnings): New function.
9644         * c-common.h (c_do_switch_expr_warnings): Declare.
9646 2005-04-04  David Edelsohn  <edelsohn@gnu.org>
9647             Daniel Jacobowitz  <dan@codesourcery.com>
9649         * tree-eh.c (tree_could_trap_p): Allow non-constant floating point
9650         trapping divide.
9651         * rtlanal.c (may_trap_p): Same.
9653 2005-04-04  Dale Johannesen  <dalej@apple.com>
9655         * ChangeLog:  remove reference to ChangeLog.12.
9657 2005-04-05  Hans-Peter Nilsson  <hp@axis.com>
9659         CRIS epilogue as RTL.
9660         * config/cris/cris.md: Change all 0 in unspec 0 to
9661         CRIS_UNSPEC_PLT.
9662         (CRIS_UNSPEC_PLT, CRIS_UNSPEC_FRAME_DEALLOC): New constants.
9663         ("*cris_load_multiple", "cris_frame_deallocated_barrier"): New
9664         patterns.
9665         ("return"): Change to define_expand.  Call cris_expand_return for
9666         actual expansion.
9667         ("*return_expanded"): New pattern.
9668         ("epilogue"): New define_expand.
9669         * config/cris/cris.h (PREDICATE_CODES): Add
9670         cris_load_multiple_op.
9671         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Correct test for unspec
9672         type.
9673         (enum cris_retinsn_type): New.
9674         (struct machine_function): New member return_type.
9675         (TARGET_ASM_FUNCTION_EPILOGUE): Don't override.
9676         (cris_target_asm_function_epilogue): Remove, moving RTLified
9677         contents to...
9678         (cris_expand_epilogue): New function.
9679         (cris_reg_saved_in_regsave_area, cris_movem_load_rest_p,
9680         (cris_gen_movem_load, cris_load_multiple_op)
9681         (cris_return_address_on_stack_for_return, cris_expand_return): New
9682         functions.
9683         (cris_target_asm_function_prologue)
9684         (cris_initial_frame_pointer_offset): Call
9685         cris_reg_saved_in_regsave_area instead of complicated expression.
9686         Call cris_return_address_on_stack instead of an expression.
9687         (cris_print_operand) <case 'o', case 'O'>: New cases.
9688         (cris_return_address_on_stack): Change return-type to bool.
9689         (cris_simple_epilogue): Ditto.  Return false if registers are
9690         saved.
9691         * config/cris/cris-protos.h (cris_simple_epilogue)
9692         (cris_return_address_on_stack): Adjust prototype return type.
9693         (cris_gen_movem_load, cris_expand_epilogue, cris_expand_return)
9694         (cris_return_address_on_stack_for_return): New prototypes.
9696 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
9698         * config/frv/frv.h (PREDICATE_CODES): Add CONST to
9699         gpr_or_int12_operand.
9701         * config/frv/frv-protos.h: Add a prototype to
9702         frv_legitimate_memory_operand and frv_const_unspec_p.
9703         (frv_unspec): Move from frv.c.
9704         * config/frv/frv.c (frv_unspec): Move to frv-protos.h.
9705         (frv_const_unspec_p, frv_legitimate_memory_operand_): Export.
9706         (ldd_address_operand, fdpic_fptr_operand, frv_load_operand,
9707         gpr_or_fpr_operand, gpr_or_int12_operand,
9708         gpr_fpr_or_int12_operand, fpr_or_int6_operand,
9709         gpr_or_int10_operand, gpr_or_int_operand, int12_operand,
9710         int6_operand, int5_operand, uint5_operand, uint4_operand,
9711         uint1_operand, int_2word_operand, uint16_operand,
9712         upper_int16_operand, integer_register_operand,
9713         gpr_no_subreg_operand, fpr_operand, even_reg_operand,
9714         odd_reg_operand, even_gpr_operand, odd_gpr_operand,
9715         quad_fpr_operand, even_fpr_operand, odd_fpr_operand,
9716         dbl_memory_one_insn_operand, dbl_memory_two_insn_operand,
9717         move_destination_operand, movcc_fp_destination_operand,
9718         frv_function_symbol_referenced_p, move_source_operand,
9719         condexec_dest_operand, condexec_source_operand,
9720         reg_or_0_operand, lr_operand, fdpic_operand, got12_operand,
9721         const_unspec_operand, gpr_or_memory_operand,
9722         gpr_or_memory_operand_with_scratch, fpr_or_memory_operand,
9723         icc_operand, fcc_operand, cc_operand, icr_operand,
9724         fcr_operand, cr_operand, call_operand, sibcall_operand,
9725         symbolic_operand, relational_operator,
9726         integer_relational_operator, float_relational_operator,
9727         ccr_eqne_operator, minmax_operator,
9728         condexec_si_binary_operator, condexec_si_media_operator,
9729         condexec_si_divide_operator, condexec_si_unary_operator,
9730         condexec_sf_conv_operator, condexec_sf_add_operator,
9731         condexec_memory_operand, intop_compare_operator, acc_operand,
9732         even_acc_operand, quad_acc_operand, accg_operand: Move to
9733         predicates.md.
9734         * config/frv/frv.h (PREDICATE_CODES): Remove.
9735         * config/frv/frv.md: Include predicates.md.
9736         * config/frv/predicates.md: New.
9738 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
9740         PR target/19537
9741         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on langhooks.h.
9742         * tree-ssa-loop-ivopts.c: Include langhooks.h.
9743         (add_standard_iv_candidates_for_size): New function, extracting code
9744         from add_standard_iv_candidates and parameterizing it by type size.
9745         (add_standard_iv_candidates): Use add_standard_iv_candidates_for_size.
9747 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
9749         * system.h (GCOV_SIZE_TYPE): Unposion.
9750         * gcov-io.h (GCOV_TYPE_NODE): Delete, replacing with...
9751         (GCOV_TYPE_SIZE): ...this new macro.
9752         * coverage.h (get_gcov_type, GCOV_TYPE_NODE): Declare.
9753         * coverage.c (get_gcov_type, get_gcov_unsigned_t): New functions.
9754         (rtl_coverage_counter_ref): Use GCOV_TYPE_SIZE.
9755         (build_fn_info_type, build_fn_info_value, build_ctr_info_type)
9756         (build_ctr_info_value, build_gcov_info): Use get_gcov_unsigned_t
9757         instead of unsigned_intSI_type_node.
9758         * rtl-profile.c (rtl_gen_interval_profiler, rtl_gen_pow2_profiler)
9759         (rtl_gen_one_value_profiler_no_edge_manipulation)
9760         (rtl_gen_const_delta_profiler): Use GCOV_TYPE_SIZE.
9761         * value-prof.c: Include coverage.h.
9763 2005-04-02  Daniel Berlin  <dberlin@dberlin.org>
9764             Diego Novillo <dnovillo@redhat.com>
9766         Fix PR tree-optimization/20703
9767         Fix PR tree-optimization/20725
9769         * tree-ssa-pre.c (phi_translate): Handle tcc_comparison.
9770         (create_expression_by_pieces): Ditto.
9771         (valid_in_set): Ditto. Also handle tcc_declaration.
9772         (find_or_generate_expression): Handle comparison class.
9773         (insert_into_preds_of_block): Ditto.
9774         (insert_aux): Ditto.
9775         (create_value_expr_from): Handle comparison class, recursively
9776         handle reference nodes.
9777         (compute_avail): Handle comparison classes, rewrite a little cleaner.
9778         (execute_pre): Fix spacing.
9779         (do_fre): Renamed to execute_fre.
9781 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
9783         * doc/invoke.texi (SPARC options): Document that
9784         -mlittle-endian is not supported on Linux either.
9786 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
9788         PR target/4198
9789         PR target/12027
9790         * config.gcc (Obsolete configurations): Remove
9791         sparclite-*-coff*, sparclite-*-elf* and sparc86x-*-elf*.
9792         (sparclite-*-coff*): Delete.
9793         (sparclite-*-elf*): Likewise.
9794         (sparc86x-*-elf*): Likewise.
9795         (target_cpu_default) <sparc*-*-*>: Remove sparc86x.
9796         * config/sparc/lite.h: Delete.
9797         * config/sparc/litecoff.h: Likewise.
9798         * config/sparc/liteelf.h: Likewise.
9799         * config/sparc/sp86x-elf.h: Likewise.
9800         * config/sparc/t-sparclite: Likewise.
9801         * config/sparc/t-sp86x: Likewise.
9803 2005-04-04  Adrian Straetling  <straetling@de.ibm.com>
9805         * config/s390/s390-protos.h: (s390_comparison,
9806         s390_alc_comparison, s390_slb_comparison, const0_operand,
9807         consttable_operand, larl_operand, s_operand,
9808         shift_count_operand, bras_sym_operand, load_multiple_operation,
9809         store_multiple_operation, s390_plus_operand): Remove prototypes.
9810         (s390_legitimate_address_without_index_p): New prototype.
9811         * config/s390/s390.c: (SYMBOL_FLAG_ALIGN1, DISP_IN_RANGE): Move
9812         to s390.h.
9813         (s390_comparison, s390_alc_comparison, s390_slb_comparison,
9814         const0_operand, consttable_operand, larl_operand, s_operand,
9815         shift_count_operand, bras_sym_operand, load_multiple_operation,
9816         store_multiple_operation, s390_plus_operand): Move to
9817         predicates.md.
9818         (check_mode): Remove.
9819         (s390_branch_condition_mask): Remove 'static'. Move prototype to
9820         s390-protos.h.
9821         (s390_legitimate_address_without_index_p): New.
9822         * config/s390/s390.h (PREDICATE_CODES): Remove.
9823         * config/s390/s390.md: Include predicates.md.
9824         * config/s390/predicates.md: New.
9826 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
9828         PR target/20446
9829         * config/sparc/sparc.h (NEED_INDICATE_EXEC_STACK): Define to 0.
9830         * config/sparc/linux.h (TARGET_ASM_FILE_END): Delete.
9831         (NEED_INDICATE_EXEC_STACK): Define to 1.
9832         * config/sparc/linux64.h (TARGET_ASM_FILE_END): Delete.
9833         (NEED_INDICATE_EXEC_STACK): Define to 1.
9834         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Set to sparc_file_end.
9835         (add_pc_to_pic_symbol): Rename into pic_helper_symbol.
9836         (add_pc_to_pic_symbol_name): Rename into pic_helper_symbol_name.
9837         (pic_helper_emitted_p): New global.
9838         (emit_pic_helper): New function extracted from...
9839         (load_pic_register): ...here.  Add 'delay_pic_helper' parameter.
9840         Do not call emit_pic_helper if delay_pic_helper is true.
9841         (sparc_expand_prologue): Pass 'false' to load_pic_register.
9842         (sparc_output_mi_thunk): Pass 'true' to load_pic_register.
9843         (sparc_file_end): New function.
9845 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
9847         * config/mcore/mcore-protos.h: Remove the prototypes for
9848         mcore_arith_reg_operand, mcore_general_movsrc_operand,
9849         mcore_general_movdst_operand, mcore_reload_operand,
9850         mcore_arith_J_operand, mcore_arith_K_operand,
9851         mcore_arith_K_operand_not_0, mcore_arith_M_operand,
9852         mcore_arith_K_S_operand, mcore_arith_imm_operand,
9853         mcore_arith_any_imm_operand, mcore_arith_O_operand,
9854         mcore_literal_K_operand, mcore_addsub_operand,
9855         mcore_compare_operand, mcore_load_multiple_operation,
9856         mcore_store_multiple_operation, mcore_call_address_operand.
9857         Add a prototype for const_ok_for_mcore.
9858         * config/mcore/mcore.c (mcore_call_address_operand,
9859         mcore_general_movsrc_operand, mcore_general_movdst_operand,
9860         mcore_arith_reg_operand, mcore_reload_operand,
9861         mcore_arith_J_operand, mcore_arith_K_operand,
9862         mcore_arith_K_operand_not_0, mcore_arith_K_S_operand,
9863         mcore_arith_M_operand, mcore_arith_imm_operand,
9864         mcore_arith_any_imm_operand, mcore_arith_O_operand,
9865         mcore_literal_K_operand, mcore_addsub_operand,
9866         mcore_compare_operand, mcore_load_multiple_operation,
9867         mcore_store_multiple_operation): Move to predicates.md.
9868         (const_ok_for_mcore): Export.
9869         * config/mcore/mcore.h (PREDICATE_CODES): Remove.
9870         * config/mcore/mcore.md: Include predicates.md.
9871         * config/mcore/predicates.md: New.
9873         * config/mcore/predicates.md: Fix a comment typo.
9875 2005-04-04  Andreas Krebbel  <krebbel1@de.ibm.com>
9876             Adrian Straetling  <straetling@de.ibm.com>
9878         * config/s390/2064.md ("z_mul", "z_inf"): New insn reservations.
9879         * config/s390/2084.md ("x_mul_hi", "x_mul_sidi", "x_div"): Likewise.
9880         * config/s390/s390.md ("imulhi", "imulsi", "imuldi"): Added to "type"
9881         attribute.
9882         ("imul"): Removed from "type" attribute.
9883         ("*muldi3_sign", "muldi3"): Changed type to imuldi.
9884         ("mulsi3/1", "mulsi3/3", "mulsi/4", "mulsidi3", "umulsidi3"):
9885         Changed type to imulsi.
9886         ("*mulsi3_sign", "mulsi3/2"): Changed type to imulhi.
9888 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
9890         * config/mcore/mcore.h (target_flags, HARDLIT_BIT, ALIGN8_BIT, DIV_BIT)
9891         (RELAX_IMM_BIT, W_FIELD_BIT, OVERALIGN_FUNC_BIT, CGDATA_BIT)
9892         (SLOW_BYTES_BIT, LITTLE_END_BIT, M340_BIT, TARGET_HARDLIT)
9893         (TARGET_DIV, TARGET_RELAX_IMM, TARGET_W_FIELD, TARGET_OVERALIGN_FUNC)
9894         (TARGET_CG_DATA, TARGET_SLOW_BYTES, TARGET_LITTLE_END, TARGET_M340)
9895         (TARGET_SWITCHES, mcore_stack_increment_string)
9896         (TARGET_OPTIONS): Delete.
9897         (TARGET_DEFAULT, OPTIMIZATION_OPTIONS): Use MASK_* constants rather
9898         than *_BIT constants.
9899         (TARGET_8ALIGN): #undef old definition before redefining to 1.
9900         * config/mcore/mcore.c (mcore_stack_increment_string): Delete.
9901         (TARGET_DEFAULT_TARGET_FLAGS): Override default to TARGET_DEFAULT.
9902         (mcore_override_options): Delete mcore_stack_increment code.
9903         Change use of M340_BIT to MASK_M340.
9904         * config/mcore/mcore.opt: New file.
9906 2005-04-04  Ian Lance Taylor  <ian@airs.com>
9908         * config/arm/arm.c (replace_symbols_in_block): Remove static
9909         function.
9911 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
9913         * config/fr30/fr30-protos.h: Remove the prototypes for
9914         stack_add_operand, add_immediate_operand,
9915         high_register_operand, low_register_operand, call_operand,
9916         di_operand, and nonimmediate_di_operand.
9917         * config/fr30/fr30.c (stack_add_operand,
9918         add_immediate_operand, high_register_operand,
9919         low_register_operand, call_operand, di_operand,
9920         nonimmediate_di_operand): Move to predicates.md.
9921         * config/fr30/fr30.h (PREDICATE_CODES): Remove.
9922         * config/fr30/fr30.md: Include predicates.md.
9923         * config/fr30/predicates.md: New.
9925         * config/mcore/mcore.h (PREDICATE_CODES): Add SYMBOL_REF and
9926         LABEL_REF to mcore_general_movsrc_operand.  Add SYMBOL_REF to
9927         mcore_call_address_operand.
9929         * config/sh/sh.h (PREDICATE_CODES): Add CONST to
9930         general_movsrc_operand.
9932 2005-04-04  Alan Modra  <amodra@bigpond.net.au>
9934         * passes.c (rest_of_handle_final): NULL unlikely_text_section_name
9935         after freeing.
9937 2005-04-04  Richard Earnshaw  <richard.earnshaw@arm.com>
9939         PR target/14812
9940         * arm.c (arm_select_cc_mode): Return CC_Zmode when comparing against
9941         a negated value.
9943 2005-04-04  Richard Henderson  <rth@redhat.com>
9944             Jakub Jelinek  <jakub@redhat.com>
9946         PR rtl-optimization/16104
9947         * fold-const.c (fold_unary): Fix folding of vector conversions.
9949 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
9951         * config.gcc (xstormy16-*-elf): Set extra_options.
9952         * config/stormy16/stormy16.h (target_flags, TARGET_SWITCHES): Delete.
9953         * config/stormy16/stormy16.opt: New file.
9955 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
9957         * config/pdp11/pdp11.h (target_flags, TARGET_SWITCHES, TARGET_DEFAULT)
9958         (TARGET_FPU, TARGET_SOFT_FLOAT, TARGET_AC0, TARGET_NO_AC0, TARGET_45)
9959         (TARGET_BCOPY_BUILTIN, TARGET_INT16, TARGET_INT32, TARGET_FLOAT32)
9960         (TARGET_FLOAT64, TARGET_ABSHI_BUILTIN, TARGET_BRANCH_EXPENSIVE)
9961         (TARGET_BRANCH_CHEAP, TARGET_SPLIT, TARGET_NOSPLIT)
9962         (TARGET_UNIX_ASM): Delete.
9963         (TARGET_40_PLUS): Redefine in terms of TARGET_40 and TARGET_45.
9964         * config/pdp11/2bsd.h (TARGET_UNIX_ASM_DEFAULT): Use MASK_UNIX_ASM.
9965         * config/pdp11/pdp11.c (pdp11_handle_option): New function.
9966         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
9967         * config/pdp11/pdp11.opt: New file.
9969 2005-04-03  Roger Sayle  <roger@eyesopen.com>
9970             Alexandre Oliva  <aoliva@redhat.com>
9972         PR c++/19199
9973         * fold-const.c (non_lvalue): Split tests into...
9974         (maybe_lvalue_p): New function.
9975         (fold_cond_expr_with_comparison): Preserve lvalue-ness for the
9976         C++ front-end prior to lowering into gimple form.
9978 2005-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9980         * builtins.def (BUILT_IN_STPNCPY, BUILT_IN_STRCASECMP,
9981         BUILT_IN_STRNCASECMP): New.
9982         * doc/extend.texi: Document stpncpy, strcasecmp, strncasecmp
9983         and strndup.
9985 2005-04-03  Richard Earnshaw  <richard.earnshaw@arm.com>
9987         PR target/14812
9988         * arm.md (addsi3_compare0_for_combiner): Delete.
9989         (addsi3_compare0_scratch_for_combiner): Delete.
9990         (cmpsi_neg_shiftsi): Delete.
9991         (compare_negsi_si): New pattern.
9992         (cmpsi_negshiftsi_si): New pattern.
9993         (negated_cbranchsi4): Restrict to equality_operator.
9995         * arm.md (movhi_insn_arch4): delete trailing white space from assembler
9996         template.
9998 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
10000         * cfghooks.c, cfgrtl.c, modulo-sched.c, config/i386/winnt.c:
10001         Fix comment typos.
10003         * doc/install.texi: Fix a typo.
10005 2005-04-03  Steven Bosscher  <stevenb@suse.de>
10007         PR middle-end/20648
10008         * bb-reorder.c (duplicate_computed_gotos): Do not unfactor
10009         a computed goto if the edge to the computed goto block has
10010         incoming abnormal edges.  Clarify how the function works.
10012 2005-04-03  Nathan Sidwell  <nathan@codesourcery.com>
10014         * params.c (set_param_value): Use gcc_assert & gcc_unreachable.
10015         * passes.c (open_dump_file, rest_of_handle_final): Likewise.
10016         * postreload-gcse.c (expr_equiv_p, oprs_unchanged_p,
10017         hash_scan_set, reg_set_between_after_reload_p,
10018         reg_used_between_after_reload_p, get_avail_load_store_reg,
10019         eliminate_partially_redundant_load): Likewise.
10020         * postreload.c (reload_cse_simplify_set,
10021         reload_combine_note_use): Likewise.
10022         * predict.c (predict_insn, expected_value_to_br_prob,
10023         propagate_freq, expensive_function_p): Likewise.
10024         * print-rtl.c (print_rtx): Likewise.
10025         * profile.c (instrument_edges, instrument_values,
10026         compute_branch_probabilities, branch_prob, union_groups,
10027         tree_register_profile_hooks, rtl_register_profile_hooks): Likewise.
10028         * protoize.c (in_system_include_dir, file_could_be_converted,
10029         file_normally_convertible, gen_aux_info_file, seek_to_line,
10030         do_cleaning): Likewise.
10031         * tree-ssa-alias.c (collect_points_to_info_r): Likewise.
10032         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
10033         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
10035 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
10037         * cfg.c (clear_bb_flags): Don't clear BB_DISABLE_SCHEDULE.
10038         * modulo-sched.c (undo_replace_buff_elem): New structure.
10039         (kernel_number_of_cycles, ps_unschedule_node,
10040         undo_generate_reg_moves,free_undo_replace_buff,
10041         undo_permute_partial_schedule,  loop_single_full_bb_p,
10042         SIMPLE_SMS_LOOP_P, loop_canon_p, canon_loop,
10043         build_loops_structure, get_sched_window): New.
10044         (generate_reg_moves): Return undo_replace_buff_elem and other
10045         fixes.
10046         (generate_prolog_epilog): Remove old loop versioning.
10047         (sms_schedule): Use loop information and loop_version.
10048         (sms_schedule_by_order): Split part of it to get_sched_window.
10049         * passes.c (rest_of_handle_sms): call cfg_layout_initialize
10050         cfg_layout_finalize and free_dominance_info before/after SMS.
10052 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
10054         * cfghooks.c (lv_flush_pending_stmts,
10055         cfg_hook_duplicate_loop_to_header_edge, extract_cond_bb_edges,
10056         lv_adjust_loop_header_phi, lv_add_condition_to_bb): New.
10057         * cfghooks.h (cfg_hook_duplicate_loop_to_header_edge,
10058         lv_add_condition_to_bb,
10059         lv_adjust_loop_header_phi, extract_cond_bb_edges,
10060         flush_pending_stmts): New in cfg_hooks structure.
10061         (cfg_hook_duplicate_loop_to_header_edge, lv_flush_pending_stmts,
10062         extract_cond_bb_edges, lv_adjust_loop_header_phi,
10063         lv_add_condition_to_bb): New declarations.
10064         * cfgloop.h (duplicate_loop_to_header_edge): Change return type to
10065         bool.
10066         (loop_version): Declare.
10067         * cfgloopmanip.c (cfghooks.h): Include.
10068         (duplicate_loop_to_header_edge): Change return type to bool.
10069         (loop_version, lv_adjust_loop_entry_edge): Move here.
10070         * cfgrtl.c (cfgloop.h): Include.
10071         (rtl_verify_flow_info_1): Fix.
10072         (rtl_lv_add_condition_to_bb, rtl_extract_cond_bb_edges): New.
10073         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add hooks to
10074         initialization.
10075         * tree-cfg.c (tree_lv_adjust_loop_header_phi,
10076         tree_lv_add_condition_to_bb): New.
10077         (tree_cfg_hooks): Add new hooks to initialization.
10078         * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi,
10079         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Remove.
10081 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
10083         * config/stormy16/stormy16.h (PREDICATE_CODES): Add SUBREG to
10084         xstormy16_below100_or_register,
10085         xstormy16_splittable_below100_or_register, and
10086         nonimmediate_nonstack_operand.
10088         * config/stormy16/stormy16-protos.h: Remove the prototypes for
10089         xstormy16_ineqsi_operator, equality_operator,
10090         inequality_operator, shift_operator,
10091         xstormy16_below100_operand, xstormy16_below100_or_register,
10092         xstormy16_splittable_below100_or_register,
10093         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand.
10094         * config/stormy16/stormy16.c (xstormy16_ineqsi_operator,
10095         equality_operator, inequality_operator,
10096         xstormy16_below100_operand, xstormy16_below100_or_register,
10097         xstormy16_splittable_below100_or_register,
10098         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand,
10099         nonimmediate_nonstack_operand, shift_operator): Move to
10100         predicates.md.
10101         * config/stormy16/stormy16.h (PREDICATE_CODES): Remove.
10102         * config/stormy16/stormy16.md: Include predicates.md.
10103         * config/stormy16/predicates.md: New.
10105 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
10107         * config/iq2000/iq2000.c (uns_arith_operand, arith_operand,
10108         small_int, large_int, reg_or_0_operand, simple_memory_operand,
10109         equality_op, cmp_op, pc_or_label_operand, call_insn_operand,
10110         move_operand, power_of_2_operand): Move to predicates.md.
10111         * config/iq2000/iq2000.h (SPECIAL_MODE_PREDICATES,
10112         PREDICATE_CODE): Remove.
10113         * config/iq2000/iq2000.md: Include predicates.md.
10114         * config/iq2000/predicates.md: New.
10116 2005-04-02  Richard Sandiford  <rsandifo@redhat.com>
10118         * config/m68hc11/m68hc11.h (target_flags, MASK_SHORT)
10119         (MASK_AUTO_INC_DEC, MASK_M6811, MASK_M6812, MASK_M68S12)
10120         (MASK_NO_DIRECT_MODE, MASK_MIN_MAX, MASK_LONG_CALLS)
10121         (TARGET_SHORT, TARGET_M6811, TARGET_M6812, TARGET_M68S12)
10122         (TARGET_AUTO_INC_DEC, TARGET_MIN_MAX, TARGET_NO_DIRECT_MODE)
10123         (TARGET_LONG_CALLS, TARGET_SWITCHES, TARGET_OPTIONS)
10124         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS, m68hc11_regparm_string)
10125         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
10126         (TARGET_M68HC11): Delete.
10127         (TARGET_DEFAULT): Change the default setting from MASK_M6811 to 0.
10128         * config/m68hc11/m68hc12.h (TARGET_M68HC12): Delete.
10129         * config/m68hc11/m68hc11.c (m68hc11_regparm_string)
10130         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
10131         (nb_soft_regs): Delete.
10132         (TARGET_DEFAULT_TARGET_FLAGS): Override default with TARGET_DEFAULT.
10133         (m68hc11_override_options): Remove the code that caters for MASK_M6811
10134         and MASK_M6812 being set simultaneously.  Change the code that sets
10135         the default m68hc11_soft_reg_count to use integers instead of strings.
10136         (m68hc11_conditional_register_usage, hard_regno_mode_ok): Use
10137         m68hc11_soft_reg_count (which now has an int type) as the number
10138         of soft registers.
10139         * config/m68hc11/m68hc11.opt: New file.
10141 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
10143         * config/fr30/fr30.h (PREDICATE_CODES): Remove
10144         fp_displacement_operand, sp_displacement_operand.
10146         * config/m68hc11/m68hc11-protos.h: Add a prototype for
10147         m68hcc_auto_inc_p.
10148         Remove the prototypes for tst_operand, cmp_operand,
10149         stack_register_operand, d_register_operand,
10150         hard_addr_reg_operand, splitable_operand,
10151         m68hc11_logical_operator, m68hc11_arith_operator,
10152         m68hc11_non_shift_operator, m68hc11_shift_operator,
10153         m68hc11_unary_operator, m68hc11_eq_compare_operator,
10154         non_push_operand, hard_reg_operand, and
10155         reg_or_some_mem_operand.
10156         * config/m68hc11/m68hc11.c (m68hcc_auto_inc_p): Make it
10157         extern.
10158         (tst_operand, cmp_operand, non_push_operand,
10159         splitable_operand, reg_or_some_mem_operand,
10160         stack_register_operand, d_register_operand,
10161         hard_addr_reg_operand, hard_reg_operand,
10162         m68hc11_eq_compare_operator, m68hc11_logical_operator,
10163         m68hc11_arith_operator, m68hc11_non_shift_operator,
10164         m68hc11_shift_operator, m68hc11_unary_operator): Move to
10165         predicates.md.
10166         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Remove.
10167         * config/m68hc11/m68hc11.md: Include predicates.md.
10168         * config/m68hc11/predicates.md: New.
10170 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
10172         PR debug/19345
10173         * dwarf2out.c (add_abstract_origin_attribute): Revert accidental
10174         change checked in along with 2005-03-03's patch for debug/20253.
10175         * tree-inline.c (remap_type): Remap TYPE_STUB_DECL.
10176         (remap_decl): Insert type decl in map earlier.
10178 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
10180         PR tree-optimization/20640
10181         * tree-ssa-dce.c (remove_dead_stmt): Don't redirect edge to
10182         post-dominator if it has phi nodes.
10183         (eliminate_unnecessary_stmts): Remove dead phis in all blocks
10184         before dead statements.
10186 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
10188         PR middle-end/20491
10189         * final.c (alter_subreg): Don't call subreg_regno for a non-REG.
10191 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
10193         PR rtl-optimization/20290
10194         * loop.c (for_each_insn_in_loop): Don't assume the loop body runs
10195         in every iteration if the entry point is the exit test.
10197 2005-04-02  Hans-Peter Nilsson  <hp@axis.com>
10199         * config/cris/cris.md (attribute "length"): Define.
10201 2005-04-02  Geoffrey Keating  <geoffk@apple.com>
10203         * config/rs6000/predicates.md (indexed_or_indirect_operand): New.
10204         (word_offset_memref_operand): New.
10205         * config/rs6000/rs6000-protos.h (word_offset_memref_operand): Delete.
10206         (indexed_or_indirect_operand): Delete.
10207         * config/rs6000/rs6000.c (word_offset_memref_operand): Delete.
10208         (indexed_or_indirect_operand): Delete.
10210         * config/rs6000/t-darwin8: Comment out ppc64 multilib.
10212         PR 20650
10213         * config/rs6000/rs6000.md (fix_truncdfsi2): Make destination
10214         a register.
10216         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Add -pipe.
10217         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Likewise.
10219 2005-04-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
10221         * gcc/config/vax/vax.md: Spellcheck, fix whitespace.
10223 2005-04-01  Ian Lance Taylor  <ian@airs.com>
10225         * gcc.c: Don't include <sys/resource.h> or declare getrusage.
10226         (rus, prus): Remove static variables.
10227         (execute): Use pex_run/pex_get_status rather than pexecute/pwait.
10228         (process_command): Permit report_times and use_pipes together.
10230 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
10232         * c-decl.c (validate_proto_after_old_defn): Look at
10233         TYPE_MAIN_VARIANT of argument types.
10235 2005-04-01  Paul Brook  <paul@codesourcery.com>
10237         * config/arm/arm.c (thumb_call_via_label): Include space for SP.
10238         (arm_output_function_epilogue): Allow call_via_SP.
10239         (thumb_call_via_reg, arm_file_end): Ditto.
10240         * config/arm/arm.h (struct machine_function): Include space for SP.
10241         (thumb_call_via_label): Update declaration.
10243 2005-04-01  Ian Lance Taylor  <ian@airs.com>
10245         * final.c (final_scan_insn): Revert part of 2005-03-30 patch: when
10246         doing a peephole optimization, once again put any notes in the
10247         proper position.
10249 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
10251         * bb-reorder.c, fold-const.c, varasm.c: Fix comment typos.
10253 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
10255         * local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
10256         (block_alloc, find_free_reg): Likewise.
10257         * loop-doloop.c (doloop_modify): Likewise.
10258         * loop-invariant.c (record_use): Likewise.
10259         * loop-iv.c (get_biv_step_1, get_biv_step, iv_analyze,
10260         get_iv_value, canon_condition, eliminate_implied_condition,
10261         eliminate_implied_condition, simplify_using_initial_values,
10262         shorten_into_mode, canonicalize_iv_subregs,
10263         iv_number_of_iterations): Likewise.
10264         * loop-unroll.c (expand_var_during_unrolling): Likewise.
10265         * loop-unswitch.c (compare_and_jump_seq, unswitch_single_loop,
10266         unswitch_loop): Likewise.
10267         * loop.c (INSN_LUID, loop_optimize, rtx_equal_for_loop_p,
10268         move_movables, replace_call_address, find_and_verify_loops,
10269         rtx_equal_for_prefetch_p, fold_rtx_mult_add, loop_iterations,
10270         record_giv, final_giv_value, general_induction_var,
10271         simplify_giv_expr, extension_within_bounds_p, try_copy_prop,
10272         loop_giv_dump): Likewise.
10274         * gcov-io.h (GCOV_CHECK, GCOV_CHECK_READING,
10275         GCOV_CHECK_WRITING): Remove.
10276         (gcov_position, gcov_rewrite): Use gcc_assert.
10277         * gcov-io.c (gcov_open, gcov_write_words, gcov_write_length,
10278         gcov_read_words, gcov_sync, gcov_seek): Use gcc_assert.
10279         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): Use
10280         gcc_assert.
10282 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
10284         * tree-inline.c: Fix a typo.
10286 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
10288         * configure.ac (enable-checking): Explicitly set all variables for
10289         collective switch values.  Alphabetize variables. Rename
10290         ac_checking_valgrind to ac_valgrind_checking.  Allow 'none' as
10291         synonym for 'no'.
10292         * doc/install.texi (enable-checking): Update documentation.
10293         * configure: Rebuilt.
10295 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
10297         * tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
10298         possible.
10300 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
10302         * arm.c (adjacent_mem_locations): Reject volatile memory refs.
10303         Also reject cases where this pattern will cause load delay stalls
10304         unless optimizing for size and it will produce a shorter sequence.
10305         * arm.md (arith_adjacent_mem): Make better use of ldm addressing
10306         variants to avoid pre-adjusting the base when possible.
10308 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
10310         * arm.md (minmax_arithsi): Reject all eliminable registers, not just
10311         the frame and argument pointers.
10312         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec): Likewise.
10313         (loadqisi_preinc, loadqisi_predec, strsi_preinc): Likewise.
10314         (strsi_predec, loadsi_preinc, loadsi_predec): Likewise.
10315         (strqi_shiftpreinc, strqi_shiftpredec, loadqi_shiftpreinc): Likewise.
10316         (loadqi_shiftpredec, strsi_shiftpreinc, strsi_shiftpredec): Likewise.
10317         (loadsi_shiftpreinc, loadsi_shiftpredec): Likewise.
10319 2005-04-01  Danny Smith  <dannysmith@users.sourceforge.net>
10321         * config/i386/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Define,
10322         with entry for selectany attribute.
10323         * config/i386/i386-protos.h (ix86_handle_selectany_attribute):
10324         Declare.
10325         * config/i386/winnt.c (ix86_handle_selectany_attribute): Define.
10326         (i386_pe_asm_named_section): Handle sections generated by
10327         selectany attribute.
10328         * doc/extend.texi (selectany): Document attribute.
10330 2005-04-01  Paolo Bonzini  <bonzini@gnu.org>
10331             Jan Hubicka  <jh@suse.cz>
10333         * config/i386/i386.c (ix86_decompose_address): Look inside SUBREGs
10334         to fix addresses involving EBP and ESP.
10335         (aligned_operand, legitimate_address_p, ix86_address_cost): Be prepared
10336         for SUBREGed registers.
10337         (legitimate_address_p): Accept SUBREGed registers.
10339 2005-04-01  Jakub Jelinek  <jakub@redhat.com>
10341         PR c++/19406
10342         * dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
10343         (dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
10344         for FIELD_DECLs.
10346 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
10348         * doc/contrib.texi, doc/invoke.texi, doc/tm.texi: Fix typos.
10350 2005-04-01  James E Wilson  <wilson@specifixinc.com>
10352         PR c++/20505
10353         * dwarf2out.c (rtl_for_decl_init): New function.
10354         (rtl_for_decl_location): Extracted from here.
10355         (tree_add_const_value_attribute): Call rtl_for_decl_init and
10356         add_const_value_attribute.  Delete initializer_constant_valid_p call.
10358 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
10360         * cgraphunit.c, dbxout.c, flow.c, gcse.c, gimplify.c,
10361         lambda-code.c, loop.c, machmode.def, mips-tfile.c,
10362         modulo-sched.c, passes.c, postreload-gcse.c, tree-eh.c,
10363         tree-ssa-ccp.c, varasm.c, config/frv/frv.c, config/frv/frv.h,
10364         config/frv/frv.md, config/i386/i386.c, config/i386/i386.h,
10365         config/i386/i386.md, config/rs6000/predicates.md,
10366         config/rs6000/rs6000.c, config/s390/fixdfdi.h,
10367         config/s390/s390.c, config/stormy16/stormy16.c,
10368         config/stormy16/stormy16.md, config/vax/vax.md: Fix comment
10369         typos.
10371 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
10373         PR c/17855
10374         * gimplify.c (gimplify_expr): Create a temporary for lvalue
10375         COND_EXPR and CALL_EXPR.
10377 2005-03-31  Vladimir Makarov  <vmakarov@redhat.com>
10379         PR target/20632
10380         * genautomata.c (first_cycle_unit_presence): Check all alternative
10381         states for unit presence.
10383         * doc/md.texi: Remove remark about impossibility to query unit
10384         presence in non nondeterministic automaton state.
10386         * config/ia64/ia64.c (get_template): Change order of unit querying.
10388 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
10390         * tree-ssa-dom.c (cprop_into_successor_phis): Remove an
10391         obsolete comment.
10393 2005-03-31  Zdenek Dvorak  <dvorakz@suse.cz>
10395         * cfgloopanal.c (mark_loop_exit_edges): Clean EDGE_LOOP_EXIT
10396         flag for edges outside any loops.
10398 2005-03-31  Janis Johnson  <janis187@us.ibm.com>
10400         * doc/sourcebuild.texi (Test Directives): Describe cleanup-* procs.
10402 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
10404         * tree-ssa-alias.c: Follow spelling conventions.
10405         * doc/tree-ssa.texi: Fix a typo.
10407 2005-03-31  J"orn Rennecke <joern.rennecke@st.com>
10409         * postreload-gcse.c: Include target.h.
10410         (gcse_after_reload_main): Return early if we cannot modify jumps.
10411         * Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).
10413 2005-03-31  David Edelsohn  <edelsohn@gnu.org>
10415         * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
10416         expensive operations.
10418 2005-03-31  Ian Lance Taylor  <ian@airs.com>
10420         * collect2.c (lderrout): New variable.
10421         (collect_exit): Dump ldout to stdout.  Dump and unlink lderrout,
10422         if it is set, to stderr.
10423         (handler): Unlink lderrout if it is set.
10424         (dump_file): Add "to" parameter.  Change all callers.
10425         (main): Initialize lderrout.
10426         (collect_execute): Add errname parameter.  Change all callers.
10427         Rename redir parameter to outname.  Never pass
10428         PEX_STDERR_TO_STDOUT to pex_run.
10429         * collect2.h (collect_execute, dump_file): Update declarations.
10430         * tlink.c (tlink_execute): Add errname parameter.  Change all
10431         callers.
10432         (do_tlink): Check lderrout as well as ldout.
10434 2005-03-31  Caroline Tice  <ctice@apple.com>
10436         * Makefile.in (varasm.o): Add basic-block.h to list of requirements.
10437         (bb-reorder.o): Add errors.h to list of requirements.
10438         (STAGEFEEDBACK_FLAGS_TO_PASS): Add -freorder-blocks-and-partition to
10439         profiledbootstrap flags.
10440         * bb-reorder.c (errors.h): Add new include.
10441         (struct bbro_basic_block_data_def): Add new field, in_trace.
10442         (add_unlikely_executed_notes):  Remove function.
10443         (mark_bb_for_unlikely_executed_section): Remove function.
10444         (insert_section_boundary_note): New function.
10445         (verify_hot_cold_block_grouping): New function.
10446         (push_to_next_round_p): Remove variables and tests that push all
10447         cold blocks to last round.
10448         (find_traces): Remove code that added extra round of trace finding
10449         when doing partitioning.
10450         (find_traces_1_round) :  Remove variable last_round;  add code to
10451         update new struct field, in_trace; correct trace_length where it was
10452         incorrect before (after call to copy_bb); change code that pushed all
10453         cold blocks to last round. Instead verify that all blocks going into
10454         a trace belong in the same partition.
10455         (connect_traces): Modify to connect the traces in two passes, if the
10456         function contains both hot and cold blocks.  The first pass connects
10457         all the traces for blocks in the partition that the first block in
10458         the function belongs to; the second pass connnects all the traces
10459         containing blocks that belong in the other partition.
10460         (find_rarely_executed_basic_blocks_and_crossing_edges):  Remove
10461         code that automatically put the first block in a function into the
10462         hot partition if the function had any hot blocks.
10463         (fix_crossing_unconditional_branches): Check number of succ edges
10464         before attempting to get one.
10465         (fix_edges_for_rarely_executed_code):  Update comment describing
10466         function.
10467         (reorder_basic_blocks):  Add code to initialize new field (in_trace);
10468         remove call to add_unlikely_executed_notes; add call to
10469         verify_hot_cold_block_grouping.
10470         (duplicate_computed_gotos): Don't change computed goto if it's a
10471         crossing edge.
10472         (partition_hot_cold_basic_blocks):  Update function comment.
10473         * cfgcleanup.c (try_simplify_condjump): Remove redundacy from
10474         condition.
10475         (try_forward_edges): Likewise.
10476         (merge_blocks_move_predecessor_nojumps): Likewise.
10477         (merge_blocks_move_successor_nojumps): Likewise.
10478         (merge_blocks_move): Likewise.
10479         (try_crossjump_bb): Likewise.
10480         * cfglayout.c (update_unlikely_executed_notes): Remove function.
10481         (fixup_reorder_chain): Remove code for adding UNLIKELY_EXECUTED_CODE
10482         notes to cold bb's; remove call to update_unlikely_executed_notes.
10483         (duplicate_insn_chain):  change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
10484         NOTE_INSN_SWITCH_TEXT_SECTIONS.
10485         * cfglayout.h (scan_ahead_for_unlikely_executed_note): Remove
10486         function declaration.
10487         * cfgrtl.c (can_delete_note_p): Remove UNLIKELY_EXECUTED_CODE note
10488         from consideration.
10489         (rtl_can_merge_blocks): Remove redundancy from condition.
10490         (try_redirect_by_replacing_jump): Likewise.
10491         (force_nonfallthru_and_redirect): Remove code for adding
10492         UNLIKELY_EXECUTED_CODE notes to cold bb's.
10493         (commit_one_edge_insertion): Likewise.
10494         (cfg_layout_can_merge_blocks_p): Remove redundancy from condition.
10495         * dbxout.c (FORCE_TEXT): Replace function_section with
10496         current_function_section.
10497         (struct dbx_debug_h): Add do_nothing function for new debug_hooks
10498         function, switch_text_section.
10499         (struct xcoff_debug): Likewise.
10500         (dbxout_function_end): Add code to put out label diffs for both
10501         hot and cold sections.
10502         * debug.c (struct do_nothing_debug_hooks): Add do_nothing function
10503         for new debug_hooks funciton, switch_text_section..
10504         * debug.h (struct gcc_debug_hooks):  Add new function to debug_hooks,
10505         switch_text_section.
10506         * dwarf2out.c (struct dw_fde_struct):  Add five new fields:
10507         dw_fde_hot_section_label, dw_fde_hot_section_end_label,
10508         dw_fde_unlikely_section_label, dw_fde_unlikely_section_end_label and
10509         dw_fde_switched_sections.
10510         (output_call_frame_info):  Add test to see if function switches text
10511         sections in the middle; if so, use appropriate extra hot and cold
10512         section labels to compute size deltas for the hot and cold sections.
10513         (dwarf2out_begin_prologue): Add code to initialize new fields in
10514         dw_fde_struct.
10515         (dwarf2out_switch_text_section): New function (invoked through
10516         debug_hook); updates new fields in dw_fde_struct appropriately and
10517         increments separate_line_info_table_in_use.
10518         (dwarf2_debug_hooks): Initialize switch_text_section function to be
10519         dwarf2out_switch_text_section.
10520         (struct var_loc_node): Add new field, section_label.
10521         (output_aranges): Add code to check whether in hot or cold section and
10522         use the appropriate label in calculating deltas.
10523         (output_ranges): Likewise.
10524         (output_line_info): Add code to check which section we're in and
10525         use appropriate hot/cold label.
10526         (add_location_or_constant_value_attribute): Likewise.
10527         (gen_subprogam_die): Modify arange attributes to use correct labels.
10528         (dwarf2out_begin_block): Change call to function_section into call to
10529         current_function_section.
10530         (dwarf2out_end_block): Likewise.
10531         (dwarf2out_source_line): Likewise.
10532         (dwarf2out_var_location): Add code to check whether in hot or cold
10533         section and use the appropriate label.
10534         * except.c (output_function_exception_table): Change call to
10535         function_section into call to current_function_section.
10536         * final.c (profile_function): Likewise.
10537         (scan_ahead_for_unlikely_executed_note): Remove function.
10538         (final_scan_insn):  Remove calls to
10539         scan_ahead_for_unlikely_executed_note, and related code for switching
10540         to cold section, except for the single time
10541         NOTE_INSN_SWITCH_TEXT_SECTIONS may be encountered;  add calls to
10542         debug_hooks->switch_text_sections; replace appropriate calls to
10543         function_section with calls to current_function_section.
10544         * ifcvt.c (find_if_case_1): Remove redundancy from condition, add
10545         test_bb to condition.
10546         (find_if_case_2): Likewise.
10547         * insn-notes.def: Change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
10548         NOTE_INSN_SWITCH_TEXT_SECTIONS.  Update comment appropriately.
10549         * opts.c (decode_options): Change warning about hot/cold partitioning
10550         with exceptionss to inform (so as not to cause bootstrap failures);
10551         remove warning about partitioning with DWARF debug info.
10552         * output.h (current_function_section): Add new function decl.
10553         (insert_section_boundary_note): Likewise.
10554         (enum in_section): Move this declaration here from varasm.c.
10555         (unlikely_section_label): Likewise.
10556         (unlikely_text_section_name): Likewise.
10557         (last_text_section_name): New global variable.
10558         (last_text_section): Likewise.
10559         (hot_section_label): Likewise.
10560         (hot_section_end_label): Likewise.
10561         (cold_section_end_label): Likewise.
10562         * passes.c (rest_of_handle_final): Free unlikely_text_section_name.
10563         * print-rtl.c (print_rtx): Change NOTE_INSN_UNLIKELY_EXECUTED_CODE
10564         to NOTE_INSN_SWITCH_TEXT_SECTIONS.
10565         * reg-stack.c (emit_swap_insn): Remove UNLIKELY_EXECUTED_CODE note
10566         insn from consideration.
10567         * sdbout.c (sdb_debug_hooks): Add do_nothing for new function,
10568         switch_text_section.
10569         * varasm.c (basic-block.h): Add new include.
10570         (unlikely_section_label_printed): Remove global variable.
10571         (unlikely_section_label): Make global variable not be static any more.
10572         (unlikely_text_section_name): Likewise.
10573         (hot_section_end_label): New global variable (not static)
10574         (first_function_block_is_cold): Likewise.
10575         (hot_section_label): Likewise.
10576         (cold_section_end_label): Likewise..
10577         (last_text_section): New global variable, not static.
10578         (last_text_section_name): New global variable, not static.
10579         (initialize_cold_section_name): New function.
10580         (enum in_section): Move declaration to output.h.
10581         (text_section): Update last_text_section.
10582         (unlikely_text_section): Replace code to determine cold section name
10583         with call to initialize_cold_section_name; Add code to update
10584         last_text_section; remove code for printing out label.
10585         (named_section_real): Add code to update last_text_section and
10586         last_text_section_name as appropriate.
10587         (function_section): Change test for 'unlikely' to depend on
10588         first_function_block_is_cold (moved old test to
10589         current_function_section).
10590         (current_function_section): New function.
10591         (assemble_start_function): Move code that frees
10592         unlikely_text_section_name; initialize hot_section_end_label;
10593         print hot and cold section labels at the start of the function;
10594         set first_function_block_is_cold, if appropriate; initialize l
10595         ast_text_section; add call to insert_section_boundary_note.
10596         (assemble_end_function):  Add code to write out hot and cold section
10597         end labels.
10598         *vmsdbgout.c (vmsdbg_debug_hooks): Add do_nothing for new function,
10599         switch_text_section.
10600         * config/darwin.c (machopic_select_section): Replace incorrect
10601         function in base_funs; update reloc for cold sections if necessary.
10602         * config/darwin.h (SECTION_FUNCTION):  Add code to update
10603         last_text_section if appropriate.
10604         (text_unlikely_section): Remove.
10605         * config/sparc/sparc.c (sparc_output_deferred_case_vectors): Likewise.
10606         * config/stormy16/stormy16.c (stormy_16_output_addr_vec): Likewise.
10607         * config/xtensa/xtensa.c (override_options): Turn off hot/cold
10608         partitioning for this architecture.
10610 2005-03-31  Olivier Hainque  <hainque@adacore.com>
10612         * dwarf2out.c (dwarf2out_frame_finish): Honor DWARF2_FRAME_INFO
10613         defined and non-zero.
10615 2005-03-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10617         PR c++/18644
10618         * doc/invoke.texi (-Wsynth): Don't document, as it now is void of
10619         semantics.
10621 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
10623         PR target/20611
10624         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Remove inline
10625         label operand.  Remove (use (unspec..)).  Don't emit a label on
10626         the offset word.
10627         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Don't
10628         generate inline label for load_toc_v4_PIC_1b.
10629         (rs6000_emit_load_toc_table): Likewise.
10631 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
10633         * config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf,
10634         ns32k-*-netbsdelf*, and ns32k-*-netbsd*.
10636 2005-03-29  Devang Patel  <dpatel@apple.com>
10638         * tree-sra.c (decide_block_copy): Disable scalarization of
10639         sub-elements.
10641 2005-03-30  Stuart Hastings  <stuart@apple.com>
10642             Dale Johannesen  <dalej@apple.com>
10644         * Makefile.in (print-tree.o):  Depend on tree-iterator.h.
10645         * print-tree.c (print_node):  Add case STATEMENT_LIST.
10647 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
10649         * config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
10650         (powerpc64-*-linux*): Use it.  Rearrange tm_file assignment.
10651         (powerpc-*-linux*): Build a biarch compiler when --enable-targets
10652         is given with "powerpc64*" or "all", or when --with-cpu chooses
10653         a 64-bit cpu.
10655 2005-03-30  James E. Wilson  <wilson@specifixinc.com>
10657         PR debug/20268
10658         * dwarf2out.c (add_high_low_attributes): New function, extracted from
10659         gen_lexical_block_die.
10660         (gen_lexical_block_die, gen_inlined_subroutine_die): Call it.
10662 2005-03-31  Jan Hubicka  <jh@suse.cz>
10664         2004-11-02  Jan Hubicka  <jh@suse.cz>
10666         * cgraph.c (cgraph_varpool_node_name): New function.
10667         (dump_cgraph_varpool_node): New function.
10668         (dump_varpool): New function.
10669         * cgraphunit.c (cgraph_optimize): Dump varpool.
10671         2004-10-16  Jan Hubicka  <jh@suse.cz>
10673         * cgraph.c (decide_is_variable_needed): New function.
10674         (cgraph_varpool_finalize_decl): Use it.
10675         * cgraphunit.c (cgraph_optimize): Assemble_pending_decls when not doing
10676         unit-at-a-time.
10677         * final.c (output_addr_const): Do not call mark_referenced.
10678         * passes.c (rest_of_decl_compilation): ifdef out DECL_RTL_SET_P hack;
10679         always go via cgraph.
10680         * toplev.c (wrapup_global_declarations): Kill non-unit-at-a-time code.
10681         (check_global_declarations): Ifdef out code clearing DECL_RTL.
10682         * tree-optimize.c (execute_inline): Mark functions called.
10683         * i386.c (output_pic_addr_const): Do not call mark_decl_referenced.
10685         2004-10-11  Jan Hubicka  <jh@suse.cz>
10687         * cgraph.c (cgraph_varpool_first_unanalyzed_node): New global voriable
10688         (cgraph_varpool_last_needed_node): New static variable.
10689         (enqueue_needed_varpool_node): Break out from ...; add items to the
10690         end of queue; update first pointers.
10691         (cgraph_varpool_mark_needed_node): ... here.
10692         (cgraph_varpool_finalize_decl): Use enqueue_needed_varpool_node.
10693         (cgraph_varpool_assemble_pending_decls): Move to cgraphunit.c
10694         * cgraph.h (cgraph_varpool_node): Add analyzed field.
10695         (cgraph_varpool_first_unanalyzed_node): Declare.
10696         * cgraphunit.c: Include output.h.
10697         (cgraph_varpool_analyze_pending_decls): New function.
10698         (cgraph_varpool_assemble_pending_decls): Move from cgraph.c; bail out
10699         for errors, analyze pending decls.
10700         (cgraph_finalize_compilation_unit): Only analyze decls.
10701         (cgraph_optimize): Assemble the decls after expanding.
10703 2005-03-30  Daniel Berlin  <dberlin@dberlin.org>
10705         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure
10706         subvars get marked properly in tags for grouping.
10707         (add_pointed_to_var): Mark only actual pointed to
10708         variables/subvars in addresses needed.
10709         (create_overlap_variables_for): Clear call clobbered on original
10710         variable.
10711         * tree-ssa-operands.c (get_asm_expr_operands): Don't let regular
10712         addresable vars with subvars into list.
10713         * tree-ssa.c (verify_ssa_name): Verify original is not used where
10714         subvar should be.
10716 2005-03-30  Richard Henderson  <rth@redhat.com>
10718         * cgraph.h (struct cgraph_node): Add alias.
10719         * varasm.c (assemble_alias): Set it.
10720         * cgraphunit.c (cgraph_assemble_pending_functions): Check it and
10721         avoid calling cgraph_expand_function.
10723 2005-03-30  Tom Tromey  <tromey@redhat.com>
10725         * tree.def (FILE_TYPE): Removed.
10726         * typeclass.h (enum type_class): Removed file_type_class.
10727         * dwarf2out.c (is_base_type): Updated.
10728         (gen_type_die): Likewise.
10729         * dbxout.c (dbxout_type): Updated.
10730         * builtins.c (type_to_class): Updated.
10731         * tree.c (type_contains_placeholder_1): Updated.
10732         * config/sparc/sparc.c (sparc_type_code): Updated.
10733         * config/ia64/ia64.c (hfa_element_mode): Updated.
10734         * expr.c (count_type_elements): Updated.
10735         * stor-layout.c (layout_type): Updated.
10736         * tree-inline.c (remap_type): Updated.
10737         * tree-pretty-print.c (dump_generic_node): Updated.
10739 2005-03-30 Fariborz Jahanian <fjahanian@apple.com>
10741         * builtins.c (expand_builtin_powi): Fix mode of
10742         2nd argument to match int.
10743         * libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
10744         2nd argument type to int.
10745         * libgcc2.c: Change prototype of __powi* functions to use
10746         int.
10748 2005-03-30  Dale Johannesen  <dalej@apple.com>
10750         PR middle-end/19225
10751         * calls.c (expand_call):  Flush pending deferrals before
10752         throwing call.
10754 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
10756         PR c/772
10757         PR c/17913
10758         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR,
10759         C_DECL_UNDEFINABLE_STMT_EXPR, struct c_label_list, struct
10760         c_label_context, label_context_stack): New.
10761         * c-decl.c (define_label): Check for jumps into statement
10762         expressions.  Add label to list of defined labels.
10763         (start_function): Push context on label_context_stack.
10764         (finish_function): Pop context from label_context_stack.
10765         * c-typeck.c (label_context_stack): New.
10766         (c_finish_goto_label): Check for jumps into statement
10767         expressions.  Add label to list of jumped to labels.
10768         (struct c_switch): Add blocked_stmt_expr.
10769         (c_start_case): Initialize it.
10770         (do_case): Check it.
10771         (c_finish_case): Verify !blocked_stmt_expr.
10772         (c_begin_stmt_expr):  Push context on label_context_stack.
10773         Increment blocked_stmt_expr.  Mark labels jumped to from outside
10774         as undefinable.
10775         (c_finish_stmt_expr): December blocked_stmt_expr.  Mark labels
10776         defined in the statement expression and no longer jumpable to.
10777         Mark labels jumped to from just outside the statement expression
10778         as again definable.  Pop context from label_context_stack.
10779         * doc/extend.texi (Statement Exprs): Update.
10781 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
10783         PR c/20368
10784         * c-decl.c (start_function): Check for old_decl being
10785         error_mark_node.
10787 2005-03-30  Ian Lance Taylor  <ian@airs.com>
10789         * final.c (final): Remove prescan parameter.  Change all callers.
10790         (final_scan_insn): Remove prescan parameter.  Change all callers.
10792 2005-03-30  Kazu Hirata  <kazu@cs.umass.edu>
10794         * tree-vectorizer.c: Fix comment typos.
10796 2005-03-30  Sebastian Pop  <pop@cri.ensmp.fr>
10798         * tree-scalar-evolution.c (instantiate_parameters_1): Return
10799         as soon as a chrec_dont_know is detected.
10801 2005-03-31  Danny Smith  <dannysmith@users.sourceforge.net>
10803         Merge from csl-arm-branch.
10804         2004-02-12  Mark Mitchell  <mark@codesourcery.com>
10806         * tlink.c (recompile_files): Do not assume that "rename" can
10807         overwrite an existing file.
10809 2005-03-31  Paolo Bonzini  <bonzini@gnu.org>
10811         * gcc/configure.ac (TL_AC_GNU_MAKE_GCC_LIB_PATH): Remove.
10812         * gcc/configure: Regenerate.
10814 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
10816         * doc/install.texi: Update binutils requirement for powerpc*-linux.
10818         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
10820         * calls.c (struct arg_data): Update "partial" comment.
10821         (load_register_parameters): Update "nregs" comment.
10823 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
10825         * config/iq2000/iq2000.h (target_flags, MASK_GPOPT, MASK_EMBEDDED_DATA)
10826         (MASK_UNINIT_CONST_IN_RODATA, TARGET_EMBEDDED_DATA, TARGET_SWITCHES)
10827         (TARGET_DEFAULT, TARGET_CPU_DEFAULT, SUBTARGET_TARGET_OPTIONS)
10828         (TARGET_OPTIONS, iq2000_cpu_string, iq2000_arch_string): Delete.
10829         (TARGET_DEBUG_MODE, TARGET_DEBUG_A_MODE, TARGET_DEBUG_B_MODE)
10830         (TARGET_DEBUG_C_MODE, TARGET_DEBUG_D_MODE): Define to 0 rather
10831         than target_flags & 0.
10832         * config/iq2000/iq2000.c (iq2000_cpu_string, iq2000_arch_string)
10833         (iq2000_arch, iq2000_parse_cpu): Delete.
10834         (TARGET_HANDLE_OPTION): Override default.
10835         (iq2000_handle_option): New function.
10836         (override_options): Remove -march= and -mcpu= handling.
10837         * config/iq2000/iq2000.opt: New file.
10839 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
10841         * config/c4x/c4x-protos.h (c4x_rpts_cycles, c4x_cpu_version): Delete.
10842         * config/c4x/c4x.h (SMALL_MEMORY_FLAG, MPYI_FLAG, FAST_FIX_FLAG)
10843         (RPTS_FLAG, C3X_FLAG, TI_FLAG, PARANOID_FLAG, MEMPARM_FLAG, DEVEL_FLAG)
10844         (RPTB_FLAG, BK_FLAG, DB_FLAG, DEBUG_FLAG, HOIST_FLAG)
10845         (LOOP_UNSIGNED_FLAG, FORCE_FLAG, PRESERVE_FLOAT_FLAG)
10846         (PARALLEL_INSN_FLAG, PARALLEL_MPY_FLAG, ALIASES_FLAG, C30_FLAG)
10847         (C31_FLAG, C32_FLAG, C33_FLAG, C40_FLAG, C44_FLAG, TARGET_SWITCHES)
10848         (TARGET_DEFAULT, TARGET_SMALL, TARGET_MPYI, TARGET_FAST_FIX)
10849         (TARGET_RPTS, TARGET_TI, TARGET_PARANOID, TARGET_MEMPARM, TARGET_DEVEL)
10850         (TARGET_RPTB, TARGET_BK, TARGET_DB, TARGET_DEBUG, TARGET_HOIST)
10851         (TARGET_LOOP_UNSIGNED, TARGET_FORCE, TARGET_PRESERVE_FLOAT)
10852         (TARGET_PARALLEL, TARGET_PARALLEL_MPY, TARGET_ALIASES)
10853         (c4x_rpts_cycles_string, c4x_cpu_version_string)
10854         (TARGET_OPTIONS): Delete.
10855         (c4x_rpts_cycles, c4x_cpu_version): Declare.
10856         (TARGET_C3X, TARGET_C30, TARGET_C31, TARGET_C32, TARGET_C33)
10857         (TARGET_C40, TARGET_C44): Redefine in terms of c4x_cpu_version.
10858         * config/c4x/c4x.c (c4x_rpts_cycles_string): Delete.
10859         (c4x_cpu_version_string): Delete.
10860         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
10861         (c4x_handle_option): New function.  Map -m3x and -m4x options to the
10862         equivalent -mcpu= option.
10863         (c4x_override_options): Remove -mrpts= and -mcpu= handling from here.
10864         Deal with the extra conditions in the old TARGET_MPYI, TARGET_RPTB,
10865         TARGET_DB, TARGET_PARALLEL and TARGET_PARALLEL_MPY macros by setting
10866         or clearing the appropriate MASK_* bit.
10867         (c4x_file_start): Use c4x_cpu_version.
10868         * config/c4x/c4x.opt: New file.
10870 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
10872         * doc/options.texi: Document the new MaskExists flag.
10873         * opth-gen.awk: Don't output MASK and TARGET macros for Mask(...)
10874         if the option has the MaskExists flag.
10876 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
10878         * opt-functions.awk (flag_set_p, test_flag): New functions.
10879         (switch_flags): Use them.
10880         * opth-gen.awk: Use flag_set_p to check for flags.
10881         * optc-gen.awk: Likewise.  Use opt_args to check for Init(...) flags.
10883 2005-03-30  Ian Lance Taylor  <ian@airs.com>
10885         * config.host (i[34567]86-*-mingw32*): Don't set
10886         host_can_use_collect2 to no.
10888 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
10890         PR target/20203
10891         * builtins.c (get_memory_rtx): Expand address exp using EXPAND_NORMAL.
10892         Remove convert_memory_address call duplicating that in memory_address.
10894 2005-03-29  Richard Henderson  <rth@redhat.com>
10896         PR c/20519
10897         * c-decl.c (c_finish_incomplete_decl): Update complete_array_type call.
10898         (build_compound_literal): Likewise.  Propagate decl type into the
10899         initializer.
10900         (finish_decl): Likewise.  Use new return value from complete_array_type
10901         for zero sized arrays.
10902         (complete_array_type): Move ...
10903         * c-common.c (complete_array_type): ... here.  Change first argument
10904         to pointer-to-type-node.  Consistently use sizetype for the index
10905         except for zero sized arrays.  Detect zero sized arrays for pedantic
10906         mode diagnostics.  Create a new type node instead of modifying the
10907         old node in place.
10908         * c-tree.h (complete_array_type): Move decl ...
10909         * c-common.h (complete_array_type): ... here.
10911 2005-03-29  Richard Henderson  <rth@redhat.com>
10913         PR tree-opt/19108
10914         * tree-sra.c (generate_element_init_1): Handle RANGE_EXPR.
10916 2005-03-29  Kazu Hirata  <kazu@cs.umass.edu>
10918         * builtin-types.def, c-convert.c, c-format.c, ddg.c, debug.c,
10919         debug.h, et-forest.c, et-forest.h, gcov.c, rtl-profile.c,
10920         rtlhooks-def.h, rtlhooks.c, sdbout.c, tree-inline.h,
10921         tree-profile.c, tsystem.h, value-prof.h: Update copyright.
10923 2005-03-29  Eric Christopher  <echristo@redhat.com>
10925         * config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
10926         truthvalue conversion removal.
10928 2005-03-29  Ian Lance Taylor  <ian@airs.com>
10930         PR bootstrap/14316
10931         * collect2.c: Never include <vfork.h>.
10932         (VFORK_STRING, vfork): Don't define.
10933         (pid): Remove global variable.
10934         (handler): Call raise instead of kill (getpid(), ...).
10935         (collect_wait): Add pex parameter.  Change all callers.  Use
10936         pex_get_status rather than pwait.
10937         (do_wait): Add pex parameter.  Change all callers.
10938         (collect_execute): Return struct pex_obj * rather than void.  Use
10939         pex routines rather than pexecute.
10940         (fork_execute): Get pex_obj from collect_execute, and pass it to
10941         do_wait.
10942         (scan_prog_file): Use pex routines rather than pipe/vfork/exec.
10943         Only declare quit_handler if SIGQUIT is defined.
10944         (scan_libraries): Likewise.
10945         * collect2.h (collect_execute): Update declaration.
10946         (collect_wait): Update declaration.
10947         * tlink.c (tlink_execute): Get pex_obj from collect_execute, and
10948         pass it to collect_wait.
10950 2005-03-29  Joseph S. Myers  <joseph@codesourcery.com>
10952         PR c/20672
10953         * c-parser.c (c_parser_compound_statement_nostart): Give error
10954         message for EOF instead of just setting parser->error.
10956 2005-03-29  Dorit Naishlos  <dorit@il.ibm.com>
10958         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard): Removed.
10959         (slpeel_update_phi_nodes_for_guard1): New function.
10960         (slpeel_update_phi_nodes_for_guard2): New function.
10961         (slpeel_tree_peel_loop_to_edge): Call above new functions instead
10962         of slpeel_update_phi_nodes_for_guard.
10963         (vectorize_loops): Remove call to loop_closed_rewrite.
10964         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Remove
10965         assertion.
10967 2005-03-29  Richard Sandiford  <rsandifo@redhat.com>
10969         * config/m32r/little.h (TARGET_ENDIAN_DEFAULT): Delete.
10970         (TARGET_LITTLE_ENDIAN): New macro.
10971         * config/m32r/m32r.h (SUBTARGET_SWITCHES, target_flags)
10972         (TARGET_RELAX_MASK, TARGET_DEBUG_MASK, TARGET_DEBUG)
10973         (TARGET_ALIGN_LOOPS_MASK, TARGET_ALIGN_LOOPS)
10974         (TARGET_LOW_ISSUE_RATE_MASK, TARGET_LOW_ISSUE_RATE)
10975         (TARGET_BRANCH_COST_MASK, TARGET_BRANCH_COST, TARGET_M32RX_MASK)
10976         (TARGET_M32RX, TARGET_M32R2_MASK, TARGET_M32R2, LITTLE_ENDIAN_BIT)
10977         (TARGET_ENDIAN_DEFAULT, SUBTARGET_SWITCHES, TARGET_DEFAULT)
10978         (TARGET_SWITCHES, m32r_model_string, m32r_sdata_string)
10979         (m32r_cache_flush_trap_string, SUBTARGET_OPTIONS)
10980         (TARGET_OPTIONS): Delete.
10981         (M32R_MODEL_DEFAULT, M32R_SDATA_DEFAULT): Turn into enums.
10982         (CACHE_FLUSH_TRAP): Turn into an integer.
10983         (TARGET_LITTLE_ENDIAN): Define to 0 by default.
10984         (INITIALIZE_TRAMPOLINE): Check m32r_cache_trap >= 0 to see if
10985         -mflush-trap is in use.
10986         * config/m32r/m32r.c (m32r_model_string, m32r_sdata_string)
10987         (m32r_cache_flush_trap_string): Delete.
10988         (m32r_model) Initialize to M32R_MODEL_DEFAULT.
10989         (m32r_sdata): Likewise M32R_SDATA_DEFAULT.
10990         (m32r_cache_trap): Likewise CACHE_FLUSH_TRAP.
10991         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
10992         (m32r_handle_option): New function.  Move -mflush-trap=, -mflush-func=,
10993         -mmodel= and -msdata= handling from...
10994         (m32r_init): ...here.
10995         * config/m32r/m32r.opt: New file.
10997 2005-03-29  Keith Besaw  <kbesaw@us.ibm.com>
10999         * tree-ssanames.c (duplicate_ssa_name_ptr_info): New function.
11000         (duplicate_ssa_name): Call duplicate_ssa_name_ptr_info.
11001         * tree-vect-analyze.c (vect_object_analysis): additional parm
11002         pass back a "struct ptr_info_def *" with the points-to info.
11003         (vect_analyze_data_refs): set the STMT_VINFO_PTR_INFO for the
11004         statement using info returned from vect_object_analysis.
11005         * tree-vect-transform.c (update_vuses_to_preheader): New function.
11006         (vect_create_data_ref_ptr): Remove updates to vars_to_rename
11007         for virtual uses and defs when creating a replacement vector
11008         reference.  Call duplicate_ssa_name_ptr_info to define points-to
11009         info for vector pointer replacement using STMT_VINFO_PTR_INFO.
11010         (vectorizable_store): copy_virtual_operands and update
11011         definition statements.
11012         (vectorizable_load): copy_virtual_operands.  Remove call to
11013         mark_call_clobbered_vars_to_rename for call to "const" builtin.
11014         * tree-vectorizer.c (vectorize_loops): Remove calls to
11015         rewrite_into_ssa and bitmap_clear (vars_to_rename).
11016         (new_stmt_vec_info): initialize STMT_VINFO_PTR_INFO for stmt.
11017         * tree-vectorizer.h (_stmt_vec_info): add field ptr_info and
11018         define macro STMT_VINFO_PTR_INFO for use in accessing.
11019         * tree.h add export of duplicate_ssa_name_ptr_info.
11020         * rs6000.c (altivec_init_builtins): Declare builtin function
11021         __builtin_altivec_mask_for_load to be "const".
11023 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
11025         PR middle-end/20622
11026         * cgraph.h (struct cgraph_varpool_node): Add alias field.
11027         * cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
11028         assemble_variable on aliases.
11029         * varasm.c (assemble_alias): Set node->alias.
11030         * toplev.c (wrapup_global_declarations): Don't call
11031         rest_of_decl_compilation on aliases again.
11033 2005-03-29  Paul Brook  <paul@codesourcery.com>
11035         * config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
11036         * config/arm/arm.c (arm_dbx_register_number): New function.
11037         * config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.
11039 2005-03-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
11041         PR middle-end/20263
11042         * varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use
11043         the DECL_NAME, not the DECL_ASSEMBLER_NAME.
11045 2005-03-29  Dale Johannesen <dalej@apple.com>
11047         * Makefile.in (value-prof.o): New dependencies on $(DIAGNOSTIC_H)
11048         $(TREE_H) and $(COVERAGE_H).
11049         * coverage.c (compute_checksum): Use DECL_NAME not DECL_ASSEMBLER_NAME.
11050         * opts.c (common_handle_option): Enable tree-based value transforms.
11051         * toplev.c (process_options): Ditto.
11052         * value-prof.h (struct histogram_value_t): Redefine. "Adjust" below
11053         refers to references to this type.
11054         * tree-flow.h: (struct stmt_ann_d): Add histograms field.
11055         * rtl-profile.c (rtl_gen_interval_profiler): Adjust. Remove checks
11056         for may_be_more, may_be_less.
11057         (rtl_gen_pow2_profiler): Adjust.
11058         (rtl_gen_one_value_profiler_no_edge_manip): Adjust.
11059         (rtl_gen_one_value_profiler): Adjust.
11060         (rtl_gen_const_delta_profiler): Adjust.
11061         * tree-profile.c (tree_gen_interval_profiler): Implement.
11062         (tree_gen_pow2_profiler): Ditto.
11063         (tree_gen_one_value_profiler): Ditto.
11064         (tree_profiling): New.
11065         (pass_tree_profile): Reference it.
11066         * value-prof.c: Include tree-flow.h, tree-flow-inline.h, diagnostic.h,
11067         tree.h, gcov-io.h.
11068         (insn_divmod_values_to_profile): Rename to
11069         rtl_divmod_values_to_profile. Adjust.
11070         (insn_values_to_profile): Rename to rtl_values_to_profile. Adjust.
11071         (insn_prefetch_values_to_profile): Adjust.
11072         (rtl_value_profile_transformations): Adjust.
11073         (gen_divmod_fixed_value): Rename to rtl_divmod_fixed_value.
11074         (gen_mod_pow2): Rename to rtl_mod_pow2.
11075         (gen_mod_subtract): Rename to rtl_mod_subtract.
11076         (divmod_fixed_value_transform): Rename to
11077         rtl_divmod_fixed_value_transform.
11078         (mod_pow2_value_transform): Rename to rtl_mod_pow2_value_transform.
11079         (mod_subtract_transform): Rename to rtl_mod_subtract_transform.
11080         (rtl_find_values_to_profile): Adjust.
11081         (tree_value_profile_transformations): Implement.
11082         (tree_divmod_values_to_profile): New.
11083         (tree_values_to_profile): New.
11084         (tree_divmod_fixed_value): New.
11085         (tree_mod_pow2): New.
11086         (tree_mod_subtract): New.
11087         (tree_divmod_fixed_value_transform): New.
11088         (tree_mod_pow2_value_transform): New.
11089         (tree_mod_subtract_transform): New.
11090         (tree_find_values_to_profile): Implement.
11091         * profile.c (instrument_values):  Free histograms.
11092         (compute_value_histograms): Adjust. Implement tree version.
11094 2005-03-29  Uros Bizjak  <uros@kss-loka.si>
11096         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST> case.
11097         * config/i386/i386.c (output_fix_trunc): Add new round_mode
11098         variable.  Output "fldcw" depending on round_mode.
11099         * config/i386/i386.md (UNSPEC_FIST): New.
11100         (fistdi2, fistdi2_with_temp, fist<mode>2, fist<mode>2_with_temp):
11101         New isns patterns to implement lrint and llrint built-ins as x87
11102         intrinsic function.
11103         (fistdi2, fist<mode>2 splitters): New splitters.
11104         (lrint<mode>2): New expanders.
11106 2005-03-28  Ian Lance Taylor  <ian@airs.com>
11108         * config/arc/arc.c (arc_output_function_epilogue): Pass prescan as
11109         0 when calling final_scan_insn.
11111 2005-03-28  Jan Hubicka  <jh@suse.cz>
11113         PR middle-end/20635
11114         * varasm.c (mark_decl_referenced): Do not mark extern inline functions
11115         as needed.
11117         * tree-inline.c (estimate_num_insns_1): Use declaration to discover argument
11118         types where possible.
11120 2005-03-26  Per Bothner  <per@bothner.com>
11122         Make -f[no-]show-column also control non-cpp diagnostics.
11123         * c.opt (fshow-column): Move option from here ...
11124         * common.opt (fshow-column): ... to here.
11125         * diagnostic.c (diagnostic_build_prefix): Only print column number
11126         if flag_show_column.
11128 2005-03-27  Steven Bosscher  <stevenb@suse.de>
11130         * vax-protos.h (vax_output_int_move, vax_output_int_add,
11131         vax_output_conditional_branch): New prototypes.
11132         * vax.c (vax_output_int_move, vax_output_int_add): New functions,
11133         extracted from vax.md mov and add patterns.
11134         (vax_output_conditional_branch): New function to output conditional
11135         branch instructions.
11136         * vax.md: Use mode macros for arithmetic and mov patterns.
11137         Use code macros for the jump patterns.
11139 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
11141         * Makefile.in (libbackend.o): Depend on version files;
11142         add custom generation command.
11144 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
11146         PR target/20636
11147         * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make
11148         sure that we have a REG before getting its REGNO.
11150 2005-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11152         * builtin-types.def (BT_FN_STRING_CONST_STRING_SIZE): New.
11153         * builtins.def (BUILT_IN_STRNDUP): New.
11155 2005-03-25  Pat Haugen  <pthaugen@us.ibm.com>
11157         PR tree-optimization/20470
11158         * fold-const.c (fold_cond_expr_with_comparison): Recognize/fold
11159         ABS(x-y).
11161 2005-03-25  Mike Stump  <mrs@apple.com>
11163         * config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0
11164         sized objects.
11166 2005-03-25  Geoffrey Keating  <geoffk@apple.com>
11168         * config/rs6000/darwin-fallback.c: Don't include <ucontext.h>.
11169         Use our own structure definitions.
11171         * config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
11172         (fix_truncdfsi2): Allow registers or memory as destination.
11173         When TARGET_PPC_GFXOPT, generate simplified pattern.
11174         (fix_truncdfsi2_internal): Use define_insn_and_split.
11175         (fix_truncdfsi2_internal_gfxopt): New.
11176         (fctiwz): Don't confuse register allocation by giving it no choices.
11177         (stfiwx): New.
11178         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'Z'.
11179         (EXTRA_MEMORY_CONSTRAINT): Likewise.
11180         * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
11181         * config/rs6000/rs6000-protos.h (indexed_or_indirect_operand): New.
11183 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
11185         * dominance.c (free_dominance_info): Speed up by freeing et
11186         data structures without maintaining other nodes.
11187         * et-forest.c (et_free_tree_force): New.
11188         * et-forest.h: Add a prototype for et_free_tree_force.
11190         * tree.c (get_set_constructor_bits,
11191         get_set_constructor_bytes): Remove.
11192         * tree.h: Remove the corresponding prototypes.
11194 2005-03-25  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
11196         PR target/15491
11197         * vax.c (vax_rtx_costs_1): Merge with vax_rtx_costs.
11198         (vax_rtx_costs): Return false when passed unsupported rtx's.  Handle
11199         FLOAT_EXTEND, FLOAT_TRUNCATE and TRUNCATE.  Fix costs for POST_INC,
11200         PRE_DEC, NEG and NOT.
11202 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
11204         * fold-const.c: Convert uses of fold (build (...)) to
11205         fold_buildN.
11207 2005-03-25  Zdenek Dvorak  <dvorakz@suse.cz>
11209         PR rtl-optimization/20249
11210         * cse.c (insert_regs): Do not record equivalence of registers in
11211         different modes.
11213 2005-03-24  Kazu Hirata  <kazu@cs.umass.edu>
11215         * emit-rtl.c (reverse_comparison): Remove.
11216         * rtl.h: Remove the corresponding prototype.
11218 2005-03-24  James E Wilson  <wilson@specifixinc.com>
11220         * doc/install.texi (--enable-altivec): Delete docs.
11222 2005-03-24  David Edelsohn  <edelsohn@gnu.org>
11224         * config/rs6000/predicates.md (easy_fp_constant): Return 0 for
11225         SFmode and DFmode before reload when
11226         flag_unsafe_math_optimizations not enabled.
11228 2005-03-24  Geoffrey Keating  <geoffk@apple.com>
11230         * c.opt (fvisibility-inlines-hidden): Allow for ObjC++.
11232         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Add
11233         MASK_128BIT_LONG_DOUBLE, MASK_ALIGN_DOUBLE.
11235 2005-03-24  Nathan Sidwell  <nathan@codesourcery.com>
11237         * configure.ac (enable-checking): Add 'runtime' option.
11238         * doc/install.texi (enable-checking): Document 'runtime' checking.
11239         * tsystem.h (gcc_assert, gcc_unreachable): Define.
11240         * config.in: Regenerated.
11241         * configure: Regenerated.
11243 2005-03-23  Uros Bizjak  <uros@kss-loka.si>
11245         * optabs.h (enum optab_index): Remove OTI_llrint.
11246         (llrint_optab): Remove macro.
11247         * optabs.c (init_optabs): Remove llrint_optab initialization.
11248         * genopinit.c (optabs): Remove llrint_optab implementation.
11249         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LLRINT{,F,L}
11250         using lrint_optab.
11252 2005-03-24  Alexandre Oliva  <aoliva@redhat.com>
11254         PR rtl-optimization/20532
11255         * simplify-rtx.c (simplify_binary_operation_1): Protect from
11256         overflow when adding coefficients for PLUS or MINUS.
11257         (simplify_binary_operation_1): Handle CONST_DOUBLE exact power of
11258         two as multiplier.
11260 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
11262         * langhooks.h (truthvalue_conversion): Remove.
11263         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
11264         LANG_HOOKS_TRUTHVALUE_CONVERSION.
11265         * system.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Poison.
11266         * gimplify.c (gimple_boolify): Don't use truthvalue_conversion.
11267         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
11269 2005-03-23  Kazu Hirata  <kazu@cs.umass.edu>
11271         * params.def: Fix a typo.
11272         * config/mips/mips.c: Follow the spelling convensions.
11273         * doc/invoke.texi: Fix typos.
11275 2005-03-23  Daniel Berlin  <dberlin@dberlin.org>
11277         Fix PR tree-optimization/20601
11279         * tree-ssa-pre.c (insert_aux): Add missing condition to
11280         constification.
11282 2005-03-23  Ian Lance Taylor  <ian@airs.com>
11284         * final.c (final_scan_insn): Don't remove no-op instructions.
11285         * reload1.c (reload): Remove simple no-op instructions even when
11286         not optimizing.
11288 2005-03-23  Dorit Naishlos  <dorit@il.ib.com>
11290         PR tree-optimization/20501
11291         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Debug print
11292         reporting that peeling for alignment is applied moved to...
11293         * (vect_analyze_data_refs_alignment): Here.
11295 2005-03-23  Ian Lance Taylor  <ian@airs.com>
11297         * reorg.c (dbr_schedule): Remove #if 0 code to call final.
11299 2005-03-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11301         * config.gcc (alpha*-dec-osf[45]*): Remove target_cpu_default.
11302         Define TARGET_SUPPORT_ARCH except on Tru64 UNIX V4.0A.
11304 2005-03-23  Hans-Peter Nilsson  <hp@axis.com>
11306         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Adjust wording to not
11307         imply that this is called once, independent of asms in code.
11308         Adjust to now being pased output and input lists.  Mention helper
11309         function decl_overlaps_hard_reg_set_p.
11310         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Rename from
11311         hook_tree_tree_identity and to take three trees, returning third.
11312         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Adjust the
11313         prototype.
11314         * stmt.c: include hard-reg-set.h before tree.h.
11315         (decl_overlaps_hard_reg_set_p): New function, broken out from...
11316         (decl_conflicts_with_clobbers_p): Call
11317         decl_overlaps_hard_reg_set_p.
11318         (expand_asm_operands): Pass output and input lists in call to
11319         targetm.md_asm_clobbers.
11320         * target-def.h (TARGET_MD_ASM_CLOBBERS): Define as
11321         hook_tree_tree_tree_tree_3rd_identity.
11322         * target.h (struct gcc_target.md_asm_clobbers): Take three tree
11323         parameters.
11324         * tree.h [HARD_CONST] (decl_overlaps_hard_reg_set_p): Prototype.
11325         * config/i386/i386.c (ix86_md_asm_clobbers): Adjust to three
11326         parameters, first two unused.
11327         * config/cris/cris.c (cris_md_asm_clobbers): Adjust to added
11328         parameters.  Only add MOF to clobbers if there's no 'h' mentioned
11329         in constraint letters and MOF is not mentioned as a asm-declared
11330         register in neither of the input and output lists.
11332 2005-03-23  DJ Delorie  <dj@redhat.com>
11334         * optabs.c (expand_binop): Make sure the first subword's result
11335         gets stored.
11337 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
11339         * c-common.c (c_common_truthvalue_conversion): Adjust comment.
11340         Call c_common_truthvalue_conversion rather than
11341         lang_hooks.truthvalue_conversion.
11342         * c-convert.c (convert): Call c_objc_common_truthvalue_conversion.
11343         * c-objc-common.c (c_objc_common_truthvalue_conversion): Move to
11344         c-typeck.c.
11345         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Change to
11346         c_common_truthvalue_conversion.
11347         * c-parser.c (c_parser_paren_condition, c_parser_for_statement,
11348         c_parser_conditional_expression, c_parser_binary_expression): Call
11349         c_objc_common_truthvalue_conversion.
11350         * c-typeck.c (build_unary_op): Call
11351         c_objc_common_truthvalue_conversion.
11352         (build_conditional_expr): Do not call
11353         lang_hooks.truthvalue_conversion.
11354         (build_binary_op): Call c_common_truthvalue_conversion.
11355         (c_objc_common_truthvalue_conversion): Moved from
11356         c-objc-common.c.  Call default_function_array_conversion instead
11357         of default_conversion.
11359 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
11361         * c-common.h (default_conversion): Remove.
11362         (perform_integral_promotions): Add.
11363         * c-tree.h (default_conversion): Add.
11364         * c-typeck.c (perform_integral_promotions): New, split out from
11365         default_conversion.
11366         * c-common.c (check_case_value): Use perform_integral_promotions,
11367         not default_conversion.
11368         (c_add_case_label): Don't continue processing case label after
11369         found to be pointer.
11371 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
11373         * gcc.c (do_spec_1): Do not add a -L path for a directory in
11374         the prefix list if we have already added a multilib directory
11375         based on that path.
11376         (main): Do not add MD_EXEC_PREFIX to the list of directories to
11377         search with -L.
11379 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
11381         * reload1.c (indirect_symref_ok, reload_obstack): Make them
11382         static.
11383         * reload.h: Remove the prototype for indirect_symref_ok.
11385         * reload1.c (indirect_symref_ok): Make it global.
11386         * reload.h: Add a prototype for indirect_symref_ok.
11388 2005-03-22  Kaz Kojima  <kkojima@gcc.gnu.org>
11390         * config/sh/sh.md (ashlhi3): Rename to *ashlhi3_n and add a new
11391         ashlhi3 expander.
11393 2005-03-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
11395         * tree.h (DECL_IGNORED_P, DECL_IN_SYSTEM_HEADER): Clarify comments.
11397 2005-03-22  Daniel Berlin  <dberlin@dberlin.org>
11399         * c-opts.c (c_common_parse_file): Only start/end main source file
11400         if debug hooks says the writer wants it.
11401         * dbxout.c (dbx_debug_hooks): Add start_end_main_source_file
11402         member.
11403         (xcoff_debug_hooks): Ditto.
11404         * debug.c (do_nothing_hooks): Ditto.
11405         * debug.h (gcc_debug_hooks): Ditto.
11406         * dwarf2out.c (dwarf2_debug_hooks): Ditto.
11407         * sdbout.c (sdb_debug_hooks): Ditto.
11408         * vmsdbgout.c (vmsdbg_debug_hooks): Ditto.
11410 2005-03-22  Mark Mitchell  <mark@codesourcery.com>
11412         * doc/extend.texi: Deprecate C++ min/max operators.
11414 2005-03-22  Zdenek Dvorak  <dvorakz@suse.cz>
11416         * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve
11417         artificial original candidates.
11419 2005-03-22  Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
11420             Jan Hubicka  <jh@suse.cz>
11421             Steven Bosscher <stevenb@suse.de>
11423         * cgraphunit.c (cgraph_estimate_size_after_inlining): Compute
11424         call cost based on argument sizes.
11425         (cgraph_mark_inline_edge): Avoid inline unit from shrinking by
11426         inlining.
11427         * params.def: (max-inline-inssn-single): Set to 450.
11428         (max-inline-insns-auto): Set to 90.
11429         (max-inline-insns-recursive): Set to 450
11430         (max-inline-insns-recursive-auto): Set to 450.
11431         (large-function-insns): Set to 2700.
11432         (inline-call-cost): New parameter.
11433         * tree-inline.c (estimate_move_cost): New function.
11434         (estimate_num_insns_1): Compute move sizes costs by estimate_move_cost
11435         for non-gimple-regs, set cost to 0 for gimple-regs.  Compute call size
11436         based on arguments.
11437         * tree-inline.h (estimate_move_cost): Declare.
11438         * invoke.texi: (max-inline-inssn-single): Change default to 450.
11439         (max-inline-insns-auto): Change default to 90.
11440         (max-inline-insns-recursive): Change default to 450
11441         (max-inline-insns-recursive-auto): Change default to 450.
11442         (large-function-insns): Change default to 2700.
11443         (inline-call-cost): Document new parameter.
11445 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
11447         * config/i860/i860.h (target_flags, TARGET_XP, TARGET_SWITCHES)
11448         (TARGET_DEFAULT): Delete.
11449         * config/i860/i860.opt: New file.
11451 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
11453         * config/frv/frv-protos.h (frv_branch_cost_string, frv_branch_cost_int)
11454         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
11455         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
11456         (frv_sched_lookahead): Delete.
11457         * config/frv/frv.h (MASK_DEFAULT_ALLOC_CC): Move to frv.c.
11458         (target_flags, MASK_GPR_32, MASK_FPR_32, MASK_SOFT_FLOAT)
11459         (MASK_ALLOC_CC, MASK_DWORD, MASK_DOUBLE, MASK_MEDIA, MASK_MULADD)
11460         (MASK_LIBPIC, MASK_ACC_4,  MASK_PACK, MASK_LONG_CALLS)
11461         (MASK_ALIGN_LABELS, MASK_LINKED_FP, MASK_BIG_TLS, MASK_DEBUG_ARG)
11462         (MASK_DEBUG_ADDR, MASK_DEBUG_STACK, MASK_DEBUG, MASK_DEBUG_LOC)
11463         (MASK_DEBUG_COND_EXEC, MASK_NO_COND_MOVE, MASK_NO_SCC)
11464         (MASK_NO_COND_EXEC, MASK_NO_VLIW_BRANCH, MASK_NO_MULTI_CE)
11465         (MASK_FDPIC, MASK_INLINE_PLT, MASK_GPREL_RO, MASK_DEFAULT)
11466         (TARGET_GPR_32, TARGET_FPR_32, TARGET_SOFT_FLOAT, TARGET_ALLOC_CC)
11467         (TARGET_DWORD, TARGET_DOUBLE, TARGET_MEDIA, TARGET_MULADD)
11468         (TARGET_LIBPIC, TARGET_ACC_4, TARGET_DEBUG_ARG, TARGET_DEBUG_ADDR)
11469         (TARGET_DEBUG_STACK, TARGET_DEBUG, TARGET_DEBUG_LOC)
11470         (TARGET_DEBUG_COND_EXEC, TARGET_NO_COND_MOVE, TARGET_NO_SCC)
11471         (TARGET_NO_COND_EXEC, TARGET_NO_VLIW_BRANCH, TARGET_NO_MULTI_CE)
11472         (TARGET_NO_NESTED_CE, TARGET_FDPIC, TARGET_INLINE_PLT, TARGET_BIG_TLS)
11473         (TARGET_GPREL_RO, TARGET_PACK, TARGET_LONG_CALLS, TARGET_ALIGN_LABELS)
11474         (TARGET_LINKED_FP, TARGET_GPR_64, TARGET_FPR_64, TARGET_HARD_FLOAT)
11475         (TARGET_FIXED_CC, TARGET_COND_MOVE, TARGET_SCC, TARGET_COND_EXEC)
11476         (TARGET_VLIW_BRANCH, TARGET_MULTI_CE, TARGET_NESTED_CE, TARGET_ACC_8)
11477         (TARGET_SWITCHES, TARGET_OPTIONS, DEFAULT_CONDEXEC_TEMPS)
11478         (DEFAULT_BRANCH_COST, DEFAULT_CONDEXEC_INSNS): Delete.
11479         * config/frv/frv.c (frv_branch_cost_string, frv_branch_cost_int)
11480         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
11481         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
11482         (frv_sched_lookahead): Delete.
11483         (MASK_DEFAULT_ALLOC_CC): Moved from frv.h.
11484         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
11485         (frv_handle_option): New function.  Move -mcpu= handling from...
11486         (frv_override_options): ...here.  Remove handling of other
11487         TARGET_OPTIONS.
11488         (frv_ifcvt_modify_tests): Check !TARGET_COND_EXEC instead of
11489         TARGET_NO_COND_EXEC and !TARGET_NESTED_CE to TARGET_NO_NESTED_CE.
11490         (frv_ifcvt_modify_multiple_tests): Likewise !TARGET_MULTI_CE
11491         and TARGET_NO_MULTI_CE.
11492         (frv_for_each_packet): Likewise TARGET_NO_VLIW_BRANCH and
11493         !TARGET_VLIW_BRANCH.
11494         * config/frv/frv.opt: New file.
11496 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
11498         * fold-const.c (fold_ternary): Take decomposed arguments of
11499         CALL_EXPR.
11500         (fold): Update a call to fold_ternary.
11502         * fold-const.c (fold_build1, fold_build2, fold_build3): New.
11503         * tree.h: Add corresponding prototypes.
11505 2005-03-22  Jakub Jelinek  <jakub@redhat.com>
11507         PR target/20561
11508         * cfglayout.c (reemit_insn_block_notes): Don't put block notes in
11509         between jump table and its label.
11510         * final.c (shorten_branches): Handle notes in between ADDR_VEC
11511         resp. ADDR_DIFF_VEC and the label preceeding it.
11512         (final_scan_insn): Likewise.  Ensure ADDR_VEC resp. ADDR_DIFF_VEC
11513         is emitted in the right section.
11515 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
11517         * fold-const.c (fold_unary, fold_binary): Update comments
11518         about arguments.
11520 2005-03-22  Hans-Peter Nilsson  <hp@axis.com>
11522         PR rtl-optimization/20527
11523         * combine.c (can_combine_p) [AUTO_INC_DEC]: When INSN has an
11524         REG_INC note, test that the register also isn't mentioned in PRED
11525         or SUCC.
11527 2005-03-22  Ben Elliston  <bje@au.ibm.com>
11529         * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype
11530         and definition.
11532 2005-03-21  Mike Stump  <mrs@apple.com>
11534         * varasm.c (default_assemble_visibility): Remove extra ().
11536 2005-03-21  Roger Sayle  <roger@eyesopen.com>
11538         PR middle-end/20557
11539         * bb-reorder.c (duplicate_computed_gotos): Use can_duplicate_block_p
11540         to determine whether a block can be duplicated, rather than test
11541         whether the block contains noncopyable insns ourselves.
11543 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
11545         * config/i860/i860.h (PREDICATE_CODES): Remove nonexistent
11546         predicates.
11548 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
11550         * config/ip2k/ip2k.h (target_flags, TARGET_SWITCHES): Delete.
11552 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
11554         * config/fr30/fr30.h (TARGET_SMALL_MODEL_MASK, TARGET_SMALL_MODEL)
11555         (TARGET_DEFAULT, target_flags, TARGET_SWITCHES): Delete.
11556         * config/fr30/fr30.opt: New file.
11558 2005-03-18  Daniel Berlin  <dberlin@dberlin.org>
11560         Fix PR tree-optimization/20542
11562         * tree-flow-inline.h (overlap_subvar): Move to here.
11563         * tree-ssa-operands.c: From here.
11564         * tree-flow.h (overlap_subvar): Declare.
11565         * tree-ssa-alias.c (add_pointed_to_var): Use overlap_subvar here.
11566         * tree-ssa-loop-im.c (is_call_clobbered_ref): Return proper answer
11567         for variables with subvars.
11569 2005-03-21 Mostafa Hagog <mustafa@il.ibm.com>
11571         PR middle-end/20177
11572         * ddg.c (create_ddg_dependence): Ignore reg-anti dependency.
11573         * modulo-sched.c (const_iteration_count): Return on NULL
11574         pre-header.
11575         (print_node_sched_params): Return on NULL dump_file.
11576         (generate_reg_moves): Handle reg-anti dependencies and disregard
11577         closing branch when generating register moves.
11578         (sms_schedule): Mark the SMSed block dirty.
11579         * passes.c (rest_of_handle_sms): Call update_life_info for all
11580         basic-blocks.
11581         * testsuite/gcc.dg/20050321-1.c: New test.
11583 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
11585         * config/xtensa/lib1funcs.asm (__mulsi3): Use symbolic name for ACCLO.
11586         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
11587         movqi_internal): Likewise.
11589 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
11591         * config/xtensa/xtensa-protos.h: (xtensa_simm7, xtensa_uimm8,
11592         xtensa_uimm8x2, xtensa_uimm8x4, xtensa_ai4const, xtensa_lsi4x4,
11593         xtensa_b4const): Delete prototypes.
11594         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b, xtensa_b4constu,
11595         xtensa_mask_immediate, xtensa_mem_offset): Update prototypes.
11596         (xtensa_b4const_or_zero, xtensa_const_ok_for_letter_p,
11597         xtensa_extra_constraint): New prototypes.
11598         (add_operand, arith_operand, nonimmed_operand, mem_operand,
11599         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
11600         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
11601         move_operand, const_float_1_operand, fpmem_offset_operand,
11602         branch_operator, ubranch_operator, boolean_operator): Delete prototypes.
11603         * config/xtensa/xtensa.c (b4const_or_zero): Rename to ...
11604         (xtensa_b4const_or_zero): ...this.  Change return type to bool and
11605         argument type to HOST_WIDE_INT.
11606         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b,
11607         xtensa_mask_immediate): Likewise.
11608         (xtensa_uimm8, xtensa_uimm8x2, xtensa_uimm8x4, xtensa_b4const):
11609         Likewise.  Also make these functions static.
11610         (xtensa_simm7, xtensa_ai4const, xtensa_lsi4x4): Delete.
11611         (xtensa_const_ok_for_letter_p): New.
11612         (add_operand, arith_operand, nonimmed_operand, mem_operand,
11613         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
11614         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
11615         move_operand, const_float_1_operand, fpmem_offset_operand,
11616         branch_operator, ubranch_operator, boolean_operator): Move to
11617         predicates.md.
11618         (smalloffset_mem_p): Inline code from xtensa_lsi4x4.
11619         (xtensa_mem_offset): Change return type to bool.
11620         (xtensa_extra_constraint): New.
11621         (gen_int_relational): Update type of const_range_p function pointer.
11622         Use xtensa_b4const_or_zero.
11623         * config/xtensa/xtensa.h (CONST_OK_FOR_LETTER_P): Define to
11624         xtensa_const_ok_for_letter_p.  Update comments.
11625         (EXTRA_CONSTRAINT): Define to xtensa_extra_constraint.
11626         (PREDICATE_CODES): Delete.
11627         * config/xtensa/xtensa.md: Include predicates.md.
11628         * config/xtensa/predicates.md: New file.
11630 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
11632         * config/v850/v850-protos.h: Remove the prototypes for
11633         reg_or_int9_operand, reg_or_const_operand,
11634         pattern_is_ok_for_prepare, pattern_is_ok_for_dispose,
11635         reg_or_0_operand, reg_or_int5_operand, call_address_operand,
11636         movsi_source_operand, power_of_two_operand,
11637         not_power_of_two_operand, special_symbolref_operand,
11638         pattern_is_ok_for_prologue, pattern_is_ok_for_epilogue, and
11639         register_is_ok_for_epilogue.
11640         * config/v850/v850.c (reg_or_0_operand, reg_or_int5_operand,
11641         reg_or_int9_operand, reg_or_const_operand,
11642         call_address_operand, special_symbolref_operand,
11643         movsi_source_operand, power_of_two_operand,
11644         not_power_of_two_operand, register_is_ok_for_epilogue,
11645         pattern_is_ok_for_epilogue, pattern_is_ok_for_prologue,
11646         pattern_is_ok_for_dispose, pattern_is_ok_for_prepare): Move to
11647         predicates.md.
11648         * config/v850/v850.h (PREDICATE_CODES): Remove.
11649         * config/v850/v850.md: Include predicates.md.
11650         * config/v850/predicates.md: New.
11652 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
11654         * Makefile.in (BASEVER, DEVPHASE, DATESTAMP)
11655         (BASEVER_c, DEVPHASE_c, DATESTAMP_c)
11656         (BASEVER_s, DEVPHASE_s, DATESTAMP_s, version): Set with :=.
11657         (itoolsdir, itoolsdatadir): Move definition above new first use.
11658         (install-itoolsdirs): New rule.
11659         (install-mkheaders): Depend on install-itoolsdirs, not
11660         install-include-dir.
11662 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
11664         * tree-into-ssa.c: Remove obsolete comments.
11666 2005-03-21  Richard Guenther  <rguenth@gcc.gnu.org>
11668         * tree-ssa-loop.c (gate_tree_complete_unroll): Run complete
11669         unrolling if -fpeel-loops is specified, too.
11670         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
11671         Remove superfluous check for flag_unroll_loops.
11673 2005-03-21  Uros Bizjak  <uros@kss-loka.si>
11675         * optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
11676         (lrint_optab, llrint_optab): Define corresponding macros.
11677         * optabs.c (init_optabs): Initialize lrint_optab and llrint_optab.
11678         * genopinit.c (optabs): Implement lrint_optab using lrintsi2
11679         pattern and llrint_optab using llrintdi2 patterns.
11680         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LRINT{,F,L}
11681         using lrint_optab and BUILT_IN_LLRINT{,F,L} using llrint_optab.
11682         (expand_builtin): Expand BUILT_IN_LRINT{,F,L} and
11683         BUILT_IN_LLRINT{,F,L} using expand_builtin_mathfn if
11684         flag_unsafe_math_optimizations is set.
11686 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
11688         * combine.c (combine_simplify_rtx, simplify_if_then_else,
11689         simplify_logical, if_then_else_cond, known_cond,
11690         simplify_comparison): Adjust calls to reverse_comparison.
11691         Don't use combine_reversed_comparison_code).
11692         (combine_reversed_comparison_code): Remove.
11693         (reversed_comparison): Using reversed_comparison_code, move it...
11694         * jump.c (reversed_comparison): ... here.
11695         * rtl.h (reversed_comparison): Add prototype.
11697 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
11699         * builtins.c (fold_builtin): Take decomposed arguments of
11700         CALL_EXPR.
11701         * fold-const.c (fold_ternary): Update a call to fold_builtin.
11702         * gimplify.c (gimplify_call_expr): Likewise.
11703         * tree-ssa-ccp.c (ccp_fold, ccp_fold_builtin): Likewise.
11704         * tree.h: Update the prototype of fold_builtin.
11706 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
11708         * rtl.h (struct rtx_hooks): Add gen_lowpart_no_emit.
11709         * rtlhooks.c (gen_lowpart_no_emit_general): New.
11710         * rtlhooks-def.h (gen_lowpart_no_emit_general): Declare.
11711         (RTL_HOOKS_GEN_LOWPART_NO_EMIT): New.
11712         * simplify-rtx.c (simplify_binary_operation_1): Use it.
11714 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
11716         * builtins.c (fold_builtin_1): Take decomposed arguments of
11717         CALL_EXPR.
11718         (fold_builtin): Update a call to fold_builtin_1.
11720 2005-03-21  Nathan Sidwell  <nathan@codesourcery.com>
11722         PR other/20564
11723         * gcov.c (output_lines): Only output function block summary when
11724         outputting branch information.
11725         * doc/gcov.texi: Document format of preamble and additional block
11726         information lines.
11728 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
11730         * libgcc2.h (LIBGCC2_HAS_SF_MODE): New macro.
11731         (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_TF_MODE, LIBGCC2_HAS_XF_MODE): Make
11732         the defaults false if BITS_PER_UNIT != 8.
11733         (SFtype, SCtype, __fixsfdi, __floatdisf, __fixunssfSI, __fixunssfDI)
11734         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE rather
11735         than BITS_PER_UNIT != 8.
11736         (L_fixdfdi, L_fixsfdi, L_fixtfdi, L_fixunsdfdi, L_fixunsdfsi)
11737         (L_fixunssfdi, L_fixunssfsi, L_fixunstfdi, L_fixunsxfdi, L_fixunsxfsi)
11738         (L_fixxfdi, L_floatdidf, L_floatdisf, L_floatditf, L_floatdixf): Remove
11739         #undefs.
11740         * libgcc2.c (__fixunssfDI, __fixsfdi, __floatdisf, __fixunssfSI)
11741         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE.
11743 2005-03-20  Roger Sayle  <roger@eyesopen.com>
11745         PR middle-end/20539
11746         * fold-const.c (fold_binary): Fix type mismatch between
11747         TRUTH_{AND,OR,XOR}_EXPR nodes an their operands' types.
11748         (fold_binary) <TRUTH_XOR_EXPR>: Avoid calling invert_truthvalue
11749         for non-truth-valued expressions.
11751         * c-common.c (c_common_truthvalue_conversion): Handle ERROR_MARK
11752         and FUNCTION_DECL in the main switch.
11753         <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
11754         TRUTH_XOR_EXPR>: When changing the result type of these tree nodes,
11755         we also need to convert their operands to match.
11756         <TRUTH_NOT_EXPR>: Likewise.
11758 2005-03-21  Joseph S. Myers  <joseph@codesourcery.com>
11760         * c-common.c (lvalue_or_else): Replace by lvalue_error; only give
11761         diagnostic without checking whether an lvalue.
11762         * c-common.h (lvalue_p): Remove.
11763         (enum lvalue_use): Update comment.
11764         (lvalue_or_else): Replace by lvalue_error.
11765         * c-typeck.c (lvalue_p): Make static.
11766         (lvalue_or_else): New.  Call lvalue_error.
11768 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
11770         * config/rs6000/rs6000.c (rs6000_parm_start): New function.
11771         (function_arg_advance): Use rs6000_parm_start.
11772         (function_arg, rs6000_arg_partial_bytes): Likewise.
11774 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
11776         * c-common.c (check_case_value): Adjust comment about stripping
11777         NOPs.
11778         (handle_vector_size_attribute): Don't strip NON_LVALUE_EXPR.
11779         * c-typeck.c (default_conversion, convert_arguments,
11780         build_modify_expr, convert_for_assignment, store_init_value,
11781         digest_init): Use STRIP_TYPE_NOPS instead of stripping nops
11782         manually.  Remove inaccurate comments.
11784 2005-03-20  Roger Sayle  <roger@eyesopen.com>
11785             Joseph S. Myers  <joseph@codesourcery.com>
11787         * varasm.c (do_assemble_alias): Restore comment describing function.
11788         Annotate the target parameter as potentially unused.
11790 2005-03-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11792         PR target/18551
11793         * config/avr/avr.c (avr_output_function_prologue): Do not use
11794         current_function_name() in a label, use a local label instead.
11796 2005-03-20  David Edelsohn  <edelsohn@gnu.org>
11798         * config/rs6000/rs6000.c (rs6000_generate_compare): Test
11799         flag_finite_math_only, not flag_unsafe_math_optimizations.
11801 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
11803         * builtins.c (fold_builtin_1): Update a call to
11804         targetm.fold_builtin.
11805         * hooks.c (hook_tree_tree_bool_null): Rename to
11806         hook_tree_tree_tree_bool_null.  Take one more argument of type
11807         tree.
11808         * hooks.h: Update the prototype of hook_tree_tree_bool_null.
11809         * target-def.h (TARGET_FOLD_BUILTIN): Define it as
11810         hook_tree_tree_tree_bool_null.
11811         * target.h (gcc_target): Update the prototype of fold_builtin.
11812         * config/alpha/alpha.c (alpha_fold_builtin): Take decomposed
11813         arguments of CALL_EXPR.
11814         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update.  Mention the
11815         new prototype.
11817 2005-03-20  Jan Hubicka  <jh@suse.cz>
11819         * cgraph.h (cgraph_node): Add prev_clone pointer.
11820         * cgraph.c (cgraph_remove_node): Remove from doubly linked chain.
11821         (cgraph_clone_node): Produce doubly linked chain.
11823 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
11825         * c-common.c (handle_aligned_attribute, check_function_sentinel,
11826         get_nonnull_operand, handle_sentinel_attribute,
11827         check_function_arguments_recurse): Do not strip NOPS from
11828         INTEGER_CSTs.
11829         * c-decl.c (check_bitfield_type_and_width, build_enumerator):
11830         Likewise.
11831         * c-format.c (get_constant): Likewise.
11832         * c-parser.c (c_parser_postfix_expression): Likewise.
11833         * c-typeck.c (set_init_index): Likewise.
11834         (convert_arguments): Don't check for NOP_EXPR containing integer
11835         constant.
11837 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
11839         * builtins.c (fold_fixed_mathfn, fold_builtin_trunc,
11840         fold_builtin_floor, fold_builtin_ceil, fold_builtin_lround):
11841         Take decomposed arguments of CALL_EXPR.
11842         (fold_builtin_1): Update calls to the functions mentioned
11843         above.
11845 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
11847         * c-decl.c (check_bitfield_type_and_width): Require bit-field
11848         width to have integer type.
11849         (build_enumerator): Require enumerator value to have integer type.
11851 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
11853         * doc/extend.texi (__builtin_inf): Move statement about INFINITY
11854         to __builtin_inff.
11856 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
11858         * c.opt (ansi, std=iso9899:1990, std=iso9899:1999,
11859         std=iso9899:199x): Correct descriptions.
11861 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
11863         * config.gcc: Consistently use solaris2.1[0-9]* instead of
11864         solaris2.1[0-9].
11866 2005-03-19  Kazu Hirata  <kazu@cs.umass.edu>
11868         * builtins.c (fold_builtin_memcpy): Take decomposed arguments
11869         of CALL_EXPR.
11870         (expand_builtin_memcpy, fold_builtin_1): Update calls to
11871         fold_builtin_memcpy.
11873         * builtins.c (fold_trunc_transparent_mathfn): Take decomposed
11874         arguments of CALL_EXPR.
11875         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil,
11876         fold_builtin_found, fold_builtin_1): Update calls to
11877         fold_trunc_transparent_mathfn.
11879 2005-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11881         PR middle-end/20493
11882         * fold-const.c (fold_widened_comparison): Don't optimize casts of
11883         function pointers on targets that require function pointer
11884         canonicalization.
11885         (fold_sign_changed_comparison): Likewise.
11887 2005-03-19  Bernd Schmidt  <bernd.schmidt@analog.com>
11889         * combine.c (try_combine): When changing the mode of a hard reg, make
11890         sure that doing so is valid.
11892 2005-03-19  Richard Sandiford  <rsandifo@redhat.com>
11894         * config/avr/avr.c (avr_init_stack, avr_mcu_name): Make static.
11895         (TARGET_HANDLE_OPTION): Override default.
11896         (avr_handle_option): New function.
11897         * config/avr/avr.h (MASK_ALL_DEBUG, MASK_ORDER_1, MASK_INSN_SIZE_DUMP)
11898         (MASK_ORDER_2, MASK_NO_TABLEJUMP, MASK_INT8, MASK_NO_INTERRUPTS)
11899         (MASK_CALL_PROLOGUES, MASK_TINY_STACK, MASK_SHORT_CALLS)
11900         (TARGET_ORDER_1, TARGET_ORDER_2, TARGET_INT8, TARGET_NO_INTERRUPTS)
11901         (TARGET_INSN_SIZE_DUMP, TARGET_CALL_PROLOGUES, TARGET_TINY_STACK)
11902         (TARGET_NO_TABLEJUMP, TARGET_SHORT_CALLS, TARGET_ALL_DEBUG)
11903         (TARGET_SWITCHES, avr_init_stack, avr_mcu_name)
11904         (TARGET_OPTIONS): Delete.
11905         * config/avr/avr.opt: New file.
11907 2005-03-18  2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
11909         * config/m32r/m32r-protos.h: Remove the prototypes for
11910         call_address_operand, symbolic_operand, seth_add3_operand,
11911         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
11912         reg_or_uint16_operand, reg_or_cmp_int16_operand,
11913         two_insn_const_operand, move_src_operand,
11914         move_double_src_operand, move_dest_operand,
11915         eqne_comparison_operator, signed_comparison_operator,
11916         large_insn_p, conditional_move_operand, carry_compare_operand,
11917         m32r_block_immediate_operand, extend_operand,
11918         reg_or_eq_int16_operand, int8_operand, and
11919         reg_or_zero_operand.
11920         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
11921         seth_add3_operand, int8_operand, cmp_int16_operand,
11922         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
11923         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
11924         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
11925         move_double_src_operand, move_dest_operand,
11926         eqne_comparison_operator, signed_comparison_operator,
11927         extend_operand, small_insn_p, large_insn_p,
11928         conditional_move_operand, carry_compare_operand,
11929         m32r_block_immediate_operand): Move to predicates.md.
11930         (MAX_MOVE_BYTES): Move to m32r.h.
11931         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
11932         * config/m32r/m32r.md: Include predicates.md.
11933         * config/m32r/predicates.md: New.
11935 2005-03-18  James E Wilson  <wilson@specifixinc.com>
11937         PR c++/19769
11938         * dwarf2out.c (declare_in_namespace): Ignore decls with an abstract
11939         origin.
11941 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
11943         * config/mn10300/mn10300-protos.h: Remove the prototypes for
11944         call_address_operand, const_8bit_operand.
11945         * config/mn10300/mn10300.c (call_address_operand,
11946         const_8bit_operand, const_1f_operand): Move to predicates.md.
11947         * config/mn10300/mn10300.h (PREDICATE_CODES): Remove.
11948         * config/mn10300/mn10300.md: Include predicates.md.
11949         * config/mn10300/predicates.md: New.
11951 2005-03-18  Joseph S. Myers  <joseph@codesourcery.com>
11953         * c-common.c, c-decl.c, c-format.c, c-typeck.c: Use %D for
11954         declarations in diagnostics and %E for identifiers, not %s.
11956 2005-03-18  Jan Hubicka  <jh@suse.cz>
11957             Dale Johannesen  <dalej@apple.com>
11959         * basic-block.h (scale_bbs_frequencies_int,
11960         scale_bbs_frequencies_gcov_type): Declare.
11961         * cfg.c (RDIV): New macro.
11962         (update_bb_frequency_for_threading): Fix.
11963         * basic-block.h (scale_bbs_frequencies_int,
11964         scale_bbs_frequencies_gcov_type): New.
11965         * cfgloopmanip.c (scale_bbs_frequencies): Kill.
11966         (scale_loop_frequencies, duplicate_loop_to_header_edge): Use
11967         scale_bbs_frequencies_int.
11968         * tree-ssa-loop-ch.c (copy_loop_headers): Fix profiling info.
11970 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
11972         * config/m32r/m32r-protos.h: Remove the prototypes for
11973         call_address_operand, symbolic_operand, seth_add3_operand,
11974         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
11975         reg_or_uint16_operand, reg_or_cmp_int16_operand,
11976         two_insn_const_operand, move_src_operand,
11977         move_double_src_operand, move_dest_operand,
11978         eqne_comparison_operator, signed_comparison_operator,
11979         large_insn_p, conditional_move_operand, carry_compare_operand,
11980         m32r_block_immediate_operand, extend_operand,
11981         reg_or_eq_int16_operand, int8_operand, and
11982         reg_or_zero_operand.
11983         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
11984         seth_add3_operand, int8_operand, cmp_int16_operand,
11985         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
11986         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
11987         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
11988         move_double_src_operand, move_dest_operand,
11989         eqne_comparison_operator, signed_comparison_operator,
11990         extend_operand, small_insn_p, large_insn_p,
11991         conditional_move_operand, carry_compare_operand,
11992         m32r_block_immediate_operand): Move to predicates.md.
11993         (MAX_MOVE_BYTES): Move to m32r.h.
11994         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
11995         * config/m32r/m32r.md: Include predicates.md.
11996         * config/m32r/predicates.md: New.
11998         * config/pa/pa-protos.h: Add prototypes for magic_milli and
11999         shadd_constant_p.
12000         * config/pa/pa.c (reg_or_0_operand, call_operand_address,
12001         symbolic_operand, symbolic_memory_operand,
12002         reg_or_0_or_nonsymb_mem_operand, reg_before_reload_operand,
12003         indexed_memory_operand, move_dest_operand, move_src_operand,
12004         prefetch_cc_operand, prefetch_nocc_operand,
12005         reg_or_cint_move_operand, pic_label_operand, fp_reg_operand,
12006         arith_operand, arith11_operand, pre_cint_operand,
12007         post_cint_operan, arith_double_operand, ireg_or_int5_operand,
12008         ireg_operand, int5_operand, uint5_operand, int11_operand,
12009         uint32_operand, arith5_operand, and_operand, ior_operand,
12010         lhs_lshift_operand, lhs_lshift_cint_operand, arith32_operand,
12011         pc_or_label_operand, div_operand, plus_xor_ior_operator,
12012         shadd_operand, movb_comparison_operator,
12013         cmpib_comparison_operator): Move to predicates.md.
12014         (magic_milli, shadd_constant_p): Make it extern.
12015         * config/pa/pa.h (PREDICATE_CODES): Remove.
12016         * config/pa/pa.md: Include predicates.md.
12017         * config/pa/predicates.md: New.
12019         * config/v850/v850.h (PREDICATE_CODES): Remove a nonexistent
12020         predicate.
12022 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
12024         * hooks.c, hooks.h, intl.c, opts.h, prefix.c, tree-gimple.c,
12025         config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
12026         config/alpha/freebsd.h, config/alpha/linux.h,
12027         config/alpha/netbsd.h, config/alpha/osf5.h,
12028         config/alpha/vms.h, config/arc/arc.c, config/arc/arc.h,
12029         config/h8300/h8300-protos.h, config/h8300/h8300.c,
12030         config/h8300/h8300.h, config/ia64/unwind-ia64.c,
12031         doc/cppopts.texi: Update copyright.
12033 2005-03-18  Jan Hubicka  <jh@suse.cz>
12035         PR middle-end/20225
12036         * cgraph.c (cgraph_mark_reachable_node): Assert that it is not called
12037         too late.
12038         * varasm.c (find_decl_and_mark_needed): Mark needed only when not
12039         called too late.
12041 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
12043         * tree-into-ssa.c (find_idf): Use VEC_quick_push instead of
12044         VEC_safe_push.
12046 2005-03-18  Paolo Bonzini  <bonzini@gnu.org>
12048         * combine.c (gen_binary): Remove.
12049         (known_cond, simplify_shift_const, find_split_point,
12050         combine_simplify_rtx, simplify_if_then_else, simplify_set,
12051         simplify_logical, expand_field_assignment, extract_left_shift,
12052         force_to_mode, if_then_else_cond, apply_distributive_law,
12053         simplify_and_const_int, simplify_shift_const, gen_lowpart_for_combine,
12054         simplify_comparison, reversed_comparison): Replace with
12055         simplify_gen_binary, simplify_gen_relational or
12056         distribute_and_simplify_rtx.
12057         (distribute_and_simplify_rtx): New function.
12059 2005-03-18  Alexey Neyman  <alex.neyman@auriga.ru>
12060             Paolo Bonzini  <gcc.gnu.org>
12062         * calls.c (setjmp_call_p, special_function_p): Update comments
12063         at the head of the functions.
12065 2005-03-18  Jan Hubicka  <jh@suse.cz>
12067         * tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
12069         * cgraph.c (cgraph_remove_node): Avoid loop in code deciding whether
12070         function body should be released; do not proactively release function
12071         bodies in non-unit-at-a-time mode.
12073 2005-03-18  Ralf Corsepius  <ralf.corsepius@rtems.org>
12075         * config/i386/t-rtems-i386 (MULTILIBS): Remove k6, athlon,
12076         mno-fp-ret-in-387 multilib variants.
12078 2005-03-18  Richard Sandiford  <rsandifo@redhat.com>
12080         * common.opt (m): Remove.
12081         * opts.c (handle_option): Pass 'm' options to set_target_switch if
12082         table lookup fails.
12083         (common_handle_option): Remove OPT_m case.
12085 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
12087         * builtins.c (fold_builtin_bitop): Take decomposed arguments
12088         of CALL_EXPR.
12089         (fold_builtin_1): Update a call to fold_builtin_bitop.
12091         * builtins.c (fold_builtin_signbit): Take decomposed arguments
12092         of CALL_EXPR.
12093         (fold_builtin_1): Update a call to fold_builtin_signbit.
12095 2005-03-17  Dorit Naishlos  <dorit@il.ibm.com>
12097         PR tree-optimization/20474
12098         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Check the
12099         size_type of the relevant pointer. Check for COMPLETE_TYPE_P.
12101 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
12103         * config/h8300/h8300-protos.h: Remove prototypes for
12104         general_operand_src, general_operand_dst, single_one_operand,
12105         single_zero_operand, call_insn_operand,
12106         two_insn_adds_subs_operand, small_call_insn_operand,
12107         jump_address_operand, bit_operand, bit_memory_operand,
12108         stack_pointer_operand, const_int_gt_2_operand,
12109         const_int_ge_8_operand, const_int_qi_operand,
12110         const_int_hi_operand, incdec_operand, bit_operator,
12111         nshift_operator, eqne_operator, gtle_operator,
12112         gtuleu_operator, iorxor_operator.
12113         Add prototypes for h8sx_shift_type h8sx_classify_shift and
12114         h8300_ldm_stm_parallel.
12115         * config/h8300/h8300.c (h8sx_shift_type,): Move to
12116         h8300-protos.h.
12117         (SYMBOL_FLAG_FUNCVEC_FUNCTION, SYMBOL_FLAG_EIGHTBIT_DATA,
12118         SYMBOL_FLAG_TINY_DATA): Move to h8300.h.
12119         (h8300_ldm_stm_parallel): Make it extern.
12120         (h8300_ldm_parallel, h8300_stm_parallel,
12121         h8300_return_parallel, general_operand_src,
12122         general_operand_dst, h8300_dst_operand, h8300_src_operand,
12123         nibble_operand, reg_or_nibble_operand, single_one_operand,
12124         single_zero_operand, call_insn_operand,
12125         two_insn_adds_subs_operand, small_call_insn_operand,
12126         jump_address_operand, bit_operand, bit_memory_operand,
12127         stack_pointer_operand, const_int_gt_2_operand,
12128         const_int_ge_8_operand, const_int_qi_operand,
12129         const_int_hi_operand, incdec_operand, eqne_operator,
12130         gtle_operator, gtuleu_operator, iorxor_operator, bit_operator,
12131         h8sx_binary_memory_operator, h8sx_unary_memory_operator,
12132         h8sx_unary_shift_operator, h8sx_binary_shift_operator,
12133         nshift_operator): Move to predicates.md.
12134         * config/h8300/h8300.h (PREDICATE_CODES): Remove.
12135         * config/h8300/h8300.md: Include predicates.md.
12136         * config/h8300/predicates.md: New.
12138 2005-03-17  Richard Henderson  <rth@redhat.com>
12140         * config.gcc (ia64*-*-hpux*): Add extra_options.
12141         * config/ia64/hpux.h (SUBTARGET_SWITCHES): Remove.
12142         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
12143         * config/ia64/ia64.c (ia64_fixed_range_string): Remove.
12144         (ia64_tls_size_string, ia64_tune_string): Remove.
12145         (ia64_tune): Init to PROCESSOR_ITANIUM2.
12146         (TARGET_DEFAULT_TARGET_FLAGS): New.
12147         (TARGET_HANDLE_OPTION): New.
12148         (ia64_override_options): Move options parsing ...
12149         (ia64_handle_option): ... here.  New.
12150         * config/ia64/ia64.h (target_flags, MASK_BIG_ENDIAN, MASK_GNU_AS,
12151         MASK_GNU_LD, MASK_NO_PIC, MASK_VOL_ASM_STOP, MASK_ILP32,
12152         MASK_REG_NAMES, MASK_NO_SDATA, MASK_CONST_GP, MASK_AUTO_PIC,
12153         MASK_INLINE_FLOAT_DIV_LAT, MASK_INLINE_FLOAT_DIV_THR,
12154         MASK_INLINE_INT_DIV_LAT, MASK_INLINE_INT_DIV_THR,
12155         MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR, MASK_DWARF2_ASM,
12156         MASK_EARLY_STOP_BITS, TARGET_BIG_ENDIAN, TARGET_GNU_AS, TARGET_GNU_LD,
12157         TARGET_NO_PIC, TARGET_VOL_ASM_STOP, TARGET_ILP32, TARGET_REG_NAMES,
12158         TARGET_NO_SDATA, TARGET_CONST_GP, TARGET_AUTO_PIC,
12159         TARGET_INLINE_FLOAT_DIV_LAT, TARGET_INLINE_FLOAT_DIV_THR,
12160         TARGET_INLINE_INT_DIV_LAT, TARGET_INLINE_INT_DIV_THR,
12161         TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_INT_DIV, TARGET_INLINE_SQRT_LAT,
12162         TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT, TARGET_DWARF2_ASM,
12163         TARGET_EARLY_STOP_BITS): Remove.
12164         (TARGET_ILP32): Default false.
12165         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS): Remove.
12166         (enum ia64_inline_type): New.
12167         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
12168         * config/ia64/ia64.md: Update for new definitions of
12169         TARGET_INLINE_INT_DIV, TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_SQRT.
12170         * config/ia64/ia64.opt: New file.
12171         * config/ia64/ilp32.opt: New file.
12173 2005-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12175         PR target/18380
12176         * config/ia64/unwind-ia64.c (_Unwind_FindTableEntry): Removed.
12178 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
12180         * config/h8300/h8300.c (h8300_init_once): Use MASK_H8300S_1
12181         instead of MASK_H8300S.
12182         * config/h8300/h8300.h (target_flags, MASK_H8300S, MASK_MAC,
12183         MASK_INT32, MASK_ADDRESSES, MASK_QUICKCALL, MASK_SLOWBYTE,
12184         MASK_NORMAL_MODE, MASK_RELAX, MASK_H8300H, MASK_ALIGN_300,
12185         MASK_H8300SX, TARGET_INT32, TARGET_ADDRESSES,
12186         TARGET_QUICKCALL, TARGET_SLOWBYTE, TARGET_H8300H,
12187         TARGET_H8300XS, TARGET_NORMAL_MODE, TARGET_ALIGN_300,
12188         TARGET_SWITCHES): Remove.
12189         (TARGET_H8300S): Redefine interms of TARGET_H8300S_1 and
12190         TARGET_H8300SX.
12191         * config/h8300/h8300.opt: New.
12193         * config/alpha/alpha.opt, config/arc/arc.opt,
12194         config/h8300/h8300.opt, config/mips/mips.opt: Add copyright
12195         notices.
12197 2005-03-17  Ian Lance Taylor  <ian@airs.com>
12199         * gmon.c: Remove.
12201 2005-03-17  Richard Sandiford  <rsandifo@redhat.com>
12203         * config/arc/arc.c (arc_cpu_string): Make static.  Default to "base"
12204         (arc_text_string, arc_data_string, arc_rodata_string): Make static.
12205         (TARGET_HANDLE_OPTION): Override default.
12206         (arc_handle_option): New function.
12207         (arc_init): Remove code to set arch_cpu_string.
12208         * config/arc/arc.h (target_flags, TARGET_MASK_MANGLE_CPU)
12209         (TARGET_MANGLE_CPU, TARGET_MASK_MANGLE_CPU_LIBGCC)
12210         (TARGET_MANGLE_CPU_LIBGCC, TARGET_MASK_ALIGN_LOOPS, TARGET_ALIGN_LOOPS)
12211         (TARGET_MASK_BIG_ENDIAN, TARGET_BIG_ENDIAN, TARGET_MASK_NO_COND_EXEC)
12212         (TARGET_NO_COND_EXEC, TARGET_SWITCHES, TARGET_DEFAULT)
12213         (SUBTARGET_SWITCHES, arc_cpu_string, arc_text_string, arc_data_string)
12214         (arc_rodata_string, TARGET_OPTIONS): Delete.
12215         * config/arc/arc.opt: New file.
12217 2005-03-17  Richard Henderson  <rth@redhat.com>
12219         * doc/extend.texi (Weak Pragmas): New section.
12220         (attribute alias): Clarify that target must be in the same
12221         translation unit.
12223 2005-03-17  Richard Henderson  <rth@redhat.com>
12225         * config/alpha/alpha.opt: New file.
12226         * config/alpha/alpha.c (alpha_tune): New.  Rename all existing uses
12227         of alpha_cpu.
12228         (alpha_cpu_string, alpha_tune_string, alpha_tp_string,
12229         alpha_fprm_string, alpha_fptm_string): Make static.
12230         (alpha_tls_size_string): Remove.
12231         (alpha_handle_option): New.
12232         (override_options): Update for alpha_cpu/alpha_tune split.
12233         (alpha_file_start): Likewise.
12234         (TARGET_DEFAULT_TARGET_FLAGS): New.
12235         (TARGET_HANDLE_OPTION): New.
12236         * config/alpha/alpha.h (alpha_tune): Declare.
12237         (MASK_FP, MASK_FPREGS, TARGET_FPREGS, MASK_GAS, TARGET_GAS,
12238         MASK_IEEE_CONFORMANT, TARGET_IEEE_CONFORMANT, MASK_IEEE, TARGET_IEEE,
12239         MASK_IEEE_WITH_INEXACT, TARGET_IEEE_WITH_INEXACT, MASK_BUILD_CONSTANTS,
12240         TARGET_BUILD_CONSTANTS, MASK_FLOAT_VAX, TARGET_FLOAT_VAX, MASK_BWX,
12241         TARGET_BWX, MASK_MAX, TARGET_MAX, MASK_FIX, TARGET_FIX, MASK_CIX,
12242         TARGET_CIX, MASK_EXPLICIT_RELOCS, TARGET_EXPLICIT_RELOCS,
12243         MASK_SMALL_DATA, TARGET_SMALL_DATA, MASK_TLS_KERNEL, TARGET_TLS_KERNEL,
12244         MASK_SMALL_TEXT, TARGET_SMALL_TEXT, MASK_LONG_DOUBLE_128,
12245         TARGET_LONG_DOUBLE_128, MASK_CPU_EV5, TARGET_CPU_EV5, MASK_CPU_EV6,
12246         TARGET_CPU_EV6, MASK_SUPPORT_ARCH): Remove.
12247         (TARGET_SWITCHES, TARGET_OPTIONS): Remove.
12248         (TARGET_DEFAULT): Remove MASK_FP.
12249         (TARGET_FP): Redefined based on TARGET_SOFT_FP.
12250         (TARGET_SUPPORT_ARCH): Default on if HAVE_AS_EXPLICIT_RELOCS.
12251         (alpha_cpu_string, alpha_tune_string, alpha_fprm_string,
12252         alpha_fptm_string, alpha_tp_string, alpha_mlat_string,
12253         alpha_tls_size_string): Remove.
12254         * config/alpha/alpha.md (prefetch): Use alpha_cpu.
12255         (attribute tune): Rename from attribute cpu.
12256         * config/alpha/ev4.md: Update to match.
12257         * config/alpha/ev5.md, config/alpha/ev6.md: Likewise.
12258         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove MASK_FP.
12259         * config/alpha/linux.h (TARGET_DEFAULT): Likewise.
12260         * config/alpha/netbsd.h (TARGET_DEFAULT): Likewise.
12261         * config/alpha/osf5.h (TARGET_DEFAULT): Likewise.
12262         * config/alpha/vms.h (TARGET_DEFAULT): Likewise.
12264 2005-03-16  James E. Wilson  <wilson@specifixinc.com>
12266         * config/ia64/ia64.c (issue_nops_and_insn): Check first_insn attribute,
12267         and return without creating new state if before_nops_num is nonzero.
12268         * config/ia64/ia64.md (first_insn): New attribute.
12269         (alloc): Set it to yes.
12271 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
12273         * tree-vectorizer.c (new_vec_stmt_info): Initialize
12274         STMT_VINFO_SUBVARS to NULL.
12275         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
12277 2005-03-16 Dale Johannesen  <dalej@apple.com>
12279         * rtlanal.c (find_first_parameter_load):  Rewrite to
12280         return actual first param load or the call if none,
12281         instead of first in block, when not all loads exist.
12283 2005-03-16  Roger Sayle  <roger@eyesopen.com>
12285         * optabs.c (expand_copysign_absneg): Make static.
12286         * optabs.h (expand_copysign_absneg): Delete prototype.
12287         * config/rs6000/rs6000.md (copysigntf3): Delete pattern.
12289 2005-03-16  Richard Henderson  <rth@redhat.com>
12291         PR middle-end/15700
12292         * varasm.c (struct alias_pair): Rename from struct output_def_pair.
12293         (alias_pairs): Rename from output_defs.
12294         (find_decl_and_mark_needed): Split out from assemble_alias.
12295         (do_assemble_alias): New.
12296         (assemble_output_def): Remove.
12297         (finish_aliases_1, finish_aliases_2): New.
12298         (process_pending_assemble_output_defs): Remove.
12299         (assemble_alias): Defer aliases for which we don't yet have a
12300         non-external decl for the target symbol.
12301         * passes.c (rest_of_decl_compilation): Register variables with cgraph.
12302         * cgraphunit.c (cgraph_finalize_compilation_unit): Use finish_aliases_1.
12303         * toplev.c (compile_file): Use finish_aliases_2 instead of
12304         process_pending_assemble_output_defs.
12305         * tree.h (finish_aliases_1, finish_aliases_2): Declare.
12306         (process_pending_assemble_output_defs): Remove.
12308 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
12310         Fix PR tree-optimization/20489
12312         * tree-ssa-alias.c (push_fields_onto_fieldstack): DTRT
12313         for empty structures.
12315 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
12317         Fix PR tree-optimization/20490
12319         * tree-ssa-pre.c (create_expression_by_pieces): Use
12320         force_gimple_operand on result of fold.
12322 2005-03-16  Andrew Pinski  <pinskia@physics.uc.edu>
12324         * config/i386/emmintrin.h (_mm_extract_epi16): Correct the number
12325         of closing parenthesis.
12327 2005-03-16  Kazu Hirata  <kazu@cs.umass.edu>
12329         * builtins.c (expand_movstr): Update a call to
12330         fold_builtin_strcpy.
12331         (expand_builtin_strncpy): Update a call to
12332         fold_builtin_strncpy.
12333         (fold_builtin_strcpy, fold_builtin_strncpy): Take decomosed
12334         arguments of CALL_EXPR.
12335         (fold_builtin_1): Update calls to fold_builtin_strcpy and
12336         fold_builtin_strncpy.
12337         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
12338         * tree.h: Update the prototypes of fold_builtin_strcpy and
12339         fold_builtin_strncpy.
12341 2005-03-16  Steven Bosscher  <stevenb@suse.de>
12342             Dorit Naishlos  <dorit@il.ibm.com>
12344         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Copy
12345         UNITS_PER_SIMD_WORD to a local variable to avoid a "division by zero"
12346         error.
12348 2005-03-16  Steven Bosscher  <stevenb@suse.de>
12350         * tree-inline.c (walk_type_fields, walk_tree,
12351         walk_tree_without_duplicates): Move from here...
12352         * tree.c: ...to here.
12354 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
12356         * BASE-VER, DATESTAMP, DEV-PHASE: New files.
12357         * Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
12358         (BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
12359         (BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
12360         (version): Define using $(BASEVER_c).
12361         (Makefile, config.status, build/gcov-iov.o): No longer depends on
12362         version.c.
12363         (version.o): Depend on version files; add custom generation command.
12364         (prefix.o): Define BASEVER on command line.
12365         (s-iov): Depend on version files; adjust command.
12366         (TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
12367         Add gcc-vers.texi.
12368         (gcc-vers.texi): New rule.
12369         (doc/%.info, doc/%.dvi): Add -I . to command line.
12370         (doc/gccinstall.dvi): Likewise.
12371         (PACKAGE): Delete.  All uses replaced with "gcc".
12372         * aclocal.m4: Do not include gcc-version.m4.
12373         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
12374         Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
12375         Set is_release based on contents of DEV-PHASE.
12376         Set gcc_version based on contents of BASE-VER.
12377         Define WIN32_REGISTRY_KEY only if the user overrode the default.
12378         * config.in, configure: Regenerate.
12379         * gccbug.in: Determine version of GCC in use at runtime.
12380         * gcov-iov.c: Get version number and development phase from
12381         command line, not by including version.c.
12382         * intl.c: Replace all uses of PACKAGE with "gcc".
12383         * libada-mk.in: Delete unused "gcc_version" variable.
12384         * prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
12385         * version.c: (VERSUFFIX): New hook for redistributors; adjust
12386         commentary to match.
12387         (version_string): Put together from pieces.
12388         * config/alpha/x-vms: Do not use $(gcc_version).
12389         * config/i386/t-nwld: Likewise.
12390         * doc/include/gcc-common.texi: Include gcc-vers.texi for
12391         version-GCC and DEVELOPMENT.
12393 2005-03-15  Roger Sayle  <roger@eyesopen.com>
12395         PR tree-optimization/17454
12396         * tree.c (tree_size): Add case for TREE_BINFO.
12397         * fold-const.c (fold_checksum_tree): Only clear the overloaded
12398         field TYPE_CACHED_VALUES if TYPE_CACHED_VALUES_P is set.
12400 2005-03-15  Roger Sayle  <roger@eyesopen.com>
12402         * optabs.c (expand_doubleword_mult): Avoid clobbering op0 and
12403         op1 whilst expanding the signed widenening multiply variant.
12405 2005-03-15  Richard Sandiford  <rsandifo@redhat.com>
12407         * toplev.c (display_target_options): Avoid unused variable warning if
12408         TARGET_SWITCHES and TARGET_OPTIONS are both undefined.
12409         * config/mips/mips.c (mips_arch_string, mips_tune_string): Make static.
12410         (mips_isa_string, mips_abi_string, mips_fix_vr4130_string): Delete.
12411         (mips_isa): Initialize to MIPS_ABI_DEFAULT.
12412         (mips_isa_info): New variable.
12413         (mips_parse_cpu): Remove the first argument and leave the caller
12414         to report errors.
12415         (TARGET_HANDLE_OPTION): Override default.
12416         (mips_handle_option): New function.  Move option validation code from...
12417         (override_options): ...here.  Update calls to mips_parse_cpu.
12418         * config/mips/mips.h (mips_arch_string, mips_tune_string)
12419         (mips_isa_string, mips_abi_string, TARGET_OPTIONS)
12420         (SUBTARGET_TARGET_OPTIONS): Delete.
12421         * config/mips/mips.opt (mabi=, march=, mflush-func=, mips)
12422         (mno-flush-func, mtune=): New options.
12424 2005-03-15  Roger Sayle  <roger@eyesopen.com>
12425             Richard Henderson  <rth@redhat.com>
12427         * real.c (c4x_single_format, c4x_extended_format): Provide values
12428         for signbit_ro for c4x's single and extended floating point formats.
12429         * optabs.c (expand_copysign): Use the floating point format's
12430         signbit_ro for expanding via expand_copysign_absneg, and it's
12431         signbit_rw field for expanding via expand_copysign_bit.
12433 2005-03-15  Dorit Naishlos  <dorit@il.ibm.com>
12435         * tree-vectorizer.h (unknown_alignment_for_access_p): Replaced by
12436         known_alignment_for_access_p.
12437         (known_alignment_for_access_p): New.
12438         (do_peeling_for_alignment): Field made int instead of bool and renamed
12439         to peeling_for_alignment.
12440         (LOOP_DO_PEELING_FOR_ALIGNMENT): Renamed to LOOP_PEELING_FOR_ALIGNMENT.
12441         * tree-vect-analyze.c (vect_determine_vectorization_factor): New. This
12442         functionality used to be in vect_analyze_operations.
12443         (vect_analyze_operations): Code to determine vectorization factor was
12444         moved to vect_determine_vectorization_factor.
12445         (vect_enhance_data_refs_alignment): Update to correct alignment when it
12446         is known instead of -1.  Set LOOP_PEELING_FOR_ALIGNMENT to peeling
12447         factor.
12448         (vect_analyze_loop): Call vect_determine_vectorization_factor (used to
12449         be part of vect_analyze_operations).
12450         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Use fold when
12451         creating the guard condition, as the number of iterations may be
12452         constant.
12453         (slpeel_tree_peel_loop_to_edge): Use new name of
12454         LOOP_DO_PEELING_FOR_ALIGNMENT. Set it to 0 instead of false.
12455         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Handle known
12456         alignment case more efficiently. Use LOOP_PEELING_FOR_ALIGNMENT.
12457         (vect_do_peeling_for_alignment): Use fold.
12458         (vect_transform_loop): Use new name of LOOP_DO_PEELING_FOR_ALIGNMENT.
12460         (vect_update_inits_of_dr): Renamed to
12461         vect_update_init_of_dr.
12462         (vect_update_inits_of_drs): Use new name of vect_update_inits_of_dr.
12463         (vectorizable_store): Fix assertion to use == instead of =.
12465 2005-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
12467         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't clear
12468         call_used_regs for wCG registers.
12470 2005-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
12472         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
12473         for non-offsettable memory references to cope with outstanding reload
12474         replacements, take 2.
12476 2005-03-15  Uros Bizjak  <uros@kss-loka.si>
12478         PR target/18668
12479         * config/i386/i386.h (x86_fisttp): New.
12480         (TARGET_FISTTP): New macro.
12481         * config/i386/i386.c (x86_fisttp): Set for NOCONA.
12482         (output_fix_trunc): Add fisttp parameter.  Generate fisttp x87
12483         instruction when fisttp flag is set.
12484         * config/i386/i386-protos.h (output_fix_trunc): Change declaration.
12486         * config/i386/i386.md (type attribute): Add fisttp.
12487         (unit attribute): Set to i387 for fisttp type.
12488         (X87MODEF, X87MODEI, SSEMODEF, SSEMODEI24): New mode macros.
12489         (fix_truncxfdi2, fix_truncxfsi2): Generate fisttp patterns for
12490         TARGET_FISTTP.
12491         (fix_truncdfdi2, fix_truncsfdi2, fix_truncdfsi2, fix_truncsfsi2):
12492         Generate fisttp patterns for TARGET_FISTTP. Implement using mode
12493         macros.
12494         (fix_truncxfhi2, fix_truncdfhi2, fix_truncsfhi2): Generate fisttp
12495         patterns for TARGET_FISTTP.  Enable patterns for
12496         (TARGET_FISTTP && !TARGET_SSE_MATH). Implement using mode macros.
12497         (fix_trunc<mode>_i387_fisttp_1, fix_trunc<mode>_i387_fisttp,
12498         fix_trunc<mode>_i387_fisttp_with_temp): New instruction patterns to
12499         implement fisttp x87 insn.
12500         (fix_trunc*_i387_fisttp splitters): New patterns.
12501         (*fix_truncdi_i387, *fix_truncsi_i387, *fix_trunchi_i387):
12502         Rename to *fix_trunc<mode>_i387_1.  Implement using mode macros.
12503         Disable patterns for TARGET_FISTTP.  Add comment about FLAGS_REG
12504         clobber.
12505         (fix_truncdi_memory, fix_truncdi_nomemory, fix_trunchi_nomemory):
12506         Rename to fix_trunc<mode>_i387 and fix_trunc<mode>_i387_with_temp.
12507         Implement using mode macros. Disable patterns for TARGET_FISTTP.
12508         (fix_truncsi_memory, fix_truncsi_nomemory, fix_trunchi_memory,
12509         fix_trunchi_nomemory): Rename to fix_trunc<mode>_i387 and
12510         fix_trunc<mode>_i387_with_temp. Implement using mode macros.
12511         Disable patterns for TARGET_FISTTP.
12512         (fix_trunc*_i387 splitters): Implement usign mode macros.
12513         (fix_truncdfdi_sse, fix_truncsfdi_sse, fix_truncdfsi_sse,
12514         fix_truncsfsi_sse): Disable for (TARGET_FISTTP && !TARGET_SSE_MATH).
12515         (fix_trunx*_sse peephole2s): Implement using mode macros.
12517 2005-03-15  J"orn Rennecke <joern.rennecke@st.com>
12519         PR rtl-optimization/20291
12520         * combine.c (try_combine): If splitting fails, re-try with
12521         original combined pattern, i.e. before clobber stripping.
12523 2005-03-14  Eric Christopher  <echristo@redhat.com>
12525         * config/mips/mips.h (DWARF_CIE_DATA_ALIGNMENT): Change for
12526         STACK_GROWS_DOWNWARD.
12528 2005-03-14  Roger Sayle  <roger@eyesopen.com>
12530         * real.h (struct real_format): Split the signbit field into two
12531         two fields, signbit_ro and signbit_rw.
12532         * real.c (ieee_single_format, mips_single_format, ieee_double_format,
12533         mips_double_format, ieee_extended_motorola_format,
12534         ieee_extended_intel_96_format, ieee_extended_intel_96_round_53_format,
12535         ieee_extended_intel_128_format, ibm_extended_format,
12536         mips_extended_format, ieee_quad_format, mips_quad_format,
12537         vax_f_format, vax_d_format, vax_g_format, i370_single_format,
12538         i370_double_format, c4x_single_format, c4x_extended_format,
12539         real_internal_format): Update initializers for new field.
12540         * builtins.c (expand_builtin_signbit): Use signbit_ro field of the
12541         real_format structure.
12542         * optabs.c (expand_absneg_bit, expand_copysign): Use signbit_rw
12543         field of the real_format structure.
12545 2005-03-14  Daniel Berlin <dberlin@dberlin.org>
12547         Fix PR tree-optimization/20458
12549         * tree-flow-inline.h (mark_call_clobbered): Don't fiddle
12550         DECL_EXTERNAL on STRUCT_FIELD tags.
12551         (clear_call_clobbered): Ditto.
12552         * tree-ssa-operands.c (note_addressable): Make sure the original
12553         variable doesn't slip into the addressable list if we have
12554         subvars.
12555         * tree-tailcall.c (suitable_for_tail_opt_p): Look at STRUCT_FIELD
12556         tags too.
12558 2005-03-14  Geoffrey Keating  <geoffk@apple.com>
12560         * doc/cppopts.texi (-fexec-charset): Add concept index entry.
12561         (-fwide-exec-charset): Likewise.
12562         (-finput-charset): Likewise.
12563         * doc/invoke.texi (Warning Options): Document -Wnormalized=.
12564         * c-opts.c (c_common_handle_option): Handle -Wnormalized=.
12565         * c.opt (Wnormalized): New.
12567 2005-03-14  Devang Patel  <dpatel@apple.com>
12569         * doc/invoke.texi: Add reference to Visibility document.
12571 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
12573         * config.gcc (mips*-*-*): Rename MASK_SPLIT_ADDRS to
12574         MASK_SPLIT_ADDRESSES.
12575         * config/mips/mips.h (target_flags, mips_fix_vr4130_string): Delete.
12576         (MASK_INT64, MASK_LONG64, MASK_SPLIT_ADDR, MASK_NO_FUSED_MADD)
12577         (MASK_EXPLICIT_RELOCS, MASK_MEMCPY, MASK_SOFT_FLOAT)
12578         (MASK_FLOAT64, MASK_ABICALLS, MASK_XGOT, MASK_LONG_CALLS)
12579         (MASK_64BIT, MASK_EMBEDDED_DATA, MASK_BIG_ENDIAN)
12580         (MASK_SINGLE_FLOAT, MASK_MAD, MASK_4300_MUL_FIX, MASK_MIPS16)
12581         (MASK_NO_CHECK_ZERO_DIV, MASK_BRANCHLIKELY)
12582         (MASK_UNINIT_CONST_IN_RODATA, MASK_FIX_R4000, MASK_FIX_R4400)
12583         (MASK_FIX_SB1, MASK_FIX_VR4120, MASK_VR4130_ALIGN)
12584         (MASK_FP_EXCEPTIONS, MASK_DIVIDE_BREAKS, MASK_PAIRED_SINGLE)
12585         (MASK_MIPS3D, MASK_SYM32, MASK_DEBUG, MASK_DEBUG_D)
12586         (MASK_MIPS_TFILE, TARGET_INT64, TARGET_LONG64, TARGET_FLOAT64)
12587         (TARGET_64BIT, TARGET_SPLIT_ADDRESSES, TARGET_DEBUG_MODE)
12588         (TARGET_DEBUG_D_MODE, TARGET_MEMCPY, TARGET_ABICALLS)
12589         (TARGET_XGOT, TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT)
12590         (TARGET_LONG_CALLS, TARGET_EMBEDDED_DATA)
12591         (TARGET_UNINIT_CONST_IN_RODATA, TARGET_BIG_ENDIAN)
12592         (TARGET_SINGLE_FLOAT, TARGET_DOUBLE_FLOAT, TARGET_MAD)
12593         (TARGET_FUSED_MADD, TARGET_4300_MUL_FIX, TARGET_CHECK_ZERO_DIV)
12594         (TARGET_DIVIDE_TRAPS, TARGET_BRANCHLIKELY, TARGET_FIX_SB1)
12595         (TARGET_FIX_R4000, TARGET_FIX_R4400, TARGET_FIX_VR4120)
12596         (TARGET_FIX_VR4130, TARGET_VR4130_ALIGN, TARGET_FP_EXCEPTIONS)
12597         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D, TARGET_SYM32)
12598         (TARGET_EXPLICIT_RELOCS): Delete.
12599         (TARGET_SWITCHES, SUBTARGET_TARGET_SWITCHES): Delete.
12600         (TARGET_OPTIONS): Remove entry for -mfix-vr4130.
12601         * config/mips/mips.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
12602         (override_options): Set MASK_LONG64 if -mint64 is given and no
12603         -mlongXX option is.  Complain about -mint64 -mlong32.
12604         (override_options, CMP_BUILTINS, mips_bdesc, sb1_desc): Rename
12605         MASK_PAIRED_SINGLE to MASK_PAIRED_SINGLE_FLOAT.
12606         * config/mips/mips.opt: New file.
12608 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
12610         * config.gcc (extra_options): New variable for listing option files.
12611         Add ${cpu_type}/${cpu_type}.opt to it if that file exists.
12612         * configure.ac (extra_opt_files): New AC_SUBST variable.
12613         (tm_file_list, tm_include_list): Include options.h first.
12614         * configure: Regenerate.
12615         * Makefile.in (extra_opt_files, ALL_OPT_FILES): New variables.
12616         (s-options): Use $(ALL_OPT_FILES) instead of $(lang_opt_files)
12617         (s-options-h): New rule.
12618         (options.h): Depend on it.
12619         (TEXI_GCCINT_FILES): Add options.texi.
12620         * hooks.h (hook_bool_size_t_constcharptr_int_true): Declare.
12621         * hooks.c (hook_bool_size_t_constcharptr_int_true): New function.
12622         * target.h (gcc_target): Add default_target_flags and handle_option.
12623         * target-def.h (TARGET_DEFAULT_TARGET_FLAGS)
12624         (TARGET_HANDLE_OPTION): New macros.
12625         (TARGET_INITIALIZER): Include them.
12626         * opt-functions.awk (opt_args, nth_arg): New functions.
12627         (switch_flags): Handle the "Target" flag.
12628         (var_args): Delete.
12629         (var_name): Use opt_args and nth_arg.
12630         (var_set, var_ref): Likewise.  Handle "Mask" and "InverseMask".
12631         * opth-gen.awk: Declare target_flags.  Declare MASK_* and TARGET_*
12632         macros for the "Mask" and "InverseMask" options.
12633         * opts.h (cl_var_cond): New enum.
12634         (cl_option): Replace the "has_set_value" and "set_value" fields with
12635         "var_cond" and "var_value".
12636         (CL_TARGET): New macro.
12637         (option_enabled, print_filtered_help): Declare.
12638         (decode_options): Move definition.
12639         * opts.c (handle_option): Search for the original option before
12640         removing any "no-" prefix.  Handle CL_TARGET.  Adjust for the new
12641         var_cond and var_value fields.  Use targetm.handle_option to handle
12642         target options.
12643         (decode_options): Set target_flags to targetm.default_target_flags.
12644         (print_filtered_help): Make global.  Handle CL_TARGET.
12645         (option_enabled): New function.
12646         * toplev.c (target_switches): Guard with #ifdef TARGET_SWITCHES.
12647         (display_target_options, set_target_switch, print_switch_values)
12648         (default_pch_valid_p): Guard uses of target_switches with
12649         #ifdef TARGET_SWITCHES.  Also...
12650         (display_target_options): Display the CL_TARGET entries in cl_options.
12651         (set_target_option): Don't complain about the "" option when
12652         TARGET_SWITCHES is undefined.
12653         (print_switch_values): Use option_enabled.
12654         (default_pch_valid_p): Check cl_options[] when looking for something
12655         that has changed the value of target_flags.
12656         * c.opt: Remove documentation from top of file.
12657         * doc/gccint.texi: Add an "Options" chapter.  Include options.texi.
12658         * doc/sourecebuild.texi: Refer to the new options documentation
12659         instead of c.opt.  Document machine-specific .opt files.
12660         * doc/tm.texi (target_flags): Say that this variable is declared
12661         by options.h.
12662         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Document.
12663         (TARGET_SWITCHES, TARGET_OPTIONS): Refer to the option files as
12664         an alternative.
12665         * doc/options.texi: New file.
12667 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
12669         PR middle-end/18628
12670         * cse.c (fold_rtx_mem): Don't fold a load from a jumptable into a
12671         register.
12673 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
12675         PR c++/20280
12676         * gimplify.c (gimplify_cond_expr): Add fallback argument.  Use a
12677         temporary variable of pointer type if an lvalues is required.
12678         (gimplify_modify_expr_rhs): Request an rvalue from it.
12679         (gimplify_expr): Pass fallback on.
12681 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
12683         * cfgbuild.c: Update comments.
12685 2005-03-14  Roger Sayle  <roger@eyesopen.com>
12687         PR rtl-optimization/17236
12688         * optabs.c (expand_doubleword_mult): New helper function split out
12689         from expand_binop.  Permute the order in which instructions are
12690         emitted to minimize the number of simultaneously live registers.
12691         (expand_binop): Call expand_doubleword_mult to synthesize a double
12692         word multiplication.
12694 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
12696         * basic-block.h: Update the prototypes of cached_make_edge and
12697         rtl_make_eh_edge.
12698         * cfg.c (cached_make_edge): Take edge_cache representing one
12699         row of the adjacency matrix of edges.
12700         * cfgbuild.c (make_label_edge, rtl_make_eh_edge): Likewise.
12701         (make_edges): Initialize edge_cache to represent one row of
12702         the adjacency matrix of edges.
12704 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
12706         * tree-ssa-phiopt.c (minmax_replacement, blocks_in_phiopt_order):
12707         New functions.
12708         (tree_ssa_phiopt): Use blocks_in_phiopt_order and minmax_replacement.
12709         Remove unused removed_phis variable.
12710         (conditional_replacement): Use build1/build2.
12711         (abs_replacement): Use last_and_only_stmt and build1/build2.
12713 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
12715         * builtin-attrs.def (ATTR_NOVOPS, ATTR_NOVOPS_LIST,
12716         ATTR_PURE_NOTHROW_NOVOPS_LIST): New.
12717         * builtins.def (ATTR_MATHFN_FPROUNDING): Use NOVOPS.
12718         (BUILT_IN_PREFETCH): Set the NOVOPS attribute.
12719         * c-common.c (handle_novops_attribute): New function.
12720         (c_common_attribute_table): Add "no vops" entry.
12721         * c-decl.c (merge_decls): Copy DECL_IS_NOVOPS.
12722         * calls.c (flags_from_decl_or_type): Set ECF_NOVOPS.
12723         * tree-ssa-operands.c (get_call_expr_operands): Do not
12724         create virtual operands for calls with ECF_NOVOPS flag.
12725         * tree.h (DECL_IS_NOVOPS): New macro.
12726         (struct tree_decl): Add novops_flag.
12727         (ECF_NOVOPS): New constant.
12729 2005-03-14  Uros Bizjak  <uros@kss-loka.si>
12731         PR target/17688
12732         * config/i386/i386.c (x86_use_himode_fiop): New.
12733         (x86_use_simode_fiop): Rename from x86_use_fiop.
12734         * config/i386/i386.h (x86_use_himode_fiop): Declare.
12735         (TARGET_USE_HIMODE_FIOP): New.
12736         (x86_use_simode_fiop): Rename from x86_use_fiop.
12737         (TARGET_USE_SIMODE_FIOP): Rename from TARGET_USE_FIOP.
12739         * config/i386/i386.md (X87MODEI12): New mode macro define.
12740         (*cmpfp_<mode>): Rename from *cmpfp_si.  Use X87MODEI12 mode macro
12741         to implement x87 FP compare with HImode input operands.
12742         (*fp_jcc_8<mode>_387, splitter): Rename from *fp_jcc_8_387.
12743         Use X87MODEI12 mode macro to handle HImode input operands.
12744         (*fop_sf_2<mode>_i387, *fop_sf_3<mode>_i387, *fop_df_2<mode>_i387,
12745         *fop_df_3<mode>_i387, *fop_xf_2<mode>_i387, *fop_xf_3<mode>_i387):
12746         Renamed from *fop_sf_2_i387, *fop_sf_3_i387, *fop_df_2_i387,
12747         *fop_df_3_i387, *fop_xf_2_i387, *fop_xf_3_i387. Use X87MODEI12 mode
12748         macro to implement x87 operators with HImode input operands.
12749         (fop splitters): Use X87MODEI12 mode macro to handle HImode
12750         input operands.
12752 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
12754         * tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
12755         integer_zerop.
12756         * tree-gimple.c (is_gimple_min_invariant): Consider overflowed
12757         constants invariant.
12759 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
12761         * basic-block.h (BB_VISITED): Removed.
12762         * cfganal.c (dfs_enumerate_from): Do not use BB_VISITED flag.
12764 2005-03-14  Falk Hueffner  <falk@debian.org>
12766         PR bootstrap/20424
12767         * config/alpha/alpha.c (alpha_fold_builtin_cmpbge): Fix typo.
12769 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
12771         * ggc-zone.c: Fix comment typos.
12773         * alloc-pool.c, except.h, ggc-common.c, ggc-zone.c, ggc.h,
12774         stringpool.c, config/mips/mips-protos.h: Update copyright.
12776 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
12778         * config/rs6000/rs6000-protos.h: Replace "struct rtx_def *"
12779         throughout with its typedef, "rtx".
12780         * config/rs6000/rs6000.c: Likewise.  Formatting fixes.
12781         (rs6000_tls_symbol_ref_1): Remove inline keyword.
12782         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Formatting.  Reorder
12783         regs in comment to match code.
12785 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
12787         * except.c (check_handled): Make it static.
12788         * except.h: Remove the corresponding prototype.
12790         * function.c (get_func_frame_size): Make it static.
12791         * function.h: Remove the corresponding type.
12793         * regclass.c (reg_class_superclasses, reg_class_subclasses):
12794         Make them static.
12795         * hard-reg-set.h: Remove the corresponding declarations.
12797         * tree-cfg.c (verify_stmts): Check that
12798         bb_for_stmt (stmt) == bb for every PHI node and statement.
12800 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
12802         * config.gcc: Remove excess indentation.
12803         (powerpc*-*-*, rs6000-*-*): Accept --with-cpu/tune power5 and 8548.
12805 2005-03-13  Roger Sayle  <roger@eyesopen.com>
12807         PR middle-end/19331
12808         * tree.c (get_unwidened): Treat CONVERT_EXPR and NOP_EXPR identically.
12809         * fold-const.c (fold_sign_changed_comparison): Likewise.
12810         (fold_binary): Optimize comparisons against widened operands if
12811         the extension is represented by a CONVERT_EXPR, same as a NOP_EXPR.
12813 2005-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
12815         * config/sparc/sparc.c (struct_value_alias_set): New global variable.
12816         (sparc_override_options): Initialize it.
12817         (sparc_struct_value_rtx): Set it on the MEM to be returned.
12819 2005-03-13  David Edelsohn  <edelsohn@gnu.org>
12821         * config/rs6000/predicates.md (mem_or_easy_const_operand): Delete.
12822         (reg_or_none500mem_operand): New predicate.
12823         (zero_reg_mem_operand): New predicate.
12824         * config/rs6000/rs6000.md (extendsfdf2): Change operand1 predicate
12825         to reg_or_none500mem_operand.
12826         (extendsfdf2_fpr): Add MEM alternative.
12827         (extenddftf2_internal): Change operand2 predicate to
12828         zero_reg_mem_operand.
12830 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
12832         * ggc-zone.c: Rewritten.
12834         * alloc-pool.c (dump_alloc_pool_statistics): Don't print statistics
12835         if there are none.
12836         * configure.ac: Define GGC_ZONE for --with-gc=zone.
12837         * config.in: Regenerated.
12838         * configure: Regenerated.
12839         * gengtype.c (write_types_process_field, write_func_for_structure):
12840         Pass new argument to gt_pch_note_object.
12841         * ggc-common.c (struct ptr_data): Add TYPE.
12842         (gt_pch_note_object): Take TYPE argument and save it.
12843         (call_count): Update call to ggc_pch_count_object.
12844         (call_alloc): Update call to ggc_pch_alloc_object.
12845         (gt_pch_save): Call ggc_pch_prepare_write after paddng the PCH
12846         file.
12847         * ggc-none.c (rtl_zone, garbage_zone, ggc_alloc_zone_stat): Delete.
12848         * ggc-page.c (rtl_zone, tree_zone, garbage_zone)
12849         (ggc_alloc_zone_stat): Delete.
12850         (ggc_pch_count_object, ggc_pch_alloc_object): Add TYPE argument.
12851         * ggc.h (gt_pch_note_object, ggc_pch_count_object)
12852         (ggc_pch_alloc_object): Update prototypes.
12853         (garbage_zone): Delete.
12854         (tree_zone, rtl_zone, ggc_alloc_zone_stat, ggc_alloc_zone): Move to
12855         GGC_ZONE conditional.  Update.  Change tree_zone and rtl_zone into
12856         pointers.
12857         (tree_id_zone): New variable.
12858         (ggc_alloc_cleared_zone): Remove unused.
12859         (ggc_alloc_zone): Define.
12860         (ggc_alloc_rtvec, ggc_alloc_tree): Update to use ggc_alloc_zone.
12861         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Use
12862         ggc_alloc_zone_stat.
12863         * stringpool.c (gt_pch_n_S): Update call to gt_pch_note_object.
12864         * tree.c (copy_node_stat, make_tree_binfo_stat, make_tree_vec_stat)
12865         (tree_cons_stat, build1_stat): Update call to ggc_alloc_zone_stat.
12866         (make_node_stat): Likewise.  Use tree_id_zone.
12868 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
12869             Joseph S. Myers  <joseph@codesourcery.com>
12871         * configure.ac: Check for MIPS TLS.
12872         * configure: Regenerated.
12873         * config/mips/mips-protos.h (enum mips_symbol_type): Add
12874         SYMBOL_TLS, SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL,
12875         SYMBOL_GOTTPREL, and SYMBOL_TPREL.
12876         * config/mips/mips.c (mips_regno_to_class): Handle V1_REG.
12877         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
12878         (mips_classify_symbol, mips_symbolic_constant_p)
12879         (mips_symbolic_address_p, mips_symbol_insns): Handle TLS symbols.
12880         (mips_tls_operand_p, mips_call_tls_get_addr)
12881         (mips_legitimize_tls_address, mips_cannot_force_const_mem)
12882         (mips_tls_symbol_ref_1): New functions.
12883         (mips_legitimize_address, mips_legitimize_const_move): Call
12884         mips_legitimize_tls_address.
12885         (override_options): Handle V1_REG and TLS symbols.  Disable TLS
12886         for MIPS16.
12887         * config/mips/mips.h (enum reg_class, REG_CLASS_NAMES)
12888         (REG_CLASS_CONTENTS, GR_REG_CLASS_P): Include V1_REG.
12889         (mips_char_to_class): Document V1_REG.
12890         (HAVE_AS_TLS): Provide default.
12891         * config/mips/mips.md (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): New
12892         constants.
12893         (load_got<mode>): Renamed from *load_got<mode>.  Allow when
12894         !TARGET_ABICALLS.
12895         (tls_get_tp_<mode>): New instruction.
12897 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
12899         * configure.ac: Update checks for target tools.
12900         * configure: Regenerated.
12902 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
12904         * varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic.
12906 2005-03-13  Roger Sayle  <roger@eyesopen.com>
12908         * expmed.c (expand_mult): Use synthetic multiplication sequences for
12909         more classes of DImode multiplication by constant.  Allow both
12910         multiplication by small negative constants (by performing a
12911         multiplication by a positive constant and negating the result) and
12912         multiplications by large powers of two, by using a left shift.
12914 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
12916         * tree-into-ssa.c (find_idf): Speed up by putting the indexes
12917         of basic blocks into work_stack.
12919         * builtin-attrs.def, c-lex.c, c-pragma.h, reg-stack.c,
12920         config/mips/vr.h: Update copyright.
12922         * c-decl.c (c_init_decl_processing): Remove useless calls to
12923         build_function_type.
12925         * builtins.c (fold_trunc_transparent_mathfn,
12926         fold_fixed_mathfn, fold_builtin_atan, fold_builtin_trunc,
12927         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
12928         fold_builtin_lround, fold_builtin_bitop, fold_builtin_memcpy,
12929         fold_builtin_strcpy, fold_builtin_strncpy,
12930         fold_builtin_signbit): Use TYPE (TYPE (fndecl)) instead of
12931         TREE_TYPE (exp).
12933         * builtins.c (expand_builtin_mathfn_3): Remove local variable
12934         before_call.
12936         * lambda-code.c (lambda_compute_auxillary_space): Remove local
12937         variable determinant.
12939         * tree-cfg.c (group_case_labels): Remove local variable type.
12941         * tree-ssa-live.c (build_tree_conflict_graph): Remove local
12942         variable ann.
12944         * tree-ssa-phiopt.c (value_replacement): Remove local variable
12945         result.
12947 2005-03-13  Andy Hutchinson  <HutchinsonAndy@netscape.net>
12949         PR target/18251
12950         * config/avr/avr.md (movmemhi): Rewrite as RTL loop.
12951         (*movmemqi_insn): Delete.
12952         (*movmemhi): Delete.
12954 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
12956         * builtins.c (fold_builtin_classify): Take decomposed
12957         arguments of CALL_EXPR.
12958         (fold_builtin_1): Update a call to fold_builtin_classify.
12960 2005-03-13  Joseph S. Myers  <joseph@codesourcery.com>
12962         PR c/20402
12963         * c-parser.c (c_parser_struct_or_union_specifier): Don't fall
12964         through into call to parser_xref_tag after parse error.
12965         (c_parser_struct_declaration): Consistently return NULL_TREE on
12966         error.
12968 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
12970         * tree-flow-inline.h (ref_contains_array_ref): New function.
12971         (lookup_subvars_for_var): Ditto.
12972         (get_subvars_for_var): Ditto.
12973         (var_can_have_subvars): Ditto.
12975         * tree-flow.h (mem_tag_kind): Add STRUCT_FIELD.
12976         (struct subvar): New type.
12978         * tree-dfa.c (okay_component_ref_for_subvars): New function.
12980         * tree-optimize.c (init_tree_optimization_passes): Call
12981         pass_create_structure_vars.
12983         * tree-ssa-alias.c: Include vec.h.
12984         (init_alias_info): Don't auto-clear call clobbered on struct-field
12985         tags.
12986         (compute_flow_insensitive_aliasing): Handle subvars.
12987         (group_aliases): Handle STRUCT_FIELD aliases.
12988         (setup_pointers_and_addressables): Ditto.
12989         Don't mark variables non-addressable if they still have
12990         addressable subvars.
12991         Also mark subvars addressable when the real variable is marked
12992         addressable.
12993         (add_pointed_to_var): Try to prune the pointed-to set by only
12994         pointing to subvars when possible.
12995         Otherwise, make sure we set addresses_needed and pt_vars to
12996         properly include subvars.
12997         (bitpos_of_field): New function.
12998         (push_fields_onto_fieldstack): Ditto.
12999         (get_or_create_used_part_for): Ditto.
13000         (create_overlap_variables_for): Ditto.
13001         (find_used_portions): Ditto.
13002         (create_structure_vars): Ditto.
13003         (pass_create_structure_vars): New structure.
13005         * tree-ssa-operands.c (finalize_ssa_v_must_defs): Remove assert.
13006         (get_expr_operands): Handle subvars.  Also try to turn
13007         COMPONENT_REF accesses into must-defs now that we can accurately
13008         portray it.
13009         (note_addressable): Try to only mark as addressable those subvars
13010         we know a COMPONENT_REF touches.
13011         (overlap_subvar): New function.
13013         * tree-vect-analyze.c (vect_object_analysis): Add new parameter.
13014         Handle subvar storing.
13015         (vect_address_analysis): Update caller of vect_object_analysis.
13017         * tree-vect-transform.c (vect_create_data_ref_ptr): Copy subvars.
13019         * tree-vectorizer.h (struct _stmt_vec_info): Add subvars member.
13020         (STMT_VINFO_SUBVARS): New macro.
13022         * common.opts: add flag_tree_salias.
13024         * opts.c (decode_options): flag_tree_salias defaults to on.
13026         * doc/invoke.texi: Document fdump-tree-svars and -ftree-salias.
13028         * doc/tree-ssa.texi: Document structural alias analysis.
13030 2005-03-12  Steven Bosscher  <stevenb@suse.de>
13032         * tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node.
13033         * tree-ssa-dce.c (mark_stmt_necessary): Don't check for it.
13034         * tree-ssa-operands.c (get_expr_operands): Likewise.
13035         (get_expr_operands): Likewise for ERROR_MARK.
13037 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
13039         * tree-ssa.c (kill_redundant_phi_nodes): Remove local variable
13040         var.
13042         * tree-ssa-phiopt.c (tree_ssa_phiopt): Remove local variable
13043         removed_phis.
13045         * tree-ssa-pre.c (compute_avail): Remove local variable val.
13046         (mark_operand_necessary): Remove local variable ver.
13048         * tree-vect-transform.c (vect_get_new_vect_var): Remove local
13049         variable prefix_len.
13051         * value-prof.c (mod_subtract_transform): Remove local variable
13052         value.
13054         * builtins.c (fold_builtin_exponent): Take decomposed
13055         arguments of CALL_EXPR.
13056         (fold_builtin_1): Update a call to fold_builtin_exponent.
13058         * builtins.c (fold_builtin_logarithm): Take decomposed
13059         arguments of CALL_EXPR.
13060         (fold_builtin_1): Update a call to fold_builtin_logarithm.
13062         * c-decl.c (c_init_decl_processing): Remove local variables
13063         ptr_ftype_void and ptr_ftype_ptr.
13065         * gimplify.c (gimplify_expr): Remove local variables r0 and
13066         r1.
13068         * reg-stack.c (move_for_stack_reg): Remove local variable
13069         push_insn.
13070         (compare_for_stack_reg): Remove local variable flags_user.
13071         (convert_regs_1): Remove local variable deleted.
13073         * tree-if-conv.c (tree_if_convert_cond_expr): Remove local
13074         variable new_cond.
13075         (combine_blocks): Remove local variables exits and new_e.
13077         * tree-inline.c (expand_call_inline): Remove local variable
13078         decl.
13080         * tree-ssa-live.c (create_ssa_var_map,
13081         calculate_live_on_entry): Remove local variable snn.
13083 2005-03-12  Geoffrey Keating  <geoffk@apple.com>
13085         * c-lex.c (c_lex_with_flags): Add parameter to call to
13086         cpp_spell_token.
13088 2005-03-11  Per Bothner  <per@bothner.com>
13090         * c-tree.h (struct c_declarator): New id_loc field.
13091         * c-pragma.h (c_lex_with_flags): Take position reference.
13092         * c-lex.c (c_lex_with_flags): Set passed-in location from cpp token,
13093         iff USE_MAPPED_LOCATION. (Type doesn't match otherwise.)
13094         (c_lex): Pass dummy location to c_lex_with_flags.
13095         * c-parser.c (c_lex_one_token): Set c_token's location using
13096         c_lex_with_flags, instead of input_location, which might be "ahead".
13097         (c_parser_direct_declarator): Set declarator's id_loc from
13098         c_token's id_loc.
13099         * c-decl.c (grokdeclarator): Set DECL_SOURCE_LOCATION from
13100         declarator's id_loc, rather than probably-imprecise input_location.
13101         (build_id_declarator): Initialize c_declarator's id_loc field.
13103 2005-03-11  Roger Sayle  <roger@eyesopen.com>
13105         PR middle-end/20419
13106         * builtins.c (expand_builtin_signbit): Force the signbit's word
13107         into an integer register to avoid SUBREGs of floating point modes.
13109 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
13111         * cfglayout.c, loop-doloop.c, profile.c, target-def.h,
13112         target.h, targhooks.c, tracer.c, tree-ssa-loop-ch.c,
13113         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, vec.c, vmsdbgout.c,
13114         config/m32r/m32r.md, config/xtensa/xtensa.h: Update copyright.
13116 2005-03-11  David Edelsohn  <edelsohn@gnu.org>
13118         PR rtl-optimization/20306
13119         * expr.c (emit_move_complex): Set try_int false if mode is
13120         MODE_COMPLEX_FLOAT and mov_optab exists for inner mode.  Only try
13121         emit_block_move if try_int is true.
13123 2005-03-11  Richard Henderson  <rth@redhat.com>
13125         PR target/20415
13126         * config/i386/mmx.md (vec_dupv4hi): Fix predicate.
13127         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Update
13128         to match.
13130 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
13132         * config/mips/mips.h (mips_fix_vr4130_string): Declare.
13133         (TARGET_FIX_VR4130): New macro.
13134         (TARGET_OPTIONS): Add -mfix-vr4130.
13135         (ISA_HAS_MACCHI): New macro.
13136         (ASM_SPEC): Add -mfix-vr4130.
13137         * config/mips/mips.c (mips_fix_vr4130_string): New variable.
13138         (override_options): Handle mips_fix_vr4130_string.
13139         (mips_avoid_hazards): Clear all_noreorder_p
13140         if we're working around VR4130 errata and the macc alternatives
13141         are not available.
13142         * config/mips/mips.md (mfhilo_<mode>): Turn into a define_expand.
13143         (*mfhilo_<mode>, *mfhilo_<mode>_macc): New insns.
13144         * config/mips/vr.h (DEFAULT_VR_ARCH): Set to mfix-vr4130.
13145         (MULTILIB_DEFAULTS): Remove leading "march=".
13146         (DRIVER_SELF_SPECS): Likewise.  Make -mfix-vr4130 imply -march=vr4130
13147         if no architecture option is given.
13148         * config/mips/t-vr (MULTILIB_OPTIONS): Use -mfix-vr4130 for the
13149         VR4130 multilibs.
13150         (MULTILIB_MATCHES): Map -march=vr4130 to the -mfix-vr4130 multilibs.
13151         * doc/invoke.texi: Document -mfix-vr4130.
13153 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
13155         * config/mips/mips.c (override_options): Only warn about -mint64
13156         deprecation if TARGET_INT64.
13158 2005-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13160         * builtin-attrs.def (ATTR_NONNULL_LIST, ATTR_NOTHROW_NONNULL,
13161         ATTR_CONST_NOTHROW_NONNULL, ATTR_PURE_NOTHROW_NONNULL,
13162         ATTR_MALLOC_NOTHROW_NONNULL): New "nonnull" attribute lists which
13163         are non-specific regarding the nonnull parameter positions.
13164         (ATTR_NONNULL_1_2, ATTR_NONNULL_1_4, ATTR_NOTHROW_NONNULL_1_2,
13165         ATTR_NOTHROW_NONNULL_1_4, ATTR_CONST_NOTHROW_NONNULL_1,
13166         ATTR_PURE_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1_2,
13167         ATTR_MALLOC_NOTHROW_NONNULL_1): Delete.
13169         * builtins.def: Use the non-specific "nonnull" attibute lists.
13171 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
13173         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
13174         single_pred_edge, single_succ, single_pred): Improve comments.
13176 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
13178         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
13179         single_pred_edge, single_succ, single_pred): New inline functions.
13180         * bb-reorder.c (rotate_loop, find_traces_1_round,
13181         add_labels_and_missing_jumps, fix_up_fall_thru_edges,
13182         duplicate_computed_gotos): Use the single_succ/pred functions.
13183         * cfganal.c (forwarder_block_p): Ditto.
13184         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
13185         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
13186         outgoing_edges_match, try_crossjump_to_edge, try_optimize_cfg,
13187         merge_seq_blocks): Ditto.
13188         * cfghooks.c (split_edge, tidy_fallthru_edges): Ditto.
13189         * cfglayout.c (fixup_reorder_chain): Ditto.
13190         * cfgloop.c (mark_single_exit_loops, update_latch_info,
13191         canonicalize_loop_headers, verify_loop_structure): Ditto.
13192         * cfgloopmanip.c (remove_path, unloop, loop_delete_branch_edge,
13193         mfb_update_loops, create_preheader, force_single_succ_latches,
13194         create_loop_notes): Ditto.
13195         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
13196         force_nonfallthru_and_redirect, rtl_tidy_fallthru_edge,
13197         commit_one_edge_insertion, purge_dead_edges,
13198         cfg_layout_can_merge_blocks_p): Ditto.
13199         * except.c (sjlj_emit_function_enter): Ditto.
13200         * flow.c (init_propagate_block_info): Ditto.
13201         * function.c (thread_prologue_and_epilogue_insns): Ditto.
13202         * gcse.c (find_implicit_sets, bypass_conditional_jumps,
13203         insert_insn_end_bb): Ditto.
13204         * ifcvt.c (merge_if_block, find_if_block, find_if_case_1,
13205         find_if_case_2): Ditto.
13206         * lambda-code.c (perfect_nestify): Ditto.
13207         * lcm.c (optimize_mode_switching): Ditto.
13208         * loop-doloop.c (doloop_modify): Ditto.
13209         * loop-init.c (loop_optimizer_init): Ditto.
13210         * loop-iv.c (simplify_using_initial_values): Ditto.
13211         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
13212         * loop-unswitch.c (unswitch_loop): Ditto.
13213         * modulo-sched.c (generate_prolog_epilog): Ditto.
13214         * predict.c (combine_predictions_for_insn, estimate_probability,
13215         tree_estimate_probability, last_basic_block_p,
13216         estimate_bb_frequencies): Ditto.
13217         * profile.c (branch_prob): Ditto.
13218         * regrename.c (copyprop_hardreg_forward): Ditto.
13219         * sched-rgn.c (is_cfg_nonregular, find_rgns, update_live): Ditto.
13220         * tracer.c (layout_superblocks): Ditto.
13221         * tree-cfg.c (tree_can_merge_blocks_p, tree_merge_blocks,
13222         cfg_remove_useless_stmts_bb, cleanup_control_flow,
13223         cleanup_control_expr_graph, disband_implicit_edges,
13224         tree_find_edge_insert_loc, bsi_commit_edge_inserts,
13225         tree_verify_flow_info, tree_make_forwarder_block,
13226         tree_forwarder_block_p, remove_forwarder_block,
13227         remove_forwarder_block_with_phi, merge_phi_nodes): Ditto.
13228         * tree-if-conv.c (tree_if_conversion): Ditto.
13229         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
13230         * tree-ssa-dce.c (remove_dead_stmt): Ditto.
13231         * tree-ssa-dom.c (dom_opt_finalize_block): Ditto.
13232         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
13233         copy_loop_headers): Ditto.
13234         * tree-ssa-loop-im.c (loop_commit_inserts): Ditto.
13235         * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Ditto.
13236         * tree-ssa-loop-manip.c (split_loop_exit_edge, ip_normal_pos,
13237         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Ditto.
13238         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Ditto.
13239         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Ditto.
13240         * tree-ssa-phiopt.c (tree_ssa_phiopt, value_replacement): Ditto.
13241         * tree-ssa-pre.c (compute_antic_aux, insert_aux, init_pre): Ditto.
13242         * tree-ssa-threadupdate.c (redirect_edges): Ditto.
13243         * tree-tailcall.c (independent_of_stmt_p, find_tail_calls,
13244         eliminate_tail_call, tree_optimize_tail_calls_1): Ditto.
13245         * tree-vect-analyze.c (vect_analyze_loop_form): Ditto.
13246         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
13247         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard,
13248         slpeel_add_loop_guard): Ditto.
13250 2005-03-11  James A. Morrison  <phython@gcc.gnu.org>
13252         PR tree-optimization/15784
13253         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
13254         and -1 - A to ~A.
13256         * stmt.c (expand_case): Don't change index_type.  Convert minval
13257         to the proper type.
13259         PR tree-optimization/20130
13260         * fold-const.c (fold): Fold x * -1 into -x.
13262 2005-03-11  Kaz Kojima  <kkojima@gcc.gnu.org>
13264         PR rtl-optimization/20331
13265         * rtlanal.c (modified_between_p): Check its address first for MEM.
13266         (modified_in_p): Likewise.
13268 2005-03-11  Joseph S. Myers  <joseph@codesourcery.com>
13270         * config.gcc (hppa*64*-*-hpux11*): Use pa/t-hpux-shlib.
13272 2005-03-10  Steven Bosscher  <stevenb@suse.de>
13274         * expr.c (expand_expr_real_1): If possible, use a conditional
13275         move for expanding MIN_EXPR and MAX_EXPR.
13276         Use temp for moving around rtx-en.
13278 2005-03-10  Andrew Pinski  <pinskia@physics.uc.edu>
13280         PR rtl-opt/20412
13281         * simplify-rtx.c (simplify_relational_operation_1): Fix typo - check the
13282         correct mode.
13284 2005-03-10  Roger Sayle  <roger@eyesopen.com>
13286         * builtins.c (expand_builtin_signbit): Extend to handle floating
13287         point modes wider than the largest integer type, using the
13288         operand_subword_force function to obtain the signbit's word.
13290 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
13292         PR target/20322
13293         * combine.c (try_combine): If recog_for_combine added CLOBBERs
13294         to NEWI2PAT, fail to combine if they are used by NEWPAT.
13296 2005-03-10  Aldy Hernandez  <aldyh@redhat.com>
13298         * doc/invoke.texi: Add 8540 to list of cpus in rs6000 cpu section.
13300 2005-03-10  Kazu Hirata  <kazu@cs.umass.edu>
13302         * tree-outof-ssa.c (analyze_edges_for_bb): Make the return
13303         type void.
13304         (perform_edge_inserts): Unconditionally call
13305         free_dominator_info.
13307         * tree-outof-ssa.c (analyze_edges_for_bb): Update a comment.
13309 2005-03-10  Bob Wilson  <bob.wilson@acm.org>
13311         * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Define.
13313 2005-03-10  Nathan Sidwell  <nathan@codesourcery.com>
13315         * bitmap.c (bitmap_copy): Remove manual loop unrolling.
13317         * value-prof.c (rtl_find_values_to_profile): Use gcc_assert and
13318         gcc_unreachable.
13319         (rtl_register_value_prof_hooks,
13320         tree_value_profile_transformations,
13321         tree_register_value_prof_hooks): Likewise.
13322         * var-tracking.c (stack_adjust_offset_pre_post,
13323         variable_htab_free, variable_union, dataflow_set_different_2,
13324         count_uses, variable_was_changed, set_frame_base_location,
13325         set_variable_part, emit_note_insn_var_location, vt_emit_notes,
13326         vt_add_function_parameters): Likewise.
13327         * varasm.c (named_section_real, named_section, make_decl_rtl,
13328         asm_emit_uninitialised, assemble_integer, decode_addr_const,
13329         const_hash_1, compare_constant, copy_constant, force_const_mem,
13330         output_constant_pool_2, output_constant_pool_1, output_constant,
13331         output_constructor, make_decl_one_only, decl_tls_model,
13332         default_no_named_section, default_elf_select_section_1,
13333         default_unique_section_1): Likewise.
13334         * vec.c (vec_gc_o_reserve, vec_heap_o_reserve): Likewise.
13335         * vmsdbgout.c (addr_const_to_string): Likewise.
13337         PR c++/20375
13338         * function.c (struct assign_parm_data_one): Remove last_named
13339         field.
13340         (assign_parm_find_data_types): Don't determine last_named.
13341         Reorder named_parm determination.
13342         (assign_parms): Only setup varargs on the last non-varadic
13343         parameter.
13345 2005-03-10  Kazuhiro Inaoka  <inaoka.lazuhiro@renesas.com>
13347         * config/m32r/m32r.md (load_sda_base_32): New pattern.  Loads
13348         sda base address on medium model.
13350 2005-03-10  Zdenek Dvorak  <dvorakz@suse.cz>
13352         * Makefile.in (tree-optimize.o): Add CFGLOOP_H dependence.
13353         * cfgloop.c (flow_loop_nodes_find): Export.
13354         * cfgloop.h (flow_loop_nodes_find, fix_loop_structure):
13355         Declare.
13356         * cfgloopmanip.c (fix_loop_structure): New function.
13357         * predict.c (predict_loops): Clean up the loops information.
13358         * tree-cfg.c (cleanup_tree_cfg_loop): New function.
13359         (tree_can_merge_blocks_p, remove_bb, tree_forwarder_block_p): Respect
13360         loop structure.
13361         * tree-flow.h (cleanup_tree_cfg_loop): Declare.
13362         (rewrite_into_loop_closed_ssa): Declaration changed.
13363         * tree-loop-linear.c (linear_transform_loops): Add argument to
13364         rewrite_into_loop_closed_ssa call.
13365         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
13366         * tree-ssa-loop-im.c (move_computations): Ditto.
13367         * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
13368         * tree-vectorizer.c (vectorize_loops): Ditto.
13369         * tree-optimize.c: Include cfgloop.h.
13370         (execute_todo): Choose whether to call cleanup_tree_cfg or
13371         cleanup_tree_cfg_loop.
13372         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables,
13373         (tree_unroll_loops_completely): Enable cleanup_tree_cfg_loop call.
13374         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Enable
13375         cleanup_tree_cfg_loop call.
13376         * tree-ssa-loop-manip.c (find_uses_to_rename_bb): New function.
13377         (find_uses_to_rename, rewrite_into_loop_closed_ssa): Support
13378         work on part of cfg.
13380 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
13382         PR inline-asm/20314
13383         * gimplify.c (gimplify_asm_expr): Handle input/output constraints
13384         with multiple alternatives.
13386         * stmt.c (parse_output_constraint): Fix a typo.
13388 2005-03-09  Bob Wilson  <bob.wilson@acm.org>
13390         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Use "no-transform"
13391         assembly directive instead of deprecated "no-generics".
13393 2005-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
13395         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
13396         for non-offsettable memory references to cope with outstanding reload
13397         replacements.
13398         * config/s390/s390.md ("reload_outti"): Call find_replacement to
13399         avoid losing outstanding address reloads.
13400         ("reload_outdi", "reload_outdf"): Likewise.
13402 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13404         * builtins.c (fold_builtin_cbrt, fold_builtin_pow): Rearrange
13405         code.  Add more cbrt transformations.
13407 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13409         * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case.
13411 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
13413         * fold-const.c (fold_unary, fold_binary, fold_ternary): Return
13414         NULL_TREE when a given tree is not simplified.
13415         (fold): Return the original tree when any of the functions
13416         mentioned above NULL_TREE.
13418         * fold-const.c (fold_unary, fold_binary): Take decomposed
13419         arguments, code, type, op0, and op1 in case of fold_binary.
13420         (fold): Update calls to fold_unary and fold_binary.
13422 2005-03-09  Roger Sayle  <roger@eyesopen.com>
13424         * builtins.c (fold_builtin_unordered_cmp): Change prototype to take
13425         a fndecl and an arglist instead of a CALL_EXPR, exp.
13427 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
13429         * cfglayout.c (fixup_reorder_chain): Remove old_bb.
13431         * cfgrtl.c (cfg_layout_merge_blocks): Remove new_e.
13433         * expr.c (expand_assignment): Remove orig_to_rtx.
13435         * fold-const.c (int_const_binop): Remove no_overflow.
13437         * ifcvt.c (noce_emit_move_insn): Remove inmode.
13439         * loop-iv.c (get_biv_step_1): Remove lhs.
13441         * loop-unroll.c (analyze_insns_in_loop): Remove preheader.
13443         * real.c (real_nan): Remove neg.
13445         * function.c (thread_prologue_and_epilogue_insns): Remove i
13446         and newinsn.
13448         * tree-data-ref.c (array_base_name_differ_p): Remove ta and
13449         tb.
13451         * tree-eh.c (tree_could_trap_p): Remove idx.
13453         * tree-into-ssa.c (ann): Remove ann.
13455         * tree-outof-ssa.c (num_nodes): Remove num_nodes.
13457         * tree-sra.c (decide_block_copy): Remove inst_count.
13459         * tree-ssa-alias.c (may_alias_p): Remove v_ann.
13461         * tree-ssa-loop-im.c (lhs): Remove.
13463         * cfgbuild.c (state, STATE, SET_STATE,
13464         BLOCK_USED_BY_TABLEJUMP, FULL_STATE): Move just before
13465         make_edges.
13466         (make_edges): Speed up by skipping blocks with BLOCK_ORIGINAL.
13467         (find_basic_blocks): Set the state of each basic block to
13468         BLOCK_NEW.
13470 2005-03-08  Jeff Law  <law@redhat.com>
13472         * tree-cfg.c (cleanup_control_flow): If removal of a computed
13473         goto results in the removal of edges in the CFG, then we need
13474         to recompute dominators.
13476 2005-03-09  Ben Elliston  <bje@au.ibm.com>
13478         * c-common.c (c_do_switch_warnings): Comment fix.
13480 2005-03-08  Julian Brown  <julian@codesourcery.com>
13482         * Patch from 2005-03-08 reverted for causing regressions and
13483         ppc-darwin bootstrap failure.
13485 2005-03-08  Fariborz Jahanian <fjahanian@apple.com>
13487         * config/rs6000/rs6000.c (invalid_arg_for_unprototyped_fn):
13488         Define the real function for ppc-darwin.
13489         * c-typeck.c (convert_arguments): Check for target-specific
13490         invalid argument call to unprototyped function.
13491         * target-def.h (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
13492         New Macro.
13493         * target.h (invalid_arg_for_unprototyped_fn): New field
13494         in struct calls.
13495         * targhooks.c (hook_invalid_arg_for_unprototyped_fn): New
13496         default target hook.
13497         * targhooks.h (hook_invalid_arg_for_unprototyped_fn):
13498         Declare.
13500 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
13502         * c-typeck.c (constructor_stack, constructor_range_stack,
13503         initializer_stack): Make them static.
13505         * cfg.c (rbi_pool): Make it static.
13507         * gimple-low.c (lower_stmt_body): Make it static.
13508         * tree-flow.h: Remove the corresponding prototype.  Don't
13509         declare lower_data.
13511         * sched-deps.c (cache_size): Make it static.
13513         * stor-layout.c (lang_adjust_rli): Make it static.
13515 2005-03-08  Julian Brown  <julian@codesourcery.com>
13517         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
13518         from being used for symbols with vague linkage when
13519         HAVE_GAS_COMDAT_GROUP is true.
13521 2005-03-08  J"orn Rennecke <joern.rennecke@st.com>
13523         * jump.c (invert_jump_1): Don't call redirect_jump_1 with
13524         nlabel == JUMP_LABEL (jump).
13526 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
13528         * c-common.c, c-opts.c, combine.c, cse.c, dojump.c,
13529         gimplify.c, tree-dfa.c, tree-ssa-loop-ivopts.c,
13530         tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-sink.c,
13531         tree-vect-analyze.c, tree.def, tree.h: Fix comment formatting.
13533 2005-03-08  Alexey Neyman  <alex.neyman@auriga.ru>
13535         PR c/14411
13536         * calls.c (flags_from_decl_or_type): Handle eturns_twice' attribute.
13537         * c-common.c (handle_returns_twice): New function.
13538         (c_common_attribute_table): Declare eturns_twice' attribute.
13539         * doc/extend.texi: Document eturns_twice' attribute.
13540         * tree.h (DECL_IS_RETURNS_TWICE): New macro.
13541         (struct tree_decl): Add returns_twice_flag.
13543 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
13545         * tree-ssa-phiopt.c: Fix a comment typo.
13547         * c-semantics.c, cfghooks.c, diagnostic.h, loop-iv.c,
13548         loop-unswitch.c, modulo-sched.c, stor-layout.c, tree-gimple.h,
13549         config/i386/cygwin1.c, doc/cfg.texi, doc/objc.texi: Update
13550         copyright.
13552 2005-03-08  Richard Henderson  <rth@redhat.com>
13554         * config/alpha/alpha.c (code_for_builtin): Replace special-case
13555         builtin codes with ctzdi2, clzdi2, popcountdi2.
13556         (struct alpha_builtin_def): Add is_const.
13557         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): Init it.
13558         (alpha_v8qi_u, alpha_v8qi_s, alpha_v4hi_u, alpha_v4hi_s): New.
13559         (alpha_init_builtins): Init them.  Set nothrow and const attributes
13560         on builtins.
13561         (alpha_fold_builtin_cmpbge, alpha_fold_builtin_zapnot,
13562         alpha_fold_builtin_extxx, alpha_fold_builtin_insxx,
13563         alpha_fold_builtin_mskxx, alpha_fold_builtin_umulh,
13564         alpha_fold_vector_minmax, alpha_fold_builtin_perr,
13565         alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb,
13566         alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw,
13567         alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz,
13568         alpha_fold_builtin_ctpop, alpha_fold_builtin): New.
13569         (TARGET_FOLD_BUILTIN): New.
13570         * config/alpha/alpha.md (UNSPEC_CTTZ): Remove.
13571         (UNSPEC_CTLZ, UNSPEC_CTPOP): Remove.
13572         (ffsdi2): Use ctz.
13573         (cttz, builtin_cttz, builtin_ctlz, builtin_ctpop): Remove.
13575 2005-03-08  Ira Rosen  <irar@il.ibm.com>
13577         PR tree-optimization/20122
13578         * tree-vect-analyze.c (vect_object_analysis): Analyze initial
13579         condition of access function instead of base.
13581 2005-03-07  Jeff Law  <law@redhat.com>
13582             Steven Bosscher  <stevenb@suse.de>
13584         * tree-cfg.c (find_taken_edge_computed_goto): New function.
13585         (find_taken_edge): Call find_taken_edge_computed_goto as
13586         appropriate.  Allow any gimple invariant rather than just
13587         INTEGER_CST for VAL.
13588         (cleanup_control_flow): Cleanup a computed goto which has turned
13589         into a simple goto.
13590         (tree_merge_blocks): If block B has any forced labels, move
13591         them to the start of block A.
13592         * tree-ssa-dom.c (thread_across_edge): Allow threading across
13593         computed gotos as well.
13594         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Handle
13595         removal of unnecessary computed gotos too.
13596         (lookup_redirection_data): Fix type of INSERT argument.  Callers
13597         updated.
13599 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
13601         * tree-ssa-phiopt.c: Update copyright.  Fix indentations.
13602         Remove trailing spaces.
13604         * gimplify.c (gimple_push_bind_expr, gimple_pop_bind_expr,
13605         unshare_all_trees): Make them static.
13606         * tree-gimple.h: Remove the corresponding prototypes.
13608         * diagnostic.h: Remove unused prototype
13609         debug_output_buffer.
13610         * modulo-sched.c: Remove unused prototype
13611         set_row_column_for_ps.
13613         * tree-ssa-phiopt.c (tree_ssa_phiopt,
13614         replace_phi_edge_with_variable): Remove unused variable i.
13616 2005-03-07  Per Bothner  <per@bothner.com>
13618         * tree.h (DECL_IS_BUILTIN): Reverted my patch from earlier today.
13620 2005-03-06  Andrew Pinski  <pinskia@physics.uc.edu>
13622         PR tree-opt/17671
13623         * tree-ssa-phiopt.c (tree_ssa_phiopt): Rewrite so we base the
13624         bbs on the COND_EXPR instead of the PHI_NODEs.
13625         (candidate_bb_for_phi_optimization): Remove.
13626         (replace_phi_with_stmt): Rename to ...
13627         (replace_phi_edge_with_variable): this and change so that we
13628         replace the phi argument instead of removing the PHI.
13629         (conditional_replacement): Change so we deal with PHI with more
13630         than two arguments.
13631         (value_replacement): Likewise.
13632         (abs_replacement): Likewise.
13634 2005-03-07  Aldy Hernandez  <aldyh@redhat.com>
13636         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_eq_bit to
13637         output_e500_flip_gt_bit.
13639         * config/rs6000/rs6000.c (print_operand): case D: Print out bit 31
13640         as bit 31.
13641         (rs6000_generate_compare): Fix logic to look at the correct bits.
13642         (output_e500_flip_eq_bit): Rename to output_e500_flip_gt_bit.
13643         Look at GT bit.
13644         (rs6000_emit_sCOND): Rename gen_e500_flip_eq_bit to
13645         gen_e500_flip_gt_bit.  Rename gen_move_from_CR_eq_bit to
13646         gen_move_from_CR_gt_bit.
13648         * config/rs6000/rs6000.md ("move_from_CR_eq_bit"): Change bit
13649         ("move_from_CR_eq_bit"): Rename to move_from_CR_gt_bit.
13650         (UNSPEC_MV_CR_EQ): Rename to UNSPEC_MV_CR_GT.
13652         * config/rs6000/spe.md ("e500_cr_ior_compare"): New.
13653         (E500_CR_IOR_COMPARE): New constant.
13655 2005-03-08  Earl Chew <earl_chew@agilent.com>
13656             David Billinghurst <David.Billinghurst@riotinto.com>
13658         * config/i386/host-cygwin.c: New file to support precompiled
13659         headers on cygwin
13660         * config/i386/x-cygwin: Use host-cygwin.c on cygwin host
13661         * config.host: Use above files for cygwin host.
13663 2005-03-07  David Edelsohn  <edelsohn@gnu.org>
13665         * fold-const.c (fold_binary_op_with_conditional_arg): Fix typo
13666         ordering ops from earlier change.
13668 2005-03-07  Per Bothner  <per@bothner.com>
13670         Various fixes to allow us to again build if --enable-mapped-location:
13671         * c-decl.c (finish_function): Use SET_EXPR_LOCATION instead of
13672         unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
13673         * tree-cfg.c (remove_bb): If USE_MAPPED_LOCATION, change type of
13674         local variable loc. Change logic appropriately.
13675         * tree-vect-transform.c (vect_finish_stmt_generation): Use
13676         EXPR_LOCATION rather than EXPR_LOCUS if USE_MAPPED_LOCATION.
13677         * c-parser.c (c_parser_for_statement): Initialize loc variable.
13678         * tree.h (DECL_IS_BUILTIN): Temporarily revert definition of
13679         DECL_IS_BUILTIN in the USE_MAPPED_LOCATION because of jc1 issues.
13681 2005-03-07  Richard Sandiford  <rsandifo@redhat.com>
13683         PR rtl-optimization/19683
13684         * reload1.c (choose_reload_regs): Pass the number of bits, not the
13685         number of bytes, to smallest_int_for_mode.  Fix arguments to
13686         REG_CANNOT_CHANGE_MODE_P.
13688 2005-03-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
13690         * reorg.c (relax_delay_slots): Check that the jump is
13691         conditional before trying to invert it.
13693 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
13695         * bb-reorder.c (max_entry_frequency, max_entry_frequency):
13696         Make them static.
13698         * calls (stack_arg_under_construction): Make it static.
13700         * flow.c (regs_live_at_setjmp): Make it static.
13701         * flow.h: Remove the corresponding prototype.
13703         * reload1.c (reload_startobj, reload_firstobj,
13704         something_needs_operands_changed, reload_inherited,
13705         reload_inheritance_insn, reload_override_in,
13706         reload_spill_index): Make them static.
13708         * recog.c (verify_changes): Make it static.
13709         * recog.h: Remove the corresponding prototype.
13711         * cfgbuild.c (find_sub_basic_blocks): Remove.
13712         * basic-block.h: Remove the corresponding prototype.
13713         * cfgexpand.c, cfgrtl.c: Don't mention find_sub_basic_blocks
13714         in comments.
13715         * doc/cfg.texi: Don't mention find_sub_basic_blocks.
13717         * tree-ssa-operands.c (check_build_stmt): Remove.
13719         * stor-layout.c (set_alignment): Remove.
13720         * tree.h: Remove the corresponding prototype.
13722         * tree-ssa-pre.c (has_abnormal_preds): Make it static.
13724         * tree-ssa-dce.c (control_dependence_map,
13725         visited_control_parents): Make them static.
13727         * cfghooks.c (verify_flow_info): Remove local variable
13728         num_bb_notes.
13730         * cfgrtl.c (rtl_verify_flow_info_1): Remove local variable
13731         last_bb_seen.
13733         * loop-unswitch.c (unswitch_loop): Remove local variable src.
13735 2005-03-07  David Billinghurst <David.Billinghurst@riotinto.com>
13737         * config/i386/cygwin1.c(mingw_scan): Use xstrdup in calls to putenv.
13739 2005-03-07  Joseph S. Myers  <joseph@codesourcery.com>
13741         * config/ia64/hpux.h (LINK_SPEC): Add -z.
13742         * config/ia64/ia64.c (ia64_function_value): Return a REG not a
13743         PARALLEL for an empty structure.
13745 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
13747         * fold-const.c (fold_binary): Remove handling of RANGE_EXPR.
13749         * fold-const.c (fold_binary): Unroll the very first "for"
13750         loop.
13752 2005-03-06  David Edelsohn  <edelsohn@gnu.org>
13754         * config/rs6000/predicates.md (branch_comparison_operator): Remove
13755         redundant match_code test.
13756         (scc_comparison_operator): Swap match_operand and match_code
13757         tests.
13758         (branch_positive_comparison_operator): Same.
13759         (trap_comparison_operator): Use comparison_operator and swap with
13760         match_code test.
13762 2005-03-06  Marek Michalkiewicz  <marekm@amelek.gda.pl>
13764         PR target/20288
13765         * config/avr/avr.c (print_operand): Add 'p' and 'r'.
13766         (out_movhi_r_mr): Read low byte of volatile MEM first.
13767         (out_movhi_mr_r): Write high byte of volatile MEM first.
13769 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
13771         * cselib.c (reg_values, reg_values_size): Make them static.
13773         * cse.c (cse_reg_info_table): Make it static.
13775         * fold-const.c (fold_unary): Use build1 instead of copy_node.
13777 2005-03-06  Zdenek Dvorak  <dvorakz@suse.cz>
13779         * cse.c (find_best_addr): Use canon_for_address.
13781 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
13783         * cse.c (fold_rtx_subreg, fold_rtx_mem): New.
13784         (fold_rtx): Call fold_rtx_subreg and fold_rtx_mem to handle
13785         SUBREG and MEM, respectively.
13787         * fold-const.c (fold_binary): Use code instead of t.
13789         * fold-const.c (optimize_minmax_comparison): Take decomposed
13790         arguments code, type, op0, and op1 instead of t.
13791         (fold_binary): Update a call to optimize_minmax_comparison.
13793         * fold-const.c (fold_range_test): Take decomposed arguments
13794         code, type, op0, and op1 instead of t.
13795         (fold_binary): Update a call to fold_range_test.
13797         * fold-const.c (fold_binary_op_with_conditional_arg): Take
13798         decomposed arguments code, type, op0, and op1 instead of t.
13799         (fold_binary): Update a call to fold_range_test.
13801 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
13803         * fold-const.c (fold_binary): Avoid directly using the original
13804         expression t as much as possible.
13806 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
13808         * c-semantics.c (build_stmt): Use TYPE_P instead of
13809         IS_NON_TYPE_CODE_CLASS.
13810         * tree.h (IS_NON_TYPE_CODE_CLASS): Remove.
13811         (NON_TYPE_CHECK): Use TYPE_P instead of
13812         IS_NON_TYPE_CODE_CLASS.
13814         * fold-const.c (fold): Remove handling of binary expressions.
13816 2005-03-05  James A. Morrison  <phython@gcc.gnu.org>
13818         * doc/c-tree.texi: Wrap comments in @r{}.
13819         * doc/cpp.texi: Likewise.
13820         * doc/cppinternals.texi: Likewise.
13821         * doc/extend.texi: Likewise.
13822         * doc/md.texi: Likewise.
13823         * doc/objc.texi: Likewise.
13824         * doc/sourcebuild.texi: Likewise.
13825         * doc/tm.texi: Likewise.
13826         * doc/tree-ssa.texi
13828 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
13830         * predict.c (apply_return_prediction): Standardize PHI chain
13831         walking.
13832         * tree-ssa.c (ssa_redirect_edge): Likewise.
13834         * genattrtab.c, genemit.c, genoutput.c, genrecog.c,
13835         gensupport.c, jump.c, tree-phinodes.c, unwind-dw2-fde-glibc.c:
13836         Update copyright.
13838         * tree-phinodes.c (remove_phi_node): Drop the last argument.
13839         * tree-flow.h: Adjust the prototype for remove_phi_node.
13840         * lambda-code.c (perfect_nestify): Adjust a call to
13841         remove_phi_node.
13842         * tree-cfg.c
13843         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
13844         * tree-outof-ssa.c (eliminate_virtual_phis, remove_ssa_form):
13845         Likewise.
13846         * tree-ssa-dce.c (remove_dead_phis): Likewise.
13847         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
13848         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
13849         * tree-ssa.c (kill_redundant_phi_nodes): Likewise.
13851         * combine.c (simplify_and_const_int): Use gen_int_mode instead
13852         of GEN_INT (trunc_int_for_mode (...)).
13853         * loop-iv.c (iv_number_of_iterations): Likewise.
13854         * postreload.c (reload_cse_move2add): Likewise.
13855         * simplify-rtx.c (simplify_const_unary_operation,
13856         simplify_const_binary_operation): Likewise.
13857         * stor-layout.c (get_mode_bounds): Likewise.
13859         * fold-const.c (fold_binary): New.
13860         (fold): Call fold_binary on binary expressions.
13862 2005-03-05  Richard Sandiford  <rsandifo@redhat.com>
13864         * doc/invoke.texi: Document new MIPS -msym32 and -mno-sym32 options.
13865         * config/mips/mips.h (MASK_SYM32, TARGET_SYM32): New macros.
13866         (TARGET_SWITCHES): Add -msym32 and -mno-sym32.
13867         (ABI_HAS_64BIT_SYMBOLS): Set to false if TARGET_SYM32.
13868         (ASM_SPEC): Pass down -msym32 and -mno-sym32.
13870 2005-03-04  Devang Patel  <dpatel@apple.com>
13872         PR tree-optimization/18815
13873         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
13874         loops with zero exit edges.
13876 2005-03-04  Devang Patel  <dpatel@apple.com>
13878         * doc/invoke.texi: Remove reference to webpage that does not exist.
13880 2005-03-04  John David Anglin  <dave.danglin@nrc-cnrc.gc.ca>
13881             Joseph S. Myers  <joseph@codesourcery.com>
13883         PR c++/19797
13884         * pa/elf.h, pa64-hpux.h, som.h (ASM_OUTPUT_EXTERNAL_REAL): Define.
13885         (ASM_OUTPUT_EXTERNAL): Call pa_hpux_asm_output_external.
13886         * pa-protos.h (pa_hpux_asm_output_external): Add prototype.
13887         * pa.c (get_plabel): Change argument to symbol_ref.  Call
13888         maybe_get_identifier instead of get_identifier.
13889         (pa_hpux_asm_output_external, pa_hpux_file_end): New functions.
13890         (struct deferred_plabel): Replace name field with symbol field.
13891         (TARGET_ASM_FILE_END): Define as pa_hpux_file_end if
13892         ASM_OUTPUT_EXTERNAL_REAL is defined.
13893         (output_global_address): Use output_addr_const for output of all
13894         symbol_refs.
13895         (output_deferred_plabels): Use symbol_ref instead of name for address
13896         output.
13897         * pa.h (SYMBOL_FLAG_REFERENCED, SYMBOL_REF_REFERENCED_P,
13898         ASM_OUTPUT_SYMBOL_REF): New macros.
13899         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use assemble_name_raw.  Update
13900         comment.
13901         (ASM_WEAKEN_LABEL): Use targetm.asm_out.globalize_label to globalize
13902         label.
13904 2005-03-05  Joseph S. Myers  <joseph@codesourcery.com>
13906         * config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for
13907         *-*-hpux11.[1-9]*, not just for *-*-hpux11.11.
13909 2005-03-04  Jeff Law  <law@redhat.com>
13911         * basic-block.h (rediscover_loops_after_threading): Declare.
13912         * tree-ssa-dom.c: Include cfgloop.h.
13913         (tree_ssa_dominator_optimize): Discover loops and some basic
13914         properties.  Remove forwarder blocks recreated by loop header
13915         canonicalization.  Also mark backedges in the CFG.
13916         * tree-ssa-threadupdate.c: Include cfgloop.h
13917         (rediscover_loops_after_threading): Define.
13918         (struct local_info): New field, JUMP_THREADED.
13919         (prune_undesirable_thread_requests): New function.
13920         (redirect_edges): Clear EDGE_ABNORMAL.  If edges were threaded
13921         then record that fact for the callers of redirct_edges.
13922         (thread_block): If BB has incoming backedges, then call
13923         prune_undesirable_thraed_requests.    Note when we are
13924         going to have to rediscover loop information.  Return a
13925         boolean indicating if any jumps were threaded.
13926         (thread_through_all_blocks): Bubble up boolean indicating
13927         if any jumps were threaded.
13928         * Makefile.in (tree-ssa-dom.o): Depend on cfgloop.h
13929         (tree-ssa-threadupdate.o): Similarly.
13931 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
13933         * fold-const.c (fold_ternary): Unroll the "for" loop to
13934         extract operands.
13936 2005-03-04  Andrew Haley  <aph@redhat.com>
13938         * unwind-dw2-fde-glibc.c (struct
13939         unw_eh_callback_data.check_cache): New field.
13940         (frame_hdr_cache): New.
13941         (_Unwind_IteratePhdrCallback): Add ext_dl_phdr_info.
13942         Cache frame header info.
13944 2005-03-04  Richard Sandiford  <rsandifo@redhat.com>
13946         * rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
13947         (print_c_condition): Declare.
13948         * read-rtl.c (ptr_loc): New structure.
13949         (ptr_locs, ptr_loc_obstack, joined_conditions)
13950         (joined_conditions_obstack): New variables.
13951         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc)
13952         (get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc)
13953         (join_c_conditions, print_c_condition): New functions.
13954         (apply_macro_to_string): Associate the new string with the same
13955         source location as the old one.
13956         (add_condition_to_string): Use join_c_conditions.
13957         (read_string): Use set_rtx_ptr_loc to record a filename and line
13958         number for the string.
13959         (read_rtx): Initialize the new variables above.
13960         * genattrtab.c (write_test_expr, write_attr_value): Use
13961         print_c_condition.
13962         * genconditions.c (write_header): Don't define MAYBE_EVAL.  Move its
13963         comment above the GCC_VERSION check.
13964         (write_one_condition): Use print_rtx_ptr_loc and print_c_condition.
13965         Inline the definition of MAYBE_EVAL.
13966         * genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc.
13967         * genoutput.c (process_template): Likewise.
13968         * genpreds.c (write_predicate_subfunction): Likewise.
13969         (write_predicate_expr): Use print_c_condition.
13970         * genrecog.c (write_cond): Likewise.
13971         * gensupport.c (process_rtx): Use join_c_conditions to join the
13972         conditions of a define_insn_and_split.  Record a source location
13973         for the string after the "&&".
13974         (alter_test_for_insn): Use join_c_conditions.
13976 2005-03-04  Andrew Pinski  <pinskia@physics.uc.edu>
13978         Revert for now:
13979         2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
13980         PR tree-optimization/15784
13981         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
13982         and -1 - A to ~A.
13984 2005-03-04  Ben Elliston  <bje@au.ibm.com>
13986         * gcc.c (option_map): Add --coverage.
13987         (LINK_COMMAND_SPEC): Pass -lgcov for `coverage'.
13988         (cc1_options): Pass -fprofile-arcs -ftest-coverage for `coverage'.
13989         * config/darwin.h: Pass -lgcov for `coverage'.
13990         * doc/invoke.texi (Debugging Options): Document --coverage.
13992 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
13994         * gcse.c (bypass_block): Use find_edge wherever possible.
13996 2005-03-03  Daniel Berlin <dberlin@dbrelin.org>
13998         Fix PR debug/20253
14000         * c-opts.c (c_common_parse_file): Call start_source_file
14001         and end_source_file at the approriate times.
14003         * dwarf2out.c (dwarf2out_finish): Don't auto-end
14004         the main file, it will be done for us now.
14006 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
14008         * fold-const.c (fold_ternary): New.
14009         (fold): Call fold_ternary on ternary expressions.  Remove
14010         handling of ternary expressions.
14012 2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
14014         PR tree-optimization/15784
14015         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
14016         and -1 - A to ~A.
14018 2005-03-03  David Edelsohn  <edelsohn@gnu.org>
14020         * config/rs6000/predicates.md (branch_comparison_operator):
14021         Convert from C block to conditional format.
14023 2005-03-03  Jan Hubicka  <jh@suse.cz>
14025         * tree-dfa.c (add_referenced_var): Don't walk initializer of external
14026         and non-constant public variables.
14028 2005-03-03  Kazu Hirata  <kazu@cs.umass.edu>
14030         * tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code
14031         with LABEL_EXPR.
14033         * cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of
14034         EDGE_I.
14036         * tree-phinodes.c (remove_phi_node): Clean up by factoring out
14037         calls to release_ssa_name and release_phi_node.
14039         * fold-const.c (fold): Remove handling of unary expressions.
14041         * fold-const.c (fold_unary): Avoid directly using the original
14042         expression t as much as possible.
14044 2005-03-03  Roger Sayle  <roger@eyesopen.com>
14045             Andrew Pinski  <pinskia@physics.uc.edu>
14047         * jump.c (redirect_exp_1): If nlabel is a NULL pointer create a
14048         RETURN rtx, and not a LABEL_REF containing a NULL pointer.
14050 2005-03-03  Hans-Peter Nilsson  <hp@axis.com>
14052         Describe special registers SRP and MOF as allocatable registers.
14053         * config/cris/cris.c (cris_md_asm_clobbers): New function.
14054         (TARGET_MD_ASM_CLOBBERS): Define to cris_md_asm_clobbers.
14055         (cris_conditional_register_usage): Enable CRIS_MOF_REGNUM if
14056         TARGET_HAS_MUL_INSNS.
14057         (cris_print_operand) <case 'd'>: New case.
14058         <case REG>: Allow CRIS_MOF_REGNUM and CRIS_SRP_REGNUM.
14059         * config/cris/cris.h (CRIS_PC_REGNUM, CRIS_SRP_REGNUM): Don't
14060         define.
14061         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS)
14062         (REG_ALLOC_ORDER): Update for MOF.
14063         (enum reg_class): New members MOF_REGS, GENERAL_REGS and
14064         SPECIAL_REGS.
14065         (GENERAL_REGS): No longer a define of ALL_REGS.
14066         (REGNO_REG_CLASS, REG_CLASS_CONTENTS, REG_CLASS_NAMES)
14067         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
14068         Adjust accordingly.
14069         (CRIS_SPECIAL_REGS_CONTENTS): New macro.
14070         (REG_CLASS_FROM_LETTER): Allocate 'h' and 'x'.
14071         (SECONDARY_RELOAD_CLASS): Define.
14072         (STACK_POINTER_REGNUM): Define as CRIS_SP_REGNUM.
14073         (FRAME_POINTER_REGNUM): Define as CRIS_FP_REGNUM.
14074         (ARG_POINTER_REGNUM): Define as CRIS_AP_REGNUM.
14075         (STATIC_CHAIN_REGNUM): Define as CRIS_STATIC_CHAIN_REGNUM.
14076         (REGISTER_MOVE_COST): Define.
14077         (PIC_OFFSET_TABLE_REGNUM): Define in terms of CRIS_GOT_REGNUM.
14078         * config/cris/cris.md (CRIS_GOT_REGNUM, CRIS_STATIC_CHAIN_REGNUM)
14079         (CRIS_FP_REGNUM, CRIS_SP_REGNUM, CRIS_SRP_REGNUM, CRIS_AP_REGNUM)
14080         (CRIS_MOF_REGNUM): New define_constants.
14081         ("*movsi_internal", "movhi", "movqi", "movsf"): Add alternatives for
14082         special registers.
14083         ("reload_inhi", "reload_outhi", "reload_inqi", "reload_outqi"):
14084         New patterns.
14085         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3")
14086         ("mulsidi3", "umulsidi3", "smulsi3_highpart", "umulsi3_highpart"):
14087         Adjust for MOF being properly described as a register.
14088         (indir_to_reg_split): Name this split.  Conditionalize on the
14089         destination register being a general register.
14090         (movei): Conditionalize on on operands 0 and 1 having the same
14091         register class.
14093 2005-03-03  Alan Modra  <amodra@bigpond.net.au>
14095         PR target/20277
14096         * config/rs6000/rs6000.c (rs6000_override_options): Don't allow
14097         -mcpu to override any other explicitly given flags.
14099 2005-03-02  J"orn Rennecke <joern.rennecke@st.com>
14101         * recog.c (verify_changes, confirm_change_group): New functions,
14102         broken out of apply_change_group.
14103         (apply_change_group): Use them.
14104         * recog.h (verify_change, confirm_change_group): Declare.
14105         * rtl.h (redirect_jump_2): Declare.
14106         * jump.c (redirect_exp, invert_exp): Delete.
14107         (invert_exp_1): Take second parameter.  Return value.  Changed caller.
14108         (redirect_jump_2): New function, broken out of redirect_jump.
14109         (redirect_jump): Use redirect_jump_1 and redirect_jump_2.
14110         (invert_jump): Use invert_jump_1 and redirect_jump_2.
14111         * ifcvt.c (dead_or_predicable): Use redirect_jump_2.
14113 2005-03-02  Geoffrey Keating  <geoffk@apple.com>
14115         * varasm.c (named_section): Use xstrdup rather than doing it by
14116         hand.
14118         * config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem.
14120 2005-03-02  Devang Patel  <dpatel@apple.com>
14122         Undo PR tree-optimization/18815 fix.
14124 2005-03-02  Devang Patel  <dpatel@apple.com>
14126         PR tree-optimization/18815
14127         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
14128         loops with zero exit edges.
14130 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
14132         * cfg.c (connect_src, connect_dest, disconnect_src,
14133         disconnct_dest): New.
14134         (unchecked_make_edge, remove_edge, redirect_edge_succ,
14135         redirect_edge_pred): Use the new functions.
14137         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
14138         free_dominance_info only when needed.
14140 2005-03-02  David Edelsohn  <edelsohn@gnu.org>
14142         PR target/20276
14143         * config/rs6000/predicates.md (reg_or_cint64_operand): Fix typo.
14144         (reg_or_sub_cint64_operand): Same.
14146 2005-03-02  Jeff Law  <law@redhat.com>
14148         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of
14149         CFG_ALTERED in the main DOM iteration loop.
14151 2005-03-02  Mark Mitchell  <mark@codesourcery.com>
14153         PR c++/19916
14154         * varasm.c (initializer_constant_valid_p): Allow conversions
14155         between OFFSET_TYPEs.  Tidy.
14157 2005-03-02  Hans-Peter Nilsson  <hp@axis.com>
14159         * config/cris/cris.md ("return"): Remove epilogue delay list
14160         sanity check.
14162 2005-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
14164         * config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT)
14165         for Thumb.
14166         * config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise.
14168 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
14170         * cfgloop.h, cfgloopanal.c, cfgloopmanip.c, conflict.c,
14171         loop-init.c, loop-unroll.c, print-tree.c, reg-notes.def,
14172         config/m68k/m68k.c, config/mips/mips.h,
14173         config/rs6000/rs6000-protos.h, doc/contrib.texi,
14174         doc/include/gcc-common.texi: Update copyright.
14176         PR middle-end/18029 and PR middle-end/18030
14177         * expr.c (optimize_bitfield_assignment_op): Add a special case
14178         to handle BIT_IOR_EXPR and BIT_XOR_EXPR.
14180         * fold-const.c (fold_unary): New.
14181         (fold): Call fold_unary on unary expressions.
14183 2005-03-02  Richard Guenther  <rguenth@gcc.gnu.org>
14185         * cgraph.h (struct cgraph_edge): Add prev_caller and
14186         prev_callee fields.
14187         (cgraph_node_remove_callees): Export.
14188         * cgraph.c (cgraph_create_edge): Initialize prev_caller
14189         and prev_callee.
14190         (cgraph_edge_remove_callee): New function.
14191         (cgraph_edge_remove_caller): Likewise.
14192         (cgraph_remove_edge): Use.
14193         (cgraph_redirect_edge_callee): Likewise.
14194         (cgraph_node_remove_callees): New function.
14195         (cgraph_node_remove_callers): Likewise.
14196         (cgraph_remove_node): Use.
14197         * tree-optimize.c (tree_rest_of_compilation): Use
14198         cgraph_node_remove_callees instead of manual loop.
14199         * cgraphunit.c (cgraph_finalize_function): Likewise.
14200         (cgraph_expand_function): Likewise.
14201         (cgraph_remove_unreachable_nodes): Likewise.
14203 2005-03-02  Joseph S. Myers  <joseph@codesourcery.com>
14205         PR c/8927
14206         * c-tree.h (undeclared_variable, build_external_ref): Add extra
14207         argument.
14208         * c-decl.c (undeclared_variable): Take location as argument.
14209         * c-typeck.c (build_external_ref): Likewise.
14210         * c-parser.c (c_parser_postfix_expression): Pass location of
14211         identifier to build_external_ref.
14213 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
14215         * config/rs6000/rs6000.md (cceq splitter): Use operand mode, not
14216         CCEQ mode for branch_positive_comparison_operator test.
14217         * config/rs6000/predicates (branch_comparison_operator): Revert to
14218         define_predicate.
14219         (scc_comparison_operator): Same.
14220         (branch_positive_comparison_operator): Same.
14222 2005-03-01  Hans-Peter Nilsson  <hp@axis.com>
14224         * config/cris/cris.c (cris_eligible_for_epilogue_delay)
14225         (cris_delay_slots_for_epilogue): Remove.
14226         (save_last): Move into cris_target_asm_function_epilogue.
14227         (cris_target_asm_function_epilogue): Remove tests for file being
14228         NULL.
14229         * config/cris/cris-protos.h (cris_eligible_for_epilogue_delay)
14230         (cris_delay_slots_for_epilogue): Remove prototypes.
14231         * config/cris/cris.h (DELAY_SLOTS_FOR_EPILOGUE)
14232         (ELIGIBLE_FOR_EPILOGUE_DELAY): Do not define.
14234 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
14236         * config/rs6000/predicates.md (branch_comparison_operator): Change
14237         to define_special_predicate.
14238         (scc_comparison_operator): Same.
14239         (branch_positive_comparison_operator): Same.
14241 2005-03-01  Daniel Berlin <dberlin@dberlin.org>
14243         * Makefile.in (tree-ssa-sink.o): New.
14244         (OBJS-common): Add tree-ssa-sink.o.
14245         * common.opt: Add -ftree-sink
14246         * opts.c (decode_options): flag_tree_sink is set at O1 or higher.
14247         * timevar.def (TV_TREE_SINK): new timevar.
14248         * tree-flow.h (is_hidden_global_store): Prototype.
14249         * tree-optimize.c (init_tree_optimization_passes): Add
14250         pass_sink_code.
14251         * tree-pass.h (pass_sink_code): New.
14252         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move checking
14253         for non-obvious global store store to is_hidden_global_store, and
14254         call that new function.
14255         * tree-ssa-sink.c: New file.
14256         * doc/invoke.texi: Document -fdump-tree-sink and -ftree-sink.
14257         * doc/passes.texi: Document forward store motion.
14258         * testsuite/gcc.dg/tree-ssa/ssa-sink-1.c: New test
14259         * testsuite/gcc.dg/tree-ssa/ssa-sink-2.c: New test
14260         * testsuite/gcc.dg/tree-ssa/ssa-sink-3.c: New test
14261         * testsuite/gcc.dg/tree-ssa/ssa-sink-4.c: New test
14263 2005-03-01  Per Bothner  <per@bothner.com>
14265         * diagnostic.c (diagnostic_build_prefix): If USE_MAPPED_LOCATION
14266         and we have a non-zero column-number, add it to the message.
14267         Also factor out the diagnostic_kind_text.
14269 2005-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
14271         * cfgloop.c (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
14272         flow_loop_pre_header_scan, flow_loop_pre_header_find,
14273         flow_loop_scan): Removed.
14274         (flow_loop_dump): Do not dump removed fields.
14275         (flow_loop_free): Do not free removed fields.
14276         (flow_loops_find): Flags argument removed.  Do not call flow_loop_scan.
14277         (loop_exit_edge_p): New function.
14278         * cfgloop.h (struct loop): Removed fields pre_header, pre_header_edges,
14279         num_pre_header_edges, entry_edges, num_entries, exit_edges,
14280         num_exits, exits_doms.
14281         (LOOP_TREE, LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
14282         LOOP_EDGES, LOOP_ALL): Removed.
14283         (flow_loop_scan): Declaration removed.
14284         (loop_exit_edge_p, mark_loop_exit_edges): Declare.
14285         * cfgloopmanip.c (create_loop_notes): Do not pass flags to
14286         flow_loops_find.
14287         * ifcvt.c (mark_loop_exit_edges): Moved to cfgloopanal.c.
14288         (if_convert): Call flow_loops_find and flow_loops_free
14289         when calling mark_loop_exit_edges.
14290         * cfgloopanal.c (mark_loop_exit_edges): Moved from
14291         ifcvt.c.  Removed the flow_loops_find, flow_loops_free and
14292         free_dominance_info calls.
14293         * loop-init.c (flow_loops_find): Ditto.
14294         * passes.c (rest_of_handle_branch_prob): Ditto.
14295         * lambda-code.c (perfect_nestify): Do not call flow_loops_find.
14296         * loop-unroll.c (analyze_insns_in_loop): Do not use
14297         EDGE_LOOP_EXIT.
14298         * predict.c (predict_loops): Do not call flow_loop_scan.
14299         Use get_loop_exit_edges.
14300         (tree_estimate_probability): Do not pass flags to flow_loops_find.
14301         * tree-if-conv.c (bb_with_exit_edge_p): Take loop as argument.
14302         Do not use EDGE_LOOP_EXIT.
14303         (tree_if_convert_cond_expr, if_convertible_modify_expr_p): Pass loop
14304         to bb_with_exit_edge_p.
14305         (if_convertible_loop_p): Do not call flow_loop_scan.  Use
14306         loop->single_exit.  Do not use EDGE_LOOP_EXIT.  Pass loop
14307         to bb_with_exit_edge_p.
14308         (combine_blocks): Pass loop to bb_with_exit_edge_p.  Do not use
14309         EDGE_LOOP_EXIT.
14310         * tree-loop-linear.c (linear_transform_loops): Do not call
14311         flow_loop_scan.  Use loop->single_exit.
14312         * tree-vect-analyze.c (vect_analyze_operations): Use loop->single_exit.
14313         (vect_analyze_loop_form): Do not call flow_loop_scan.
14314         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Use
14315         loop->single_exit.
14316         (vect_do_peeling_for_loop_bound): Use loop_preheader_edge and
14317         loop->single_exit.
14318         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
14319         slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
14320         slpeel_tree_duplicate_loop_to_edge_cfg,
14321         slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
14322         Use loop_preheader_edge and loop->single_exit.  Do not call
14323         flow_loop_scan.
14325 2005-03-01  Nick Clifton  <nickc@redhat.com>
14327         * config/arm/arm.c (thumb_find_work_register): Check all of the
14328         argument registers to see if they are free, and a couple of
14329         special cases where the last argument register but can be proved
14330         to be available during the function's prologue.
14331         (print_multi_reg, arm_compute_save_reg0_reg12_mask,
14332         output_return_instruction, emit_multi_reg_push, thumb_pushpop,
14333         thumb_unexpanded_epilogue): Use unsigned long as the type for the
14334         register bit-mask.
14335         (thumb_compute_save_reg_mask): Likewise.  Also use
14336         thumb_find_work_register() to ensure that there is agreement about
14337         which work register is going to be used in the prologue.
14338         (thumb_output_function_prologue): Use unsigned long as the type
14339         for the register bit-mask.  Also delay pushing the link register if
14340         other high registers are going to be pushed.
14341         (thumb_compute_save_reg_mask, emit_multi_reg_push,
14342         print_multi-reg, number_of_first_bit_set, thumb_pushpop): Remove
14343         redundant prototypes.
14345 2005-02-28  John David Anglin  <dave.anglin#nrc-cnrc.gc.ca>
14347         PR target/19819
14348         * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow allow hard registers during
14349         and after reload in REG+REG indexed addresses without REG_POINTER
14350         set in the base and not set in the index.
14352 2005-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
14354         * config/sh/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
14355         Don't undefine here.
14356         (HANDLE_PRAGMA_PACK_PUSH_POP): Delete.
14357         (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC): Likewise.
14358         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
14359         (LIB_SPEC, LINK_EH_SPEC, STARTFILE_SPEC, ENDFILE_SPEC,
14360         LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED, TARGET_C99_FUNCTIONS):
14361         Delete.
14362         * config.gcc (sh*-*-linux*): Use config/linux.h.
14364 2005-02-28  Dale Johannesen  <dalej@apple.com>
14365             Stan Shebs  <shebs@apple.com>
14367         Rewrite of 64-bit Darwin structure-by-value pass/return.
14368         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): New fields
14369         intoffset, use_stack, named.
14370         * config/rs6000/rs6000.c (rs6000_darwin64_function_arg):  Remove.
14371         (rs6000_darwin64_record_arg_advance_flush):  New.
14372         (rs6000_darwin64_record_arg_advance_recurse): New.
14373         (rs6000_darwin64_record_arg_flush):  New.
14374         (rs6000_darwin64_record_arg_recurse):  New.
14375         (rs6000_darwin64_record_arg):  New.
14376         (rs6000_return_in_memory):  Remove AGGREGATE_TYPE_P check.
14377         (function_arg_boundary):  Handle 128-bit aligned structs.
14378         (function_arg_advance):  Rewrite darwin64 struct handling.
14379         (function_arg):  Call rs6000_darwin64_record_arg.
14380         (function_arg_partial_nregs):  Handle darwin64 structs.
14381         (rs6000_darwin64_function_value):  Remove.
14382         (rs6000_function_value):  Call rs6000_darwin64_record_arg.
14384 2005-02-28  Roger Sayle  <roger@eyesopen.com>
14386         PR tree-optimization/20216
14387         * tree-chrec.c (tree_fold_factorial): Delete.
14388         (tree_fold_binomial): Change argument list to take a return type
14389         and change the type of K to unsigned int.  Rewrite to avoid explicit
14390         evaluation of factorials, and (recursively) calling fold to perform
14391         compile-time arithmetic.  Return NULL on (internal) overflow.
14392         (chrec_evaluate): Change type of K to an unsigned int.  Avoid
14393         calling tree_fold_binomial unnecessarily.  Return chrec_dont_know
14394         if any intermediate calculation overflows.
14395         (chrec_apply): Update call to chrec_evaluate.
14397 2005-02-28  James E Wilson  <wilson@specifixinc.com>
14399         * config/mips/mips.h (NO_PROFILE_COUNTERS): Define.
14401 2005-02-28  Joseph S. Myers  <joseph@codesourcery.com>
14403         PR c/20245
14404         * c-parser.c (c_parser_compound_statement): Return error_mark_node
14405         instead of NULL_TREE on error.
14407 2005-02-28  David Edelsohn  <edelsohn@gnu.org>
14409         * config/rs6000/rs6000.c (EASY_VECTOR_15): Remove.
14410         (EASY_VECTOR_15_ADD_SELF): Remove.
14411         (num_insns_constant_wide): Not static.
14412         (validate_condition_mode): Not static.
14413         (toc_relative_expr_p): Not static.
14414         (legitimate_indirect_address_p): Not static.
14415         (macho_lo_sum_memory_operand): Not static.
14416         (invalid_e500_subreg): Not static.
14417         (easy_vector_same): Not static.
14418         (easy_vector_splat_const): Not static.
14419         (RS6000_SYMBOL_REF_TLS_P): Remove.
14420         (any_operand): Delete.
14421         (any_parallel_operand): Delete.
14422         (count_register_operand): Delete.
14423         (altivec_register_operand): Delete.
14424         (xer_operand): Delete.
14425         (s8bit_cint_operand): Delete.
14426         (short_cint_operand): Delete.
14427         (u_short_cint_operand): Delete.
14428         (non_short_cint_operand): Delete.
14429         (exact_log2_cint_operand): Delete.
14430         (gpc_reg_operand): Delete.
14431         (cc_reg_operand): Delete.
14432         (cc_reg_not_cr0_operand): Delete.
14433         (reg_or_short_operand): Delete.
14434         (reg_or_neg_short_operand): Delete.
14435         (reg_or_aligned_short_operand): Delete.
14436         (reg_or_u_short_operand): Delete.
14437         (reg_or_cint_operand): Delete.
14438         (reg_or_arith_cint_operand): Delete.
14439         (reg_or_add_cint64_operand): Delete.
14440         (reg_or_sub_cint64_operand): Delete.
14441         (reg_or_logical_cint_operand): Delete.
14442         (got_operand): Delete.
14443         (got_no_const_operand): Delete.
14444         (easy_fp_constant): Delete.
14445         (easy_vector_constant): Delete.
14446         (easy_vector_constant_add_self): Delete.
14447         (zero_constant): Delete.
14448         (zero_fp_constant): Delete.
14449         (volatile_mem_operand): Delete.
14450         (offsettable_mem_operand): Delete.
14451         (mem_or_easy_const_operand): Delete.
14452         (add_operand): Delete.
14453         (non_add_cint_operand): Delete.
14454         (logical_operand): Delete.
14455         (non_logical_cint_operand): Delete.
14456         (mask_operand): Delete.
14457         (mask_operand_wrap): Delete.
14458         (mask64_operand): Delete.
14459         (mask64_2_operand): Delete.
14460         (and64_operand): Delete.
14461         (and64_2_operand): Delete.
14462         (and_operand): Delete.
14463         (reg_or_mem_operand): Delete.
14464         (lwa_operand): Delete.
14465         (symbol_ref_operand): Delete.
14466         (call_operand): Delete.
14467         (current_file_function_operand): Delete.
14468         (input_operand): Delete.
14469         (rs6000_nonimmediate_operand): Delete.
14470         (rs6000_tls_symbol_ref): Delete.
14471         (save_world_operation): Delete.
14472         (restore_world_operation): Delete.
14473         (load_multiple_operation): Delete.
14474         (store_multiple_operation): Delete.
14475         (vrsave_operation): Delete.
14476         (mfcr_operation): Delete.
14477         (mtcrf_operation): Delete.
14478         (lmw_operation): Delete.
14479         (stmw_operation): Delete.
14480         (branch_comparison_operator): Delete.
14481         (branch_positive_comparison_operator): Delete.
14482         (scc_comparison_operator): Delete.
14483         (trap_comparison_operator): Delete.
14484         (boolean_operator): Delete.
14485         (boolean_or_operator): Delete.
14486         (min_max_operator): Delete.
14487         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Move to here.
14488         (EASY_VECTOR_15): Moved to here.
14489         (EASY_VECTOR_15_ADD_SELF): Move to here.
14490         (PREDICATE_CODES): Delete.
14491         * config/rs6000/rs6000-protos.h: Delete predicate functions.
14492         Declare functions no longer static.
14493         * config/rs6000/predicates.md: New.
14494         * config/rs6000/rs6000.md: Include predicates.md
14496 2005-02-28  Kazu Hirata  <kazu@cs.umass.edu>
14498         * calls.c (emit_call_1): Don't use  REG_ALWAYS_RETURN.
14499         (emit_library_call_value_1): Don't use LCT_ALWAYS_RETURN and
14500         REG_ALWAYS_RETURN.
14501         * cfgrtl.c (need_fake_edge_p): Likewise.
14502         * combine.c (distribute_notes): Likewise.
14503         * emit-rtl.c (try_split): Likewise.
14504         * recog.c (peephole2_opimize): Likewise.
14505         * reg-notes.def (ALWAYS_RETURN): Remove.
14506         * rtl.h (LCT_ALWAYS_RETURN): Remove.
14507         * tree-cfg.c (need_fake_edge_p): Don't use ECF_ALWAYS_RETURN.
14508         * tree.h (ECF_ALWAYS_RETURN): Remove.
14510 2005-02-28  Roger Sayle  <roger@eyesopen.com>
14512         PR middle-end/19874
14513         * tree-ssa.c (tree_ssa_useless_type_conversion_1): A conversion
14514         between different machine modes is never a "useless" conversion.
14516 2005-02-28  Geert Bosch  <bosch@gnat.com>
14518         PR ada/15977
14519         * doc/contrib.texi: List contributors for Ada front end
14521 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
14523         * simplify-rtx.c (simplify_unary_operation_1,
14524         simplify_const_unary_operation): New, extracted from...
14525         (simplify_unary_operation): ... this one.
14526         (simplify_binary_operation_1,
14527         simplify_const_binary_operation): New, extracted from...
14528         (simplify_binary_operation): ... this one.
14529         * rtl.h (simplify_const_unary_operation,
14530         simplify_const_binary_operation): Add prototypes.
14532 2005-02-28  Julian Brown  <julian@codesourcery.com>
14534         * config/elfos.h: Revert my patch from 2005-02-25 since it broke
14535         building libjava and caused PR regression/20228.
14537 2005-02-28  Paolo Bonzini  <bonzini@gnu.org>
14539         PR bootstrap/17383
14540         * Makefile.in (host_subdir): New.
14541         (build_objdir): New.  Replace ../$(build_subdir) with it throughout.
14542         * configure: Regenerate.
14544 2005-02-27  Zack Weinberg  <zack@codesourcery.com>
14546         * config/alpha/t-osf4, config/arm/t-netbsd, config/ia64/t-hpux
14547         * config/pa/t-hpux-shlib (SHLIB_INSTALL): Create the
14548         installation directory first.
14550 2005-02-28  Hans-Peter Nilsson  <hp@axis.com>
14552         PR target/19065.
14553         * config/cris/cris.h (EXTRA_CONSTRAINT_Q): Accept only (mem (reg)),
14554         not including (reg). Do not check for reg being CRIS_PC_REGNUM.
14555         (EXTRA_MEMORY_CONSTRAINT): Define as 'Q'.
14556         * config/cris/cris.md: Tweak comments referring to Q.
14557         ("cmpsi", "cmphi", "cmpqi", "*movsi_internal", "movhi")
14558         ("movstricthi", "movqi", "movstrictqi", "movsf", "addsi3")
14559         ("addhi3", "addqi3", "subsi3", "subhi3", "subqi3")
14560         ("*expanded_andsi", "*expanded_andhi", "*andhi_lowpart", "andqi3")
14561         ("*andqi_lowpart", "iorsi3", "iorhi3", "iorqi3", "uminsi3"):
14562         Insert spaces in constraints to align alternatives vertically for
14563         readability.
14564         ("cmphi"): Ditto.  Add separate alternative for operand 0 "r",
14565         operand 1: "M".
14567 2005-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14569         PR rtl-optimization/17728
14570         * pa.md (mulsi3, divsi3, udivsi3, modsi3): Change predicate for
14571         operand 0 from general_operand to move_dest_operand.
14573 2005-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14575         * pa/elf.h, pa/som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw
14576         instead of trying to save and restore TREE_SYMBOL_REFERENCED.
14577         * pa/pa64-hpux.h (ASM_OUTPUT_TYPE_DIRECTIVE): Define.
14578         (ASM_OUTPUT_EXTERNAL): Don't save and restore TREE_SYMBOL_REFERENCED.
14580 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
14582         * configure.ac: Rename cc_for_cross_gnattools to host_cc_for_libada.
14583         * configure: Regenerate.
14584         * libada-mk.in: Remove CC; rename
14585         cc_for_cross_gnattools / cc_set_by_configure to host_cc_for_libada.
14587 2005-02-26  Andrew Pinski  <pinskia@physics.uc.edu>
14589         PR tree-opt/20188
14590         * tree-ssa-alias.c (count_uses_and_derefs): If we have TREE_LIST
14591         for the lhs, also walk over the tree.  Likewise for rhs.
14593 2005-02-26  Zdenek Dvorak  <dvorakz@suse.cz>
14595         * tree-ssa-dom.c (simple_iv_increment_p): New function.
14596         (simplify_rhs_and_lookup_avail_expr, eliminate_redundant_computations):
14597         Do not propagate value of iv before increment over the increment.
14599 2005-02-25  Joseph S. Myers  <joseph@codesourcery.com>
14601         * c-parser.c: New file.
14602         * c-parse.in: Remove.
14603         * Makefile.in (c-parse.o-warn, c-parse.o, c-parse.c, c-parse.y):
14604         Remove.
14605         (c-parser.o): Add dependencies.
14606         (C_AND_OBJC_OBJC, C_OBJS, gcc.srcextra, GTFILES, distclean,
14607         maintainer-clean, TAGS): Update.
14608         * c-config-lang.in (gtfiles): Update.
14609         * gengtype-lex.l: Don't handle "@@".
14610         * stub-objc.c (objc_get_class_ivars, objc_build_throw_stmt,
14611         objc_build_synchronized, objc_begin_try_stmt,
14612         objc_begin_catch_clause, objc_finish_catch_clause,
14613         objc_build_finally_clause, objc_finish_try_stmt): New.
14614         * c-tree.h (struct c_declspecs): Add declspecs_seen_p and
14615         type_seen_p.
14616         (c_parse_init): Update comment.
14617         * c-decl.c (c_init_decl_processing): Update comment.
14618         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
14619         declspecs_add_scspec, declspecs_add_attrs): Initialize and update
14620         new c_declspecs members.
14622 2005-02-25  Julian Brown  <julian@codesourcery.com>
14624         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
14625         from being used for symbols with vague linkage when
14626         HAVE_GAS_COMDAT_GROUP is true.
14628 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
14630         * doc/include/gcc-common.texi (version-GCC): Update to 4.1.
14632 2005-02-25  Steve Ellcey  <sje@cup.hp.com>
14634         PR target/19930
14635         * doc/tm.texi (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Document.
14636         (LIBGCC2_HAS_DF_MODE): New.
14637         (LIBGCC2_HAS_XF_MODE): New.
14638         (LIBGCC2_HAS_TF_MODE): New.
14639         * libgcc2.h (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
14640         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
14641         * libgcc2.c (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
14642         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
14643         (LIBGCC2_HAS_DF_MODE): New name for HAVE_DFMODE.
14644         * config/ia64/t-ia64 (LIB1ASMFUNCS): Remove __compat
14645         and add _fixtfdi, _fixunstfdi, _floatditf
14646         * lib1funcs.asm: Remove L__compat. Add L_fixtfdi,
14647         L_fixunstfdi, L_floatditf.
14648         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE): Define.
14649         (LIBGCC2_HAS_TF_MODE): Define.
14651 2005-02-25  Diego Novillo  <dnovillo@redhat.com>
14653         PR tree-optimization/20204
14654         * tree-into-ssa.c (insert_phi_nodes_for): Do not use
14655         REWRITE_THIS_STMT markers on PHI nodes.
14656         (rewrite_initialize_block): Likewise.
14658 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
14660         * version.c (version_string): Update to 4.1.
14662 2005-02-25  Paolo Carlini  <pcarlini@suse.de>
14664         * doc/extend.texi (5.24 Declaring Attributes of Functions)<noreturn>:
14665         Clarify that the alternative way doesn't work in GNU C++.
14667 2005-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
14669         PR tree-optimization/19937
14670         * tree-ssa-loop-ivopts.c (rewrite_use_compare): Cast the final value
14671         to the type of the induction variable.
14673 2005-02-25  Kaz Kojima  <kkojima@gcc.gnu.org>
14675         PR rtl-optimization/20117
14676         * bb-reorder.c (duplicate_computed_gotos): Don't duplicate
14677         the block including noncopyable insn.
14679 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
14681         * cse.c (delete_trivially_dead_insns): Speed up by minimizing
14682         calls to find_reg_note.
14684 2005-02-24  Richard Henderson  <rth@redhat.com>
14686         PR tree-opt/20127
14687         * tree-sra.c (instantiate_element): Copy TREE_THIS_VOLATILE from
14688         the type.
14690 2005-02-24  Fariborz Jahanian <fjahanian@apple.com>
14692         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for
14693         vector types if to use base reg for misaligned non-word ld/std.
14695 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
14697         PR target/14619
14698         * config/cris/cris.c (cris_target_asm_function_prologue): Create
14699         dwarf2 label manually and put it after, not before the prologue.
14701 2005-02-24  David Edelsohn  <edelsohn@gnu.org>
14703         PR target/19019
14704         * reload.c (operands_match_p): Only increment register number for
14705         SCALAR_INT_MODE_P modes in multiple hard registers.
14707         * config/rs6000/rs6000.md (trunctfdf2): Remove register constraints.
14708         Fix formatting.
14710 2005-02-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
14712         * ChangeLog.5: Fix log message typo(s).
14713         * ChangeLog.7: Likewise.
14714         * ChangeLog.tree-ssa: Likewise.
14715         * cfgexpand.c: Fix comment typo(s).
14716         * conflict.c: Likewise.
14717         * defaults.h: Likewise.
14718         * dwarf2out.c: Likewise.
14719         * gcse.c: Likewise.
14720         * ggc-page.c: Likewise.
14721         * tree-eh.c: Likewise.
14722         * tree-ssa-dom.c: Likewise.
14724 2005-02-24  Jakub Jelinek  <jakub@redhat.com>
14726         PR target/19019
14727         * mklibgcc.in: Pass -DSHARED when compiling all *_s${objext} objects.
14728         * config/rs6000/darwin-ldouble.c: Only use the .symver directives
14729         if SHARED is defined.
14731         PR target/20196
14732         * config/rs6000/rs6000.md (LTU, GTU sCC splitters): Add earlyclobber,
14733         allow splitting only if operands 0 and 3 don't overlap.
14735 2005-02-24  Richard Henderson  <rth@redhat.com>
14737         PR middle-end/19953
14738         * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New.
14739         (fold_builtin_1): Call them.
14740         * fold-const.c (fold_complex_mult_parts): Split out from ...
14741         (fold_complex_mult): ... here.  Fix typo in both imaginary case.
14742         (fold_complex_div_parts, fold_complex_div): New.
14743         (fold): Use them.
14744         * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare.
14746 2005-02-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14748         * tree-ssa-ccp.c (visit_assignment): Verify that result of
14749         VIEW_CONVERT_EXPR is_gimple_min_invariant.
14751         * print-tree.c (print_node_brief): Print LABEL_DECL_UID.
14752         (print_node): Likewise.
14753         Print TYPE_SIZES_GIMPLIFIED.
14755 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
14757         * config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
14758         ("mulqihi3", "mulhisi3", "mulsidi3", "umulsidi3"): Mark input
14759         operands as commutative in constraints.
14761 2005-02-24  Diego Novillo  <dnovillo@redhat.com>
14763         * tree-into-ssa.c: Re-organize internal functions.
14765 2005-02-24  Richard Henderson  <rth@redhat.com>
14767         PR middle-end/18902
14768         * c-opts.c (c_common_post_options): Set flag_complex_method to 2
14769         for c99.
14770         * common.opt (fcx-limited-range): New.
14771         * opts.c (set_fast_math_flags): Set flag_cx_limited_range.
14772         * toplev.c (flag_complex_method): Initialize to 1.
14773         (process_options): Set flag_complex_method to 0 if
14774         flag_cx_limited_range.
14775         * doc/invoke.texi (-fcx-limited-range): New.
14777 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
14779         * cse.c (delete_trivially_dead_insns): Speed up by using
14780         NEXT_INSN and PREV_INSN directly instead of next_real_insn and
14781         prev_real_insn.
14783 2005-02-24  Andrea Tarani  <andrea.tarani@gilbarco.com>
14785         * config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
14786         functions when -mid-shared-library is being used.
14788 2005-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
14790         * doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove.
14791         (LINK_LIBGCC_SPECIAL_1): Don't mention it.
14792         * gcc.c: Don't check for LINK_LIBGCC_SPECIAL.
14793         * system.h: Poison LINK_LIBGCC_SPECIAL.
14795 2005-02-23  James E Wilson  <wilson@specifixinc.com>
14797         * gengtype.c (note_insn_name): Make 1 element larger.
14799 2005-02-23  Roger Sayle  <roger@eyesopen.com>
14801         PR target/20018
14802         PR rtl-optimization/20097
14803         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
14804         BImode SUBREGs of SImode registers which confuse the ia64 backend.
14806 2005-02-23  David Edelsohn  <edelsohn@gnu.org>
14808         * t-aix43 (SHLIB_INSTALL): Create directory for shared library.
14809         * t-aix52 (SHLIB_INSTALL): Same.
14811 2005-02-23  Kazu Hirata  <kazu@cs.umass.edu>
14813         * genpreds.c: Update copyright.
14815 2005-02-23  Michael Beach  <michaelb@ieee.org>
14817         PR target/20159
14818         * config/sparc/t-elf (startup files): Assemble with CPP.
14820 2005-02-23  Paolo Bonzini  <bonzini@gnu.org>
14822         * genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
14823         (write_predicate_expr): Likewise.
14825 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
14827         PR tree-optimization/20100
14828         PR tree-optimization/20115
14829         * tree-optimize.c (init_tree_optimization_passes): Remove
14830         pass_maybe_create_global_var.
14831         * tree-pass.h (pass_maybe_create_global_var): Remove.
14832         * tree-ssa-alias.c (aliases_computed_p): Declare.
14833         (struct alias_info): Add field NUM_PURE_CONST_CALLS_FOUND.
14834         (count_calls_and_maybe_create_global_var): Remove.
14835         (pass_maybe_create_global_var): Remove.
14836         (init_alias_info): Do not declare aliases_computed_p.
14837         (maybe_create_global_var): If the function contains no
14838         call-clobbered variables and a mix of pure/const and regular
14839         function calls, create .GLOBAL_VAR.
14840         Mark all call-clobbered variables for renaming.
14841         (merge_pointed_to_info): Update comment.
14842         (add_pointed_to_var): Likewise.
14843         (is_escape_site): Likewise.
14844         Accept struct alias_info * instead of size_t *.
14845         Update all users.
14846         Update AI->NUM_CALLS_FOUND and AI->NUM_PURE_CONST_CALLS_FOUND
14847         as necessary.
14848         * tree-ssa-operands.c (get_call_expr_operands): If
14849         ALIASES_COMPUTED_P is false, do not add call-clobbering
14850         operands.
14851         * tree-ssa.c (init_tree_ssa): Set ALIASES_COMPUTED_P to false.
14852         (delete_tree_ssa): Likewise.
14854 2005-02-22  James E Wilson  <wilson@specifixinc.com>
14856         * toplev.c (backend_init): Don't call init_adjust_machine_modes here.
14857         (do_compile): Do call it here.
14859 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
14861         PR rtl-optimization/20017.
14862         * passes.c (rest_of_handle_combine, rest_of_handle_cse,
14863         rest_of_handle_cse2, rest_of_handle_gcse): Call
14864         delete_dead_jumptables immediately before calling cleanup_cfg.
14866 2005-02-22  Devang Patel  <dpatel@apple.com>
14868         PR 19952
14869         * tree-if-conv.c (process_phi_nodes): Use bsi_after_labels and skip
14870         all labels
14872 2005-02-22  David Edelsohn  <edelsohn@gnu.org>
14874         * config/rs6000/aix.h (WINT_TYPE): Define.
14876 2005-02-22  Stan Shebs  <shebs@apple.com>
14878         * config/rs6000/rs6000.c (rs6000_override_options): Default to
14879         natural alignment for 64-bit Darwin.
14880         (rs6000_parse_alignment_option): Warn about uses of -malign-power
14881         on 64-bit Darwin.
14882         * doc/invoke.texi: Document this.
14884 2005-02-22  DJ Delorie  <dj@redhat.com>
14886         * c-common.c (c_common_type_for_mode): Pass the mode's precision
14887         to make_[un]signed_type, not the mode itself.
14889 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
14891         * cfg.c (cached_make_edge): Call make_edge if edge cache is
14892         not available.  Use tail calls wherever possible.
14893         (make_edge): Call unchecked_make_edge to create an edge.
14895         * tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
14896         (coalesce_ssa_name): Don't check for
14897         SSANORM_USE_COALESCE_LIST.
14898         (rewrite_out_of_ssa): Don't use SSANORM_USE_COALESCE_LIST.
14900 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
14902         * tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
14903         (rewrite_into_ssa): ... here.
14905 2005-02-21  Alexandre Oliva  <aoliva@redhat.com>
14907         PR tree-optimization/19786
14908         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add one
14909         tag to another's may-alias bitmap when adding to the other's list.
14911 2005-02-21  DJ Delorie  <dj@redhat.com>
14913         * tree-ssa-loop-ivopts.c (computation_cost): Start register
14914         numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using hard
14915         registers in unsupported ways.
14916         * expmed.c (init_expmed): Likewise.
14918 2005-02-21  Stan Cox  <scox@redhat.com>
14920         * config/iq2000/iq2000.h (DWARF_FRAME_RETURN_COLUMN): Change to 31.
14922 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
14924         * tree-cfg.c (fold_cond_expr_cond): New.
14925         (make_edges): Call fold_cond_expr_cond.
14926         (find_taken_edge): Accept nothing but INTEGER_CST.
14927         (find_taken_edge_cond_expr): Reject INTEGER_CST other than 0
14928         and 1.
14929         (find_taken_edge_switch_expr): Remove a check for INTEGER_CST.
14931         * flow.c (delete_dead_jumptables): Speed up by scanning insns
14932         that do not belong to any basic block.
14934 2005-02-21  Jeff Law  <law@redhat.com>
14936         * cfganal.c (find_unreachable_blocks): Manually CSE load of
14937         e->dest.
14939 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
14941         * tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
14942         (SSANORM_COALESCE_PARTITIONS, SSANORM_USE_COALESCE_LIST):
14943         Adjust their definitions.
14944         (remove_ssa_form): Don't check for SSANORM_REMOVE_ALL_PHIS.
14945         (rewrite_out_of_ssa): Don't use SSANORM_REMOVE_ALL_PHIS.
14947         * c-objc-common.h, c-pretty-print.c, cgraphunit.c, except.c,
14948         genautomata.c, langhooks.c, langhooks.h, system.h,
14949         config/arm/lib1funcs.asm: Update copyright.
14951 2005-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
14953         * dbxout.c (dbxout_function_end): Emit Lscope label always.
14955 2005-02-21  Richard Guenther  <rguenth@gcc.gnu.org>
14957         PR bootstrap/13770
14958         * doc/install.texi: Document --with-gc.
14960 2005-02-21  Paolo Bonzini  <bonzini@gnu.org>
14962         * simplify-rtx.c (simplify_unary_operation): Add a missing
14963         "break" statement.
14965 2005-02-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
14967         PR tree-optimization/18663
14968         * tree-ssa-dom.c (extract_range_from_cond): Return 0
14969         if the type has variable bounds.
14971 2005-02-20  Kazu Hirata  <kazu@cs.umass.edu>
14973         * gcse.c: Remove an obsolete comment.
14975         * cse.c (init_cse_reg_info): Use xmalloc instead of xrealloc.
14977 2005-02-20  Hans-Peter Nilsson  <hp@axis.com>
14979         * doc/extend.texi (Function Attributes) <Attribute const>: The
14980         attribute "pure" is below this text, not above.
14982 2005-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14984         * pa.c (pa_assemble_integer, get_plabel): Small cleanups.
14985         (pa_asm_output_mi_thunk): Use asm_output_insn instead of fprintf.
14986         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Small cleanup.
14988 2005-02-20  Zack Weinberg  <zack@codesourcery.com>
14990         PR 18785
14991         * langhooks.h (struct lang_hooks): Add to_target_charset.
14992         * langhooks.c (lhd_to_target_charset): New function.
14993         * langhooks-def.h: Declare lhd_to_target_charset.
14994         (LANG_HOOKS_TO_TARGET_CHARSET): New macro.
14995         (LANG_HOOKS_INITIALIZER): Update.
14996         * c-common.c (c_common_to_target_charset): New function.
14997         * c-common.h: Declare it.
14998         * c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
14999         c_common_to_target_charset.
15001         * defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
15002         (TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
15003         Delete definitions.
15004         * system.h: Poison them.
15005         * doc/tm.texi: Don't discuss them.
15006         * builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
15007         * c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
15008         (pp_c_char): Do not attempt to generate letter escapes for
15009         newline, tab, etc.
15010         * config/arm/arm.c (output_ascii_pseudo_op): Likewise.
15011         * config/mips/mips.c (mips_output_ascii): Likewise.
15013 2005-02-20  Dorit Naishlos  <dorit@il.ibm.com>
15015         PR tree-optimization/19951
15016         * tree-vect-analyze.c (vect_analyze_loop_form): Check if loop exit edge
15017         is abnormal.
15019 2005-02-19  Steven Bosscher  <stevenb@suse.de>
15021         PR middle-end/19698
15022         * function.h (struct function): New field `max_loop_depth'.
15023         * cfgloop.c (establish_preds): Update maximum loop depth seen so far.
15024         (flow_loops_find): Reset the max loop depth count before finding loops.
15025         * flow.c (MAX_LIVENESS_ROUNDS): New constant.
15026         (update_life_info_in_dirty_blocks): Remove 2002-05-28 workaround.
15027         (calculate_global_regs_live): Make sure the loop will terminate
15028         when the initial sets are not empty.
15030 2005-02-19  Zack Weinberg  <zack@codesourcery.com>
15032         * mklibgcc.in: If libgcc_eh.a would be empty, put a dummy
15033         object inside.
15034         * config/ia64/hpux.h: Don't define LIBGCC_SPEC.
15036 2005-02-19  Richard Sandiford  <rsandifo@redhat.com>
15038         PR other/19525
15039         * doc/invoke.texi: Remove documentation of %M spec.
15040         * gcc.c: Likewise.
15041         (init_spec): Remove %M suffix from -lgcc_s.
15042         (do_spec_1): Remove 'M' case.
15043         * mklibgcc.in: Remove SHLIB_MULTILIB handling.  Expect SHLIB_LINK
15044         to put shared libraries in the multilib directory.  Remove the
15045         shlib_so_soname substitution variable.  Don't add a multilib encoding
15046         to shlib_base_name.  Set shlib_slibdir_qual to the full pathname
15047         reported by -print-multi-os-directory.  Pass @multilib_dir@ to
15048         SHLIB_INSTALL as well as SHLIB_LINK.
15049         * config/t-slibgcc-elf-ver (SHLIB_SONAME): Use @shlib_base_name@.
15050         (SHLIB_NAME): Delete.
15051         (SHLIB_DIR): New macro.
15052         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_SOLINK) in $(SHLIB_DIR).
15053         (SHLIB_INSTALL): Adjust accordingly.
15054         * config/t-slibgcc-darwin: As for t-slibgcc-elf-ver.
15055         * config/t-slibgcc-sld: Likewise.
15056         * config/t-libunwind-elf (SHLIBUNWIND_NAME): Delete.
15057         (SHLIBUNWIND_SONAME): Use @shlib_base_name@.
15058         (SHLIBUNWIND_LINK): Put $(SHLIBUNWIND_SONAME) and $(SHLIB_SOLINK)
15059         in $(SHLIB_DIR).
15060         (SHLIBUNWIND_INSTALL): Adjust accordingly.
15061         * config/i386/t-nwld (SHLIB_SONAME): Delete.
15062         (SHLIB_LINK, SHLIB_INSTALL): Use SHLIB_NAME instead of SHLIB_SONAME.
15063         Use @shlib_base_name@ instead of @shlib_so_name@.
15064         * config/ia64/t-hpux (SHLIB_LINK): Put @shlib_base_name@.so.0
15065         and @shlib_base_name@.so in @multilib_dir@.
15066         (SHLIB_INSTALL): Adjust accordingly.  Add @shlib_slibdir_qual@
15067         to the install path.
15068         * config/mips/t-slibgcc-irix: As for t-slibgcc-elf-ver.
15069         (SHLIB_LINK): Remove previous workaround.
15070         * config/pa/t-hpux-shlib (SHLIB_DIR, SHLIB_SLIBDIR_QUAL): New macros.
15071         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_NAME) in $(SHLIB_DIR).
15072         (SHLIB_INSTALL): Adjust accordingly.  Add $(SHLIB_SLIBDIR_QUAL) to
15073         the install path.
15074         * config/rs6000/t-aix43 (SHLIB_LINK): Put @shlib_base_name@.a in
15075         @multilib_dir@.  Use @multilib_dir@ to check for threading libraries.
15076         (SHLIB_INSTALL): Adjust accordingly.
15077         (SHLIB_LIBS): Use @multilib_dir@ to check for threading libraries.
15078         * config/rs6000/t-aix52: As for config/rs6000/t-aix43.
15079         * config/sh/t-linux (SHLIB_LINK, SHLIB_INSTALL): As for
15080         config/t-slibgcc-elf-ver.
15082 2005-02-19  Zdenek Dvorak  <dvorakz@suse.cz>
15083             Jakub Jelinek  <jakub@redhat.com>
15085         PR tree-optimization/19828
15086         * tree-ssa-loop-im.c: Add a TODO comment.
15087         (movement_possibility): Return MOVE_PRESERVE_EXECUTION for calls
15088         without side-effects.
15090 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
15092         * tree-ssa-ccp.c (widen_bitfield): Pass type to build_int_cst and don't
15093         call fold_convert.
15095 2005-02-18  James E. Wilson  <wilson@specifixinc.com>
15097         * doc/invoke.texi (IA-64 Options): Delete -mb-step.
15098         * config/ia64/ia64.c (last_group, group_idx): Delete variables.
15099         (errata_find_address_regs, errata_emit_nops, fixup_errata): Delete
15100         functions.
15101         (ia64_reorg): Delete fixup_errata call.
15102         * config/ia64/ia64.h (MASK_B_STEP, TARGET_B_STEP): Delete.
15103         (TARGET_SWITCHES): Delete -mb-step entry.
15105 2005-02-19  Jakub Jelinek  <jakub@redhat.com>
15107         PR c/20043
15108         * c-typeck.c (composite_type): Handle quals in transparent unions.
15109         (type_lists_compatible_p): Likewise.
15111 2005-02-18  Stan Shebs  <shebs@apple.com>
15113         * config/darwin.c (machopic_select_rtx_section): Don't put relocatable
15114         expressions in the .literal8 section.
15116 2005-02-18  Geoffrey Keating  <geoffk@apple.com>
15118         * config/rs6000/darwin-tramp.asm: Remove stray 'APPLE LOCAL' marker.
15120 2005-02-18  Roger Sayle  <roger@eyesopen.com>
15122         * fold-const.c (constant_boolean_node): Always create values of the
15123         specified type, don't bother calling truthvalue_conversion.
15125 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
15127         * except.c (output_function_exception_table): Call
15128         assemble_external_libcall (eh_personality_libfunc).
15130 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
15132         PR target/19886
15133         * config/ia64/ia64.h (struct machine_function): Add state_num.
15134         * config/ia64/ia64.c (process_epilogue,
15135         process_for_unwind_directive): Use new unwind state numbers each
15136         time rather than state 1.
15138 2005-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
15140         PR target/20054
15141         * config/s390/s390.md ("*llgt_sidi", "*llgt_sidi_split"): Move to
15142         before the "*llgt_didi" pattern.
15144 2005-02-18  Jason Merrill  <jason@redhat.com>
15146         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Revert again.
15148 2005-02-18  Richard Earnshaw  <rearnsha@arm.com>
15150         * arm/lib1funcs.asm (FUNC_ALIAS): New macro.
15151         (div0): Use it in place of ARM_FUNC_ALIAS.
15152         (lshrdi3, ashrdi3, ashlrdi3): Likewise.
15154 2005-02-18  Andrew Pinski  <pinskia@physics.uc.edu>
15156         PR middle-end/20030
15157         * fold-const.c (fold_indirect_ref_1): Use the correct index for zero
15158         access, the lower bound of the array type if it exists.
15160 2005-02-18  Alexandre Oliva  <aoliva@redhat.com>
15162         PR c++/20008
15163         * stmt.c (expand_case): Don't assume cleanup_tree_cfg will remove
15164         cases that are out-of-range for the index type.
15166 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
15168         * stmt.c (emit_case_bit_tests): Call fold_convert instead of convert.
15169         (estimate_case_costs): Don't call convert.
15170         * expmed.c (expand_shift): Likewise.
15171         (make_tree): Call fold_convert instead of convert.
15173 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
15175         PR c++/19813
15176         * emit-rtl.c (set_mem_attributes_minus_bitpos): Add assertion
15177         that ref to be marked MEM_READONLY_P doesn't have base that needs
15178         constructing.
15180 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
15182         * genautomata.c (output_get_cpu_unit_code_func,
15183         output_cpu_unit_reservation_p): Don't generate old-style function
15184         definitions.
15186 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
15188         PR c++/20023
15189         PR tree-optimization/20009
15190         * convert.c (convert_to_integer): Revert 2005-02-16 change.
15192         PR tree-optimization/18947
15193         * cgraphunit.c (cgraph_finalize_function): When redefining an extern
15194         inline, remove all nodes that are inlined into the extern inline
15195         being redefined.
15197 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
15199         * bt-load.c, cfgloop.c, convert.c, dominance.c, global.c,
15200         loop-invariant.c, stmt.c, tree-ssa-forwprop.c,
15201         tree-ssa-live.c, tree-ssanames.c, tree-vn.c,
15202         config/host-linux.c, config/arm/fpa.md, config/avr/avr.h:
15203         Update copyright.
15205 2005-02-17  Roger Sayle  <roger@eyesopen.com>
15207         PR tree-optimization/19917
15208         * tree-eh.c (tree_could_trap_p): Consider calls to weak functions
15209         to be potentially trapping.
15211 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
15213         * libgcc2.c, tree-vect-analyze.c: Fix comment typos.
15215 2005-02-17  Andreas Krebbel  <krebbel1@de.ibm.com>
15217         * builtins.c (expand_builtin_return_addr): Remove tem parameter.
15218         tem becomes a local variable which is set to the value of the
15219         back end defined INITIAL_FRAME_ADDRESS macro.
15220         (expand_builtin_frame_address): Omit the base parameter to
15221         expand_builtin_return_addr.
15222         (expand_builtin_profile_func): Likewise.
15223         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Define new macro.
15224         (DYNAMIC_CHAIN_ADDRESS): Remove the case for the initial frame.
15225         * doc/tm.texi: Documentation for INITIAL_FRAME_ADDRESS_RTX added.
15227 2005-02-17  Jakub Jelinek  <jakub@redhat.com>
15229         * config/s390/s390.c (s390_alloc_pool, s390_free_pool,
15230         s390_chunkify_start): Use BITMAP_ALLOC and BITMAP_FREE.
15231         * config/frv/frv.c (frv_function_epilogue): Likewise.
15233 2005-02-17  Daniel Berlin  <dberlin@dberlin.org>
15235         * lambda-code (perfect_nestify): Remove mark/unmark
15236         for rewriting hack.
15237         * tree-loop-linear.c (linear_transform_loops): Add
15238         rewrite_into_ssa call so that ssa is correct for
15239         rewriting into loop closed.
15241 2005-02-17  Nathan Sidwell  <nathan@codesourcery.com>
15243         * bitmap.h (BITMAP_XMALLOC, BITMAP_XFREE): Remove.
15244         * bb-reorder.c (duplicate_computed_gotos): Use BITMAP_ALLOC and
15245         BITMAP_FREE.
15246         * bt-load.c (btr_def_live_range, combine_btr_defs,
15247         migrate_btr_def, migrate_btr_defs): Likewise.
15248         * cfgcleanup.c (thread_jump): Likewise.
15249         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
15250         * df.c (df_insn_table_realloc, df_bitmaps_alloc, df_bitmaps_free,
15251         df_alloc, df_free, df_du_chain_create, df_bb_rd_local_compute,
15252         df_rd_local_compute, df_reg_info_compute): Likewise.
15253         * dominance.c (init_dom_info, free_dom_info): Likewise.
15254         * flow.c (init_propagate_block_info,
15255         free_propagate_block_info): Likewise.
15256         * gcse.c (alloc_gcse_mem, free_gcse_mem): Likewise.
15257         * global.c (allocate_bb_info, free_bb_info, calculate_reg_pav,
15258         modify_reg_pav): Likewise.
15259         * loop-invariant.c (find_defs, find_invariant_insn,
15260         find_invariants, free_inv_motion_data): Likewise.
15261         * predict.c (tree_predict_by_opcode,
15262         estimate_bb_frequencies): Likewise.
15263         * stmt.c (expand_case): Likewise.
15264         * tree-cfg.c (tree_duplicate_sese_region): Likewise.
15265         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
15266         * tree-if-conv.c (get_loop_body_in_if_conv_order): Likewise.
15267         * tree-into-ssa.c (insert_phi_nodes_for, def_blocks_free,
15268         get_def_blocks_for, mark_def_site_blocks, rewrite_into_ssa,
15269         rewrite_ssa_into_ssa): Likewise.
15270         * tree-optimize.c (tree_rest_of_compilation): Likewise.
15271         * tree-outof-ssa.c (new_temp_expr_table, free_temp_expr_table,
15272         analyze_edges_for_bb, perform_edge_inserts): Likewise.
15273         * tree-scalar-evolution.c (scev_initialize, scev_finalize): Likewise.
15274         * tree-sra.c (tree_sra): Likewise.
15275         * tree-ssa-alias.c (init_alias_info, delete_alias_info): Likewise.
15276         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
15277         * tree-ssa-dce.c (tree_dce_init, tree_dce_done): Likewise.
15278         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
15279         * tree-ssa-dse.c (tree_ssa_dse): Likewise.
15280         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_var):
15281         Likewise.
15282         * tree-ssa-live.c (new_tree_live_info, delete_tree_live_info,
15283         calculate_live_on_entry, calculate_live_on_exit,
15284         build_tree_conflict_graph): Likewise.
15285         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_init, record_use,
15286         record_important_candidates, set_use_iv_cost, find_depends,
15287         determine_use_iv_costs, iv_ca_new, iv_ca_free, free_loop_data,
15288         tree_ssa_iv_optimize_finalize): Likewise.
15289         * tree-ssa-loop-manip.c (add_exit_phis_var, get_loops_exit,
15290         find_uses_to_rename_use, rewrite_into_loop_closed_ssa,
15291         tree_duplicate_loop_to_header_edge): Likewise.
15292         * tree-ssa-pre.c (init_pre, fini_pre): Likewise.
15293         * tree-ssa.c (verify_flow_insensitive_alias_info,
15294         verify_name_tags, verify_ssa, init_tree_ssa,
15295         delete_tree_ssa): Likewise.
15296         * tree-ssanames.c (marked_ssa_names, init_ssanames,
15297         fini_ssanames): Likewise.
15298         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Likewise.
15300 2005-02-17  Ralf Corsepius  <ralf.corsepius@rtems.org>
15302         * config/rs6000/t-rtems: Completely reworked.
15304 2005-02-17  Ira Rosen  <irar@il.ibm.com>
15306         * tree-data-ref.c (array_base_name_differ_p): Remove gcc_assert.
15308 2005-02-17  Ira Rosen  <irar@il.ibm.com>
15310         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Use
15311         POINTER_TYPE_P when checking that type is a pointer.
15312         (vect_get_memtag): Remove.
15313         (vect_address_analysis): Use POINTER_TYPE_P. Call
15314         vect_object_analysis with dummy parameter for memtag.
15315         (vect_object_analysis): Extract memtag (functionality that
15316         used to be in vect_get_memtag and moved here). Fix printings.
15317         (vect_analyze_data_refs): Fix comment. Call vect_object_analysis
15318         with correct parameters. Remove call to vect_get_memtag.
15320 2005-02-17  Dorit Naishlos  <dorit@il.ibm.com>
15322         * Makefile.in (tree-vect-analyze.o, tree-vect-transform.o): New.
15323         (tree-vectorizer.o): Added missing dependencies.
15325         * tree-vectorizer.h (vect_dump, vect_verbosity_level): Added extern
15326         decleration.
15327         (slpeel_tree_peel_loop_to_edge): Function externalized (had a static
15328         declaration in tree-vectorizer.c, now has an extern declaration in
15329         tree-vectorizer.h).
15330         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
15331         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
15332         get_vectype_for_scalar_type, vect_is_simple_use,
15333         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
15334         vect_supportable_dr_alignment, new_loop_vec_info, destroy_loop_vec_info,
15335         new_stmt_vec_info, vect_analyze_loop, vectorizable_load,
15336         vectorizable_store, vectorizable_operation, vectorizable_assignment,
15337         vect_transform_loop, vect_print_dump_info, vect_set_verbosity_level,
15338         find_loop_location): Likewise.
15340         * tree-vectorizer.c (langhooks.h): #include removed.
15341         (slpeel_tree_peel_loop_to_edge): Function externalized. Declaration
15342         moved to tree-vectorized.h.
15343         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
15344         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
15345         get_vectype_for_scalar_type, vect_is_simple_use,
15346         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
15347         vect_supportable_dr_alignment, new_loop_vec_info,
15348         destroy_loop_vec_info, new_stmt_vec_info, vect_print_dump_info,
15349         vect_set_verbosity_level, find_loop_location): Likewise.
15351         (vect_analyze_loop): Function externalized. Declaration moved to
15352         tree-vectorized.h. Function definition moved to tree-vect-analyze.c.
15353         (vect_analyze_loop_form): Moved to tree-vect-analyze.c.
15354         (vect_mark_stmts_to_be_vectorized, vect_analyze_scalar_cycles,
15355         vect_analyze_data_ref_accesses, vect_analyze_data_ref_dependences,
15356         vect_analyze_data_refs_alignment, vect_compute_data_refs_alignment,
15357         vect_enhance_data_refs_alignment, vect_analyze_operations,
15358         exist_non_indexing_operands_for_use_p, vect_mark_relevant,
15359         vect_stmt_relevant_p, vect_get_loop_niters,
15360         vect_analyze_data_ref_dependence, vect_compute_data_ref_alignment,
15361         vect_analyze_data_ref_access, vect_analyze_pointer_ref_access,
15362         vect_can_advance_ivs_p, vect_get_ptr_offset, vect_analyze_offset_expr,
15363         vect_base_addr_differ_p, vect_object_analysis, vect_address_analysis,
15364         vect_get_memtag): Likewise.
15366         (vectorizable_load): Function externalized. Declaration moved to
15367         tree-vectorized.h. Function definition moved to tree-vect-transform.c.
15368         (vectorizable_store, vectorizable_operation, vectorizable_assignment,
15369         vect_transform_loop): Likewise.
15370         (vect_transform_stmt): Moved to tree-vect-transform.c.
15371         (vect_align_data_ref, vect_create_destination_var,
15372         vect_create_data_ref_ptr, vect_create_index_for_vector_ref,
15373         vect_create_addr_base_for_vector_ref, vect_get_new_vect_var,
15374         vect_get_vec_def_for_operand, vect_init_vector,
15375         vect_finish_stmt_generation, vect_generate_tmps_on_preheader,
15376         vect_build_loop_niters, vect_update_ivs_after_vectorizer,
15377         vect_gen_niters_for_prolog_loop, vect_update_inits_of_dr,
15378         vect_update_inits_of_drs, vect_do_peeling_for_alignment,
15379         vect_do_peeling_for_loop_bound): Likewise.
15381         * tree-vect-analyze.c: New file.
15382         * tree-vect-transform.c: New file.
15384 2005-02-17  Jason Merrill  <jason@redhat.com>
15386         PR mudflap/19319, c++/19317
15387         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return
15388         slot explicit.
15390 2005-02-17  Gerald Pfeifer  <gerald@pfeifer.com>
15392         * doc/install.texi (Specific): Update link for Darwin-specific
15393         tool binary site.
15395 2005-02-16  James A. Morrison  <phython@gcc.gnu.org>
15397         * fold-const.c (invert_truthvalue): <INTEGER_CST>: Call
15398         constant_boolean_node.
15400 2005-02-16  David Edelsohn  <edelsohn@gnu.org>
15402         PR target/19019
15403         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
15404         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Same.
15406 2005-02-16  Richard Henderson  <rth@redhat.com>
15408         PR 19920
15409         * libgcc2.c (WORD_SIZE): Remove all definitions; replace uses
15410         with W_TYPE_SIZE.
15411         (HIGH_WORD_COEFF, HIGH_HALFWORD_COEFF): Remove all definitions;
15412         replace uses with Wtype_MAXp1_F.
15413         (L_fixunstfdi, L_fixtfdi, L_floatditf, L_fixunsxfdi, L_fixxfdi,
15414         L_floatdixf, L_fixunsxfsi, L_fixunsdfdi, L_floatdidf, L_fixunsdfsi,
15415         L_powidf2, L_powixf2, L_powitf2, L_muldc3, L_divdc3, L_mulxc3,
15416         L_divxc3, L_multc3, L_divtc3): Protect with HAVE_DFMODE, HAVE_XFMODE,
15417         and HAVE_TFMODE as appropriate.
15418         (__fixunssfDI): Provide an implementation that doesn't need DFmode.
15419         (__floatdisf): Likewise.
15420         * libgcc2.h (LIBGCC2_DOUBLE_TYPE_SIZE): New.
15421         (HAVE_DFMODE, HAVE_XFMODE, HAVE_TFMODE): New.
15422         (Wtype_MAXp1_F): New.
15423         (DFtype, DCtype, __fixdfdi, __floatdidf, __fixunsdfSI, __fixunsdfDI,
15424         __powidf2, __divdc3, __muldc3): Protect with HAVE_DFMODE.
15426 2005-02-16  Richard Earnshaw  <rearnsha@arm.com>
15428         * PR target/19162
15429         * arm.c (arm_apply_result_size): New function.
15430         * arm.h (APPLY_RESULT_SIZE): Define.
15431         * arm-protos.h (arm_apply_result_size): Add prototype.
15432         * arm.md (RO_REGNUM, FPA_F0_REGNUM, FPA_F7_REGNUM): New constants.
15433         (movxf): New expand.
15434         (ldmsi_postinc4_thumb, stmsi_postinc4_thumb): New patterns for Thumb.
15435         (call_value_symbol): Remove predicate for operand 0.
15436         (call_value_insn, sibcall_value, sibcall_value_insn): Likewise.
15437         (untyped_call): Rework to correclty return values for any type.
15438         (untyped_return): New expand.
15439         * fpa.md (movxf_fpa): Simplify and use sfm/lfm when appropriate.
15441 2005-02-16  Stan Shebs  <shebs@apple.com>
15443         * config.gcc (powerpc-*-darwin*): Use fragment for Darwin 8 or later.
15444         * config/rs6000/t-darwin8: New, for 64-bit multilib.
15446 2005-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
15448         * doc/install.texi (sparc-sun-solaris2*): Document required GMP
15449         configure settings on Solaris 7 and later.
15451 2005-02-16  Diego Novillo  <dnovillo@redhat.com>
15453         PR tree-optimization/19865
15454         * tree-optimize.c (init_tree_optimization_passes): Run
15455         pass_may_alias after pass_sra.
15457 2005-02-16  Richard Henderson  <rth@redhat.com>
15458             Stuart Hastings  <stuart@apple.com>
15460         PR debug/19521
15461         * dbxout.c (dbxout_function_end): Take decl parameter; update callers.
15462         Do nothing if debug info suppressed for this function.
15463         (dbxout_begin_function): Early exit if debug info suppressed for
15464         this function.
15466 2005-02-16  Kazu Hirata  <kazu@cs.umass.edu>
15468         PR target/20007
15469         * config/ip2k/ip2k.c (ip2k_reorg): Adjust calls to
15470         find_basic_blocks.
15471         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
15473         PR tree-optimization/19967
15474         * builtins.c (expand_builtin_strstr, expand_builtin_strpbrk,
15475         expand_builtin_strchr, expand_builtin_strrchr): Take a new
15476         argument TYPE.  Adjust calls to fold_builtin_XXX.
15477         (expand_builtin, fold_builtin_1): Adjust calls to
15478         expand_builtin_XXX.
15479         (fold_builtin_strchr, fold_builtin_strpbrk,
15480         fold_builtin_strstr, fold_builtin_strrchr): Convert the folded
15481         result to a requested type TYPE.
15483 2005-02-16  Jakub Jelinek  <jakub@redhat.com>
15485         PR middle-end/19857
15486         * fold-const.c (fold): Don't optimize (T)(x & cst) to
15487         (T)x & (T)cst if (T)cst overflows.
15488         * convert.c (convert_to_integer) <case POINTER_TYPE>: Pass
15489         TYPE_UNSIGNED (type) as type_for_size's UNSIGNEDP argument.
15491 2005-02-15  Jeff Law  <law@redhat.com>
15493         * gcse.c (blocks_with_calls): New bitmap.
15494         (alloc_gcse_mem): Allocate it.
15495         (free_gcse_mem): Free it.
15496         (clear_modifY_mem_tables): Clear it.
15497         (record_last_mem_set_info): Set the proper bit in BLOCK_WITH_CALLS
15498         when we encounter CALL_INSNs.
15499         (compute_transp, case MEM): Handle blocks with calls separate
15500         from blocks without calls.  Use bitmap iterators rather than
15501         FOR_EACH_BB.
15503 2005-02-15  Peter O'Gorman  <peter@pogma.com>
15505         PR bootstrap/18810
15506         * mklibgcc.in (vis_hide): Use a temporary object file, not
15507         -o /dev/null.
15509 2005-02-15  Andy Hutchinson  <HutchinsonAndy@netscape.net>
15511         PR target/19924
15512         * config/avr/avr.h (MODES_TIEABLE_P): Define to 1 to allow subreg
15513         access optimization.
15515 2005-02-15  David Edelsohn  <edelsohn@gnu.org>
15516             Alan Modra  <amodra@bigpond.net.au>
15518         PR target/19019
15519         * config/rs6000/darwin-ldouble.c (_xlqadd): Rename to __gcc_qadd.
15520         (_xlqsub): Rename to __gcc_qsub.
15521         (_xlqmul): Rename to __gcc_qmul.
15522         (_xlqdiv): Rename to __gcc_qdiv.
15523         Provide versioned symbol aliases with old names.
15524         * config/rs6000/libgcc-ppc64.ver: Rename symbols.
15525         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Rename symbols.
15526         * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): New.
15527         * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): New.
15528         * config/rs6000/t-newas (LIB2FUNCS_EXTRA): New.
15530 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
15532         * fold-const.c (fold): Fold -(~A) to A + 1.  Fold ~(-A) to A - 1.
15533         Fold ~(A - 1) and ~(A + -1) to -A.
15535 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
15537         PR pch/14940
15538         PR target/19300
15539         * config/host-linux.c (linux_gt_pch_use_address): Copy from
15540         config/pa/pa-host.c:pa_gt_pch_use_address.
15542 2005-02-15  Daniel Berlin  <dberlin@dberlin.org>
15544         * tree-vn.c (get_value_handle): Make sure that given an
15545         is_gimple_min_invariant expression, we always return it.
15547 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
15549         * passes.c (rest_of_handle_gcse): Fix a comment.
15551 2005-02-15  Jeff Law  <law@redhat.com>
15553         * gcse.c (canon_modify_mem_set_list_set): Kill unnecessary
15554         bitmap.
15555         (alloc_gcse_mem, free_gcse_mem): Corresponding changes.
15556         (canon_list_insert, record_last_mem_set_info): Similarly.
15557         (clear_modify_mem_tables): Similarly.
15559 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
15561         * bitmap.c, bitmap.h, lambda-code.c, tree-dfa.c, tree-dump.c,
15562         tree-dump.h, tree-ssa-loop-manip.c, value-prof.c,
15563         config/mips/mips.md, config/rs6000/aix.h,
15564         config/rs6000/beos.h, config/rs6000/sysv4.h: Update copyright.
15566 2005-02-15  Richard Henderson  <rth@redhat.com>
15568         * bb-reorder.c (find_traces_1_round): Force fallthru edge from a
15569         call to be best_edge.
15571 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
15573         * basic-block.h: Adjust the prototype for find_basic_blocks.
15574         * cfgbuild.c (find_basic_blocks): Remove unused arguments.
15575         * passes.c (rest_of_handle_loop_optimize): Adjust the call to
15576         find_basic_blocks.
15578         * flow.c (recompute_reg_usage): Remove all arguments.
15579         * passes.c (rest_of_compilation): Adjust the call to
15580         recompute_reg_usage.
15581         * rtl.h: Adjust the prototype for recompute_reg_usage.
15583 2005-02-14  Daniel Berlin  <dberlin@dberlin.org>
15585         * tree-dump.c (dump_files): Update to reflect new member
15586         of dump_file_info.
15587         (dump_register): Add new argument.
15588         Set glob name.
15589         (dump_switch_p_1): Check against glob name if doglob was passed.
15590         (dump_switch_p): Check against regular first, then glob if
15591         we didn't have any hits on the dump name.
15592         * tree-optimize.c (register_one_dump_file):
15593         Pass in glob name as well.
15594         * tree-pass.h (struct dump_file_info): Add glob
15595         member.
15597 2005-02-14  Joseph S. Myers  <joseph@codesourcery.com>
15599         PR preprocessor/16323
15600         * doc/invoke.texi: Document that -Wendif-labels is on by default.
15602 2005-02-14  David Edelsohn  <edelsohn@gnu.org>
15604         PR target/19019
15605         * config/rs6000/rs6000.md (trunctfdf2): Change to define_expand.
15606         (trunctfdf2_internal1): New.
15607         (trunctfdf2_internal2): Renamed from trunctfdf2.
15609 2005-02-14  Diego Novillo  <dnovillo@redhat.com>
15611         PR tree-optimization/19853
15612         * tree-dfa.c (add_referenced_var): Always examine DECL_INITIAL.
15614 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
15616         * passes.c (rest_of_handle_loop_optimize): Remove calls to
15617         delete_dead_jumptables and cleanup_cfg.
15619 2005-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
15621         * reload.c (find_reloads): Swap address_reloaded flags when
15622         swapping commutative operands.
15624 2005-02-14  Sebastian Pop  <pop@cri.ensmp.fr>
15626         * lambda-code.c (lambda_loopnest_to_gcc_loopnest, perfect_nestify):
15627         Use standard_iv_increment_position for computing the bsi position
15628         for create_iv.
15629         * tree-ssa-loop-manip.c (create_iv): Add a comment on how to compute
15630         the bsi position.
15632 2005-02-13  Zdenek Dvorak  <dvorakz@suse.cz>
15634         PR target/17428
15635         * cfgrtl.c (safe_insert_insn_on_edge): Avoid extending
15636         life range of hard registers.
15637         * value-prof.c (insn_prefetch_values_to_profile): Only
15638         scan normal insns.
15640         * value-prof.c (rtl_find_values_to_profile): Do not look for values to
15641         profile in libcalls.
15643 2005-02-13  Nathan Sidwell  <nathan@codesourcery.com>
15645         * bitmap.h (bitmap_and_compl_into): Return bool.
15646         * bitmap.c (bitmap_and_compl_into): Return changed flag.
15648 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
15650         PR tree-optimization/19944
15651         * fold-const.c (fold): Re-add ABS_EXPR folding.
15653 2005-02-13  David Edelsohn  <edelsohn@gnu.org>
15655         PR target/19019
15656         * config/rs6000/aix.h ({TARGET,MASK}_XL_CALL): Rename to
15657         {TARGET,MASK}_XL_COMPAT.
15658         (SUBTARGET_SWITCHES): Rename xl-call to xl-compat.  Use
15659         MASK_XL_COMPAT.
15660         * config/rs6000/beos.h ({TARGET,MASK}_XL_CALL): Remove.
15661         * config/rs6000/rs6000.c (function_arg): Change TARGET_XL_CALL to
15662         TARGET_XL_COMPAT.
15663         (rs6000_arg_partial_bytes): Same.
15664         (rs6000_generate_compare): Generate PARALLEL for compare if TFmode
15665         and XL compatibility enabled.
15666         * config/rs6000/rs6000.h (TARGET_XL_CALL): Rename to TARGET_XL_COMPAT.
15667         * config/rs6000/rs6000.md (cmptf_internal1): Add !TARGET_XL_COMPAT
15668         test to final condition.
15669         (cmptf_internal2): New.
15670         * doc/invoke.texi (RS/6000 Subtarget Options): Change xl-call to
15671         xl-compat.  Add TFmode information to description.
15673 2005-02-13  Kazu Hirata  <kazu@cs.umass.edu>
15675         * flags.h, read-rtl.c, tree-ssa-live.h: Update copyright.
15677 2005-02-13  Jason Merrill  <jason@redhat.com>
15679         PR c++/16405
15680         * fold-const.c (fold_indirect_ref_1): Split out from...
15681         (build_fold_indirect_ref): Here.
15682         (fold_indirect_ref): New fn.
15683         * tree.h: Declare it.
15684         * gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.
15685         (gimplify_modify_expr_rhs): Likewise.
15686         (gimplify_expr): Likewise.
15688 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
15690         PR tree-optimization/14303
15691         PR tree-optimization/15784
15692         * fold-const.c (fold): Fold ABS_EXPR<x> >= 0 to true, when possible.
15693         Fold ABS_EXPR<x> < 0 to false.  Fold ABS_EXPR<x> == 0 to x == 0 and
15694         ABS_EXPR<x> != 0 to x != 0.
15696 2005-02-12  Kazu Hirata  <kazu@cs.umass.edu>
15698         * c-tree.h, combine.c, expmed.c, flow.c, libgcc2.c,
15699         simplify-rtx.c, tree-ssa-live.h: Fix comment typos.  Follow
15700         spelling conventions.
15702         * passes.c (rest_of_handle_gcse): Don't run cse_main and
15703         delete_trivially_dead_insns too many times.
15705         * passes.c (rest_of_handle_gcse): Remove dead assignments to
15706         tem and tem2.
15708 2005-02-12  Ira Rosen  <irar@il.ibm.com>
15710         * tree-vectorizer.c (vect_get_base_and_offset): Remove.
15711         (vect_is_simple_iv_evolution): Remove redundant parameter
15712         and step check.
15713         (vect_analyze_scalar_cycles): Call vect_is_simple_iv_evolution
15714         without last parameter.
15715         (vect_analyze_pointer_ref_access): Get access_fn as parameter.
15716         Return pointer step. Call vect_is_simple_iv_evolution without
15717         last parameter. Check only that the step is multiple of size
15718         type. Remove stmt_vinfo updates.
15719         (vect_get_memtag_and_dr): Remove.
15720         (vect_get_memtag): New function.
15721         (vect_address_analysis): New function.
15722         (vect_object_analysis): New function.
15723         (vect_analyze_data_refs): Call vect_object_analysis and
15724         vect_get_memtag. Update stmt_vinfo fields.
15726 2005-02-12  Ira Rosen  <irar@il.ibm.com>
15728         * tree-data-ref.c (array_base_name_differ_p): Check that the bases
15729         exist and are objects. Remove checks for pointer.
15730         * tree-vectorizer.c (vect_create_addr_base_for_vector_ref): Use
15731         STMT_VINFO_VECT_DR_BASE_ADDRESS instead of DR_BASE_NAME.
15732         (vect_create_data_ref_ptr): Likewise.
15733         (vect_base_addr_differ_p): New function.
15734         (vect_analyze_data_ref_dependence): Call vect_base_addr_differ_p.
15735         (vect_analyze_pointer_ref_access): Add output parameter - ptr_init.
15736         Don't set the DR_BASE_NAME field of data-ref.
15737         (vect_get_memtag_and_dr): Use ptr_init instead of DR_BASE_NAME.
15739 2005-02-12  Uros Bizjak  <uros@kss-loka.si>
15741         * optabs.h (enum optab_index): Add new OTI_ldexp.
15742         (ldexp_optab): Define corresponding macro.
15743         * optabs.c (init_optabs): Initialize ldexp_optab.
15744         * genopinit.c (optabs): Implement ldexp_optab using ldexp?f3
15745         patterns.
15746         * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_LDEXP{,F,L}
15747         using ldexp_optab.
15748         (expand_builtin): Expand BUILT_IN_LDEXP{,F,L} using
15749         expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set.
15751         * config/i386/i386.md (ldexpsf3, ldexpdf3, ldexpxf3): New expanders
15752         to implement ldexpf, ldexp and ldexpl built-ins as inline x87
15753         intrinsics.
15755 2005-02-12  Ira Rosen  <irar@il.ibm.com>
15757         * tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base
15758         to base_address.
15759         * tree-vectorizer.c (new_stmt_vec_info): Rename the above field of
15760         stmt_vec_info.
15761         (vect_get_base_and_offset): Always return an address.
15762         (vect_create_addr_base_for_vector_ref): Remove treatment for
15763         different data reference types.
15764         (vect_compute_data_ref_alignment): Rename base to base_address in
15765         stmt_vec_info. Get the object in order to force its alignment.
15766         (vect_get_memtag_and_dr): Rename base to base_address in
15767         stmt_vec_info. Extract the object for memtag analysis.
15769 2005-02-12  Hans-Peter Nilsson  <hp@axis.com>
15771         PR regression/19898.
15772         * config/cris/cris.c (cris_notice_update_cc): When testing if insn
15773         changes cc_status, use apply modified_in_p to part of cc_status
15774         and insn, not cris_reg_overlap_mentioned_p on SET_DEST of insn
15775         body.
15777 2005-02-11  Richard Henderson  <rth@redhat.com>
15779         * tree-complex.c (expand_complex_libcall): New.
15780         (expand_complex_multiplication): Use it for c99 compliance.
15781         (expand_complex_division): Likewise.
15782         * fold-const.c (fold_complex_add, fold_complex_mult): New.
15783         (fold): Call them.
15784         * builtins.c (built_in_names): Remove const.
15785         * tree.c (build_common_builtin_nodes): Build complex arithmetic
15786         builtins.
15787         * tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New.
15788         (BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New.
15789         (built_in_names): Remove const.
15790         * c-common.c (c_common_type_for_mode): Handle complex modes.
15791         * flags.h, toplev.c (flag_complex_method): Rename from
15792         flag_complex_divide_method.
15793         * libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3,
15794         __mulsc3, __muldc3, __mulxc3, __multc3): New.
15795         * libgcc2.h: Declare them.
15796         * libgcc-std.ver: Export them.
15797         * mklibgcc.in (lib2funcs): Build them.
15799 2005-02-11  Steven Bosscher  <stevenb@suse.de>
15801         PR tree-optimization/19876
15802         Partially revert my change from 2005-01-14
15803         * tree-ssa-pre.c (compute_antic_aux): Make recursive once again...
15804         (compute_antic): ...and remove the loop here.
15806 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
15808         PR middle-end/19858
15809         * fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize
15810         is number of inner's bits, avoid creating a BIT_FIELD_REF.
15812         * config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
15813         crtend.o if -pie.  Use %{x:a;:b} spec syntax.
15815 2005-02-11  Daniel Jacobowitz  <dan@codesourcery.com>
15817         * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
15818         offsets for the big-endian 32-bit case.
15820 2005-02-11  Joseph S. Myers  <joseph@codesourcery.com>
15822         * config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
15824 2005-02-11  Dale Johannesen  <dalej@apple.com>
15826         * cselib.c (cselib_process_insn):  Clear out regs where
15827         HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
15828         * reload.c (find_equiv_reg): Ditto.
15830 2005-02-11  Ian Lance Taylor  <ian@airs.com>
15832         * read-rtl.c (read_rtx_1): Give fatal error if we see a vector
15833         with no elements.
15835         * tree.c (build_function_type_list): Work correctly if there are
15836         no arguments.
15838 2005-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
15840         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs",
15841         "*cmpsi_ccs"): Use %h instead of %c to print immediate operand.
15842         ("*zero_extendhisi2_64", "*zero_extendhisi2_31"): Choose based on
15843         TARGET_ZARCH instead of TARGET_64BIT.
15845 2005-02-11  Ralf Corsepius  <ralf.corsepius@rtems.org>
15847         * config/rs6000/t-rtems:
15848         (MULTILIB_OPTIONS): Remove mcpu=602.
15849         (MUTLILIB_DIRNAMES): Remove m602.
15850         (MULTILIB_MATCHES): Add ${MULTILIB_MATCHES_FLOAT}.
15851         Let mcpu=602 match mcpu=603.
15852         (MULTILIB_NEW_EXCEPTIONS_ONLY): Add mcpu=601, mcpu=602, mcpu=m603.
15854 2005-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15856         * pa/linux-unwind.h (pa32_fallback_frame_state): Handle misaligned
15857         signal trampolines.
15859 2005-02-10  David Daney  <ddaney@avtrex.com>
15861         * config/alpha/linux-unwind.h: Add exception clause to copyright.
15862         * config/i386/linux-unwind.h: Likewise.
15863         * config/ia64/linux-unwind.h: Likewise.
15864         * config/mips/linux-unwind.h: Likewise.
15865         * config/pa/linux-unwind.h: Likewise.
15866         * config/rs6000/linux-unwind.h: Likewise.
15867         * config/s390/linux-unwind.h: Likewise.
15868         * config/sh/linux-unwind.h: Likewise.
15869         * config/sparc/linux-unwind.h: Likewise.
15871 2005-02-10  Steven Bosscher  <stevenb@suse.de>
15873         PR tree-optimization/17549
15874         * tree-outof-ssa.c (find_replaceable_in_bb): Do not allow
15875         TER to replace a DEF with its expression if the DEF and the
15876         rhs of the expression we replace into have the same root
15877         variable.
15879 2005-02-10  Richard Sandiford  <rsandifo@redhat.com>
15881         * config/mips/mips.md: Fix the placement of the match_scratch in the
15882         lea64 peephole2.
15884 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
15886         * cse.c, tree-ssa-loop-ivopts.c, config/rs6000/linux-unwind.h:
15887         Fix comment typos.
15889 2005-02-10  Zdenek Dvorak  <dvorakz@suse.cz>
15891         * tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.
15892         (strip_offset): Handle addresses.
15893         (add_address_candidates): Use strip_offset.
15894         (difference_cost): Reflect strip_offset change.
15895         (force_var_cost, difference_cost): Strip nops.
15897 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
15899         * df.h (DF_REF_MODE_CHANGE, DF_REF_MEM_OK): Remove.
15901         * builtins.def, haifa-sched.c, libgcc2.c, libgcc2.h,
15902         tree-ssa-loop-ivcanon.c, tree-ssa-loop-niter.c,
15903         config/cris/cris-protos.h, config/cris/cris.c: Update
15904         copyright.
15906 2005-02-10  Jeff Law  <law@redhat.com>
15908         * tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
15909         (lookup_avail_expr): Similarly.
15911 2005-02-10  Richard Guenther  <rguenth@gcc.gnu.org>
15913         * builtins.c (fold_builtin_powi): New function.
15914         (fold_builtin_1): Call it.
15916 2005-02-10  Steven Bosscher  <stevenb@suse.de>
15918         PR documentation/19309
15919         * doc/cpp.texi: The __GNUC__ and related predefined macros
15920         are also defined for the "standalone" cpp.
15921         Some non-GCC compilers may also define __GNUC__.
15923 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
15925         PR c/19342
15926         * c-typeck.c (common_type): New routine.  Old common_type renamed
15927         to...
15928         (c_common_type): ...this.
15929         (build_conditional_expr, build_binary_op): Use c_common_type instead
15930         of common_type.
15932 2005-02-10  Steven Bosscher  <stevenb@suse.de>
15934         * doc/md.texi: Replace @samp{length} with @code{length}.
15936 2005-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
15938         PR tree-optimization/18687
15939         * tree-flow.h (find_loop_niter): Declare.
15940         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
15941         Try using scev even for loops with more than one exit.
15942         * tree-ssa-loop-ivopts.c (struct loop_data): Removed niter field.
15943         (struct ivopts_data): Added niters field.
15944         (struct nfe_cache_elt): New.
15945         (nfe_hash, nfe_eq, niter_for_exit, niter_for_single_dom_exit): New
15946         functions.
15947         (tree_ssa_iv_optimize_init): Initialize niters cache.
15948         (determine_number_of_iterations): Removed.
15949         (find_induction_variables): Do not call determine_number_of_iterations.
15950         Access niters for single exit through niter_for_single_dom_exit.
15951         (add_iv_outer_candidates): Access niters for single exit through
15952         niter_for_single_dom_exit.
15953         (may_eliminate_iv): Take data argument.  Use niter_for_exit.  Do not use
15954         number_of_iterations_cond.
15955         (iv_period): New function.
15956         (determine_use_iv_cost_condition): Pass data to may_eliminate_iv.
15957         (may_replace_final_value): Take data argument.  Use
15958         niter_for_single_dom_exit.
15959         (determine_use_iv_cost_outer): Pass data to may_replace_final_value.
15960         (rewrite_use_compare): Pass data to may_eliminate_iv.
15961         (rewrite_use_outer): Pass data to may_replace_final_value.
15962         (free_loop_data): Clean up the niters cache.
15963         (tree_ssa_iv_optimize_finalize): Free the niters cache.
15964         (tree_ssa_iv_optimize_loop): Do not call loop_commit_inserts.
15965         * tree-ssa-loop-niter.c (find_loop_niter): New function.
15966         (find_loop_niter_by_eval): Use tree_int_cst_lt.
15967         (num_ending_zeros): Moved to tree.c.
15968         * tree.h (num_ending_zeros): Declare.
15969         * tree.c (num_ending_zeros): Moved from tree.c.
15971 2005-02-09  Richard Henderson  <rth@redhat.com>
15973         * builtins.c (DEF_BUILTIN): Add COND argument.
15974         * tree.h (DEF_BUILTIN): Likewise.
15975         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN, DEF_EXT_LIB_BUILTIN,
15976         DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN): Update to
15977         match.
15978         (DEF_BUILTIN_STUB): New.
15979         (BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE, BUILT_IN_INIT_TRAMPOLINE,
15980         BUILT_IN_ADJUST_TRAMPOLINE, BUILT_IN_NONLOCAL_GOTO,
15981         BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT): Use it.
15982         * c-common.c (DEF_BUILTIN): Add COND argument.
15983         * tree.c (local_define_builtin): New.
15984         (build_common_builtin_nodes): New.
15986 2005-02-09  Roger Sayle  <roger@eyesopen.com>
15988         * fold-const.c (fold_strip_sign_ops): New function to simplify a
15989         floating point expression ignoring the sign of the result.
15990         (fold) <ABS_EXPR>: Use it to simplify fabs(x).
15991         (fold) <MULT_EXPR>: Use it to simplify x*x.
15992         * tree.h (fold_strip_sign_ops): Prototype here.
15993         * builtins.c (fold_builtin_copysign): Take an additional FNDECL
15994         argument.  Use fold_strip_sign_ops to simplify the first argument.
15995         (fold_builtin_pow):  Use fold_strip_sign_ops to simplify the
15996         first argument when the second argument is an even integer
15997         constant, but only with -funsafe_math_optimizations.
15998         (fold_builtin_1): Update call to fold_builtin_copysign.
16000 2005-02-09  Ian Lance Taylor  <ian@airs.com>
16002         PR middle-end/19583
16003         * gimple-low.c (try_catch_may_fallthru): In EH_FILTER_EXPR case,
16004         just check whether EH_FILTER_FAILURE falls through.
16006 2005-02-09  Andreas Krebbel  <krebbel1@de.ibm.com>
16008         * gcc/haifa-sched.c (schedule_block): Make queued sched group
16009         insns return to ready list in the next turn.
16011 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
16013         PR middle-end/19402
16014         * builtins.def: New __builtin_powi[lf].
16015         * builtins.c (mathfn_built_in): Handle BUILT_IN_POWI.
16016         (expand_builtin_powi): New function.
16017         (expand_builtin): Dispatch to expand_builtin_powi.
16018         * libgcc2.h: Add prototypes for __builtin_powi[lf].
16019         * libgcc2.c: Add __builtin_powi[lf] implementation.
16020         * mklibgcc.in: Add __builtin_powi[lf] to lib2funcs.
16021         * optabs.h: Add powi_optab.
16022         * optabs.c (init_optabs): Initialize powi_optab.
16023         * doc/extend.texi: Document __builtin_powi[lf].
16025 2005-02-09  Dorit Naishlos  <dorit@il.ibm.com>
16027         * tree-vectorizer.c (vect_set_dump_settings): Check that dump_file
16028         exists.
16030 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
16032         PR middle-end/19854
16033         * fold-const.c (try_move_mult_to_index): Remove redundant
16034         type argument.  Create ADDR_EXPR with correct type.
16035         (fold): Update callers of try_move_mult_to_index.  Convert
16036         result to the appropriate type.
16038 2005-02-09  Roger Sayle  <roger@eyesopen.com>
16040         PR target/19597
16041         * config/avr/avr.c (default_rtx_costs): Delete.
16042         (avr_operand_rtx_cost): New function.
16043         (avr_rtx_costs): Completely rewrite.
16045 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
16047         PR target/19806
16048         * config/cris/cris.c (in_code): New variable.
16049         (cris_output_addr_const): Now a static function, a wrapper for
16050         output_addr_const.
16051         (cris_asm_output_symbol_ref): New function, broken out SYMBOL_REF
16052         case from old cris_output_addr_const.
16053         (cris_asm_output_label_ref): Similar for LABEL_REF.
16054         (cris_output_addr_const_extra): Similar for UNSPEC.
16055         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA)
16056         (ASM_OUTPUT_SYMBOL_REF, ASM_OUTPUT_LABEL_REF): Define.
16057         * config/cris/cris-protos.h (cris_output_addr_const): Remove
16058         declaration.
16059         (cris_asm_output_symbol_ref, cris_output_addr_const_extra)
16060         (cris_asm_output_label_ref): Declare.
16062 2005-02-08  Paolo Bonzini  <bonzini@gnu.org>
16064         PR preprocessor/19801
16065         * doc/cppinternals.texi (Conventions, Lexer, Files): Adjust
16066         filenames that changed when libcpp was moved to the toplevel.
16068 2005-02-07  Roger Sayle  <roger@eyesopen.com>
16070         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
16071         zero extensions of BImode operands.  Call lowpart_subreg instead
16072         of gen_lowpart_common and gen_lowpart_SUBREG.
16074 2005-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
16076         PR ada/19489
16077         * libada-mk.in: Use cc_for_cross_gnattools, not cc_set_by_configure.
16078         * configure.ac: Set cc_for_cross_gnattools.
16079         * configure: Regenerate.
16081 2005-02-08  Alan Modra  <amodra@bigpond.net.au>
16083         PR target/19803
16084         * predict.c (PROB_VERY_UNLIKELY): Use 1% instead of 10%.
16086 2005-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
16088         PR debug/19327
16089         * dbxout.c (dbxout_symbol) <FUNCTION_DECL>: Skip inline instance
16090         of nested functions.
16092 2005-02-07  Jonathan Wakely  <redi@gcc.gnu.org>
16094         * doc/extend.texi: Document deprecated extensions allowing
16095         static floating-point members to have initializers and allowing
16096         floating-point literals in integral constant expressions.
16098 2005-02-07  Kazu Hirata  <kazu@cs.umass.edu>
16100         * cfgcleanup.c, df.h, diagnostic.c, rtl.c, tree-vectorizer.h,
16101         config/darwin7.h, config/mips/mips.c,
16102         config/rs6000/altivec.md, config/rs6000/darwin-tramp.asm:
16103         Update copyright.
16105         * cse.c: Update comments.
16107 2005-02-07  Richard Guenther  <rguenth@gcc.gnu.org>
16109         PR middle-end/19775
16110         * builtins.c (fold_builtin_sqrt): Transform
16111         sqrt(pow(x,y)) to pow(fabs(x),y*0.5), not
16112         pow(x,y*0.5).
16114 2005-02-07  Leehod Baruch  <leehod@il.ibm.com>
16115             Dorit Naishlos  <dorit@il.ibm.com>
16117         * doc/invoke.texi (ftree-vectorizer-verbose): New.
16118         * opts.c (OPT_ftree_vectorizer_verbose_): New case for switch.
16119         * common.opt (ftree-vectorizer-verbose): New Flag for the vectorizer
16120         was added.
16121         * tree.h (vect_set_verbosity_level): New extern function declaration
16122         added.
16123         * tree-vectorizer.h (verbosity_levels): New enum type.
16124         * tree-vectorizer.c (vect_debug_stats): Function removed.
16125         (vect_debug_details): Likewise.
16126         (vect_verbosity_level): Global variable was defined and initialized.
16127         (vect_dump): Global variable definition.
16128         (vect_print_dump_info): New function.
16129         (vect_set_dump_settings): New function.
16130         (vect_set_verbosity_level): New function.
16131         (vectorize_loops): Add call to vect_set_dump_settings.
16133         (slpeel_make_loop_iterate_ntimes): Dump condition was changed.
16134         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
16135         (slpeel_tree_peel_loop_to_edge): Likewise.
16137         (vect_analyze_offset_expr): Call to vect_print_dump_info with
16138         appropriate verbosity level instead of call to vect_debug_details
16139         or vect_debug_stats.
16140         (vect_get_base_and_offset):
16141         (vect_create_addr_base_for_vector_ref):
16142         (get_vectype_for_scalar_type):
16143         (vect_create_data_ref_ptr):
16144         (vect_init_vector):
16145         (vect_get_vec_def_for_operand):
16146         (vect_finish_stmt_generation):
16147         (vectorizable_assignment):
16148         (vectorizable_operation):
16149         (vectorizable_store):
16150         (vectorizable_load):
16151         (vect_transform_stmt):
16152         (vect_update_ivs_after_vectorizer):
16153         (vect_do_peeling_for_loop_bound):
16154         (vect_update_inits_of_drs):
16155         (vect_do_peeling_for_alignment):
16156         (vect_transform_loop):
16157         (vect_is_simple_use):
16158         (vect_analyze_operations):
16159         (vect_is_simple_iv_evolution):
16160         (vect_analyze_scalar_cycles):
16161         (vect_analyze_data_ref_dependence):
16162         (vect_analyze_data_ref_dependences):
16163         (vect_compute_data_ref_alignment):
16164         (vect_enhance_data_refs_alignment):
16165         (vect_analyze_data_refs_alignment):
16166         (vect_analyze_data_ref_access):
16167         (vect_analyze_data_ref_accesses):
16168         (vect_analyze_pointer_ref_access):
16169         (vect_get_memtag_and_dr):
16170         (vect_analyze_data_refs):
16171         (vect_mark_relevant):
16172         (vect_stmt_relevant_p):
16173         (vect_mark_stmts_to_be_vectorized):
16174         (vect_can_advance_ivs_p):
16175         (vect_get_loop_niters):
16176         (vect_analyze_loop_form):
16177         (vect_analyze_loop):
16178         (vectorize_loops): Likewise.
16180         (vect_do_peeling_for_loop_bound): Dump format slightly changed.
16181         (vect_update_inits_of_drs):
16182         (vect_do_peeling_for_alignment):
16183         (vect_transform_loop):
16184         (vect_analyze_operations):
16185         (vect_analyze_scalar_cycles):
16186         (vect_analyze_data_ref_dependences):
16187         (vect_analyze_data_refs_alignment):
16188         (vect_analyze_data_ref_accesses):
16189         (vect_analyze_data_refs):
16190         (vect_mark_stmts_to_be_vectorized):
16191         (vect_get_loop_niters):
16192         (vect_analyze_loop_form):
16193         (vect_analyze_loop): Likewise.
16194         (vect_mark_stmts_to_be_vectorized): Add call to print_generic_expr.
16196 2005-02-07  Richard Sandiford  <rsandifo@redhat.com>
16198         PR bootstrap/19796
16199         Revert:
16200         2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
16201         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
16202         either -ffast-math or -funsafe-math-optimizations is in use.
16204         2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
16205         * config/mips/irix-csr.c: New file.
16206         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
16207         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
16208         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
16209         executables.
16211 2005-02-07  Alexandre Oliva  <aoliva@redhat.com>
16213         * config/mn10300/linux.h (LIB_SPEC, STARTFILE_SPEC): Remove
16214         redundant, incorrect definitions.
16216         * config/frv/frv.md ("tls_indirect_call"): Turn into libcall-like
16217         expand.
16218         ("*tls_indirect_call"): New, reference hard regs directly.
16219         * config/frv/frv.c (gen_inlined_tls_plt): Adjust.
16221 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
16223         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC):
16224         Let !-mhard-float !-msoft-float imply -mfpu=softfpa.
16226 2005-02-06  Roger Sayle  <roger@eyesopen.com>
16228         PR rtl-optimization/19800
16229         * simplify_rtx.c (simplify_relational_operation_1): Explicitly
16230         call gen_lowpart_common and gen_lowpart_SUBREG instead of calling
16231         gen_lowpart.
16233 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
16235         * config/m68k/t-rtems (MULTILIB_MATCHES): Let m528x match m5200.
16237 2005-02-07  Joseph S. Myers  <joseph@codesourcery.com>
16239         PR other/17135
16240         * doc/invoke.texi: Correct documentation of -freorder-functions.
16242 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
16244         PR other/14402
16245         * doc/invoke.texi: Don't mention gccbug.
16247 2005-02-06  Roger Sayle  <roger@eyesopen.com>
16248             Andrew Pinski  <pinskia@physics.uc.edu>
16249             Paolo Bonzini  <paolo.bonzini@lu.unisi.ch>
16251         * simplify-rtx.c (simplify_relational_operation_1): Simplify
16252         (ne:SI (zero_extract:SI FOO (const_int 1) BAR) (const_int 0))
16253         into just (zero_extract:SI FOO (const_int 1) BAR).
16255 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
16257         * doc/cpp.texi: Include gcc-common.texi.  Don't define gcctabopt
16258         macro locally.  Don't give last revision date.  Use GCC version
16259         number from gcc-common.texi.
16260         * doc/cppinternals.texi: Include gcc-common.texi.  Don't give last
16261         revision date.  Use GCC version number from gcc-common.texi.
16262         Describe being a library as current state rather than as 3.x
16263         history.
16264         * doc/gcc.texi: Remove last update date.
16265         * doc/gccint.texi: Likewise.  Update copyright dates.
16266         * doc/install.texi: Update copyright dates.
16268 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
16270         PR other/7549
16271         * doc/invoke.texi: Mention for each option included in -Wall that
16272         it is included in -Wall.
16273         * doc/gcc.texi: Update copyright and last modification date.
16275 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
16277         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Do not add
16278         unnecessary cast to original induction variable increments.
16280 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
16282         PR tree-optimization/18219
16283         * tree-ssa-loop-ivopts.c (get_computation_at): Produce computations
16284         in distributed form.
16286 2005-02-06  Richard Sandiford  <rsandifo@redhat.com>
16288         * expmed.c (store_bit_field): Make the SUBREG code adjust bitnum.
16289         Set bitpos and offset later in the function.  Do nothing if the
16290         target is a register and if the bitfield lies completely outside
16291         that register.
16292         (extract_bit_field): Make the same SUBREG, bitpos and offset changes
16293         here.  Return an uninitialised register if the source value is stored
16294         in a register and the bitfield lies completely outside that register.
16296 2005-02-06  Steven Bosscher  <stevenb@suse.de>
16298         * df.c (df_insn_refs_record): Use XEXP to get the operand of a USE,
16299         not SET_DEST.
16301 2005-02-06  Marcin Dalecki  <martin@dalecki.de>
16303         * diagnostic.c (default_diagnostic_finalizer): Fix use of attribute.
16305 2005-02-06  Geoffrey Keating  <geoffk@apple.com>
16307         * config.gcc (*-*-darwin*): Separate darwin7 and darwin8 configs.
16308         * config/darwin8.h: New.
16309         * config/darwin7.h: Update comment.
16311 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
16312             Dorit Naishlos  <dorit@il.ibm.com>
16314         * tree-vectorizer.h (LOC): New type.
16315         (UNKNOWN_LOC, EXPR_LOC, LOC_FILE, LOC_LINE): New macros.
16316         (loop_line_number): New field in struct _loop_vec_info.
16317         (LOOP_VINFO_LOC, LOOP_LOC): New macros.
16319         * tree-vectorizer.c (input.h): Included.
16320         (find_loop_location): New function.
16321         (vect_debug_stats): Argument changed from loop to LOC. Computation of
16322         loop line number removed.
16323         (vect_debug_details): Likewise.
16324         (new_loop_vec_info): Initialize new field LOOP_VINFO_LOC.
16326         (slpeel_make_loop_iterate_ntimes): Call find_loop_location. Argument in
16327         call to vect_debug_details/stats changed from loop to loop_loc.
16328         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
16329         (slpeel_tree_peel_loop_to_edge): Likewise.
16331         (vect_analyze_offset_expr): Argument in call to vect_debug_details/stats
16332         changed from NULL to UNKNOWN_LOC.
16333         (vect_get_base_and_offset):
16334         (vect_create_addr_base_for_vector_ref):
16335         (get_vectype_for_scalar_type):
16336         (vect_create_data_ref_ptr):
16337         (vect_init_vector):
16338         (vect_get_vec_def_for_operand):
16339         (vect_finish_stmt_generation):
16340         (vectorizable_assignment):
16341         (vectorizable_operation):
16342         (vectorizable_store):
16343         (vectorizable_load):
16344         (vect_transform_stmt):
16345         (vect_update_ivs_after_vectorizer):
16346         (vect_do_peeling_for_loop_bound):
16347         (vect_do_peeling_for_alignment):
16348         (vect_transform_loop):
16349         (vect_is_simple_use):
16350         (vect_analyze_operations):
16351         (vect_is_simple_iv_evolution):
16352         (vect_analyze_scalar_cycles):
16353         (vect_analyze_data_ref_dependences):
16354         (vect_compute_data_ref_alignment):
16355         (vect_enhance_data_refs_alignment):
16356         (vect_analyze_data_ref_access):
16357         (vect_analyze_data_ref_accesses):
16358         (vect_analyze_pointer_ref_access):
16359         (vect_get_memtag_and_dr):
16360         (vect_analyze_data_refs):
16361         (vect_mark_relevant):
16362         (vect_stmt_relevant_p):
16363         (vect_mark_stmts_to_be_vectorized):
16364         (vect_can_advance_ivs_p):
16365         (vect_get_loop_niters):
16366         (vect_analyze_loop):
16367         (vectorize_loops): Likewise.
16369         (vectorizable_load): Argument in call to vect_debug_details/stats
16370         changed from loop to LOOP_LOC (loop_vinfo).
16371         (vect_transform_loop):
16372         (vect_analyze_operations):
16373         (vect_analyze_scalar_cycles):
16374         (vect_analyze_data_ref_dependence):
16375         (vect_enhance_data_refs_alignment):
16376         (vect_analyze_data_ref_accesses):
16377         (vect_analyze_pointer_ref_access):
16378         (vect_analyze_data_refs):
16379         (vect_analyze_loop): Likewise.
16381         (vect_analyze_loop_form): Argument in call to vect_debug_details/stats
16382         changed from loop to loop_loc.
16384         (vect_enhance_data_refs_alignment): Removed unused variable loop.
16386 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
16387             Dorit Naishlos  <dorit@il.ibm.com>
16389         * tree-vectorizer.c (vect_analyze_data_ref_dependence): Function
16390         declaration added.
16391         (vect_analyze_data_ref_dependences): Likewise.
16393         (vect_is_simple_use): Argument changed from loop structure to
16394         loop_vect_info structure.
16395         (vect_can_advance_ivs_p): Likewise.
16396         (vect_create_index_for_vector_ref): Likewise.
16397         (vect_update_ivs_after_vectorizer): Likewise.
16398         (new_stmt_vec_info): Likewise.
16400         (new_loop_vec_info): Second argument in call to new_stmt_vec_info was
16401         changed from loop to loop_vinfo.
16402         (vect_create_data_ref_ptr): First argument in call to
16403         vect_create_index_for_vector_ref was changed from loop to loop_vinfo.
16404         (vectorizable_assignment): Second argument in call to vect_is_simple_use
16405         was changed from loop to loop_vinfo.
16406         (vectorizable_operation): Likewise.
16407         (vectorizable_store): Likewise.
16408         (vect_mark_stmts_to_be_vectorized): Likewise.
16409         (vect_do_peeling_for_loop_bound): First argument in call to
16410         vect_update_ivs_after_vectorizer was changed from loop to loop_vinfo.
16411         (vect_analyze_operations): Argument in call to vect_can_advance_ivs_p
16412         was changed from loop to loop_vinfo.
16413         (vect_analyze_data_ref_dependences): Third argument in call to
16414         vect_analyze_data_ref_dependence was changed from loop to loop_vinfo.
16416         (vect_create_index_for_vector_ref): Get the loop from loop_vinfo.
16417         (vect_create_data_ref_ptr): Likewise.
16418         (vect_init_vector): Likewise.
16419         (vect_get_vec_def_for_operand): Likewise.
16420         (vectorizable_assignment): Likewise.
16421         (vectorizable_operation): Likewise.
16422         (vectorizable_store): Likewise.
16423         (vectorizable_load): Likewise.
16424         (vect_update_ivs_after_vectorizer): Likewise.
16425         (vect_is_simple_use): Likewise.
16426         (vect_analyze_data_ref_dependence): Likewise.
16427         (vect_analyze_pointer_ref_access): Likewise.
16428         (vect_can_advance_ivs_p): Likewise.
16430         * tree-vectorizer.h: (_loop_vec_info): Definition and macros moved
16431         before _stmt_vec_info.
16432         (_stmt_vec_info): Loop field replaced by loop_vec_info.
16433         (STMT_VINFO_LOOP): Replaced with STMT_VINFO_LOOP_VINFO.
16434         (new_stmt_vec_info): Argument changed from loop structure to
16435         loop_vect_info structure
16437         (vect_analyze_data_ref_dependences): Unnecessary line was removed.
16438         (vect_analyze_offset_expr): Avoid 80 columns overflow.
16439         (vect_create_addr_base_for_vector_ref): Likewise.
16440         (vect_analyze_pointer_ref_access): Likewise.
16442 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
16444         PR tree-opt/19768
16445         * tree-ssa-dse.c (fix_phi_uses): Update the occurs in abnormal
16446         phi flag if the phi is abnormal.
16448 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
16450         PR tree-opt/19736
16451         * tree-ssa.c (replace_immediate_uses): Update the immediate_uses
16452         information for the new statement.
16454 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
16456         PR driver/19117
16457         * gcc.c (main): Include the target in -v output.
16459 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
16461         * combine.c (simplify_comparison, case SIGN_EXTEND, ZERO_EXTEND):
16462         Do not drop the extend if we'd have to add a paradoxical subreg
16463         later.  Include optabs.h and insn-codes.h.
16464         * Makefile.in (combine.o): Depend on $(OPTABS_H).
16466 2005-02-02  Roger Sayle  <roger@eyesopen.com>
16468         PR middle-end/19405
16469         * real.h (REAL_MODE_FORMAT_COMPOSITE_P): New macro.
16470         * fold-const.c (const_binop): Avoid constant folding floating
16471         point operations in modes that use composite representations.
16472         * simplify-rtx.c (simplify_binary_operation): Likewise.
16474 2005-02-02  Geoffrey Keating  <geoffk@apple.com>
16476         * config/rs6000/altivec.md (altivec_dst): Make the first operand
16477         a REG, not a MEM.
16478         (altivec_dstt): Likewise.
16479         (altivec_dstst): Likewise.
16480         (altivec_dststt): Likewise.
16481         * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Adjust creation
16482         of first operand.
16484 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
16486         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Copy
16487         EXPR_LOCUS from orig_cond to the new cond_stmt.
16488         (vect_finish_stmt_generation): Copy EXPR_LOCUS from stmt to
16489         the new vec_stmt.
16491 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
16493         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Call
16494         standard_iv_increment_position. Remove call to bsi_next
16495         (no need to bump the iterator anymore).
16496         (vect_create_index_for_vector_ref): Call
16497         standard_iv_increment_position. Remove second function argument.
16498         (vect_finish_stmt_generation): Remove call to bsi_next
16499         (no need to bump the iterator anymore).
16500         (vect_create_data_ref_ptr): Remove second argument (bsi) in call
16501         to vect_create_index_for_vector_ref.
16503 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
16505         * tree-vectorizer.c (vect_mark_stmts_to_be_vectorized): Check if
16506         phis are used out of the loop.
16508 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
16510         PR c/17807
16511         * c-decl.c (undef_nested_function): New variable.
16512         (pop_scope): Diagnose undefined nested functions.
16513         (finish_function): Don't attempt cgraph processing or genericizing
16514         if current top-level function contained an undefined nested
16515         function.  Reset undef_nested_function at the end of a top-level
16516         function.
16518 2005-02-02  Zdenek Dvorak  <dvorakz@suse.cz>
16520         * tree.c (build_int_cst_type): Take sign of the value into account
16521         when deciding whether sign extend the value.
16523 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
16525         PR c/18502
16526         * gcc.c (cpp_unique_options): Remove %{trigraphs}.
16527         (cpp_options, cc1_options): Change %{std*&ansi} to
16528         %{std*&ansi&trigraphs}.
16530 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
16532         * cse.c: Update comments.
16534 2005-02-02  Aldy Hernandez  <aldyh@redhat.com>
16536         * config/rs6000/rs6000.c (rs6000_spe_function_arg): Multi-reg
16537         arguments go on the stack.  Do not put complex doubles in odd/even
16538         pairs.
16540 2005-02-02  Steven Bosscher  <stevenb@suse.de>
16542         * doc/invoke.texi: Update the options enabled at -O1, -O2,
16543         and -O3.  Update the documentation for -fgcse-sm, -fgcse-las,
16544         -ftree-pre, and -fthread-jumps.
16546 2005-02-02  Richard Sandiford  <rsandifo@redhat.com>
16548         PR tree-optimization/19578
16549         * tree-flow.h (modified_noreturn_calls): Declare.
16550         (noreturn_call_p): Declare.
16551         * tree-flow-inline.h (noreturn_call_p): New function.
16552         (modify_stmt): Add modified noreturn calls to modified_noreturn_calls.
16553         * tree-cfg.c (modified_noreturn_calls): New variable.
16554         (cleanup_control_flow): Use noreturn_call_p.  Split basic blocks
16555         that contain a mid-block noreturn call.
16556         * tree-ssa.c (delete_tree_ssa): Clear modified_noreturn_calls.
16558 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
16560         * df.c (df_def_record_1, df_uses_record): Don't use
16561         DF_FOR_REGALLOC.
16562         * df.h (DF_FOR_REGALLOC): Remove.
16564 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
16566         PR c/19435
16567         * c-typeck.c (really_start_incremental_init): Reset
16568         constructor_max_index for arrays of incomplete type.
16570 2005-02-02  Jeff Law  <law@redhat.com>
16572         * gcse.c (struct reg_set): Store the block index where the register
16573         was set rather than the setting insn.
16574         (record_one_set, compute_transp): Corresponding changes.
16575         (pre_insert_copy_insn): Do not call replace_one_set.
16576         (replace_one_set): Remove.
16578 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
16580         PR other/15514
16581         * doc/gcov.texi: Fix typo.
16583 2005-02-01  Richard Henderson  <rth@redhat.com
16585         PR target/19680
16586         * config/i386/i386.h (MODES_TIEABLE_P): Use ix86_modes_tieable_p.
16587         * config/i386/i386.c (ix86_hard_regno_mode_ok): Change return
16588         type to bool.
16589         (ix86_tieable_integer_mode_p, ix86_modes_tieable_p): New.
16590         * config/i386/i386-protos.h: Update.
16592 2005-02-01  Steven Bosscher  <stevenb@suse.de>
16594         PR tree-optimization/19217
16595         * tree-cfg.c (verify_expr): Use the data field to see if TP was
16596         seen inside a PHI node.  Do not do the ADDR_EXPR check if it was.
16597         (verify_stmts): Pass (void*)1 as data to verify_expr to signal
16598         that it is walking a PHI node.
16600 2005-02-01  Joseph S. Myers  <joseph@codesourcery.com>
16602         * doc/extend.texi (Nested Functions): Update.
16604 2005-02-01  Richard Henderson  <rth@redhat.com>
16606         PR 19696
16607         * optabs.c (expand_copysign_absneg): Export.
16608         * optabs.h (expand_copysign_absneg): Declare.
16609         * config/rs6000/rs6000.md (copysigntf3): New.
16611 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
16613         PR tree-optimization/19633
16614         * tree-flow.h (struct ptr_info_def): Add field 'pt_null'.
16615         * tree-ssa-alias.c (init_alias_info): Initialize.
16616         (merge_pointed_to_info): Set.
16617         (add_pointed_to_expr): Set pt_null if EXPR is a NULL pointer.
16618         (dump_points_to_info_for): Show value of pt_null.
16619         (struct count_ptr_d): Declare.
16620         (find_ptr_dereference): Remove.
16621         (ptr_is_dereferenced_by): Remove.
16622         (count_ptr_derefs): New local function.
16623         (count_uses_and_derefs): New local function.
16624         (compute_points_to_and_addr_escape): Call it.  If the number
16625         of dereferences is greater than zero, mark the pointer as
16626         dereferenced.  If there are fewer dereferences than uses of
16627         the pointer, the pointer's value escapes.
16629 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
16631         PR tree-optimization/19670
16632         * tree-ssa.c (verify_ssa_name): Don't set TREE_VISITED
16633         here...
16634         (verify_use): ... set it here, instead.
16636 2005-02-01  Janis Johnson  <janis187@us.ibm.com>
16638         * doc/sourcebuild.texi (Test directives): Fix formatting.
16640         * doc/sourcebuild.texi (Test directives): Describe selector
16641         expressions.
16643 2005-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
16645         * config.gcc (powerpc64-*-linux*): Default to -m64 also for
16646         specific 64-bit CPUs.
16648 2005-02-01  Richard Earnshaw  <rearnsha@arm.com>
16650         PR target/16201
16651         * arm.c (arm_eliminable_register): New function.
16652         (adjacent_mem_locations): Don't allow eliminable registers.  Use
16653         HOST_WIDE_INT for address offsets.
16654         * arm-protos.h (arm_eliminable_register): Add prototype.
16656 2005-02-01  Steven Bosscher  <stevenb@suse.de>
16658         PR optimization/15242
16659         * params.def (PARAM_MAX_GOTO_DUPLICATION_INSNS): New param.
16660         * basic-block.h (duplicate_computed_gotos): Add prototype.
16661         * bb-reorder.c (duplicate_computed_gotos): New function to
16662         duplicate sufficiently small blocks ending in a computed jump.
16663         * passes.c (rest_of_compilation): Call duplicate_computed_gotos
16664         if not optimizing for size.
16665         * cfgcleanup.c (try_crossjump_bb): If not optimizing for size,
16666         never do tail merging for blocks ending in a computed jump.
16667         * doc/invoke.texi: Document the max-goto-duplication-insns param.
16669 2005-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
16671         Patch from Richard Sandiford <rsandifo@redhat.com>
16672         * reload1.c (choose_reload_regs): Prevent the find_equiv_reg() code
16673         from inheriting a subreg equivalence with a non-spill register.
16675         * tree.h (DECL_FUNCTION_CODE): Document that it is overloaded.
16677 2005-02-01  Alexandre Oliva  <aoliva@redhat.com>
16679         * config/frv/frv.c (movcc_fp_destination_operand): New.
16680         (gpr_or_memory_operand): Fix typo in comment.
16681         (gpr_or_memory_operand_with_scratch): New.
16682         * config/frv/frv.h (PREDICATE_CODES): Add the two new predicates.
16683         * config/frv/frv.md (movcc_fp, movcc_fp_internal): Use
16684         movcc_fp_destination_operand.
16685         (reload_incc_fp): Use gpr_or_memory_operand_with_scratch.
16686         Legitimize memory addresses using a scratch register.
16688 2005-01-31  Jeff Law  <law@redhat.com>
16690         * tree-into-ssa.c (mark_def_sites_global_data): Make KILLS
16691         bitmap a sparse bitmap instead of a simple bitmap.
16692         (mark_def_sites_initialize_block):  Corresponding changes.
16693         (ssa_mark_def_sites_initialize_block): Likewise.
16694         (ssa_mark_phi_uses): Likewise.
16695         (mark_def_site, ssa_mark_def_sites): Likewise.
16696         (mark_def_site_blocks): Likewise.
16697         (rewrite_ssa_into_ssa): Likewise.
16699         * tree-ssa-dom.c (record_cond): Pass correct variable type
16700         for last argument to htab_find_slot_with_hash.
16702         * fold-const.c (fold, case CEIL_MOD_EXPR): Do not lose side
16703         effects when optimizing 0 % X.  Do not try to optimize X % 0.
16705 2005-01-31  James E. Wilson  <wilson@specifixinc.com>
16707         * config/ia64/itanium1.md (1_scall bypass): Change 2_mmalua to
16708         1_mmalua.
16710 2005-02-01  Eric Christopher  <echristo@redhat.com>
16712         * config/mips/mips.c (override_options): Warn if -mint64
16713         is used.
16714         * doc/invoke.texi (MIPS Options): Document that -mint64 is
16715         deprecated.
16717 2005-02-01  Kazu Hirata  <kazu@cs.umass.edu>
16719         * cse.c (cse_reg_info): Remove hash_next, next, regno.  Add
16720         timestamp.
16721         (cse_reg_info_list, cse_reg_info_list_free, REGHASH_SHIFT,
16722         REGHASH_SIZE, REGHASH_MASK, reg_hash, REGHASH_FN,
16723         cached_cse_reg_info, GET_CSE_REG_INFO): Remove.
16724         (cached_regno): Initialize to INVALID_REGNUM.
16725         (cse_reg_info_table_size,
16726         cse_reg_info_table_first_uninitialized,
16727         cse_reg_info_timestamp): New.
16728         (REG_TICK, REG_IN_TABLE, SUBREG_TICKED, REG_QTY): Use
16729         get_cse_reg_info.
16730         (init_cse_reg_info, get_cse_reg_info_1): New.
16731         (get_cse_reg_info): Cache the last look-up.
16732         (new_basic_block): Update the code to clear mappings from
16733         registers to cse_reg_info entries.
16734         (cse_main): Call init_cse_reg_info.
16736         * cse.c (get_cse_reg_info): Update a comment.
16738 2005-01-31  Steven Bosscher  <stevenb@suse.de>
16740         PR c/19333
16741         * c-decl.c (start_decl): Do not warn about arrays of elements with
16742         an incomplete type here.
16743         (grokdeclarator): Do it here by making a pedwarn an error.
16744         * c-typeck.c (push_init_level): If there were previous errors with
16745         the constructor type, do not warn about braces for initializers.
16746         (process_init_element): Likewise for excess initializer elements.
16748 2005-01-31  Kazu Hirata  <kazu@cs.umass.edu>
16750         * cse.c (delete_trivially_dead_insn): Don't iterate.
16752 2005-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
16754         * config/rs6000/rs6000.md (copysignsf3): New expand.
16755         (copysigndf3): Likewise.
16757 2005-01-31  Steven Bosscher  <stevenb@suse.de>
16759         * recog.c (constrain_operands): Only look for earlyclobber operand
16760         conflicts if an '&' constraint was seen.
16762 2005-01-31  Marc Espie <espie@openbsd.org>
16764         * config.gcc: Don't include embedded systems fragment, switches default
16765         debugging format to ELF.
16766         * config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no
16767         longer pick it up there.
16769 2005-01-31  Dale Johannesen  <dalej@apple.com>
16771         * doc/extend.texi (nested functions): Fix linkage description.
16772         Clarify that static is not allowed.
16774 2005-01-31  Dale Johannesen  <dalej@apple.com>
16776         * config/rs6000/darwin.md (movsf_low_di):  Make work.
16777         (movdf_low_di):  Make work.
16779 2005-01-31  Dale Johannesen  <dalej@apple.com>
16781         * config/rs6000/darwin-tramp.asm (__trampoline_setup):
16782         Make work for 64 bit.
16784 2005-01-31  Roger Sayle  <roger@eyesopen.com>
16785             Dale Johannesen  <dalej@apple.com>
16787         PR middle-end/19650
16788         * fold-const.c (fold_binary_op_with_conditional_arg):
16789         Make types match original operands, before STRIP_NOPS.
16791 2005-01-31  Alan Modra  <amodra@bigpond.net.au>
16793         * config/rs6000/linux-unwind.h (struct gcc_vregs): New.
16794         (struct gcc_regs): Rename from gcc_pt_regs.  Add more regs.
16795         (struct gcc_sigcontext): Delete.  Merge contents to..
16796         (struct gcc_ucontext): ..here.
16797         (get_sigcontext): Delete.
16798         (get_regs): New function, like get_sigcontext but return regs ptr.
16799         64-bit version finds regs from r1 to support vdso.
16800         (ppc_linux_aux_vector): New function.
16801         (ppc_fallback_frame_state): Modify for get_regs.  Restore fprs
16802         and vector regs.
16804 2005-01-31  Ira Rosen  <irar@il.ibm.com>
16806         * tree-vectorizer.c (vect_analyze_offset_expr): Use ssizetype instead
16807         sizetype.
16808         (vect_get_base_and_offset): Use ssizetype instead sizetype. Remove
16809         redundant fold. Fix misalignment for MINUS_EXPR.
16810         (vect_compute_data_ref_alignment): Use ssizetype instead sizetype.
16811         (vect_analyze_pointer_ref_access): Likewise.
16812         (vect_get_memtag_and_dr): Likewise.
16814 2005-01-31  Richard Henderson  <rth@redhat.com>
16816         * config/i386/i386.c (absnegsf2_mixed): Remove all of the # hackery.
16817         (absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed, absnegdf2_sse,
16818         absnegdf2_i387, absnegxf2_i387): Likewise.
16820 2005-01-31  Richard Henderson  <rth@redhat.com>
16822         PR 19696
16823         * optabs.c (expand_copysign_absneg): New.
16824         (expand_copysign_bit): Split out from ...
16825         (expand_copysign): ... here.  Use expand_copysign_absneg.
16827 2005-01-30  Roger Sayle  <roger@eyesopen.com>
16829         PR middle-end/19697
16830         * config/pa/pa.md (anddi3, iordi3): On HPPA64, disallow an integer
16831         constant as the second operand and a register as the third.
16833 2005-01-31  Danny Smith  <dannysmith@users.sourceforge.net>
16835         PR target/19704
16836         * config/i386/i386.c (ix86_function_ok_for_sibcall):  Also check
16837         that dllimport'd functions do not use all call-clobbered registers
16838         to pass parameters.
16840 2005-01-30  Richard Henderson  <rth@redhat.com>
16842         PR 19696
16843         * optabs.c (expand_absneg_bit): Split out from expand_unop and
16844         expand_abs_nojump and generalize.  Use operand_subword and
16845         emit_no_conflict_block.  Support large modes.
16846         (expand_abs_nojump): Use it.  Use HONOR_SIGNED_ZEROS to fall
16847         back to maximum.
16848         (expand_unop): Likewise.  Use HONOR_SIGNED_ZEROS to fall back
16849         negation to subtraction.
16850         (expand_copysign): Check that the format has signed zeros.
16851         Use operand_subword and emit_no_conflict_block.  Support large modes.
16853 2005-01-30  Daniel Berlin  <dberlin@dberlin.org>
16855         Fix PR tree-optimization/19624
16857         * Makefile.in (tree-ssa-pre.o): Add CFGLOOP_H.
16858         * tree-ssa-pre.c: Add cfgloop.h.
16859         Update comment.
16860         (pre_stats): New member, constified.
16861         (inserted_exprs): New static variable.
16862         (NECESSARY): New macro.
16863         (create_expression_by_pieces): Fold the expression, and
16864         mark it as defaulting to not necessary. Also put in
16865         inserted_exprs.
16866         (fully_constant_expression): New function.
16867         (insert_into_preds_of_block): Modify to not insert phis when we
16868         are playing with induction variables.
16869         Push phis onto the inserted_exprs vector, and mark them as not
16870         necessary by default.
16871         (insert_aux): Call fully_constant_expression on eprime.
16872         If all edges produce the same value, mark it constant.
16873         (mark_operand_necessary): New function.
16874         (remove_dead_inserted_code): New function.
16875         (init_pre): Init loop optimizer to get loop info.
16876         (fini_pre): Free loop_optimizer, and inserted_exprs vec.
16877         (execute_pre): Commit edge inserts, then remove dead code.
16879 2005-01-30  Richard Henderson  <rth@redhat.com>
16881         * rtl.c (rtx_equal_p): No early exit for CONST_VECTOR.
16882         * varasm.c (const_rtx_hash_1): Handle CONST_VECTOR.
16884 2005-01-30  Richard Henderson  <rth@redhat.com>
16886         PR target/19700
16887         * config/i386/i386.c (ix86_expand_copysign): New.
16888         (ix86_split_copysign_const): New.
16889         (ix86_split_copysign_var): Rename from ix86_split_copysign,
16890         rearrange op1/nmask operands.
16891         * config/i386/i386-protos.h: Update.
16892         * config/i386/i386.md (copysignsf3): Use ix86_expand_copysign.
16893         (copysigndf3): Likewise.
16894         (copysignsf3_const, copysigndf3_const): New.
16895         (copysignsf3_var): Rename from copysignsf3, split out splitter
16896         and fix split predicate for X constraint.
16897         (copysigndf3_var): Similarly.
16899 2005-01-30  Kazu Hirata  <kazu@cs.umass.edu>
16901         * optabs.c, doc/c-tree.texi, doc/install.texi, doc/md.texi,
16902         doc/passes.texi, doc/rtl.texi, doc/sourcebuild.texi,
16903         doc/tm.texi, doc/tree-ssa.texi: Update copyright.
16905 2005-01-29  Richard Henderson  <rth@redhat.com>
16907         PR target/19690
16908         * config/i386/i386.md (movdf_nointeger, movdf_integer): Fix ordering
16909         of # and * in constraints.
16911 2005-01-29  Richard Henderson  <rth@redhat.com>
16913         PR middle-end/19689
16914         * expr.c (store_field): Don't strip sub-mode cast when the input
16915         data is even smaller.
16917 2005-01-29  Richard Henderson  <rth@redhat.com>
16919         PR middle-end/19687
16920         * expr.c (categorize_ctor_elements_1): Check for CONSTRUCTOR of a
16921         union being empty.
16923 2005-01-29  Richard Henderson  <rth@redhat.com>
16925         * combine.c (make_field_assignment): Fix argument order
16926         to gen_int_mode.
16928 2005-01-29  Richard Guenther <richard.guenther@uni-tuebingen.de>
16930         PR tree-optimization/15791
16931         * fold-const.c (extract_array_ref): New function.
16932         (fold): Fold comparisons between &a[i] and &a[j] or
16933         semantically equivalent trees.
16935 2005-01-29  Jeff Law  <law@redhat.com>
16937         * gcse.c (insert_expr_in_table): Revamp handling of available
16938         and anticipatable occurrence lists to avoid unnecessary list
16939         walking.
16940         (insert_set_in_table): Similarly.
16942 2005-01-29  Joseph S. Myers  <joseph@codesourcery.com>
16944         * c-common.c (fix_string_type): Just use c_build_qualified_type to
16945         build string type.
16946         (c_build_qualified_type): Build qualified array types with
16947         TYPE_MAIN_VARIANT pointing to corresponding unqualified type.
16948         * c-decl.c (c_make_fname_decl): Build unqualified array type
16949         before qualified type.
16950         (grokdeclarator): Use TYPE_MAIN_VARIANT of typedef type if element
16951         type is qualified, not just if type itself is.  Don't apply
16952         qualifiers to array type when declarator is processed.  Apply
16953         qualifiers to field type whether or not it is an array type.
16954         Don't handle array types specially for applying qualifiers to
16955         variables.
16956         * c-typeck.c (composite_type): Build unqualified element type and
16957         array type when forming composite of array types.
16958         (common_pointer_type, comptypes, comp_target_types,
16959         type_lists_compatible_p, build_indirect_ref, build_array_ref,
16960         convert_for_assignment): Don't apply TYPE_MAIN_VARIANT to array
16961         types.
16962         (type_lists_compatible_p): Cache TREE_VALUE (args1) and TREE_VALUE
16963         (args2) in variables a1 and a2.
16965 2005-01-29  Kazu Hirata  <kazu@cs.umass.edu>
16967         * cse.c (n_elements_made, max_elements_made): Remove.
16968         (insert): Don't touch n_elements_made.
16969         (cse_main): Don't touch n_elements_made or max_elements_made.
16971 2005-01-28  Stephane Carrez  <stcarrez@nerim.fr>
16973         PR target/15384
16974         * config/m68hc11/t-m68hc11-gas (dp-bit.c): Fix typo causing a
16975         configuration part of dp-bit.c to be lost.
16977 2005-01-28  Roger Sayle  <roger@eyesopen.com>
16979         * expmed.c (expand_mult_highpart_optab): When attempting to use
16980         a non-widening multiplication in a wider mode, the operands need
16981         to be converted (zero or sign extended) to that mode.
16983 2005-01-28  Ian Lance Taylor  <ian@airs.com>
16985         PR middle-end/16558
16986         PR middle-end/19583
16987         * gimple-low.c (block_may_fallthru): TRY_FINALLY_EXPR only falls
16988         through if both operands fall through.
16990 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
16992         * cse.c (fold_rtx) <PC>: Don't optimize.
16994 2005-01-28  Jeff Law  <law@redhat.com>
16996         * fold-const.c (fold, case CEIL_MOD_EXPR): Optimize 0 % X.
16997         (case FLOOR_MOD_EXPR, ROUND_MOD_EXPR, TRUNC_MOD_EXPR): Similarly.
16999 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
17001         * cse.c (cse_reg_info_free_list, cse_reg_info_used_list,
17002         cse_reg_info_used_list_end): Remove.
17003         (cse_reg_info_list, cse_reg_info_list_free): New.
17004         (get_cse_reg_info): When allocating an instance of
17005         cse_reg_info, add it to the beginning of the cse_reg_info_list
17006         list.  Remove code to maintain cse_reg_info_used_list.
17007         (new_basic_block): Reset the free list to the beginning of
17008         cse_reg_info_list.
17010 2005-01-28  Richard Sandiford  <rsandifo@redhat.com>
17012         * config/frv/frv.c (bdesc_2arg): Remove __MDPACKH.
17013         (frv_init_builtins): Change its prototype to take 4 uhalf arguments.
17014         (frv_expand_mdpackh_builtin): New function.
17015         (frv_expand_builtin): Use it to expand __MDPACKH.
17016         * doc/extend.texi (__MDPACKH): Update documentation.
17018 2005-01-28  Uros Bizjak  <uros@kss-loka.si>
17020         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use
17021         SSE_FLOAT_MODE_P for use_sse computation.
17023 2005-01-28  Ralf Corsepius  <ralf.corsepius@rtems.org>
17025         PR target/19663
17026         * config/sparc/rtemself.h (LINK_GCC_C_SEQUENCE_SPEC): undefine.
17028 2005-01-27  Richard Henderson  <rth@redhat.com>
17030         * builtins.c (expand_builtin_copysign): New.
17031         (expand_builtin): Call it.
17032         * genopinit.c (optabs): Add copysign_optab.
17033         * optabs.c (init_optabs): Initialize it.
17034         (expand_copysign): New.
17035         * optabs.h (OTI_copysign, copysign_optab): New.
17036         (expand_copysign): Declare.
17038         * config/alpha/alpha.md (UNSPEC_COPYSIGN): New.
17039         (copysignsf3, ncopysignsf3, copysigndf3, ncopysigndf3): New.
17041         * config/i386/i386.c (ix86_build_signbit_mask): Split from ...
17042         (ix86_expand_fp_absneg_operator): ... here.
17043         (ix86_split_copysign): New.
17044         * config/i386/i386-protos.h: Update.
17045         * config/i386/i386.md (UNSPEC_COPYSIGN): New.
17046         (copysignsf3, copysigndf3): New.
17048         * config/ia64/ia64.md (UNSPEC_COPYSIGN): New.
17049         (copysignsf3, ncopysignsf3): New.
17050         (copysigndf3, ncopysigndf3): New.
17051         (copysignxf3, ncopysignxf3): New.
17052         * config/ia64/ia64.c (rtx_needs_barrier): Handle UNSPEC_COPYSIGN.
17054 2005-01-27  Arend Bayer  <arend.bayer@web.de>
17055             Kazu Hirata  <kazu@cs.umass.edu>
17057         * cse.c: (find_best_addr): Don't call copy_rtx before calling
17058         fold_rtx.  Save cost recomputation if fold_rtx did nothing.
17059         (fold_rtx) <ASM_OPERANDS>: Don't do anything if INSN is
17060         NULL_RTX.
17062 2005-01-27  Jeff Law  <law@redhat.com>
17064         * tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register
17065         definitions of SSA_NAMEs which are not being rewritten.
17066         (rewrite_ssa_into_ssa): Only initialize the current definition
17067         of an SSA_NAME if that SSA_NAME has been marked for rewriting.
17068         If checking is enabled, assert that SSA_NAME_AUX is clear for all
17069         SSA_NAMEs before returning.
17071 2005-01-27  Kazu Hirata  <kazu@cs.umass.edu>
17073         * c-common.def, c-dump.c, c-gimplify.c, c-objc-common.c,
17074         cfgexpand.c, dbxout.c, function.h, opts.c, tree-flow-inline.h,
17075         tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-tailcall.c,
17076         config/avr/avr.md, config/cris/aout.h, config/cris/cris.h,
17077         config/mips/iris6.h, config/sh/sh.c: Update copyright.
17079 2005-01-27  Steven Bosscher  <stevenb@suse.de>
17081         PR middle-end/17278
17082         * opts.c (decode_options): Move flag_thread_jumps from -O1 and
17083         higher to -O2 and higher.  Likewise for tree PRE.
17084         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only iterate at -O2
17085         and better.
17087 2005-01-27  Ian Lance Taylor  <ian@airs.com>
17089         PR middle-end/19583
17090         * gimple-low.c (try_catch_may_fallthru): New static function.
17091         (block_may_fallthru): Handle TRY_CATCH_EXPR.
17092         * tree-inline.c (expand_call_inline): Don't warn about reaching
17093         the end of a non-void function being inlined if the function uses
17094         a return slot.
17096 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
17098         * config/i386/i386.h (CALL_USED_REGISTERS): Fix comment pastos.
17100         PR c/18946
17101         * c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node.
17102         (pushdecl): Only use DECL_FILE_SCOPE_P if DECL_P.
17103         (implicitly_declare): Handle error_mark_node.
17105 2005-01-27  Richard Henderson  <rth@redhat.com>
17107         PR tree-opt/14329
17108         * tree.h (struct tree_decl): Add debug_expr_is_from.
17109         (DECL_DEBUG_EXPR_IS_FROM): New.
17110         (DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF.
17111         * dwarf2out.c (dwarf2out_var_location): Update to match.
17112         * tree-outof-ssa.c (create_temp): Likewise.
17113         * var-tracking.c (track_expr_p): Likewise.
17114         * tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR.
17115         * c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR.
17116         * toplev.c (default_tree_printer): Likewise.
17118 2005-01-27  Alexandre Oliva  <aoliva@redhat.com>
17120         * config/frv/frv.c (frv_class_likely_spilled_p): Add GR8_REGS,
17121         GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS.
17123 2005-01-27  Steven Bosscher  <stevenb@suse.de>
17125         * tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW,
17126         CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
17127         ASM_CLOBBERS): Add tree checks.
17129         * c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE.
17130         (SWITCH_STMT_COND, SWITCH_STMT_BODY): New.
17131         * c-common.def (SWITCH_STMT): Update to match.
17132         * c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor
17133         macros instead of SWITCH_EXPR ones.
17134         * c-dump.c (c_dump_tree): Likewise.
17135         * c-gimplify.c (gimplify_switch_stmt): Likewise.
17136         * c-typeck.c (c_start_case, do_case, c_finish_case): Likewise.
17138         * doc/c-tree.texi (SWITCH_STMT): Update accessor macro names.
17140 2005-01-27  Alan Modra  <amodra@bigpond.net.au>
17142         * unwind-dw2.c (execute_stack_op): Add missing cases for
17143         DW_OP_shl, DW_OP_shr, DW_OP_shra, DW_OP_xor.
17145 2005-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
17147         * config.gcc (Obsolete configurations): Remove 'dummy', add
17148         sparclite-*-coff*, sparclite-*-elf*, sparc86x-*-elf* and
17149         sparc-*-openbsd*.
17151 2005-01-26  Diego Novillo  <dnovillo@redhat.com>
17153         PR tree-optimization/19633
17154         * tree-ssa-alias.c (ptr_is_dereferenced_by): Also handle
17155         CALL_EXPRs.
17156         (maybe_create_global_var): Do not create .GLOBAL_VAR if there
17157         are no call-clobbered variables.
17158         * tree-outof-ssa.c (check_replaceable): Return false for calls
17159         with side-effects.
17161 2005-01-26  Ulrich Weigand  <uweigand@de.ibm.com>
17163         * dbxout.c (dbxout_symbol_location): Resolve constant pool references
17164         even for variables with NULL DECL_INITIAL.
17166 2005-01-26  Stuart Hastings  <stuart@apple.com>
17168         * gimplify.c (shortcut_cond_expr): Re-compute side-effects.
17170 2005-01-26  Richard Henderson  <rth@redhat.com>
17172         PR middle-end/18008
17173         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
17174         field's type.
17175         * expr.c (store_field): Strip conversions to odd-bit-sized types
17176         if the destination field width matches.
17178 2005-01-26  Richard Henderson  <rth@redhat.com>
17180         * c-decl.c, expmed.c, expr.c: Revert last change.
17182 2005-01-26  Richard Henderson  <rth@redhat.com>
17184         PR middle-end/18008
17185         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
17186         field's type.
17187         * expmed.c (store_fixed_bit_field): Create a paradoxical subreg
17188         if we don't need the bits above those present in the current mode.
17189         * expr.c (store_field): Strip conversions to odd-bit-sized types
17190         if the destination field width matches.
17192 2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
17194         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
17195         either -ffast-math or -funsafe-math-optimizations is in use.
17197 2005-01-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
17199         PR target/19293
17200         PR target/19329
17201         * config/avr/avr.c (notice_update_cc): Only set condition code for
17202         ashrqi3 if shift count > 0.
17203         (out_shift_with_cnt): Handle shift count <= 0 as a no-op.
17204         (ashlqi3_out, ashlhi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out,
17205         ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Handle shift
17206         count <= 0 as a no-op, and shift count >= width by copying zero
17207         or sign bit to all bits of the result.
17208         * config/avr/avr.md (all shifts): Add alternatives for zero shift
17209         count, with attribute "length" set to 0 and "cc" set to "none".
17211 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
17213         * doc/invoke.texi: Document -mTLS.
17215         * testsuite/gcc.target/frv/all-tls-global-dynamic.c: New.
17216         * testsuite/gcc.target/frv/all-tls-initial-exec.c: New.
17217         * testsuite/gcc.target/frv/all-tls-initial-exec-pic.c: New.
17218         * testsuite/gcc.target/frv/all-tls-local-dynamic.c: New.
17219         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt.c: New.
17220         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt-pic.c: New.
17221         * testsuite/gcc.target/frv/all-tls-local-exec.c: New.
17222         * testsuite/gcc.target/frv/all-tls-local-exec-TLS.c: New.
17224         * configure.ac: Check for a TLS capable gas.
17226         * configure: Regenerate.
17228 2005-01-26  Richard Henderson  <rth@redhat.com>
17230         PR middle-end/18008
17231         * combine.c (make_field_assignment): Simplify store to zero_extract
17232         from a source with an overlapping mask.
17234 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
17236         2004-11-11  Eric Christopher  <echristo@redhat.com>
17238         * config/frv/frv.md: Add fr400_integer automaton. Don't
17239         allow TYPE_MUL, TYPE_MACC, or TYPE_CUT to issue in parallel
17240         to TYPE_MACC.
17242 2005-01-26  Steven Bosscher  <stevenb@suse.de>
17244         PR middle-end/16585
17245         * cfgbuild.c (make_edges): Do not clear or set
17246         current_function_has_computed_jump.
17247         * function.h (struct function): Remove the has_computed_jump field.
17248         (current_function_has_computed_jump): Do not define.
17249         * sched-rgn.c (is_cfg_nonregular): Return true if a basic block ends
17250         in a computed jump.  Ignore current_function_has_computed_jump.
17252 2005-01-26  Richard Henderson  <rth@redhat.com>
17254         PR middle-end/19515
17255         * expr.c (categorize_ctor_elements): New argument p_must_clear.
17256         (categorize_ctor_elements_1): Likewise.  Detect a union that isn't
17257         fully initialized.
17258         (mostly_zeros_p): Update for new categorize_ctor_elements argument.
17259         * gimplify.c (gimplify_init_constructor): Likewise.  Only shove
17260         objects into static storage if they have more than one non-zero value.
17261         * tree.h (categorize_ctor_elements): Update decl.
17263 2005-01-26  Steven Bosscher  <stevenb@suse.de>
17265         PR middle-end/19616
17266         * tree.h (CALL_EXPR_TAILCALL): Add comment.
17267         * calls.c (check_sibcall_argument_overlap_1): Revert the change
17268         to this function from 2004-07-10.
17269         * tree-tailcall.c (suitable_for_tail_opt_p): Do not consider the
17270         the current function for tail call optimizations if the address
17271         of one of it its arguments is taken.
17273 2005-01-26  Kazu Hirata  <kazu@cs.umass.edu>
17275         * cse.c (fold_rtx): Call equiv_constant only when necessary.
17277 2005-01-26  Bernd Schmidt  <bernd.schmidt@analog.com>
17279         * function.c (expand_function_end): If current_function_calls_alloca,
17280         emit stack restore in a place that is reached when the function falls
17281         through at the end.
17283 2005-01-26  Alexandre Oliva  <aoliva@redhat.com>
17285         * Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy
17286         rule to avoid matching inappropriate suffix rule.
17288 2005-01-26  Jan Hubicka  <jh@suse.cz>
17290         PR tree-optimization/19241
17291         * tree-inline.c (copy_body_r): Do not walk subtrees after substituting.
17293 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
17295         * config/cris/cris.h (LIB_SPEC) <sim*>: Use -lsyslinux, not
17296         -lsyssim.  Wrap -lc -lsyssim in --start-group --end-group instead
17297         of doubling.
17298         (STARTFILE_SPEC): Add crti.o, before crtbegin.o.
17299         <sim*>: Always use crt1.o, regardless of N in simN.
17300         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
17301         (ENDFILE_SPEC): Add crtn.o, after crtend.o.
17302         (CRT_CALL_STATIC_FUNCTION): Remove.
17303         * config/cris/aout.h (STARTFILE_SPEC): <!melinux && sim*>: Always
17304         use crt1.o, regardless of N in simN.
17305         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
17306         (LIB_SPEC): Do not define; default to the one in config/cris/cris.h.
17307         (CRIS_CPP_SUBTARGET_SPEC) <melinux && !nostdinc>: Remove special
17308         case isystem setting.
17309         (MAX_OFILE_ALIGNMENT): Correct to 32, not 16.
17311 2005-01-25  Ian Lance Taylor  <ian@airs.com>
17313         * gimple-low.c (block_may_fallthru): Correct handling of
17314         SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL.
17316 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
17318         * config/cris/cris.h (CPP_SPEC): Adjust the various mtune=
17319         handlers to match indentation; nested under the mtune=* handler.
17320         Similar for mcpu= and march=.
17322 2005-01-25  Daniel Jacobowitz  <dan@codesourcery.com>
17324         * config/mips/linux.h (LIB_SPEC): Remove -rpath-link.
17325         * config/mips/linux64.h (LIB_SPEC): Likewise.
17326         * config/mn10300/linux.h (LIB_SPEC): Likewise.
17327         * config/sh/linux.h (LIB_SPEC): Likewise.
17329 2005-01-25  Aldy Hernandez  <aldyh@redhat.com>
17331         * config/frv/frv.c (frv_legitimize_tls_address): New.
17332         (TARGET_HAVE_TLS): Define.
17333         (FRV_SYMBOL_REF_TLS_P): Define.
17334         (frv_override_options): Handle new register classes.
17335         (frv_legitimate_address_p): Reject tls addresses.
17336         (frv_legitimize_address): Handle TLS addresses.
17337         (gen_inlined_tls_plt): New.
17338         (gen_tlsmoff): New.
17339         (frv_legitimize_tls_address): New.
17340         (unspec_got_name): Add TLS entries.
17341         (got12_operand): Add R_FRV_TLSMOFF12 case.
17342         (frv_emit_move): Fixup TLS addresses.
17343         (frv_emit_movsi): Legitimize TLS addresses.
17345         * config/frv/frv.h (MASK_BIG_TLS): New.
17346         (TARGET_BIG_TLS): New.
17347         (HAVE_AS_TLS): Define.
17348         (TARGET_SWITCHES): Add -mTLS and -mtls options.
17349         (enum reg_class): Add GR8_REGS, GR9_REGS, GR89_REGS.
17350         (REG_CLASS_NAMES): Same.
17351         (REG_CLASS_CONTENTS): Same.
17352         (CONSTRAINT_LEN): New.
17353         (REG_CLASS_FROM_CONSTRAINT): New.
17354         (PREDICATE_CODES): Add symbolic_operand.
17356         * config/frv/frv.md (define_constants): Add UNSPEC_GETTLSOFF,
17357         UNSPEC_TLS_LOAD_GOTTLSOFF12, UNSPEC_TLS_INDIRECT_CALL,
17358         UNSPEC_TLS_TLSDESC_LDD, UNSPEC_TLS_TLSDESC_LDD_AUX,
17359         UNSPEC_TLS_TLSOFF_LD, UNSPEC_TLS_LDDI, UNSPEC_TLSOFF_HILO,
17360         R_FRV_GOTTLSOFF_HI, R_FRV_GOTTLSOFF_LO, R_FRV_TLSMOFFHI,
17361         R_FRV_TLSMOFFLO, R_FRV_TLSMOFF12, R_FRV_TLSDESCHI,
17362         R_FRV_TLSDESCLO, R_FRV_GOTTLSDESCHI, R_FRV_GOTTLSDESCLO, GR8_REG,
17363         GR9_REG, GR14_REG, LRREG.
17364         (type): Add load_or_call attribute.
17365         ("load_or_call"): New reservation.
17366         ("call_gettlsoff"): New.
17367         ("tls_indirect_call"): New.
17368         ("tls_load_gottlsoff12"): New.
17369         ("tlsoff_hilo"): New.
17370         ("tls_tlsdesc_ldd"): New.
17371         ("tls_tlsoff_ld"): New.
17372         ("tls_lddi"): New.
17374         * config/frv/frv-protos.h (symbolic_operand): Protoize.
17376         2005-01-25  Alexandre Oliva  <aoliva@redhat.com>
17378         * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Define.
17379         * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Declare.
17380         * config/frv/frv.c (TLS_BIAS): Define.
17381         (frv_output_dwarf_dtprel): New.
17383 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
17385         PR rtl-optimization/19579
17386         * ifcvt.c (noce_try_cmove_arith): If emitting instructions to set up
17387         both A and B, see if they don't clobber registers the other expr uses.
17389 2005-01-25  J"orn Rennecke <joern.rennecke@st.com>
17391         * real.c (do_add): Initialize signalling and canonical members.
17393         * real.c (real_from_integer): Zero out destination.
17395 2005-01-18  Jan Hubicka  <jh@suse.cz>
17397         PR tree-optimize/19337
17398         * tree-inline.c (initialize_inlined_parameters): Copy
17399         saved_static_chain_decl only.
17401 2005-01-25  Richard Henderson  <rth@redhat.com>
17403         PR target/19556
17404         PR target/19584
17405         * config/i386/i386.c (x86_inter_unit_moves): Zero.
17406         (ix86_preferred_reload_class): Rewrite fp-constant section, with
17407         80387 enabled, to return a proper subclass.  Return the subset that
17408         overlaps with GENERAL_REGS for PLUS.
17409         * config/i386/i386.md (movsi_1, movdi_2): Set type to "mmx" for pxor.
17411 2005-01-25  Richard Henderson  <rth@redhat.com>
17413         PR middle-end/19609
17414         * tree-complex.c (expand_complex_div_wide): Use the correct formulae.
17416 2005-01-25  Roger Sayle  <roger@eyesopen.com>
17418         * expmed.c (choose_multiplier): Change interface to return the
17419         multiplier lowpart as an rtx instead of an unsigned HOST_WIDE_INT.
17420         (expand_divmod): Update calls to choose_multiplier.
17422 2005-01-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17424         PR middle-end/19330
17425         * expmed.c (extract_bit_field): Use adjust_address instead of
17426         gen_lowpart when op0 is a MEM.
17428 2005-01-24  Steven Bosscher  <stevenb@suse.de>
17430         * cfgexpand.c (expand_gimple_tailcall): Fix typo.
17432 2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
17434         * config/mips/irix-csr.c: New file.
17435         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
17436         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
17437         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
17438         executables.
17440 2005-01-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
17442         PR bootstrap/19364
17443         * config.gcc (sparc-*-elf*): Remove sol2.h, sparc/sol2.h and
17444         sparc/elf.h, add sparc/sp-elf.h.
17445         (sparc-*-rtems*): Likewise.
17446         (sparclite-*-elf*): Remove sol2.h, sparc/sol2.h, sparc/elf.h and
17447         tm-dwarf2.h, add sparc/sp-elf.h.
17448         (sparc86x-*-elf): Likewise.
17449         (sparc64-*-elf*): Remove sol2.h, sparc/sol2.h and tm-dwarf2.h.
17450         * config/sparc/liteelf.h (TARGET_SUB_OS_CPP_BUILTINS): Rename into
17451         TARGET_OS_CPP_BUILTINS.
17452         * config/sparc/sp86x-elf (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
17453         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
17454         Undefine it.
17455         * config/sparc/openbsd64.h (NO_IMPLICIT_EXTERN_C): Undefine.
17456         * config/sparc/sp64-elf.h (NO_IMPLICIT_EXTERN_C): New macro.
17457         (SWITCH_TAKES_ARG): Likewise.
17458         (LOCAL_LABEL_PREFIX): Likewise.
17459         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
17460         (TARGET_N_FORMAT_TYPES): Delete.
17461         (TARGET_FORMAT_TYPES): Likewise.
17462         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
17463         * config/sparc/elf.h: Delete.
17464         * config/sparc/sp-elf.h: New file.
17466 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
17468         * tree-flow-inline.h (phi_arg_from_edge): Remove.
17469         * tree-flow.h: Remove the corresponding prototype.
17470         * tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-ssa.c,
17471         tree-vectorizer.c: Use dest_idx instead of phi_arg_from_edge.
17473 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
17475         PR target/17751
17476         * config/rs6000/rs6000.c (rs6000_file_start): Create toc section
17477         for AIX ABI or ELF -fPIC.
17478         (rs6000_emit_load_toc_table): Don't create toc_section here.
17479         (rs6000_xcoff_file_start): Nor here.
17481 2005-01-24  J"orn Rennecke <joern.rennecke@st.com>
17483         * sh.c (ra.h): Don't #include.
17484         (hard_regs_intersect_p): New function, resurrected from ra.c.
17486         * sh.c: Fix 1996 Copyright.
17488 2005-01-24  Richard Henderson  <rth@redhat.com>
17489             Aldy Hernandez  <aldyh@redhat.com>
17491         * regrename.c (note_sets): Handle subregs.
17493 2005-01-24  Joseph S. Myers  <joseph@codesourcery.com>
17495         PR bootstrap/18058
17496         * genconditions.c (write_header, write_conditions): Elide file if
17497         not GCC >= 3.0.1.
17499 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
17501         * c-opts.c, expmed.c, gengtype.c, tree-complex.c,
17502         config/arm/iwmmxt.md, config/avr/avr.c, config/s390/s390.h:
17503         Update copyright.
17505 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
17507         * builtins.c (get_pointer_alignment, gimplify_va_arg_expr,
17508         expand_builtin_printf, expand_builtin_fprintf,
17509         expand_builtin_sprintf): Use POINTER_TYPE_P instead TREE_CODE
17510         checking against POINTER_TYPE.
17511         (validate_arglist): Handle POINTER_TYPE code by checking
17512         POINTER_TYPE_P.
17514 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
17516         * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1,
17517         init_rtlanal): New.
17518         (for_each_rtx): Call for_each_rtx_1.
17519         * rtl.h (init_rtlanal): Declare.
17520         * toplev.c (backend_init): Call init_rtlanal.
17522 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
17524         * flow.c (propagate_one_insn): Formatting.
17526         PR middle-end/19551
17527         * flow.c (libcall_dead_p): Be more conservative if unsure.
17528         If there are any instructions between insn and call, see if they are
17529         all dead before saying the libcall is dead.
17531 2005-01-24  Uros Bizjak  <uros@kss-loka.si>
17533         * config/i386/i386.md (*extendsfdf2_sse): Use "nonimmediate_operand"
17534         operand constraint for operand 0.
17536 2005-01-23  Richard Henderson  <rth@redhat.com>
17538         PR 19486
17539         * tree-complex.c (expand_complex_div_wide): Set EDGE_FALLTHRU on
17540         edges leading to join block.
17542 2005-01-23  Roger Sayle  <roger@eyesopen.com>
17544         * expmed.c (expand_mult_highpart): Make static.  Change type of
17545         constant multiplier argument from unsigned HOST_WIDE_INT to rtx.
17546         (expand_divmod): Updates calls to expand_mult_highpart by using
17547         gen_int_mode to pass a CONST_INT rtx.
17548         * rtl.h (expand_mult_highpart): Remove prototype.
17550 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
17552         * flow.c (regset_bytes, regset_size): Remove.
17554         * cfganal.c: Fix a reference to Harvey's paper.
17556 2005-01-23  Steven Bosscher  <stevenb@suse.de>
17558         PR rtl-optimization/19464
17559         * tree-optimize.c (init_tree_optimization_passes): Add one more
17560         copyrename pass just before out-of-ssa.
17562 2005-01-23  Joseph S. Myers  <joseph@codesourcery.com>
17564         PR bootstrap/18058
17565         * recog.c (recog_memoized): Don't define if GENERATOR_FILE.
17566         * ggc-none.c (ggc_free): Define.
17568 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
17570         * cse.c (max_reg, max_insn_uid): Remove.
17571         (cse_main): Don't access max_reg or max_insn_uid.
17573         * c-common.c (explicit_flag_signed_bitfields,
17574         lang_statement_code_p, lang_expand_function_end): Remove.
17575         * c-common.h: Remove the corresponding declarations.
17576         * c-opts.c (c_common_handle_option): Remove all write access
17577         to explicit_flag_signed_bitfields.
17579         * cgraph.c (cgraph_varpool_n_nodes): Remove.
17580         (cgraph_varpool_node): Don't access cgraph_varpool_n_nodes.
17581         * cgraph.h: Remove the corresponding declaration.
17583         * gcse.c (null_pointer_info): Remove.
17585 2005-01-23  Roger Sayle  <roger@eyesopen.com>
17586             Eric Botcazou  <ebotcazou@libertysurf.fr>
17588         * combine.c (simplify_logical): Only simplify logical expressions
17589         of the form ior(and(x,y),z) by the inverse distributive law if the
17590         result is cheaper than the original.
17592 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
17594         * alias.c, c-common.h, c-incpath.c, c-incpath.h, expr.c,
17595         fold-const.c, gimplify.c, params.h, tree-data-ref.c,
17596         tree-if-conv.c, tree-nested.c, tree-outof-ssa.c,
17597         tree-ssa-dom.c, tree-vectorizer.c, tree.def, config/darwin.c,
17598         config/freebsd-spec.h, config/arm/arm.h,
17599         config/h8300/h8300.md, config/i386/i386.md,
17600         config/i386/predicates.md, config/i386/sse.md,
17601         config/ia64/ia64.c, config/ip2k/ip2k.c, config/s390/s390.c,
17602         config/vax/vax.md: Fix comment typos.  Follow spelling
17603         conventions.
17605 2005-01-23  Steven Bosscher  <stevenb@suse.de>
17607         * gengtype.c (walk_type): Produce `not equal to' compares for loop
17608         tests, instead of `less than'.
17610 2005-01-23  Richard Sandiford  <rsandifo@redhat.com>
17612         * function.c (assign_parm_setup_block): When creating a new stack slot
17613         for a parameter, get its alignment from the parameter's DECL_ALIGN
17614         rather than the type's TYPE_ALIGN.  Make sure that the parameter
17615         is at least word aligned.
17617 2005-01-22  Roger Sayle  <roger@eyesopen.com>
17619         PR middle-end/19378
17620         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
17622 2005-01-22  Richard Henderson  <rth@redhat.com>
17624         PR target/19506
17625         * config/i386/i386.md (movsfcc_1_sse_max): Use nonimmediate_operand
17626         in both compare operands.
17627         (movdfcc_1_sse_max): Likewise.
17628         (movsfcc_1_sse): Likewise.  Add earlyclobber for scratch.
17629         (movdfcc_1_sse): Likewise.
17630         * config/i386/i386.c (ix86_split_sse_movcc): Emit copies into the
17631         scratch register as needed.
17633 2005-01-22  Richard Henderson  <rth@redhat.com>
17635         * config/i386/i386.md (smaxsf3): Fix mnemonic typo.
17637         * config/i386/i386.c (ix86_prepare_fp_compare_args): Fix is_sse test.
17639 2005-01-22  Richard Henderson  <rth@redhat.com>
17641         * genopinit.c (optabs): Use smin/smax for floating point too.
17642         * doc/md.texi: Update to match.  Clarify that floating point
17643         results are undefined for +0/-0 and NaN.
17644         * doc/rtl.texi: Likewise.
17645         * rtl.def (SMIN, SMAX): Likewise
17646         * tree.def (MIN_EXPR, MAX_EXPR): Likewise.
17648         * config/alpha/alpha.md (smaxdf3, smindf3, smaxsf3, sminsf3): Add
17649         leading 's' to the name.
17650         * config/ia64/ia64.md (smaxsf3, sminsf3, smaxdf3, smindf3,
17651         smaxxf3, sminxf3): Likewise.
17652         * config/rs6000/rs6000.md (smaxdf3, smindf3, smaxsf3, sminsf3):
17653         Likewise.
17655 2005-01-22  Paul Brook  <paul@codesourcery.com>
17657         * config/arm/arm.md: Use "Uy" constraint for wcgr load/stores.
17659 2005-01-21  Mark Dettinger  <dettinge@de.ibm.com>
17661         * config/s390/s390.c (struct processor_costs): New fields
17662         dlgr, dlr, dr, dsgfr, dsgr.
17663         (z900_cost, z990_cost): Values for new fields.
17664         (s390_rtx_costs): New cases MEM und COMPARE in switch
17665         statement. Modified handling of SIGN_EXTEND, ZERO_EXTEND,
17666         DIV, MOD, UDIV, UMOD.
17668 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
17670         * config/s390/s390.md ("doloop_si64"): Reload input value directly
17671         into the register being decremented.
17672         ("doloop_si31", "doloop_di"): Likewise.
17673         ("*doloop_si_long"): Adapt pattern.
17675 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
17677         * config/s390/s390.h (HARD_REGNO_NREGS): Fix computation for
17678         access registers.
17679         (CLASS_MAX_NREGS): Likewise.
17681 2005-01-21  Daniel Berlin  <dberlin@dberlin.org>
17683         * doc/tree-ssa.texi (Statement Operands): Add example for new
17684         must-def macro. Note deprecation of old operands interface.
17686 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
17688         PR tree-optimization/19484
17689         * tree-cfg.c (remove_fallthru_edge): New function.
17690         (cleanup_control_flow): Remove fallthru edges from calls that are
17691         now known not to return.
17693 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
17695         Fix PR tree-optimization/19038
17696         * tree-ssa-dom.c (cprop_operand): Don't replace loop invaeriant
17697         copies with loop variant ones.
17699 2005-01-22  Kazu Hirata  <kazu@cs.umass.edu>
17701         * cfganal.c, real.h, reorg.c, timevar.def, tree-ssa-ccp.c,
17702         config/alpha/alpha-protos.h, config/alpha/alpha.h,
17703         config/alpha/alpha.md, config/alpha/predicates.md,
17704         config/sparc/freebsd.h, config/sparc/netbsd-elf.h,
17705         config/sparc/sol2.h: Update copyright.
17707         * tree-cfg.c (remove_forwarder_block_with_phi): Look at the
17708         first label to see if it is a nonlocal label.
17710 2005-01-22  David Edelsohn  <edelsohn@gnu.org>
17711             Andrew Pinski  <pinskia@physics.uc.edu>
17713         PR target/19491
17714         * config/rs6000/rs6000.c (rs6000_va_start): Saturate n_gpr at
17715         maximum number of GPRs.  Saturate n_fpr at maximum number of FPRs.
17717 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
17719         * config/rs6000/rtems.h: Update copyright.
17721 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
17723         PR target/19548
17724         * config/rs6000/rtems.h: Resurrect cpp_os_rtems_spec from gcc < 3.4.
17725         (CPP_OS_RTEMS_SPEC): New (From gcc-3.3's config/rs6000/sys4.h).
17726         (SUBSUBTARGET_EXTRA_SPECS): Use CPP_OS_RTEMS_SPEC.
17728 2005-01-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
17730         PR c/18809
17731         * c-typeck.c (convert_arguments): Check for error_mark_node.
17733 2005-01-21  Ian Lance Taylor  <ian@airs.com>
17735         PR tree-optimization/13000
17736         * tree-inline.c: Include "tree-flow.h".
17737         (expand_call_inline): If warn_return_type, warn if non-void inline
17738         function falls through.
17739         * tree-cfg.c (execute_warn_function_return): Don't warn about
17740         control reaching end if TREE_NO_WARNING is set.  Set
17741         TREE_NO_WARNING.
17742         * gimple-low.c (block_may_fallthru): Don't assume that SWITCH_EXPR
17743         has been lowered.
17744         * gimplify.c (shortcut_cond_expr): Don't emit a jump over the else
17745         branch if we don't need one.
17746         * c-typeck.c: Include "tree-flow.h"
17747         (c_finish_bc_stmt): Don't add a goto if the current statement
17748         list doesn't fall through to the current point.
17750 2005-01-21  Roger Sayle  <roger@eyesopen.com>
17752         PR rtl-optimization/576
17753         * real.c (real_arithmetic): Change return type from void to bool
17754         to return an indication that the result may be inexact.
17755         * real.h (real_arithmeric): Update prototype.
17756         * fold-const.c (const_binop):  Don't constant fold floating
17757         point expressions when the user specifies -frounding-math and
17758         the result may depend upon the run-time rounding mode.
17759         (fold_convert_const_real_from_real): Clean-up.
17760         (fold_initializer): Ignore flag_rounding_math for initializers.
17761         * simplify-rtx.c (simplify_binary_operation): Likewise, don't
17762         constant fold FP operations with flag_rounding_math if the
17763         result may depend upon the run-time rounding mode.
17765 2005-01-21  Tom Tromey  <tromey@redhat.com>
17767         * c-cppbuiltin.c (define__GNUC__): Correct assertion.
17769 2005-01-21  Kazu Hirata  <kazu@cs.umass.edu>
17771         * tree-cfg.c: Fix comment typos.
17773 2005-01-21  J"orn Rennecke <joern.rennecke@st.com>
17775         * passes.c (rest_of_handle_flow2): Close / open the flow2 dump file
17776         around the call to rest_of_handle_branch_target_load_optimize.
17778 2005-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
17780         * config.gcc (sparc-*-netbsdelf*): Include dbxelf.h
17781         (sparc64-*-openbsd*): Likewise.
17782         (sparclite-*-elf*): Include tm-dwarf2.h.
17783         (sparc86x-*-elf*): Likewise.
17784         (sparc64-*-elf*): Likewise.
17785         * config/sparc/linux64.h (DWARF2_DEBUGGING_INFO): Delete.
17786         (DBX_DEBUGGING_INFO): Likewise.
17787         * config/sparc/liteelf.h (DWARF2_DEBUGGING_INFO): Likewise.
17788         (PREFERRED_DEBUGGING_TYPE): Likewise.
17789         * config/sparc/netbsd-elf.h (PREFERRED_DEBUGGING_TYPE): Likewise.
17790         * config/sparc/sp64-elf.h (DBX_DEBUGGING_INFO): Likewise.
17791         (PREFERRED_DEBUGGING_TYPE): Likewise.
17792         * config/sparc/sp86x-elf.h (DWARF2_DEBUGGING_INFO): Likewise.
17793         (PREFERRED_DEBUGGING_TYPE): Likewise.
17794         * config/sparc/sparc.h (DBX_DEBUGGING_INFO): Likewise.
17796 2005-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
17798         PR target/18701
17799         * combine.c (combine_simplify_rtx): Revert change of 2004-12-31.
17801 2005-01-20  Paul Brook  <paul@codesourcery.com>
17803         * doc/rtl.texi: Document value extension requirements for CONST_INT.
17805 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
17807         * tree-cfg.c (tree_verify_flow_info): Check that a nonlocal
17808         label is first in a sequence of labels.
17810         * tree-cfg.c (tree_verify_flow_info): Fix a typo.
17812 2005-01-20  Janis Johnson  <janis187@us.ibm.com>
17813             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
17815         * doc/sourcebuild.texi (Test Directives): New.
17817 2005-01-20  Roger Sayle  <roger@eyesopen.com>
17819         * real.c (real_floor): Don't leave the result uninitialized when
17820         mode is VOIDMode, but return the unrounded intermediate value.
17821         (real_ceil): Likewise.
17823 2005-01-20  Paul Brook  <paul@codesourcery.com>
17825         * config/arm/arm.md (insv): Use gen_int_mode.
17827 2005-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
17829         * config/sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABELREF): Delete.
17830         * config/sparc/linux.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
17831         * config/sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
17832         * config/sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
17833         * config/sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
17835 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
17837         Fix PR debug/19124
17838         * dwarf2out.c (concat_loc_descriptor): We don't know we can use
17839         fbreg, so we have to assume we can't.
17840         (loc_descriptor_from_tree_1): Ditto.
17841         (containing_function_has_frame_base): New function.
17842         (add_location_or_const_value_attribute): Use it.
17843         Also try to generate a frame_base from a single element location
17844         list.
17846 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
17848         PR tree-optimization/15349
17849         * timevar.def (TV_TREE_MERGE_PHI): New.
17850         * tree-cfg.c (tree_forwarder_block_p): Add a new argument
17851         PHI_WANTED.
17852         (remove_forwarder_block, cleanup_forwarder_blocks): Adjust the
17853         calls to tree_forwarder_block_p.
17854         (remove_forwarder_block_with_phi, merge_phi_nodes,
17855         gate_merge_phi, pass_merge_phi): New.
17856         * tree-optimize.c (init_tree_optimization_passes): Add
17857         pass_merge_phi.
17858         * tree-pass.h: Add an extern for pass_merge_phi;
17860 2005-01-20  Richard Henderson  <rth@redhat.com>
17862         PR target/19418
17863         * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128): New.
17864         (_mm_castps_pd, _mm_castps_si128): New.
17865         (_mm_castsi128_ps, _mm_castsi128_pd): New.
17867 2005-01-20  Richard Henderson  <rth@redhat.com>
17869         PR target/19530
17870         * config/i386/mmintrin.h (_mm_cvtsi32_si64): Use
17871         __builtin_ia32_vec_init_v2si.
17872         (_mm_cvtsi64_si32): Use __builtin_ia32_vec_ext_v2si.
17873         * config/i386/i386.c (IX86_BUILTIN_VEC_EXT_V2SI): New.
17874         (ix86_init_mmx_sse_builtins): Create it.
17875         (ix86_expand_builtin): Expand it.
17876         (ix86_expand_vector_set): Handle V2SFmode and V2SImode.
17877         * config/i386/mmx.md (vec_extractv2sf_0, vec_extractv2sf_1): New.
17878         (vec_extractv2si_0, vec_extractv2si_1): New.
17880 2005-01-20  Richard Henderson  <rth@redhat.com>
17882         PR target/16533
17883         * config/i386/i386.c (ix86_expand_push): New.
17884         * config/i386/mmx.md (push<MMXMODE>1): New.
17885         * config/i386/sse.md (push<SSEMODE>1): New.
17886         * config/i386/i386-protos.h: Update.
17888 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
17890         * params.def, params.h, predict.c, tree-ssa-loop-im.c: Update
17891         copyright.
17893 2005-01-20  Richard Henderson  <rth@redhat.com>
17895         * rtl.def (CONST_VECTOR): Use RTX_CONST_OBJ.
17896         * rtl.h (CONSTANT_P): Don't special case CONST_VECTOR.
17898 2005-01-19  Richard Henderson  <rth@redhat.com>
17900         PR target/19350
17901         * config/i386/i386.c (ix86_expand_vector_move_misalign): Convert
17902         to V4SFmode in SSE1 fallback load path.
17904 2005-01-19  Richard Henderson  <rth@redhat.com>
17906         * config/i386/i386.c (ix86_expand_vector_init_one_var): Fix typo
17907         in QImode expansion to ix86_expand_vector_set.
17908         (ix86_expand_vector_init_general): Fix typo in V8HImode recursive call.
17910 2005-01-19  Richard Henderson  <rth@redhat.com>
17912         PR target/19511
17913         * config/i386/i386.c (ix86_preferred_reload_class): Return a proper
17914         subclass of the input class.
17915         (ix86_secondary_memory_needed): Always true for cross-MMX classes.
17916         Always true for cross-SSE1 classes.  Rationalize conditionals.
17917         * config/i386/i386.h (SSE_CLASS_P, MMX_CLASS_P): Use straight equality.
17918         * config/i386/i386.md (movsi_1): Add MMX/SSE zeros.  Fix alternatives
17919         for SSE1.  Don't check TARGET_INTER_UNIT_MOVES.
17920         (movdi_2): Add MMX/SSE zeros.
17921         (movdi_1_rex64): Likewise.  Don't check TARGET_INTER_UNIT_MOVES.
17922         (movsf_1): Don't check TARGET_INTER_UNIT_MOVES.
17923         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
17924         (movsi_1_nointernunit, movdi_1_rex64_nointerunit): Remove.
17925         (movsf_1_nointerunit, zero_extendsidi2_32_1): Remove.
17926         (zero_extendsidi2_rex64_1): Remove.
17927         (MOV0 peephole): Check GENERAL_REG_P.
17929 2005-01-19  Richard Henderson  <rth@redhat.com>
17931         PR target/19427
17932         * config/i386/i386.c (ix86_expand_vector_set): Fix third and fourth
17933         shufps elements.
17934         (ix86_expand_vector_extract): Likewise.
17936 2005-01-19  Richard Henderson  <rth@redhat.com>
17938         PR middle-end/19304
17939         * expr.c (emit_move_change_mode): New argument force; use
17940         simplify_gen_subreg if true.
17941         (emit_move_via_alt_mode): Merge into ...
17942         (emit_move_via_integer): ... here.
17943         (emit_move_ccmode): Use emit_move_change_mode directly.
17945 2005-01-19  Richard Henderson  <rth@redhat.com>
17947         PR target/19518
17948         * config/alpha/alpha.c (alpha_rtx_costs): Handle HIGH.
17949         (alpha_preferred_reload_class): Handle CONST_VECTOR.
17950         (alpha_emit_set_const_1): Add no_output parameter; don't emit
17951         rtl if true.
17952         (alpha_emit_set_const): Likewise.  Make static.
17953         (alpha_emit_set_long_const): Make static.
17954         (alpha_extract_integer): Split out from alpha_expand_mov.
17955         (alpha_split_const_mov): Likewise.
17956         (alpha_expand_mov): Use them.  Handle CONST_VECTOR.
17957         (alpha_legitimate_constant_p): New.
17958         * config/alpha/alpha-protos.h: Update.
17959         * config/alpha/alpha.h (REGISTER_MOVE_COST): Correct fp<->gp cost.
17960         (LEGITIMATE_CONSTANT_P): Re-implement with a function.
17961         * config/alpha/alpha.md (movsi): Add n alternative.
17962         (movsi_nt_vms, movdi_er_nofix, movdi_er_fix, movdi_fix): Likewise.
17963         (mov<VEC>_fix, mov<VEC>_nofix): Add i alternative.
17964         (splitters for all of the above): Use alpha_split_const_mov.
17965         * config/alpha/predicates.md (non_add_const_operand): New.
17966         (non_zero_const_operand): New.
17967         (input_operand): Use alpha_legitimate_constant_p after reload.
17969 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
17971         PR tree-optimization/19038
17972         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): New function.
17973         (add_candidate): Add ivs with increment in latch only if
17974         allow_ip_end_pos_p is true.
17975         (determine_iv_cost): Use empty_block_p.
17977 2005-01-19  Daniel Berlin  <dberlin@dberlin.org>
17979         * cfganal.c (compute_dominance_frontiers_1): Replace with new algorithm
17980         (compute_dominance_frontiers): Ditto.
17982 2005-01-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
17984         PR target/19529
17985         * config/sh/t-rtems: New.
17986         * config.gcc (sh-*-rtems*): Reflect having added config/sh/t-rtems.
17988 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
17990         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Always subtract
17991         the offset of the selected field.
17993 2005-01-19  Kazu Hirata  <kazu@cs.umass.edu>
17995         * tree-cfg.c (remove_forwarder_block): Fix the check to
17996         prevent a nonlocal label from appearing in the middle of a
17997         basic block.
17999 2005-01-19  Hans-Peter Nilsson  <hp@axis.com>
18001         PR rtl-optimization/19462
18002         * reorg.c (find_end_label): Create return insn only if
18003         current_function_epilogue_delay_list is empty.
18005 2005-01-19  Paolo Bonzini  <bonzini@gnu.org>
18007         * doc/passes.texi: Remove paragraph mentioning new-ra.
18009 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
18011         PR rtl-optimization/15139
18012         * combine.c: Include params.h.
18013         (count_rtxs): New function.
18014         (record_value_for_reg): If replace_rtx would replace at least
18015         2 occurrences of REG in VALUE and TEM is really large, replace REG with
18016         (clobber (const_int 0)) instead of TEM.
18017         * params.def (PARAM_MAX_LAST_VALUE_RTL): New.
18018         * params.h (MAX_LAST_VALUE_RTL): New.
18019         * Makefile.in (combine.o): Depend on $(PARAMS_H).
18020         * doc/invoke.texi (--param max-last-value-rtl=N): Document.
18022         PR c/17297
18023         * c-typeck.c (digest_init): Only call build_vector if all constructor
18024         elements are *_CST nodes.
18025         * gimplify.c (gimplify_init_constructor): Likewise.
18027         PR middle-end/19164
18028         * c-typeck.c (digest_init): Only call build_vector if inside_init
18029         is a CONSTRUCTOR.
18031 2005-01-18  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
18033         * toplev.c (init_asm_output): Remove dead #ifdef.
18035 2005-01-18  Kaz Kojima  <kkojima@gcc.gnu.org>
18037         * config/sh/linux.h (TARGET_C99_FUNCTIONS): Define.
18039 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
18041         * calls.c (expand_call): Check DECL_BUILT_IN_CLASS before
18042         accessing DECL_FUNCTION_CODE.
18043         * dojump.c (do_jump): Likewise.
18044         * gimplify.c (gimplify_call_expr): Likewise.
18045         * predict.c (expr_expected_value): Likewise.
18046         (strip_builtin_expect): Likewise.
18047         * tree-inline.c (estimate_num_insns_1): Likewise.
18048         * tree-ssa-loop-im.c (stmt_cost): Likewise
18049         * fold-const.c (fold): Test for BUILT_IN_NORMAL.
18050         (tree_expr_nonnegative_p): Likewise.
18052 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
18054         * config/sparc/sparc.c (load_pic_register): Emit the appropriate
18055         variant of the load_pcrel_sym pattern.
18056         * config/sparc/sparc.md (P macro): Move to the top.
18057         (load_pcrel_sym): Macroize using P.
18058         (save_register_window): Likewise.
18060 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
18062         * config/rs6000/rs6000.md ("sunordered"): Disable for e500.
18063         ("sordered"): Same.
18065 2005-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
18067         PR C/19472
18068         * c-typeck.c (build_asm_expr): Strip nops off
18069         input memory operands.
18071 2005-01-18  David Edelsohn  <edelsohn@gnu.org>
18073         * config/rs6000/aix43.h (CPLUSPLUS_CPP_SPEC): Delete
18074         _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, _LARGE_FILE_API.
18075         * config/rs6000/aix51.h (CPLUSPLUS_CPP_SPEC): Same.
18076         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Same.
18078 2005-01-18  Joel Sherrill <joel.sherrill@oarcorp.com>
18080         PR target/19379
18081         * config/i386/i386.c (override_options): If the 80387 is disabled,
18082         then do not return FP values using FP registers.
18084 2005-01-18  Kazu Hirata  <kazu@cs.umass.edu>
18086         * basic-block.h, c-common.c, c-cppbuiltin.c, c-lang.c,
18087         c-tree.h, cfgbuild.c, cgraph.c, cgraph.h, collect2.c,
18088         combine.c, config.gcc, coverage.h, cse.c, cselib.c,
18089         defaults.h, df.c, dwarf2asm.c, dwarf2out.c, explow.c, expr.c,
18090         flow.c, fold-const.c, gcse.c, ggc-page.c, gimple-low.c,
18091         gimplify.c, ifcvt.c, langhooks-def.h, lcm.c, optabs.h,
18092         output.h, postreload-gcse.c, postreload.c, recog.c,
18093         resource.c, rtl.def, rtlanal.c, sched-deps.c, sched-rgn.c,
18094         targhooks.h, toplev.c, tree-data-ref.c, tree-eh.c,
18095         tree-flow.h, tree-loop-linear.c, tree-mudflap.h, tree-nrv.c,
18096         tree-optimize.c, tree-outof-ssa.c, tree-pass.h,
18097         tree-scalar-evolution.c, tree-ssa-copy.c, tree-ssa-dce.c,
18098         tree-ssa-dse.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c,
18099         tree-ssa-pre.c, tree-ssa.c, tree-vectorizer.c, tree.def,
18100         unwind-dw2-fde-darwin.c, var-tracking.c: Update copyright.
18102         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
18103         config/alpha/alpha.c, config/arm/vfp.md,
18104         config/i386/emmintrin.h, config/i386/i386-modes.def,
18105         config/i386/i386-protos.h, config/i386/i386.h,
18106         config/i386/pmmintrin.h, config/i386/ppro.md,
18107         config/i386/predicates.md, config/i386/xmmintrin.h,
18108         config/i860/i860.c, config/ia64/ia64-modes.def,
18109         config/ia64/ia64-protos.h, config/ia64/ia64.h,
18110         config/ia64/ia64.md, config/ia64/itanium1.md,
18111         config/ia64/itanium2.md, config/ia64/predicates.md,
18112         config/iq2000/iq2000.h, config/mips/linux64.h,
18113         config/rs6000/aix41.h, config/rs6000/aix43.h,
18114         config/rs6000/aix52.h, config/rs6000/darwin-fallback.c,
18115         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
18116         config/rs6000/spe.md, config/sh/sh.md, config/sparc/linux.h,
18117         config/sparc/linux64.h, config/sparc/litecoff.h,
18118         config/sparc/sp64-elf.h, config/sparc/sparc.c,
18119         config/sparc/sparc.h, config/sparc/sparc.md,
18120         config/sparc/sysv4-only.h: Update copyright.
18122 2005-01-18  Richard Henderson  <rth@redhat.com>
18124         PR target/19496
18125         * config/i386/i386.c (ix86_expand_fp_movcc): Fail for LTGT and UNEQ.
18127 2005-01-18  Marc Espie  <espie@openbsd.org>
18128         * config/i386/openbsdelf.h: Typo.
18130 2005-01-18  Richard Henderson  <rth@redhat.com>
18132         * config/i386/i386.c (ix86_expand_fp_movcc): Remove TARGET_IEEE_FP
18133         special case for sse.
18134         * config/i386/predicates.md (sse_comparison_operator): Likewise.
18136 2005-01-18  Dorit Naishlos  <dorit@il.ibm.com>
18138         * tree-inline.c (estimate_num_insns_1): Added cases for
18139         ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, and REALIGN_LOAD_EXPR.
18141 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
18143         PR rtl-optimization/19296
18144         * combine.c (simplify_comparison): Rewrite the condition under
18145         which a non-paradoxical SUBREG of a PLUS can be lifted when
18146         compared against a constant.
18148 2005-01-18  Andi Kleen <ak@muc.de>
18150         * c-typeck.c: (convert_for_assignment): Check warn_pointer_sign.
18151         * c.opt (-Wpointer-sign): Add.
18152         * doc/invoke.texi: (-Wpointer-sign): Add.
18154 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
18156         * config/i386/i386.c (override_options): Revert 2004-11-24 change.
18157         * config/i386/i386.md (fmodsf3, dremsf3, *sinsf2, *cossf2, sincossf3,
18158         *tansf3_1, tansf2, atan2sf3_1, atan2sf3, atansf2, asinsf2, acossf2,
18159         logsf2, log10sf2, log2sf2, log1psf2, logbsf2, ilogbsf2, expsf2,
18160         exp10sf2, exp2sf2, expm1sf2, rintsf2, floorsf2, ceilsf2, btruncsf2,
18161         nearbyintsf2): Disable for TARGET_SSE_MATH.  Leave patterns enabled
18162         for TARGET_MIX_SSE_I387.
18163         (fmoddf3, dremdf3, *sindf2, *sinextendsfdf2, *cosdf2, *cosextendsfdf2,
18164         sincosdf3, *sincosextendsfdf3, *tandf3_1, tandf2, atan2df3_1,
18165         atan2df3, atandf2, asindf2, acosdf2, logdf2, log10df2, log2df2,
18166         log1pdf2, logbdf2, expdf2, exp10df2, exp2df2, expm1df2, rintdf2,
18167         floordf2, ceildf2, btruncdf2, nearbyintdf2): Disable for
18168         (TARGET_SSE2 && TARGET_SSE_MATH).  Leave patterns enabled for
18169         TARGET_MIX_SSE_I387.
18170         (atan2sf3, atan2df3, atan2xf3): Remove register constraints
18171         from expander.
18173 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
18175         PR target/19424
18176         * config/i386/mmx.md (*movv2sf_internal_rex64, *movv2sf_internal):
18177         Add movaps alternative for xmm reg->reg move.
18179 2005-01-17  Jeff Law  <law@redhat.com>
18181         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Clear SSA_NAME_VALUE
18182         at the end of the main DOM loop rather than just before DOM exits.
18184 2005-01-17  Diego Novillo  <dnovillo@redhat.com>
18186         PR tree-optimization/19121
18187         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): When
18188         adding aliases to a name tag, also add them to the pointer's
18189         type tag.
18190         * tree-ssa-copy.c (merge_alias_info): Do not merge flow
18191         sensitive alias info at all.  Only check that the two pointers
18192         have compatible pointed-to sets.
18193         * tree-ssa.c (verify_name_tags): Verify that the alias set of
18194         a pointer's type tag is a superset of the alias set of the
18195         pointer's name tag.
18197 2005-01-17  James E Wilson  <wilson@specifixinc.com>
18199         PR target/19357
18200         * config/ia64/ia64.md (movxf): Handle general register source.  Adjust
18201         comment to document why.
18203 2005-01-17  Richard Henderson  <rth@redhat.com>
18205         * config/i386/sse.md (smaxv4sf3_finite, sse_vmsmaxv4sf3_finite,
18206         sminv4sf3_finite, sse_vmsminv4sf3_finite, smaxv2df3_finite,
18207         sse2_vmsmaxv2df3_finite, sminv2df3_finite,
18208         sse2_vmsminv2df3_finite): New.
18209         (smaxv4sf3, sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, smaxv2df3,
18210         sse2_vmsmaxv2df3, sminv2df3, sse2_vmsminv2df3): Remove commutative.
18211         Force op1 into register.
18213 2005-01-17  Kelley Cook  <kcook@gcc.gnu.org>
18215         * Makefile.in (STAGEMOVESTUFF): Stage all the stamp files to prevent
18216         bubblestrap from always rebuilding build directory.
18218 2005-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
18220         * config/s390/s390.md ("*clc"): Remove incorrect '='.
18221         ("*cmpmem_short"): Likewise.
18223 2005-01-17  Steven Bosscher  <stevenb@suse.de>
18225         * basic-block.h: Document BB_* flags.
18226         * regrename.c (copyprop_hardreg_forward): Don't use BB_VISITED,
18227         use an sbitmap instead.
18228         * sched-rgn.c (compute_trg_info): Likewise.
18230 2005-01-17  Richard Sandiford  <rsandifo@redhat.com>
18232         * config.gcc (mips64*-*-linux*): Set the default abi to n32.  Remove
18233         redundant target_cpu_default and extra_parts lines.  Use the default
18234         "from-abi" ISA.
18235         * config/mips/linux64.h (DRIVER_DEFAULT_ABI_SELF_SPEC): Delete.
18236         (SUBTARGET_EXTRA_SPECS): Delete.
18237         (DRIVER_SELF_SPECS): Remove architecture lines.  Set the ABI directly.
18238         (SUBTARGET_ASM_SPEC): Remove -mabi=n32 and -mabi=64 mappings.
18239         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Use "32" for -mabi=32
18240         and "n32" for -mabi=n32.
18242 2005-01-17  Ian Lance Taylor  <ian@airs.com>
18244         PR c/5675
18245         * c-typeck.c (build_c_cast): Revert patch of 2003-02-16: don't
18246         fold constant variables into initial values.
18248 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
18250         * tree-cfg.c (tree_can_merge_blocks_p): Reorder two checks.
18252         * tree-cfg.c (tree_forwarder_block_p): Speed up by walking
18253         through the statements backward.
18255 2005-01-17  Ian Lance Taylor  <ian@airs.com>
18257         PR middle-end/13127:
18258         * tree-inline.c (expand_call_inline): Set TREE_NO_WARNING on
18259         a variable set to the return value of the inlined function.
18261 2005-01-17  Mark Dettinger  <dettinge@de.ibm.com>
18263         * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
18264         when modes are tieable.
18266 2005-01-17  Ranjit Mathew  <rmathew@hotmail.com>
18268         * gthr-posix.h (__gthread_active_p): Use pthread_cancel instead
18269         of pthread_create to find out if threads are enabled.
18270         * gthr-posix95.h (__gthread_active_p): Likewise.
18272 2005-01-17  Paolo Bonzini  <bonzini@gnu.org>
18274         * common.opt (-fnew-ra): Remove.
18275         * ra*.*: Remove.
18276         * toplev.h (flag_new_regalloc): Remove.
18277         * Makefile.in (ra*.*): Don't mention.
18278         * passes.c (rest_of_handle_new_regalloc): Remove.
18279         (rest_of_handle_combine, rest_of_compilation): Always consider
18280         flag_new_regalloc as false.
18281         * doc/invoke.texi: Don't document -fnew-ra.
18283 2005-01-17  Paolo Bonzini <bonzini@gnu.org>
18285         * bb-reorder.c (fix_edges_for_rarely_executed_code): Remove
18286         last parameter to reg_scan.
18287         * loop.c (loop_optimize): Likewise.
18288         * passes.c (rest_of_handle_tracer, rest_of_handle_if_conversion,
18289         rest_of_handle_web, rest_of_handle_cfg, rest_of_handle_jump_bypass,
18290         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
18291         rest_of_handle_gcse, rest_of_handle_loop_optimize,
18292         rest_of_handle_loop2, rest_of_handle_jump2): Likewise.
18293         * regclass.c (reg_scan): Likewise, for the declaration.
18294         * rtl.h (reg_scan): Likewise, for the prototype.
18296 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
18298         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Don't call
18299         mark_dfs_back_edges.
18301 2005-01-16  Daniel Berlin  <dberlin@dberlin.org>
18303         * tree-ssa-pre.c (add_to_sets): s1 may be NULL.
18304         (compute_avail): Uses don't go in tmp_gen.
18306 2005-01-16  Steven Bosscher  <stevenb@suse.de>
18308         * ggc-page.c (ggc_alloc_stat): Use __builtin_ctzl instead of a
18309         loop to look for a free slot in a page entry.
18311 2005-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18313         PR target/16304
18314         * defaults.h (TARGET_DEFERRED_OUTPUT_DEFS): Provide default.
18315         * toplev.c (compile_file): Call process_pending_assemble_output_defs
18316         just before targetm.asm_out.file_end.
18317         * tree.h (process_pending_assemble_output_defs): Declare.
18318         * varasm.c (assemble_output_def, process_pending_assemble_output_defs):
18319         New functions.
18320         (assemble_alias): Defer generation of assembly code for defines when
18321         TARGET_DEFERRED_OUTPUT_DEFS is true.
18322         * config/rs6000/aix41.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
18323         * config/rs6000/aix43.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
18324         * doc/tm.texi (TARGET_DEFERRED_OUTPUT_DEFS): document.
18326 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18328         PR target/19336
18329         * pa.c (pa_scalar_mode_supported_p): New function.
18330         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
18331         * pa.h (MIN_UNITS_PER_WORD): Add comment.
18333         * pa-protos.h (prefetch_operand): Delete.
18334         (prefetch_cc_operand, prefetch_nocc_operand): New declations.
18335         * pa.c (prefetch_operand): Delete.
18336         (prefetch_cc_operand, prefetch_nocc_operand): New functions.
18337         * pa.h (EXTRA_CONSTRAINT): Add `W' constraint.
18338         (PREDICATE_CODES): Delete prefetch_operand.  Add prefetch_cc_operand
18339         and prefetch_nocc_operand.
18340         * pa.md (prefetch): Rework to avoid reload problems handling short
18341         displacements when a cache control completer needs to be provided.
18342         (prefetch_32, prefetch_64): Delete.
18343         (prefetch_cc, prefetch_nocc): New patterns.
18345 2005-01-15  David Edelsohn  <edelsohn@gnu.org>
18347         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Revert previous change.
18349 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18351         PR ada/19388
18352         * pa.c (pa_asm_output_aligned_common): Warn if specified alignment
18353         exceeds maximum alignment for global common data.
18354         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): Define to 32768.
18355         * som.h (MAX_OFILE_ALIGNMENT): Likewise.
18357 2004-01-15  Roger Sayle  <roger@eyesopen.com>
18359         * tree-ssa-dom.c (extract_range_from_cond): Correct condition.
18361 2004-01-15  Roger Sayle  <roger@eyesopen.com>
18363         * harg-reg-set.h (reg_class_names): Prototype global array.
18364         * regclass.c (reg_class_names): Declare here and initialize to
18365         REG_CLASS_NAMES.
18366         (dump_regclass): Remove local declaration of reg_class_names.
18367         (regclass): Likewise.
18368         * cfg.c (dump_flow_info): Likewise.
18369         * ra-debug.c (reg_class_names): Likewise.
18370         * regrename.c (reg_class_names): Likewise.
18371         * reload.c (reg_class_names): Likewise.
18372         * reload1.c (spill_failure): Likewise.
18373         * config/m68hc11/m68hc11.c (reg_class_names): Likewise.
18375 2005-01-15  Ulrich Weigand  <uweigand@de.ibm.com>
18377         * config/s390/s390.md ("reload_outti"): Remove predicate for
18378         output operand.  Abort if operand is not a MEM.
18379         ("reload_outdi", "reload_outdf"): Likewise.
18381 2005-01-15  Marc Espie  <espie@openbsd.org>
18383         * config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2.
18384         (i[34567]86-*-openbsd*): Switch to ELF for OpenBSD >= 3.4.
18385         * config/openbsd.h:  Fix C++ includes for native configurations.
18386         Add proper OS_CPP_BUILTINS.  Fix libspec for recent OpenBSD.
18387         Add trampoline support.
18388         * config/i386/openbsdelf.h: New.
18390 2005-01-15  Marc Espie  <espie@openbsd.org>
18392         * collect2.c (main): Explicitly parse -dynamic-linker option.
18394 2005-01-15  Jakub Jelinek  <jakub@redhat.com>
18396         PR tree-optimization/19060
18397         * tree-ssa-dom.c (extract_range_from_cond) <case LT_EXPR, GT_EXPR>:
18398         Return 0 if op1 <= TYPE_MIN_VALUE () resp. op1 >= TYPE_MAX_VALUE ().
18399         (simplify_cond_and_lookup_avail_expr): Add assert for dummy == 0
18400         and handle extract_range_from_cond returning false.
18401         * fold-const.c (fold): Optimize comparisons with min/max even for
18402         width > HOST_BITS_PER_WIDE_INT.
18404 2005-01-15  Ralf Corsepius  <ralf.corsepius@rtems.org>
18406         * config/mips/rtems.h (MIPS_DEFAULT_GVALUE): Set to 0.
18407         * config/mips/t-rtems (MULTILIBS_DIRNAMES,MULTILIB_OPTIONS):
18408         Remove little endian multilib variants.
18409         Add mips32 multilib variant.
18411 2005-01-15  Kazu Hirata  <kazu@cs.umass.edu>
18413         * explow.c (copy_all_reg, stabilize): Remove.
18414         * expr.h: Remove the corresponding prototypes.
18416         * rtlanal.c (regs_set_between_p): Remove.
18417         * rtl.h: Remove the corresponding prototype.
18419 2005-01-14  David Edelsohn  <edelsohn@gnu.org>
18421         * config/rs6000/rs6000.c (rs6k_nonimmediate_operand): Rename
18422         to rs6000_nonimmediate_operand.
18423         * config/rs6000/rs6000.h (PREDICATE_CODES): Rename
18424         rs6k_nonimmediate_operand to rs6000_nonimmediate_operand.
18425         * config/rs6000/rs6000.md (movsi_internal1): Rename predicate to
18426         rs6000_nonimmediate_operand.
18427         * config/rs6000/spe.md (movdf_e500_double): Rename predicate to
18428         rs6000_nonimmediate_operand.
18430 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
18432         * tree-ssa-alias.c (pass_may_alias): Add TODO_verify_stmts.
18434 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
18436         * config/rs6000/rs6000.h (CLASS_MAX_NREGS): DF goes in 1 register
18437         on e500v2.
18438         (CANNOT_CHANGE_MODE_CLASS): Restrict DI mode changes on e500v2.
18439         (PREDICATE_CODES): Add rs6k_nonimmediate_operand.
18441         * config/rs6000/rs6000.c (invalid_e500_subreg): New.
18442         (rs6k_nonimmediate_operand): New.
18443         (rs6000_legitimate_offset_address_p): Handle DI modes on e500v2
18444         correctly.
18445         (legitimate_lo_sum_address_p): Same.
18446         (rs6000_legitimize_address): Same.
18447         (rs6000_legitimize_reload_address): Same.
18448         (rs6000_legitimate_address): Same.
18449         (spe_build_register_parallel): Pass DF and DC modes in a DI
18450         register.
18452         * config/rs6000/rs6000.md ("*movsi_internal1"): Change predicate
18453         to rs6k_nonimmediate_operand.
18455         * config/rs6000/spe.md ("*frob_df_di"): New.
18456         ("*frob_di_df"): New.
18457         ("*frob_di_df_2"): New.
18458         ("*mov_sidf_e500_subreg0"): New.
18459         ("*mov_sidf_e500_subreg4"): New.
18460         ("*movdf_e500_double"): Change predicate to
18461         rs6k_nonimmediate_operand.
18463 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
18465         * postreload.c (move2add_note_store): Only call
18466         trunc_int_for_mode on scalar integers.
18468 2005-01-14  Steven Bosscher  <stevenb@suse.de>
18470         * tree-ssa-dce.c (visited_control_parents): New sbitmap to
18471         replace BB_VISITED uses.
18472         (find_obviously_necessary_stmts): Don't clear BB_VISITED.
18473         (propagate_necessity): Check the bitmap instead of BB_VISITED.
18474         (tree_dce_done): Free visited_control_parents.
18475         (perform_tree_ssa_dce): Allocate and clear it.
18476         * tree-ssa-pre.c (compute_antic_aux): Make non-recursive.
18477         (compute_antic): Iterate from here using a DFS.  Use an sbitmap
18478         instead of BB_VISITED.
18480 2005-01-14  Kazu Hirata  <kazu@cs.umass.edu>
18482         * c-tree.h, coverage.h, langhooks-def.h, optabs.h, output.h,
18483         rtl.h, targhooks.h, tree-flow.h, tree-mudflap.h, tree.h:
18484         Remove unused prototypes.
18486 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
18488         * config/rs6000/rs6000.c (rs6000_stack_info): Fix caching of SPE
18489         64-bit register usage.
18490         (spe_func_has_64bit_regs_p): Add FIXME note.
18492 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
18494         * config/rs6000/rs6000.c (rs6000_generate_compare): Replace
18495         flag_finite_math_only with flag_unsafe_math_optimizations.
18497 2005-01-14  J. D. Johnston  <jjohnst@us.ibm.com>
18499         * config/s390/tpf-unwind.h (s390_fallback_frame_state): Correct
18500         end-of-stack check.
18501         (__tpf_eh_return): Copy TPF private stack area from the module
18502         boundary stack frame.  Add check for when module addresses are
18503         equal, but no stub address is found.
18505 2005-01-14  Richard Earnshaw  <rearnsha@arm.com>
18507         PR target/7525
18508         * arm.h (struct machine_function): Add call_via field.
18509         (thumb_call_via_label): Declare.
18510         * arm.c (thumb_call_via_label): New variable.
18511         (thumb_call_reg_needed): New variable.
18512         (arm_output_function_epilogue): For Thumb code, output any per-function
18513         call-indirect trampolines.
18514         (thumb_call_via_reg): New function.
18515         (arm_file_end): New function.
18516         (TARGET_ASM_FILE_END): Call arm_file_end.
18517         (aof_file_end): Likewise.
18518         * arm-protos.h (thumb_call_via_reg): Declare.
18519         * arm.md (call_reg_thumb, call_value_reg_thumb): Call
18520         thumb_call_via_reg in normal case.
18522 2005-01-14  Jakub Jelinek  <jakub@redhat.com>
18524         PR middle-end/19084
18525         PR rtl-optimization/19348
18526         * recog.c (peephole2_optimize): Do global life update if some peephole
18527         decides it doesn't need at least one of its inputs and that change
18528         influences liveness at the start of the basic block.
18530         * basic-block.h (EXECUTE_IF_AND_COMPL_IN_REG_SET): Needs 2 REGSET
18531         arguments instead of 1.
18533 2005-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
18535         PR middle-end/18820
18536         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Return
18537         zero for nested functions needing a static chain or functions
18538         with a non-constant address.
18540 2005-01-13  Roger Sayle  <roger@eyesopen.com>
18542         * simplify-rtx.c (simplify_binary_operation) <AND>: Optimize
18543         (and (sign_extend X) C) into (zero_extend (and X C)).
18545 2005-01-13  David O'Brien  <obrien@FreeBSD.org>
18547         * config/freebsd-spec.h:  Make KSE pthread lib logic the default.
18549 2005-01-13  Richard Henderson  <rth@redhat.com>
18551         PR target/19009
18552         PR target/19250
18553         PR target/19252
18554         * config/i386/i386.md (cmpdf, cmpsf, bunordered, bordered, buneq,
18555         bunge, bungt, bunle, bunlt, bltgt): Enable for TARGET_SSE_MATH,
18556         not just TARGET_SSE.
18557         (cmpfp_i_387): Rename from cmpfp_i.  Move after sse patterns.
18558         (cmpfp_i_mixed): Rename from cmpfp_i_sse; use for TARGET_MIX_SSE_I387.
18559         (cmpfp_i_sse): Rename from cmpfp_i_sse_only; use for TARGET_SSE_MATH.
18560         (cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387): Similarly.
18561         (fp_jcc_1_mixed, fp_jcc_1_sse, fp_jcc_1_387): Similarly.
18562         (fp_jcc_2_mixed, fp_jcc_2_sse, fp_jcc_2_387): Similarly.
18563         (fp_jcc_3_387, fp_jcc_4_387, fp_jcc_5_387, fp_jcc_6_387,
18564         fp_jcc_7_387, fp_jcc_8_387): Rename from fp_jcc_N.
18565         (movdicc_c_rex64): Rename with '*'.
18566         (movsfcc, movdfcc): Add checks for 387 and sse math to condition.
18567         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): New.
18568         (movsfcc_1_387): Rename from movsfcc_1.
18569         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): New.
18570         (movdfcc_1, movdfcc_1_rex64): Add check for 387.
18571         (sminsf3, smaxsf3, smindf3, smaxdf3): New.
18572         (minsf3, minsf, minsf_nonieee, minsf_sse, mindf3, mindf,
18573         mindf_nonieee, mindf_sse, maxsf3, maxsf, maxsf_nonieee, maxsf_sse,
18574         maxdf3, maxdf, maxdf_nonieee, maxdf_sse, sse_movsfcc, sse_movsfcc_eq,
18575         sse_movdfcc, sse_movdfcc_eq, sse_movsfcc_const0_1,
18576         sse_movsfcc_const0_2, sse_movsfcc_const0_3, sse_movsfcc_const0_4,
18577         sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
18578         sse_movdfcc_const0_4): Remove.
18579         * config/i386/i386.c (ix86_expand_fp_movcc): For TARGET_SSE_MATH,
18580         recognize min/max early.  Update for changed sse cmove patterns.
18581         (ix86_split_sse_movcc): New.
18582         * config/i386/i386-protos.h: Update.
18584 2005-01-13  Steven Bosscher  <stevenb@suse.de>
18586         * tree-ssa-dse.c (fix_phi_uses): Use SSA operand iterators.
18587         (fix_stmt_v_may_defs): Likewise.
18589 2005-01-13  Richard Henderson  <rth@redhat.com>
18591         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
18592         for converting the mask.
18594 2005-01-13  David Edelsohn  <edelsohn@gnu.org>
18596         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE
18597         definition to 600.
18599 2005-01-13  Richard Henderson  <rth@redhat.com>
18601         * config/i386/i386.c (IX86_BUILTIN_MOVQ, IX86_BUILTIN_LOADD,
18602         IX86_BUILTIN_STORED, IX86_BUILTIN_MOVQ2DQ,
18603         IX86_BUILTIN_MOVDQ2Q): Remove.
18604         (IX86_BUILTIN_VEC_EXT_V4SI): New.
18605         (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Update to match.
18606         (ix86_expand_vector_extract): For V4S[FI], extract element 0 after
18607         shuffling.
18608         * config/i386/sse.md (sse_concatv2sf): Accept zero operand 2.
18609         (sse2_pextrw): Fix immediate constraint.
18610         (sse2_loadq, sse2_loadq_rex64): Remove.
18611         * config/i386/emmintrin.h (_mm_cvtsi128_si32, _mm_cvtsi128_si64x):
18612         Use __builtin_ia32_vec_ext_<size>.
18613         (_mm_cvtsi32_si128, _mm_cvtsi64x_si128): Use _mm_set_epi<size>.
18615 2005-01-13  Aldy Hernandez  <aldyh@redhat.com>
18617         * function.c (assign_parm_setup_block): Look inside original
18618         entry_parm when inspecting PARALLEL.
18620 2005-01-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
18621             Joel Sherrill  <joel@oarcorp.com>
18623         PR target/19399
18624         * gthr-rtems.h (__gthread_recursive_mutex_t): New type.
18625         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
18626         rtems_gxx_recursive_mutex_init.
18627         (__gthread_recursive_mutex_lock): New function.
18628         (__gthread_recursive_mutex_trylock): Likewise.
18629         (__gthread_recursive_mutex_unlock): Likewise.
18631 2005-01-13  Ralf Corsepius <ralf.corsepius@rtems.org>
18633         * config/i386/t-rtems-i386: Multilib on -mtune instead of -mcpu.
18635 2005-01-13  Jan Beulich  <jbeulich@novell.com>
18637         * config/ia64/ia64.md (ashlti3, ashlti3_internal): New.
18638         (ashrti3_internal): Indicate output is early clobber. Generate result
18639         into output rather than first input. Use move for low word of output
18640         if shift count is exactly 64.
18641         (lshrti3_internal): Likewise.
18643 2005-01-13  Hans-Peter Nilsson  <hp@bitrange.com>
18645         PR target/18329
18646         PR target/18330
18647         * reload1.c (delete_output_reload): Don't delete an output reload
18648         if the pseudo lives longer than a single basic block.  Adjust and
18649         improve wording of comment.
18651 2005-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
18653         PR target/19334
18654         * config/darwin.c (machopic_select_section): Use TYPE_SIZE_UNIT instead
18655         of TYPE_SIZE where we mean the number of bytes.
18657 2005-01-12  Aldy Hernandez  <aldyh@redhat.com>
18659         * function.c (assign_parm_setup_block): Relax condition on
18660         multi-register optimization.
18662 2005-01-12  Nick Clifton  <nickc@redhat.com>
18664         * config/sh/sh.md (udivsi3_sh2a, divsi3_sh2a): Give these patterns
18665         an "in_delay_slot" attribute of "no" to prevent them being used in
18666         delay slots.  This is forbidden because they might generate
18667         exceptions.
18669 2005-01-12  Alan Modra  <amodra@bigpond.net.au>
18671         PR target/19389
18672         * config/rs6000/rs6000.md (movtf_internal): Replace r->o and m->r
18673         with r->Y and Y->r.
18675 2005-01-12  Nick Clifton  <nickc@redhat.com>
18677         * config/iq2000/iq2000.h (ASM_SPEC): Undefine (to stop -Qy being
18678         passed on to GAS) but do not define, as GAS no longer supports or
18679         needs the -m2000 option.
18681 2005-01-11  Roger Sayle  <roger@eyesopen.com>
18683         * builtins.c (fold_builtin_fabs): Convert argument to the appropriate
18684         type as args of unprototyped builtins aren't automatically promoted.
18685         (fold_builtin_abs): Likewise.
18687 2005-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18689         * Makefile.in: Set a `build-warn' variable.
18691 2005-01-11  Zdenek Dvorak  <dvorakz@suse.cz>
18693         PR tree-optimization/17949
18694         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): New function.
18695         (find_interesting_uses_address): Use it.
18697 2005-01-11  Aldy Hernandez  <aldyh@redhat.com>
18699         * regrename.c (kill_value): Handle subreg's that won't simplify.
18701 2005-01-11  Richard Henderson  <rth@redhat.com>
18703         PR target/13366
18704         * config/i386/i386.h (enum ix86_builtins): Move ...
18705         * config/i386/i386.c: ... here.
18706         (IX86_BUILTIN_MOVDDUP, IX86_BUILTIN_MMX_ZERO, IX86_BUILTIN_PEXTRW,
18707         IX86_BUILTIN_PINSRW, IX86_BUILTIN_LOADAPS, IX86_BUILTIN_LOADSS,
18708         IX86_BUILTIN_STORESS, IX86_BUILTIN_SSE_ZERO, IX86_BUILTIN_PEXTRW128,
18709         IX86_BUILTIN_PINSRW128, IX86_BUILTIN_LOADAPD, IX86_BUILTIN_LOADSD,
18710         IX86_BUILTIN_STOREAPD, IX86_BUILTIN_STORESD,  IX86_BUILTIN_STOREHPD,
18711         IX86_BUILTIN_STORELPD, IX86_BUILTIN_SETPD1, IX86_BUILTIN_SETPD,
18712         IX86_BUILTIN_CLRPD, IX86_BUILTIN_LOADPD1, IX86_BUILTIN_LOADRPD,
18713         IX86_BUILTIN_STOREPD1, IX86_BUILTIN_STORERPD, IX86_BUILTIN_LOADDQA,
18714         IX86_BUILTIN_STOREDQA, IX86_BUILTIN_CLRTI,
18715         IX86_BUILTIN_LOADDDUP): Remove.
18716         (IX86_BUILTIN_VEC_INIT_V2SI, IX86_BUILTIN_VEC_INIT_V4HI,
18717         IX86_BUILTIN_VEC_INIT_V8QI, IX86_BUILTIN_VEC_EXT_V2DF,
18718         IX86_BUILTIN_VEC_EXT_V2DI, IX86_BUILTIN_VEC_EXT_V4SF,
18719         IX86_BUILTIN_VEC_EXT_V8HI, IX86_BUILTIN_VEC_EXT_V4HI,
18720         IX86_BUILTIN_VEC_SET_V8HI, IX86_BUILTIN_VEC_SET_V4HI): New.
18721         (ix86_init_builtins): Make static.
18722         (ix86_init_mmx_sse_builtins): Update for changed builtins.
18723         (ix86_expand_binop_builtin): Only use ix86_fixup_binary_operands
18724         if all the modes match.  Otherwise, fake it.
18725         (get_element_number, ix86_expand_vec_init_builtin,
18726         ix86_expand_vec_ext_builtin, ix86_expand_vec_set_builtin): New.
18727         (ix86_expand_builtin): Make static.  Update for changed builtins.
18728         (ix86_expand_vector_move_misalign): Use sse2_loadlpd with zero
18729         operand instead of sse2_loadsd.  Cast sse1 fallback to V4SFmode.
18730         (ix86_expand_vector_init_duplicate): New.
18731         (ix86_expand_vector_init_low_nonzero): New.
18732         (ix86_expand_vector_init_one_var, ix86_expand_vector_init_general):
18733         Split out from ix86_expand_vector_init; handle integer modes.
18734         (ix86_expand_vector_init): Use them.
18735         (ix86_expand_vector_set, ix86_expand_vector_extract): New.
18736         * config/i386/i386-protos.h: Update.
18737         * config/i386/predicates.md (reg_or_0_operand): New.
18738         * config/i386/mmx.md (mov<MMXMODEI>_internal): Add 'r' variants.
18739         (movv2sf_internal): Likewise.  And a splitter to match them all.
18740         (vec_dupv2sf, mmx_concatv2sf, vec_setv2sf, vec_extractv2sf,
18741         vec_initv2sf, vec_dupv4hi, vec_dupv2si, mmx_concatv2si, vec_setv2si,
18742         vec_extractv2si, vec_initv2si, vec_setv4hi, vec_extractv4hi,
18743         vec_initv4hi, vec_setv8qi, vec_extractv8qi, vec_initv8qi): New.
18744         (mmx_pinsrw): Fix operand ordering.
18745         * config/i386/sse.md (movv4sf splitter): Use direct pattern,
18746         rather than sse_loadss expander.
18747         (movv2df splitter): Similarly.
18748         (sse_loadss, sse_loadlss): Remove.
18749         (vec_dupv4sf, sse_concatv2sf, sse_concatv4sf, vec_extractv4sf_0): New.
18750         (vec_setv4sf, vec_setv2df): Use ix86_expand_vector_set.
18751         (vec_extractv4sf, vec_extractv2df): Use ix86_expand_vector_extract.
18752         (sse3_movddup): Rename with '*'.
18753         (sse3_movddup splitter): Use gen_rtx_REG instead of gen_lowpart.
18754         (sse2_loadsd): Remove.
18755         (vec_dupv2df_sse3): Rename from sse3_loadddup.
18756         (vec_dupv2df, vec_concatv2df_sse3, vec_concatv2df): New.
18757         (sse2_pinsrw): Fix argument ordering.
18758         (sse2_loadld, sse2_loadq): Add sse1 alternatives.
18759         (sse2_stored): Remove 'r' destination.
18760         (vec_dupv4si, vec_dupv2di, sse2_concatv2si, sse1_concatv2si,
18761         vec_concatv4si_1, vec_concatv2di, vec_setv2di, vec_extractv2di,
18762         vec_initv2di, vec_setv4si, vec_extractv4si, vec_initv4si,
18763         vec_setv8hi, vec_extractv8hi, vec_initv8hi, vec_setv16qi,
18764         vec_extractv16qi, vec_initv16qi): New.
18766         * config/i386/emmintrin.h (__m128i, __m128d): Use typedef, not define.
18767         (_mm_set_sd, _mm_set1_pd, _mm_setzero_pd, _mm_set_epi64x,
18768         _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128): Use
18769         constructor form.
18770         (_mm_load_pd, _mm_store_pd): Use plain dereference.
18771         (_mm_load_si128, _mm_store_si128): Likewise.
18772         (_mm_load1_pd): Use _mm_set1_pd.
18773         (_mm_load_sd): Use _mm_set_sd.
18774         (_mm_store_sd, _mm_storeh_pd): Use __builtin_ia32_vec_ext_v2df.
18775         (_mm_store1_pd, _mm_storer_pd): Use _mm_store_pd.
18776         (_mm_set_epi64): Use _mm_set_epi64x.
18777         (_mm_set1_epi64x, _mm_set1_epi64, _mm_set1_epi32, _mm_set_epi16,
18778         _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
18779         _mm_setr_epi8): Use _mm_set_foo form.
18780         (_mm_loadl_epi64, _mm_movpi64_epi64, _mm_move_epi64): Use _mm_set_epi64.
18781         (_mm_storel_epi64, _mm_movepi64_pi64): Use __builtin_ia32_vec_ext_v2di.
18782         (_mm_extract_epi16): Use __builtin_ia32_vec_ext_v8hi.
18783         (_mm_insert_epi16): Use __builtin_ia32_vec_set_v8hi.
18784         * config/i386/mmintrin.h (_mm_setzero_si64): Use plain cast.
18785         (_mm_set_pi32): Use __builtin_ia32_vec_init_v2si.
18786         (_mm_set_pi16): Use __builtin_ia32_vec_init_v4hi.
18787         (_mm_set_pi8): Use __builtin_ia32_vec_init_v8qi.
18788         (_mm_set1_pi16, _mm_set1_pi8): Use _mm_set_piN variant.
18789         * config/i386/pmmintrin.h (_mm_loaddup_pd): Use _mm_load1_pd.
18790         (_mm_movedup_pd): Use _mm_shuffle_pd.
18791         * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss,
18792         _mm_set1_ps, _mm_set_ps, _mm_setr_ps): Use constructor form.
18793         (_mm_cvtpi16_ps, _mm_cvtpu16_ps, _mm_cvtpi8_ps, _mm_cvtpu8_ps,
18794         _mm_cvtps_pi8, _mm_cvtpi32x2_ps): Avoid __builtin_ia32_mmx_zero;
18795         Use _mm_setzero_ps.
18796         (_mm_load_ss, _mm_load1_ps): Use _mm_set* form.
18797         (_mm_load_ps, _mm_loadr_ps): Use raw dereference.
18798         (_mm_store_ss): Use __builtin_ia32_vec_ext_v4sf.
18799         (_mm_store_ps): Use raw dereference.
18800         (_mm_store1_ps): Use _mm_storeu_ps.
18801         (_mm_storer_ps): Use _mm_store_ps.
18802         (_mm_extract_pi16): Use __builtin_ia32_vec_ext_v4hi.
18803         (_mm_insert_pi16): Use __builtin_ia32_vec_set_v4hi.
18805 2005-01-11  Stan Shebs  <shebs@apple.com>
18807         * config/rs6000/rs6000.c (machopic_output_stub): Issue
18808         ldu instead of lwzu if 64-bit -mdynamic-no-pic.
18810 2005-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
18812         PR target/18761
18813         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
18814         Skip all DECLs except for FIELD_DECLs.
18816 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
18818         * config/s390/s390.c (override_options): Return error if
18819         -mbackchain, -mpacked-stack and -mhard-float are used together.
18820         (s390_va_start): Remove the backchain && packed-stack special case.
18821         (s390_gimplify_va_arg): Likewise.
18822         * doc/invoke.texi: Remove the ABI incompatibility note.
18824 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
18826         * config/s390/s390.c (struct s390_frame_layout): Remove
18827         save_backchain_p.
18828         (s390_frame_info, s390_emit_prologue): Replace occurrences of
18829         save_backchain_p with TARGET_BACKCHAIN.
18831 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
18833         PR target/18916
18834         * builtins.c (std_gimplify_va_arg_expr): Adjust alignment of *ap.
18835         * expr.h (struct locate_and_pad_arg_data): Add "boundary".
18836         * function.c (locate_and_pad_parm): Set new field.
18837         (assign_parm_find_stack_rtl): Use it instead of FUNCTION_ARG_BOUNDARY.
18838         Tweak where_pad test to include "none".  Always set mem align for
18839         stack_parm.
18840         (assign_parm_adjust_stack_rtl): Discard stack_parm if alignment
18841         not sufficient for type.
18842         (assign_parm_setup_block): If stack_parm is zero on entry, always
18843         make a new stack local.  Block move old stack parm if necessary
18844         to new aligned stack local.
18845         (assign_parm_setup_stack): Use a block move to handle
18846         potentially misaligned entry_parm.
18847         (assign_parms_unsplit_complex): Specify required alignment when
18848         creating stack local.
18849         * calls.c (compute_argument_addresses): Override alignment of stack
18850         arg calculated from its type with the alignment given by
18851         FUNCTION_ARG_BOUNDARY.
18852         (store_one_arg): Likewise.
18854 2005-01-11  Jan Beulich  <jbeulich@novell.com>
18856         * config/ia64/ia64.md (zero_extendsidi2): Replace zxt4 by addp4.
18857         Change respective itanium_class attribute to ialu.
18858         (shladdp4_internal): New.
18859         * config/ia64/predicates.md (shladd_log2_operand): New.
18861 2005-01-11  Richard Henderson  <rth@redhat.com>
18863         * expr.c (store_constructor): Use rtvec_alloc instead of
18864         alloca+gen_rtvec_v, and an incorrect number passed to alloca.
18866 2005-01-11  Kazu Hirata  <kazu@cs.umass.edu>
18868         * config/alpha/alpha.c, config/i386/mmx.md: Fix comment typos.
18870 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
18872         * varasm.c (default_section_type_flags_1): Don't set SECTION_SMALL.
18873         * config/ia64/ia64.c (TARGET_SECTION_TYPE_FLAGS): Define.
18874         (TARGET_RWRELOC): Define.
18875         (ia64_rwreloc_section_type_flags): Delete.
18876         (ia64_section_type_flags): New function.
18877         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): Don't define.
18878         (TARGET_RWRELOC): Define.
18880 2005-01-10  David Mosberger  <davidm@hpl.hp.com>
18882         PR target/18987
18883         * config/ia64/ia64.c (process_set): For alloc insn, only call
18884         process_epilogue is !frame_pointer_needed.
18886 2005-01-10  Roger Sayle  <roger@eyesopen.com>
18888         PR c++/19355
18889         * c-common.c (c_common_truthvalue_conversion): TRUTH_NOT_EXPR is a
18890         unary operator and can't be treated as a binary/comparison operator.
18892 2005-01-10  Richard Henderson  <rth@redhat.com>
18894         * config/i386/i386.c (ix86_function_value): Use type_natural_mode.
18895         (ix86_return_in_memory): Likewise.
18896         (function_arg_advance):  Likewise.  Mirror structure in function_arg
18897         for choosing register to advance.
18899 2005-01-10  Kazu Hirata  <kazu@cs.umass.edu>
18901         * tree-vectorizer.c, tree.def: Fix comment typos.
18903 2005-01-10  Mark Dettinger  <dettinge@de.ibm.com>
18905         * config/s390/s390.c (struct processor_costs): 4 new fields:
18906         ddbr, ddr, debr, der.
18907         (s390_rtx_costs): More precise handling of divide instructions.
18909 2005-01-10  David Edelsohn  <edelsohn@gnu.org>
18911         * config/rs6000/t-aix43 (BOOT_LDFLAGS): Define.
18913 2005-01-10  Jan Beulich  <jbeulich@novell.com>
18915         * config/ia64/ia64.c (ia64_in_small_data_p): Also handle the section
18916         names resulting from -ffunction-sections/-fdata-sections and linkonce
18917         ones.
18918         * varasm.c (default_section_type_flags_1): Also set SECTION_SMALL
18919         based on the section name. Rearrange the section name comparison logic
18920         slightly so that each section name is compared against at most once.
18922 2005-01-10  Ben Elliston  <bje@au.ibm.com>
18924         * doc/invoke.texi (Code Gen Options): Add PowerPC to the list of
18925         targets for which -fPIC reduces limitations on the GOT size.
18927 2005-01-09  Falk Hueffner  <falk@debian.org>
18929         * fold-const.c (fold): Also handle EXACT_DIV_EXPR when folding
18930         X/C1 cmpop C2.
18932 2005-01-09  David Edelsohn  <edelsohn@gnu.org>
18934         PR target/18720
18935         * collect2.c (main): Set aixrtl_flag for -brtl option.
18936         (resolve_lib_name): Search for .so file extension before .a
18937         if aixrtl_flag set.
18939 2005-01-09  Dorit Naishlos  <dorit@il.ibm.com>
18941         * tree-vectorizer.c (vect_enhance_data_refs_alignment): Add dump prints.
18942         (vect_analyze_data_refs_alignment): Add dump prints.
18944 2005-01-09  Ira Rosen  <irar@il.ibm.com>
18946         * tree-vectorizer.c (vect_analyze_offset_expr): Use
18947         expr_invariant_in_loop_p.
18948         Initialize outputs first thing in the function.
18949         (vect_update_ivs_after_vectorizer): Call initial_condition_in_loop_num.
18950         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
18951         (vect_analyze_pointer_ref_access): Check that the initial condition of
18952         the access function is loop invariant.
18954 2005-01-09  Richard Henderson  <rth@redhat.com>
18956         * config/i386/i386.c (bdesc_2arg): Update names for mmx_ prefixes.
18957         (ix86_expand_builtin): Likewise.  Frob MASKMOVQ wrt the input mem
18958         just like MASKMOVDQU.  Return plain zero for MMX_ZERO.
18959         * config/i386/i386.md (MMXMODEI, mov<MMXMODEI>,
18960         mov<MMXMODEI>_internal_rex64, mov<MMXMODEI>_internal, movv2sf,
18961         movv2sf_internal_rex64, movv2sf_internal, MMXMODE,
18962         movmisalign<MMXMODE>, mmx_pmovmskb, mmx_maskmovq, mmx_maskmovq_rex,
18963         sse_movntdi, addv8qi3, addv4hi3, addv2si3, mmx_adddi3, ssaddv8qi3,
18964         ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3, subv4hi3, subv2si3,
18965         mmx_subdi3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
18966         mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
18967         sse2_umulsidi3, mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3,
18968         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pinsrw,
18969         mmx_pextrw, mmx_pshufw, eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3,
18970         gtv2si3, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3,
18971         ashrv2si3, lshrv4hi3, lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3,
18972         mmx_ashldi3, mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
18973         mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
18974         mmx_punpckldq, emms, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3,
18975         eqv2sf3, pfmaxv2sf3, pfminv2sf3, mulv2sf3, femms, pf2id, pf2iw,
18976         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pfrcpv2sf2, pfrcpit1v2sf3,
18977         pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3, pmulhrwv4hi3, pswapdv2si2,
18978         pswapdv2sf2): Move to mmx.md; rename as necessary with leading
18979         mmx_ prefix.
18980         (mmx_clrdi, pavgusb): Remove.
18981         (ldmxcsr, stmxcsr, sfence, sfence_insn): Move to sse.md; rename
18982         with leading sse_ prefix.
18983         * config/i386/sse.md: Receive them.
18984         * config/i386/mmx.md: New file.
18985         (MMXMODE12, MMXMODE24, mmxvecsize): New.
18986         (subrv2sf3): Turn into expander for normal subtraction.
18987         (mmx_addv2sf3, mmx_mulv2sf3, mmx_smaxv2sf3, mmx_sminv2sf3,
18988         mmx_eqv2sf3, mmx_mulv4hi3, mmx_smulv4hi3_highpart,
18989         mmx_umulv4hi3_highpart, mmx_pmaddwd, mmx_pmulhrwv4hi3, sse2_umulsidi3,
18990         mmx_umaxv8qi3, mmx_smaxv4hi3, mmx_uminv8qi3, mmx_sminv4hi3): Mark
18991         commutative; use ix86_binary_operator_ok.
18992         (mmx_add<MMXMODEI>3, mmx_ssadd<MMXMODE12>3, mmx_usadd<MMXMODE12>3,
18993         mmx_sub<MMXMODEI>3, mmx_sssub<MMXMODE12>3, mmx_ussub<MMXMODE12>3
18994         mmx_ashr<MMXMODE24>3, mmx_lshr<MMXMODE23>3, mmx_ashl<MMXMODE24>3
18995         mmx_eq<MMXMODEI>3, mmx_gt<MMXMODEI>3, mmx_and<MMXMODEI>3,
18996         mmx_nand<MMXMODEI>3, mmx_ior<MMXMODEI>3, mmx_xor<MMXMODEI>3):
18997         Macroize from existing patterns; use ix86_binary_operator_ok.
18998         (mmx_packsswb, mmx_packssdw, mmx_packuswb): Add memory alternative.
18999         (mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
19000         mmx_punpckhdq, mmx_punpckhdq, mmx_punpckldq): Likewise.  Model
19001         with vec_select+vec_concat.
19002         (mmx_pshufw, mmx_pshufw_1): Likewise.
19003         (mmx_uavgv8qi3): Merge pavgusb.  Model correcty.
19004         (mmx_uavgv4hi3): Model correctly.
19005         * config/i386/mmintrin.h (_mm_and_si64, _mm_andnot_si64, _mm_or_si64,
19006         _mm_xor_si64): Remove casts.
19008 2005-01-09  Zdenek Dvorak  <dvorakz@suse.cz>
19010         PR tree-optimization/19224
19011         * tree-scalar-evolution.c (get_instantiated_value,
19012         set_instantiated_value): New functions.
19013         (instantiate_parameters_1): Cache the results.
19014         (instantiate_parameters, resolve_mixers): Initialize and free
19015         the cache.
19017 2005-01-08  David Edelsohn  <edelsohn@gnu.org>
19019         * config/i386/i386.md (addhi_4): Correct reference in comment.
19020         (addqi_4): Same.
19022 2005-01-08  Richard Henderson  <rth@redhat.com>
19024         * config/i386/emmintrin.h (_mm_cvtsi128_si32): Move earlier.
19025         (_mm_cvtsi128_si64x): Likewise.
19026         (_mm_srl_epi64, _mm_srl_epi32, _mm_srl_epi16, _mm_sra_epi32,
19027         _mm_sra_epi16, _mm_sll_epi64, _mm_sll_epi32, _mm_sll_epi16): Use
19028         the _mm_{srl,sll}i_foo counterpart, and _mm_cvtsi128_si32.
19029         * config/i386/i386-modes.def: Add V16HI, V32QI, V4DF, V8SF.
19030         * config/i386/i386-protos.h: Update.
19031         * config/i386/i386.c (print_operand): Add 'H'.
19032         (ix86_fixup_binary_operands): Split out from ...
19033         (ix86_expand_binary_operator): ... here.
19034         (ix86_fixup_binary_operands_no_copy): New.
19035         (ix86_expand_fp_absneg_operator): Handle vector mode results.
19036         (bdesc_2arg): Update names for sse{,2,3}_ prefixes.
19037         (ix86_init_mmx_sse_builtins): Remove *maskncmp* special cases.
19038         (safe_vector_operand): Use CONST0_RTX.
19039         (ix86_expand_binop_builtin): Use ix86_fixup_binary_operands.
19040         (ix86_expand_builtin): Merge CODE_FOR_sse2_maskmovdqu_rex64 and
19041         CODE_FOR_sse2_maskmovdqu.  Special case SSE version of MASKMOVDQU
19042         expansion.  Update names for sse{,2,3}_ prefixes.  Remove *maskncmp*
19043         special cases.
19044         * config/i386/i386.h (IX86_BUILTIN_CMPNGTSS): New.
19045         (IX86_BUILTIN_CMPNGESS): New.
19046         * config/i386/i386.md (UNSPEC_FIX_NOTRUNC): New.
19047         (attr type): Add sselog1.
19048         (attr unit, attr memory): Handle it.
19049         (movti, movti_internal, movti_rex64): Move near other integer moves.
19050         (movtf, movtf_internal): Move near other fp moves.
19051         (SSEMODE, SSEMODEI, vec_setv2df, vec_extractv2df, vec_initv2df,
19052         vec_setv4sf, vec_extractv4sf, vec_initv4sf, movv4sf, movv4sf_internal,
19053         movv2df, movv2df_internal, mov<SSEMODEI>, mov<SSEMODEI>_internal,
19054         movmisalign<SSEMODE>, sse_movups_1, sse_movmskps, sse_movntv4sf,
19055         sse_movhlps, sse_movlhps, sse_storehps, sse_loadhps, sse_storelps,
19056         sse_loadlps, sse_loadss, sse_loadss_1, sse_movss, sse_storess,
19057         sse_shufps, addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, negv4sf2,
19058         mulv4sf3, vmmulv4sf3, divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2,
19059         rsqrtv4sf2, vmrsqrtv4sf2, sqrtv4sf2, vmsqrtv4sf2, sse_andv4sf3,
19060         sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3, sse2_andv2df3,
19061         sse2_nandv2df3, sse2_iorv2df3, sse2_xorv2df3, sse2_andv2di3,
19062         sse2_nandv2di3, sse2_iorv2di3, sse2_xorv2di3, maskcmpv4sf3,
19063         vmmaskcmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
19064         smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
19065         cvttps2pi, cvtsi2ss, cvtsi2ssq, cvtss2si, cvtss2siq, cvttss2si,
19066         cvttss2siq, addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3,
19067         vmmulv2df3, divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3,
19068         vmsminv2df3, sqrtv2df2, vmsqrtv2df2, maskcmpv2df3, vmmaskcmpv2df3,
19069         sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb, sse2_maskmovdqu,
19070         sse2_maskmovdqu_rex64, sse2_movntv2df, sse2_movntv2di, sse2_movntsi,
19071         cvtdq2ps, cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq,
19072         cvtpd2pi, cvttpd2pi, cvtpi2pd, cvtsd2si, cvtsd2siq, cvttsd2si,
19073         cvttsd2siq, cvtsi2sd, cvtsi2sdq, cvtsd2ss, cvtss2sd, cvtpd2ps,
19074         cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3, ssaddv16qi3,
19075         ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3, subv4si3,
19076         subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3, mulv8hi3,
19077         smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
19078         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_uavgv16qi3, sse2_uavgv8hi3,
19079         sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd, sse2_pshuflw,
19080         sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3, gtv8hi3,
19081         gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3, ashrv8hi3,
19082         ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3, ashlv4si3,
19083         ashlv2di3, sse2_ashlti3, sse2_lshrti3, sse2_unpckhpd, sse2_unpcklpd,
19084         sse2_packsswb, sse2_packssdw, sse2_packuswb, sse2_punpckhbw,
19085         sse2_punpckhwd, sse2_punpckhdq, sse2_punpcklbw, sse2_punpcklwd,
19086         sse2_punpckldq, sse2_punpcklqdq, sse2_punpckhqdq, sse2_movupd,
19087         sse2_movdqu, sse2_movdq2q, sse2_movdq2q_rex64, sse2_movq2dq,
19088         sse2_movq2dq_rex64, sse2_loadd, sse2_stored, sse2_storehpd,
19089         sse2_loadhpd, sse2_storelpd, sse2_loadlpd, sse2_movsd, sse2_loadsd,
19090         sse2_loadsd_1, sse2_storesd, sse2_shufpd, sse2_clflush, sse2_mfence,
19091         mfence_insn, sse2_lfence, lfence_insn, mwait, monitor, addsubv4sf3,
19092         addsubv2df3, haddv4sf3, haddv2df3, hsubv4sf3, hsubv2df3, movshdup,
19093         movsldup, lddqu, loadddup, movddup): Move to sse.md.  Any with
19094         non-optabs meanings renamed with an "sse{,2,3}_" prefix at the
19095         same time.
19096         (SSEPUSH, push<SSEPUSH>): Remove.
19097         (MMXPUSH, push<MMXPUSH>): Remove.
19098         (sse_movaps, sse_movaps_1, sse_movups): Remove.
19099         (sse2_movapd, sse2_movdqa, sse2_movq): Remove.
19100         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Remove.
19101         (sse_clrv4sf, sse_clrv2df, sse2_clrti): Remove.
19102         (maskncmpv4sf3, vmmaskncmpv4sf3): Remove.
19103         (maskncmpv2df3, vmmaskncmpv2df3): Remove.
19104         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti): Remove.
19105         (lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti): Remove.
19106         * config/i386/athlon.md (athlon_sselog_load): Handle sselog1.
19107         (athlon_sselog_load_k8, athlon_sselog, athlon_sselog_k8): Likewise.
19108         * config/i386/ppro.md (ppro_sse_div_V4SF_load): Fix memory attr.
19109         (ppro_sse_log_V4SF_load): Similarly.  Handle sselog1.
19110         (ppro_sse_log_V4SF): Handle sselog1.
19111         * config/i386/predicates.md (const_0_to_1_operand): New.
19112         (const_0_to_255_mul_8_operand): New.
19113         (const_1_to_31_operand): Rename from const_int_1_31_operand.
19114         (const_2_to_3_operand, const_4_to_7_operand): New.
19115         * config/i386/sse.md: New file.
19116         (SSEMODE12, SSEMODE24, SSEMODE124, SSEMODE248, ssevecsize): New.
19117         (sse_movups): Rename from sse_movups_1.
19118         (sse_loadlss): Rename from sse_loadss_1.
19119         (andv4sf3, iorv4sf3, xorv4sf3, andv2df3): Remove the sse prefix
19120         from the name.
19121         (negv4sf2): Use ix86_expand_fp_absneg_operator.
19122         (absv4sf2, negv2df, absv2df): New.
19123         (addv4sf3): Add expander to call ix86_fixup_binary_operands_no_copy.
19124         (subv4sf3, mulv4sf3, divv4sf3, smaxv4sf3, sminv4sf3, andv4sf3,
19125         iorv4sf3, xorv4sf3, addv2df3, subv2df3, mulv2df3, divv2df3,
19126         smaxv2df3, sminv2df3, andv2df3, iorv2df3, xorv2df3, mulv8hi3,
19127         umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3): Likewise.
19128         (sse3_addsubv4sf3): Model correctly.
19129         sse3_haddv4sf3, sse3_hsubv4sf3, sse3_addsubv2df3, sse3_haddv2df3,
19130         sse3_hsubv2df3, sse2_ashlti3, sse2_lshrti3): Likewise.
19131         (sse_movhlps): Model with vec_select+vec_concat.
19132         (sse_movlhps, sse_unpckhps, sse_unpcklps, sse3_movshdup,
19133         sse3_movsldup, sse_shufps, sse_shufps_1, sse2_unpckhpd, sse3_movddup,
19134         sse2_unpcklpd, sse2_shufpd, sse2_shufpd_1, sse2_punpckhbw,
19135         sse2_punpcklbw, sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq,
19136         sse2_punpckldq, sse2_punpckhqdq, sse2_punpcklqdq, sse2_pshufd,
19137         sse2_pshufd_1, sse2_pshuflw, sse2_pshuflw_1, sse2_pshufhw,
19138         sse2_pshufhw_1): Likewise.
19139         (neg<SSEMODEI>2, one_cmpl<SSEMODEI>2): New.
19140         (add<SSEMODEI>3, sse2_ssadd<SSEMODE12>3, sse2_usadd<SSEMODE12>3,
19141         sub<SSEMODEI>3, sse2_sssub<SSEMODE12>3, sse2_ussub<SSEMODE12>3,
19142         ashr<SSEMODE24>3, lshr<SSEMODE248>3, sse2_eq<SSEMODE124>3,
19143         sse2_gt<SSEMODDE124>3, and<SSEMODEI>3, sse_nand<SSEMODEI>3,
19144         ior<SSEMODEI>3, xor<SSEMODEI>3): Macroize from existing patterns.
19145         (addv4sf3, sse_vmaddv4sf3, mulv4sf3, sse_vmmulv4sf3, smaxv4sf3,
19146         sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, addv2df3, sse2_vmaddv2df3,
19147         mulv2df3, sse2_vmmulv2df3, smaxv2df3, sse2_vmsmaxv2df3, sminv2df3,
19148         sse2_vmsminv2df3, umaxv16qi3, smaxv8hi3, uminv16qi3
19149         sminv8hi3): Mark commutative
19150         operands.  Use ix86_binary_operator_ok.
19151         (sse_unpckhps, sse_unpcklps, sse2_packsswb, sse2_packssdw,
19152         sse2_packuswb, sse2_punpckhbw, sse2_punpcklbw, sse2_punpckhwd,
19153         sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq, sse2_punpckhqdq,
19154         sse2_punpcklqdq): Allow operand2 in memory.
19155         (sse_movhlps, sse_movlhps, sse2_unpckhpd, sse2_unpcklpd
19156         sse2_movsd): Add memory alternatives.
19157         (sse_storelps): Turn expander into an insn; split after reload.
19158         (sse_storess, sse2_loadhpd, sse2_loadlpd): Add non-xmm inputs.
19159         (sse2_storehpd, sse2_storelpd): Add non-xmm outputs.
19161 2005-01-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
19163         * configure.ac (DWARF-2 debug_line): Use objdump.
19164         * configure: Regenerate.
19166 2005-01-08  Jeff Law  <law@redhat.com>
19167             Diego Novillo  <dnovillo@redhat.com>
19169         PR tree-optimization/18241
19170         * tree-nrv.c (tree_nrv): Ignore volatile return values.
19171         * tree-ssa-dse.c (dse_optimize_stmt): Do not optimize
19172         statements with volatile operands.
19173         * tree-ssa-operands.c (add_stmt_operand): Do add volatile
19174         operands after marking a statement with has_volatile_ops.
19176 2005-01-08  Roger Sayle  <roger@eyesopen.com>
19178         * tree.c (int_fits_type_p): Always honor integer constant
19179         TYPE_MIN_VALUE and TYPE_MAX_VALUE if they exist.
19181 2005-01-08  Roger Sayle  <roger@eyesopen.com>
19183         * ifcvt.c (find_if_case_1): Reinstate 2005-01-04 change, now that
19184         the latent bug in rtl_delete_block has been resolved.
19186 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
19188         * config/mips/t-iris6 (MULTILIB_DIRNAMES): Use -mabi argument values.
19189         (MULTILIB_OSDIRNAMES): Use the standard lib, lib32 and lib64.
19191 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
19193         * config/mips/t-slibgcc-irix (SHLIB_LINK): Install a copy of the
19194         library as @multilib_dir@/$(SHLIB_SONAME).
19196 2005-01-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
19198         * configure.ac (HAVE_AS_OFFSETABLE_LO10): Fix typo.
19199         * configure: Regenerate.
19201 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
19203         * c-common.c (handle_mode_attribute): For ENUMERAL_TYPE, also copy
19204         TYPE_MODE.
19206 2005-01-07  David Edelsohn  <edelsohn@gnu.org>
19208         PR target/13674
19209         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
19210         Convert non-word aligned offset address using ld/std into
19211         indirect address.
19213 2005-01-07  Richard Henderson  <rth@redhat.com>
19215         * config/i386/i386.md (sse_loadhps splitter): Fix operand number typo.
19217 2005-01-07  Richard SAndiford  <rsandifo@redhat.com>
19219         * tree.h (IS_EXPR_CODE_CLASS): Use a straight-forward range check.
19221 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
19223         PR tree-optimization/19283
19224         * fold-const.c (fold_widened_comparison): Return NULL if shorter_type
19225         is not shorter than the original type.
19227         PR rtl-optimization/19012
19228         * config/i386/i386.md (addqi_1_slp): Set memory attribute.
19230         PR rtl-optimization/18861
19231         * cfgbuild.c (BLOCK_USED_BY_TABLEJUMP): Define.
19232         (FULL_STATE): Define.
19233         (mark_tablejump_edge): New function.
19234         (purge_dead_tablejump_edges): New function.
19235         (find_bb_boundaries): Use it.
19237         PR tree-optimization/18828
19238         * builtins.c (expand_builtin_next_arg): Remove argument and all
19239         the argument checking.
19240         (expand_builtin): Adjust caller.
19241         (expand_builtin_va_start): Likewise.  Remove error for too many
19242         arguments.
19243         (fold_builtin_next_arg): Issue error for too many arguments.
19244         After checking arguments, replace them with magic arguments that
19245         prevent further checking of the args.
19247 2005-01-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19249         * pa64-hpux.h (STARTFILE_SPEC): Fix typo in spec.
19251 2005-01-06  Roger Sayle  <roger@eyesopen.com>
19253         PR target/6077
19254         * gcc.c (input_suffix_matches): Tweak the semantics of %{.s:...}
19255         and %{.S:...} (and their negative variants) to test whether the
19256         input file is assembler or pre-processed-assembler independent of
19257         the actual filename extension.
19259 2005-01-06  Roger Sayle  <roger@eyesopen.com>
19261         * simplify-rtx.c (simplify_subreg): Simplify truncations of shifts
19262         of sign or zero extended values.
19264 2005-01-06  Geoffrey Keating  <geoffk@apple.com>
19266         * c-cppbuiltin.c (builtin_define_float_constants): Set __*_EPSILON__
19267         for IBM long double format correctly.
19269 2005-01-06  Daniel Berlin <dberlin@dberlin.org>
19271         Fix PR tree-optimization/18792
19273         * tree-data-ref.c (build_classic_dist_vector): Change first_loop
19274         to first_loop_depth, and use loop depth instead of loop number.
19275         (build_classic_dir_vector): Ditto.
19276         (compute_data_dependences_for_loop): Use depth, not loop number.
19277         * tree-loop-linear.c (try_interchange_loops): Use loop depth, not loop
19278         number. Pass in loops, instead of loop numbers.
19279         (gather_interchange_stats): Ditto.
19280         (linear_transform_loops): Ditto.
19282 2005-01-06  Richard Sandiford  <rsandifo@redhat.com>
19284         PR rtl-opt/13299
19285         * loop.c (get_monotonic_increment, biased_biv_fits_mode_p,
19286         biv_fits_mode_p, extension_within_bounds_p): New functions.
19287         (check_ext_dependent_givs): Use them.
19289 2005-01-06  Roger Sayle  <roger@eyesopen.com>
19291         * cfgrtl.c (rtl_delete_block): A basic block may be followed by
19292         more than one barrier, in which case we should delete them all.
19294 2005-01-06  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
19296         * gcc.c (process_command): Change year in 'gcc --version' to 2005.
19298 2005-01-05  Daniel Berlin  <dberlin@dberlin.org>
19300         Fix PR middle-end/19286
19301         Fix PR debug/19267
19302         * dwarf2out.c (gen_subprogram_die): If we've already tried to
19303         output this subprogram, simply ignore this attempt to do it again.
19304         (add_abstract_origin_attribute): Don't abort trying to add the abstract
19305         origin attribute if it's not possible.
19306         (gen_block_die): Don't ignore subblocks of "unused" blocks.
19307         (decls_for_scope): Ditto.
19308         * gimple-low.c (mark_blocks_with_used_subblocks): Remove.
19309         (mark_used_blocks): Don't call mark_blocks_with_used_subblocks.
19311 2005-01-05  Richard Henderson  <rth@redhat.com>
19313         PR target/11327
19314         * config/i386/i386.c (BUILTIN_DESC_SWAP_OPERANDS): New.
19315         (bdesc_2arg): Use it.
19316         (ix86_expand_binop_builtin): Force operands into registers
19317         when optimizing.
19318         (ix86_expand_unop_builtin, ix86_expand_unop1_builtin,
19319         ix86_expand_sse_compare, ix86_expand_sse_comi,
19320         ix86_expand_builtin): Likewise.
19322 2005-01-05  Richard Henderson  <rth@redhat.com>
19324         * config/ia64/ia64.c (rtx_needs_barrier): Handle CONST_VECTOR
19325         and VEC_SELECT.
19326         * config/ia64/vect.md (mulv8qi3): Re-implement with mix_[rl].
19327         (mulv4hi3): Set itanium_class mmmul.
19328         (fpack_sfxf, fpack_xfsf, fpack_xfxf): Remove.
19329         (fpack): Rename from fpack_sfsf.
19331 2005-01-05  Richard Henderson  <rth@redhat.com>
19333         PR rtl-opt/10692
19334         * reload1.c (do_input_reload): Restrict the optimization deleteing
19335         a previous output reload to RELOAD_FOR_INPUT.
19337 2005-01-05  Steven Bosscher  <stevenb@suse.de>
19339         * combine.c (expand_compound_operation)  <ZERO_EXTRACT>: Add
19340         comment that we fall through after case.
19341         (mark_used_regs_combine): Don't expect a SIGN_EXTRACT in a SET_DEST.
19342         (distribute_links): Likewise.
19343         * cse.c (cse_insn): Likewise.
19344         * cselib.c (cselib_invalidate_mem): Likewise.
19345         * df.c: Update comments at the top of the file.
19346         (read_modify_subreg_p): Update comments here too.
19347         (df_def_record_1): Don't expect a SIGN_EXTRACT in a SET_DEST.
19348         * flow.c (mark_set_1): Likewise.
19349         (mark_used_regs): Likewise.
19350         * gcse.c (mems_conflict_for_gcse_p): Likewise.
19351         (canon_list_insert): Likewise.
19352         (mark_set): Likewise.
19353         (try_replace_reg): Likewise.
19354         (store_killed_in_insn): Likewise.
19355         * loop.c (count_one_set): Likewise.
19356         (basic_induction_var): Likewise.
19357         * postreload-gcse.c (find_mem_conflicts): Likewise.
19358         * postreload.c (reload_combine_note_store): Likewise.
19359         (move2add_note_store): Likewise.
19360         * reload.c (find_equiv_reg): Likewise.
19361         (mark_referenced_resources): Likewise.
19362         * rtlanal.c (set_noop_p): Likewise.
19363         (note_stores): Likewise.
19364         (note_uses): Likewise.
19365         * sched-deps.c (sched_analyze_1): Likewise.
19366         * sched-rgn.c (check_live_1): Likewise.
19367         (update_live_1): Likewise.
19368         * config/i860/i860.c: Likewise.
19370         * rtl.dec (SIGN_EXTRACT): Document that this cannot appear as
19371         an lvalue.
19372         (ZERO_EXTRACT): Mention that this one can be an lvalue.
19374         * doc/rtl.texi: Update documentation for bit-fields and SET.
19376 2005-01-05  Roger Sayle  <roger@eyesopen.com>
19378         * ifcvt.c (find_if_case_1): Revert 2005-01-04 change.
19380 2005-01-05  Jan Hubicka  <jh@suse.cz>
19381             Richard Henderson  <rth@redhat.com>
19383         PR target/18910
19384         * config/i386/i386.c (ix86_expand_move): Handle tls symbols
19385         with an offset.
19387 2005-01-05  Richard Henderson  <rth@redhat.com>
19389         PR target/12902
19390         * config/i386/i386.md (sse_movhps, sse_movlps): Remove.
19391         (sse_shufps): Change operand 3 to const_int_operand.
19392         (sse2_storelps): Fix typo in template.
19393         (sse_storehps, sse_loadhps, sse_storelps, sse_loadlps): New.
19394         * config/i386/i386.c (ix86_expand_vector_move_misalign): Use them.
19395         (ix86_expand_builtin): Likewise.
19397 2005-01-05  Julian Brown  <julian@codesourcery.com>
19399         * config/arm/arm.c (arm_return_in_memory): Treat complex types
19400         as aggregates for AAPCS ABIs.
19402 2005-01-05  Stan Shebs  <shebs@apple.com>
19404         * unwind-dw2-fde-darwin.c (examine_objects): Use 64-bit
19405         Mach-O getters if ppc64.
19406         * config/darwin.c (darwin_asm_output_dwarf_delta): Obey
19407         size argument.
19408         * config/darwin.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
19409         signed four-byte field for global code case.
19410         (STARTFILE_SPEC): Avoid crt2.o for 64-bit compilation.
19412 2005-01-05  Roger Sayle  <roger@eyesopen.com>
19414         PR middle-end/19100
19415         * c-common.c: Include real.h.
19416         (c_common_truthvalue_conversion): Avoid destructively modifying expr.
19417         Correctly handle TREE_CONSTANT_OVERFLOW for INTEGER_CST.
19418         Correctly handle TREE_CONSTANT_OVERFLOW and NaNs for REAL_CST.
19419         * Makefile.in (c-common.o): Update dependencies.
19421 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
19423         * c-parse.in (asm_string): Add trailing semicolon.
19425 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
19427         * c-parse.in (asm_string): New.  Don't allow wide strings in
19428         'asm'.
19429         (simple_asm_expr, asm_argument, asm_operand, asm_clobbers): Use
19430         asm_string instead of STRING.
19432 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
19434         * c-typeck.c (constructor_no_implicit): Remove.
19435         (set_designator, process_init_element): Don't check
19436         constructor_no_implicit.
19438 2005-01-05  J"orn Rennecke <joern.rennecke@st.com>
19439             Kaz Kojima  <kkojima@gcc.gnu.org>
19441         PR target/16482
19442         * lcm.c (create_pre_exit): New.
19443         (optimize_mode_switching): In MODE_ENTRY / MODE_EXIT case, set
19444         ENTRY_EXIT_EXTRA to 3.  Use create_pre_exit.
19446 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
19448         * arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
19449         -msoft-float in target_float_switch.
19450         * arm.c (arm_override_options): Fix processing of target_float_switch.
19452 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
19454         * arm/vfp.md (arm_movsi_vfp): Hide VFP register classes from register
19455         preferencing.
19457 2004-01-05  Uros Bizjak  <uros@kss-loka.si>
19459         * doc/invoke.texi (Intel 386 and AMD x86-64 Options):
19460         Replace i387 with 'i386 compiler' in -mfpmath=sse option.
19462 2005-01-04  Roger Sayle  <roger@eyesopen.com>
19464         * ifcvt.c (find_if_case_1): Avoid creating an empty forwarder block,
19465         if deleting the then-block allows the test-block to fallthru to the
19466         else-block.
19468 2005-01-04  Andrew Pinski  <pinskia@physics.uc.edu>
19470         PR c/19152
19471         * c-decl.c (diagnose_mismatched_decls): Accept "extern inline" declared
19472         after the full declaration if the are in two different TUs.
19474 2005-01-04  Richard Henderson  <rth@redhat.com>
19476         PR tree-opt/19158
19477         * tree-sra.c (generate_one_element_init): Just
19478         call gimplify_and_add.
19479         (generate_element_init): Record the
19480         new referenced variables and mark them for renaming
19481         and split out to ...
19482         (generate_element_init_1): This.
19483         (scalarize_init): Don't call push_gimplify_context/
19484         pop_gimplify_context.
19486 2005-01-04  Geoffrey Keating  <geoffk@apple.com>
19488         * toplev.c (get_src_pwd): Handle failure of getpwd().
19490 2005-01-04  Roger Sayle  <roger@eyesopen.com>
19492         * fold-const.c (fold_single_bit_test): Delete unreachable handling
19493         of TRUTH_NOT_EXPR.
19494         (fold): Don't call fold_single_bit_test with a TRUTH_NOT_EXPR, as
19495         all the cases handled by it are inverted by invert_truthvalue.
19497 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
19499         * config/sparc/sparc.md (save_register_windowdi): Add missing mode.
19500         (save_register_windowsi): Likewise.
19502 2005-01-04  Richard Henderson  <rth@redhat.com>
19504         * tree-mudflap.c (mf_varname_tree): Fix thinko setting declname.
19506 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
19508         PR middle-end/17767
19509         * cse.c (fold_rtx) [RTX_COMPARE, RTX_COMM_COMPARE]: Don't attempt
19510         any simplifications of vector mode comparison operators.
19511         * simplify-rtx.c (simplify_relational_operation): Fix variable name.
19513 2005-01-04  Paolo Bonzini  <bonzini@gnu.org>
19514             Devang Patel  <dpatel@apple.com>
19516         PR tree-optimization/18308
19517         * tree-if-conv.c (add_to_dst_predicate_list): Gimplify
19518         the operands before creating a new expression.
19519         * dojump.c (do_jump): Make drop_through_label available
19520         for all cases.  Add expansion of COND_EXPR.
19522 2005-01-04  Ira Rosen  <irar@il.ibm.com>
19524         * tree-vectorizer.c (vect_analyze_offset_expr): Test for
19525         INTEGER_CST instead of TREE_CONSTANT.
19526         (vect_gen_niters_for_prolog_loop): Test for INTEGER_CST
19527         instead of TREE_CONSTANT.
19528         (vect_analyze_pointer_ref_access): Test for INTEGER_CST
19529         instead of TREE_CONSTANT.
19531 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
19533         * tree-eh.c (replace_goto_queue): Return early if the queue is empty.
19535 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
19537         PR target/19240
19538         * config/i386/i386.md (*fop_df_1_i387): Disable for TARGET_SSE_MATH.
19539         (*fop_df_1_i387): Disable for (TARGET_SSE2 && TARGET_SSE_MATH).
19541 2005-01-03  Richard Henderson  <rth@redhat.com>
19543         * fold-const.c (force_fit_type): Cope with types larger than 2 HWI.
19544         (fold_convert_const_int_from_int, fold_convert_const_int_from_real,
19545         fold_convert_const_real_from_real): Split out from ...
19546         (fold_convert_const): ... here.
19548 2005-01-03  Richard Henderson  <rth@redhat.com>
19550         PR target/19235
19551         * config/i386/i386.md (movdi_2): Separate SSE1 and SSE2 alternatives.
19552         (mov<MMXMODEI>_internal): Likewise.
19553         (movdf_nointeger): Prefer Y while not preferring, but allowing, x.
19554         Add V2SF case; use it for SSE1; don't use TI.
19555         (movdf_integer): Likewise.
19556         (mov<SSEMODEI>_internal, movti_internal): Force V4SF for SSE1.
19558 2005-01-03  Ira Rosen  <irar@il.ibm.com>
19560         * tree-vectorizer.c (vect_strip_conversions): New function.
19561         (vect_analyze_offset_expr): Call vect_strip_conversions. Add
19562         check for binary class.
19564 2005-01-03  Daniel Berlin  <dberlin@dberlin.org>
19566         Fix PR debug/17924
19567         Fix PR debug/19191
19568         * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
19569         is a decl.
19570         * gimple-low.c (mark_blocks_with_used_vars): New function.
19571         (mark_blocks_with_used_subblocks): Ditto.
19572         (mark_used_blocks): Ditto.
19573         (pass_mark_used_blocks): New pass.
19574         * tree-inline.c: Include debug.h.
19575         (expand_call_inline): Call outlining_inline_function here.
19576         * tree-optimize.c (init_tree_optimization_passes): Add
19577         pass_mark_used_blocks.
19578         * tree-pass.h (pass_mark_used_blocks): New.
19579         * Makefile.in (tree-inline.o): Add debug.h dependency.
19581 2005-01-03  Geoffrey Keating  <geoffk@apple.com>
19583         * config/darwin.c (darwin_handle_weak_import_attribute): Permit
19584         VAR_DECLs to have weak_import attribute.
19586         * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
19587         'struct ucontext'.
19589 2004-01-03  Steven Bosscher  <stevenb@suse.de>
19591         * passes.c (rest_of_compilation): Don't run regmove if only
19592         flag_expensive_optimizations, require flag_regmove instead.
19594 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
19596         * config/sparc/litecoff.h (TARGET_OS_CPP_BUILTINS): Do not
19597         register "sparc".
19598         * config/sparc/sysv4-only.h (TARGET_OS_CPP_BUILTINS): Likewise.
19599         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
19600         * config/sparc/sol2-64.h (TARGET_SUB_OS_CPP_BUILTINS): Delete.
19601         * config/sparc/sp64-elf.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
19603 2005-01-03  Richard Henderson  <rth@redhat.com>
19605         * config/ia64/ia64.c (TARGET_VECTOR_MODE_SUPPORTED_P): New.
19606         (ia64_const_ok_for_letter_p): New.
19607         (ia64_const_double_ok_for_letter_p): New.
19608         (ia64_extra_constraint): New.
19609         (ia64_expand_vecint_compare): New.
19610         (ia64_expand_vcondu_v2si): New.
19611         (ia64_expand_vecint_cmov): New.
19612         (ia64_expand_vecint_minmax): New.
19613         (ia64_print_operand): Add 'v'.
19614         (ia64_preferred_reload_class): New.
19615         (ia64_vector_mode_supported_p): New.
19616         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): New.
19617         (PREFERRED_RELOAD_CLASS): Move to function.
19618         (CONST_OK_FOR_LETTER_P): Move to function.
19619         (CONST_DOUBLE_OK_FOR_LETTER_P): Move to function.
19620         (CONSTRAINT_OK_FOR_Q, CONSTRAINT_OK_FOR_R): Remove.
19621         (CONSTRAINT_OK_FOR_S, CONSTRAINT_OK_FOR_T): Remove.
19622         (EXTRA_CONSTRAINT): Move to function.
19623         * config/ia64/ia64.md: Include vect.md.
19624         (itanium_class): Add mmalua.
19625         (type): Handle it.
19626         * config/ia64/itanium1.md (1_mmalua): New.  Add it to bypasses.
19627         (1b_mmalua): New.
19628         * config/ia64/itanium2.md (2_mmalua, 2b_mmalua): Similarly.
19629         * config/ia64/predicates.md (gr_reg_or_0_operand): Accept any
19630         CONST0_RTX.
19631         (const_int_2bit_operand): New.
19632         (fr_reg_or_0_operand): New.
19633         * config/ia64/ia64-modes.def: Add vector modes.
19634         * config/ia64/ia64-protos.h: Update.
19635         * config/ia64/vect.md: New file.
19637 2005-01-03  Richard Henderson  <rth@redhat.com>
19639         * simplify-rtx.c (simplify_binary_operation): Handle VEC_CONCAT.
19641 2005-01-03  Uros Bizjak  <uros@kss-loka.si>
19643         PR target/19236
19644         * config/i386/i386.c (log1psf2): Change mode of operands[0,1]
19645         to SFmode.
19646         (log1pdf2): Change mode of operands[0,1] to DFmode.
19648 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
19650         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Define to false.
19651         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Define to true.
19652         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
19653         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Define to
19654         SPARC_RELAXED_ORDERING.
19656 2005-01-03  Richard Henderson  <rth@redhat.com>
19657             Uros Bizjak  <uros@kss-loka.si>
19659         PR target/14631
19660         * config/i386/i386.c (ix86_expand_builtin): [IX86_BUILTIN_PINSRW,
19661         IX86_BUILTIN_PINSRW128]: Fix wrong selector range in error message.
19662         * config/i386/i386.md (mmx_pinsrw, sse2_pinsrw): Fix selector
19663         handling.
19664         (*mmx_pinsrw, *sse2_pinsrw): New patterns.
19665         * config/i386/i386/predicates.md (const_pow2_1_to_8_operand,
19666         const_pow2_1_to_128_operand): New predicates.
19668 2005-01-02  Greg McGary  <greg@mcgary.org>
19670         * tree-mudflap.c (mf_varname_tree): decl_printable_name handles
19671         anonymous decls.
19672         (mf_xform_derefs_1) [RESULT_DECL, STRING_CST]: Handle as innermost
19673         object.  [ptr_type]: Remove unused variable.
19674         Remember nearest addressable array-element or record-component
19675         when checking bitfield components.  Tolerate empty BIND_EXPR.
19677 2005-01-01  Richard Henderson  <rth@redhat.com>
19679         * tree-vectorizer.c (vect_analyze_offset_expr): Strip conversions
19680         that don't narrow the value.  Fail for other conversions.
19682 2005-01-01  Richard Henderson  <rth@redhat.com>
19684         PR c/19031
19685         * c-decl.c (pop_file_scope): Call maybe_apply_pending_pragma_weaks.
19686         * c-lang.c (finish_file): Don't do it here.
19687         * objc/objc-act.c (objc_finish_file): Likewise.
19689         * cgraph.c (decl_assembler_name_equal): New.
19690         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): New.
19691         (cgraph_varpool_node): Actually link up cgraph_varpool_nodes.
19692         * cgraph.h (struct cgraph_varpool_node): Add next.
19693         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): Declare.
19694         * varasm.c (assemble_alias): Mark the target as needed.
19696 2005-01-01  Andrew Pinski  <pinskia@physics.uc.edu>
19698         PR middle-end/19221
19699         * function.c (get_arg_pointer_save_area): Use entry_of_function
19700         instead of get_insns.
19702 2005-01-01  Roger Sayle  <roger@eyesopen.com>
19703             Andrew Pinski  <pinskia@physics.uc.edu>
19704             James E. Wilson  <wilson@specifixinc.com>
19706         PR rtl-optimization/12092
19707         * loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
19708         is zero.
19710 2005-01-01  Roger Sayle  <roger@eyesopen.com>
19711             Olivier Hainque  <hainque@act-europe.fr>
19713         * tree.c (int_fits_type_p): A narrower type always fits in a
19714         wider one, except for negative values into unsigned types.
19716 2005-01-01  Roger Sayle  <roger@eyesopen.com>
19718         * tree.c (int_fits_type_p): Compare the result of force_fit_type
19719         with the original constant rather than require TREE_OVERFLOW.
19721 2005-01-01  Steven Bosscher  <stevenb@suse.de>
19723         PR middle-end/17544
19724         * c-decl.c (finish_function): If compiling C99, annotate the
19725         compiler generated return with the current file name and line 0.
19726         * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if
19727         the source line is greater than 0.
19728         (remove_bb): Likewise.