OSDN Git Service

[gcc/ChangeLog]
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
2
3         * c-decl.c (grokparm): New function.
4         * c-tree.h (grokparm): New prototype.
5
6 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
7
8         * tree-ssa-operands.h (struct ssa_operand_iterator_d): New.  SSA operand
9         iterator controlling structure.
10         (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
11         SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
12         SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New.  Operand
13         iterator flags.
14         (FOR_EACH_SSA_TREE_OPERAND): New.  Iterate over operands as trees.
15         (FOR_EACH_SSA_USE_OPERAND): New.  Iterate over operands as uses.
16         (FOR_EACH_SSA_DEF_OPERAND): New.  Iterate over operands as defs.
17         (FOR_EACH_SSA_MAYDEF_OPERAND): New.  Iterate over V_MAY_DEFs.
18         * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New. 
19         Empty operand pointers.
20         * tree-flow-inline.h (op_iter_done): New.  Return true if finished.
21         (op_iter_next_use): New.  Return next use_operand_p.
22         (op_iter_next_def): New.  Return next def_operand_p.
23         (op_iter_next_tree): New.  Return next operands as a tree.
24         (op_iter_init): New.  Initialize an iterator structure.
25         (op_iter_init_use): New.  Initialize structure and get the first use.
26         (op_iter_init_def): New.  Initialize structure and get the first def.
27         (op_iter_init_tree): New.  Initialize structure and get the first tree.
28         (op_iter_next_maydef): New.  Return next V_MAY_DEF operands.
29         (op_iter_init_maydef): New.  Initialize structure and get the first 
30         V_MAY_DEF operands.
31         * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
32         * tree-dfa.c (compute_immediate_uses_for_stmt, 
33         redirect_immediate_uses): Use new operand iterator.
34         (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
35         (mark_new_vars_to_rename): Use new operand iterator.  Count virtual
36         operands instead of using *_disappeared_p routines.
37         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
38         ssa_rewrite_stmt): Use new operand iterator.
39         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
40         rewrite_trees): Use new operand iterator.
41         * tree-pretty-print.c (dump_vops): Use new operand iterator.
42         * tree-sra.c (mark_all_v_defs): Use new operand iterator.
43         * tree-ssa-alias.c (compute_points_to_and_addr_escape, 
44         dump_points_to_info): Use new operand iterator.
45         * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize, 
46         replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new 
47         operand iterator.
48         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary, 
49         propagate_necessity): Use new operand iterator.
50         * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
51         (register_definitions_for_stmt): Use new operand iterator.  Take stmt as
52         a parameter instead of a stmt_ann_t.
53         * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
54         build_tree_conflict_graph): Use new operand iterator.
55         * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
56         rewrite_mem_refs): Use new operand iterator.
57         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt, 
58         check_loop_closed_ssa_use): Use new operand iterator.
59         * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
60         * tree-ssanames.c (release_defs): Use new operand iterator.
61         * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
62
63 2004-08-25  Adam Nemet  <anemet@lnxw.com>
64
65         * tlink.c (initial_cwd): New variable.
66         (tlink_init): Initialize it.
67         (recompile_files): Use tlink_execute() instead of system().  Don't
68         duplicate verbose output of collect_execute.  Restore initial_cwd.
69         Update comment before the function.
70
71 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
72
73         * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
74         accept) a cast from one Objective-C pointer type to another.
75
76 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
77
78         * doc/install.texi: Document that libstdc++-v3 requires
79         now automake 1.9.1.
80
81 2004-08-25  Caroline Tice  <ctice@apple.com>
82
83         * bb-reorder.c (partition_hot_cold_basic_blocks):  Add more details
84         to comments at start of function.
85         * cfgbuild.c (make_edges):  Add more details to hot/cold partitioning
86         comment.
87         * cfgcleanup.c (try_simplify_condjump, try_forward_edges, 
88         merge_blocks_move_predecessor_nojumps, 
89         merge_blocks_move_successor_nojumps, merge_blocks_move, 
90         try_crossjump_to_edge, try_crossjump_bb): Likewise.
91         * cfglayout.c (fixup_reorder_chain): Likewise.
92         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
93         cfg_layout_can_merge_blocks_p):  Likewise.
94         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
95         * passes.c (rest_of_compilation): Update comments for calling 
96         optimization that partitions hot/cold basic blocks.
97         * doc/invoke.texi:  Update documentation of 
98         freorder-blocks-and-partition flag.
99         
100 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
101
102         * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
103         (*mov*_on_*): Adjust accordingly.  Add an explicit MOVECC: prefix.
104
105 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
106
107         * config/mips/mips.md (any_shift): New code macro.
108         (optab, insn): New code attributes.
109         ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
110         Use the standard rather than internal patterns for the MIPS16
111         double-shift optimization.
112         (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
113         Redefine using :GPR and any_shift.
114         (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
115         to cover all three shifts.
116         (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
117         Redefine using any_shift.  Use :GPR and any_shift to combine splitters.
118         (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
119
120 2004-08-24  Geoffrey Keating  <geoffk@apple.com>
121
122         * gimplify.c (lookup_tmp_var): Separate temporaries when not
123         optimizing.
124
125 2004-08-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
126
127         PR libstdc++/17005 (fix for HP-UX 11.11)
128         * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
129         (hppa*-*-hpux*): Consolidate hppa1.0-*-* code.  Rework handling of
130         tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.  
131         * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
132         * config/pa/pa-hpux.h (TARGET_HPUX): Define.
133         (LINK_SPEC): Handle march=1.0 option.
134         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
135         and _XOPEN_SOURCE_EXTENDED for UNIX 95.
136         (SUBTARGET_OPTIONS): New define.
137         (LINK_SPEC): Handle march=1.0 option.
138         (STARTFILE_SPEC): New define.
139         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
140         and _XOPEN_SOURCE_EXTENDED for UNIX 95.  Additionally, predefine
141         _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
142         (SUBTARGET_OPTIONS): New define.
143         (LINK_SPEC): Handle march=1.0 option.
144         (STARTFILE_SPEC): New define.
145         * config/pa/pa.c (override_options): Add code to process -munix= option.
146         * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
147         (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
148         defines.
149         (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
150         (SUBTARGET_OPTIONS): Provide default define.
151         * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
152         STANDARD_STARTFILE_PREFIX_2): New defines.
153         (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
154         (ENDFILE_SPEC): Use %O.
155         * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
156         Mention issue caused by changing namespace and runtime to UNIX 95/98.
157         * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
158         Document -munix=std option.
159
160 2004-08-25  Steven Bosscher  <stevenb@suse.de>
161
162         * cse.c (cse_around_loop, cse_check_loop_start,
163         cse_set_around_loop): Remove.
164         (cse_basic_block): Remove the around_loop argument.
165         (cse_end_of_basic_block): Remove the after_loop argument.
166         (cse_main): Likewise.
167         * rtl.h (cse_main): Update prototype.
168         * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
169         rest_of_handle_gcse): Update cse_main calls.
170
171 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
172
173         * tree.h  (build_int_cst): New, sign extended constant.
174         (build_int_cstu): New, zero extended constant.
175         (build_int_cst_wide): Renamed from build_int_cst.
176         * tree.c (build_int_cst, build_int_cstu): New.
177         (build_int_cst_wide): Renamed from build_int_cst.
178         (make_vector_type, build_common_tree_nodes,
179         build_common_tree_nodes_2): Adjust build_int_cst calls.
180         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
181         expand_builtin_strpbrk, expand_builtin_fputs,
182         build_string_literal, expand_builtin_printf,
183         expand_builtin_sprintf, fold_builtin_classify_type,
184         fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
185         fold_builtin_toascii, fold_builtin_isdigit,
186         simplify_builtin_strstr, simplify_builtin_strpbrk,
187         fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
188         * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
189         DEF_ATTR_INT): Likewise.
190         * c-decl.c (complete_array_type, check_bitfield_type_and_width):
191         Likewise.
192         * c-lex.c (interpret_integer, lex_charconst): Likewise.
193         * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
194         * c-pretty-print.c (pp_c_integer_constant): Likewise.
195         * c-typeck.c (really_start_incremental_init, push_init_level,
196         set_nonincremental_init_from_string): Likewise.
197         * calls.c (load_register_parameters): Likewise.
198         convert.c (convert_to_pointer): Likewise.
199         coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
200         build_fn_info_type, build_fn_info_value, build_ctr_info_value,
201         build_gcov_info): Likewise.
202         * except.c (init_eh, assign_filter_values): Likewise.
203         * expmed.c (store_fixed_bit_field, extract_bit_field,
204         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
205         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
206         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
207         * expr.c (convert_move, emit_group_load, emit_group_store,
208         expand_assignment, store_constructor, store_field,
209         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
210         fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
211         invert_truthvalue, optimize_bit_field_compare,
212         decode_field_reference, all_ones_mask_p, constant_boolean_node,
213         fold_div_compare, fold, fold_read_from_constant_string,
214         fold_negate_const, fold_abs_const, fold_not_const, round_up,
215         round_down): Likewise.
216         * function.c (assign_parm_setup_block): Likewise.
217         * stmt.c (shift_return_value, expand_case, estimate_case_costs):
218         Likewise.
219         * stor-layout.c (layout_type, initialize_sizetypes,
220         set_min_and_max_values_for_integral_type): Likewise.
221         * tree-chrec.c (chrec_fold_multiply_poly_poly,
222         reset_evolution_in_loop): Likewise.
223         * tree-chrec.h (build_polynomial_chrec): Likewise.
224         * tree-complex.c (build_replicated_const): Likewise.
225         * tree-eh.c (honor_protect_cleanup_actions,
226         lower_try_finally_onedest, lower_try_finally_copy,
227         lower_try_finally_switch): Likewise.
228         * tree-mudflap.c (mf_build_string, mx_register_decls,
229         mudflap_register_call, mudflap_enqueue_constant): Likewise.
230         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
231         * tree-pretty-print.c (dump_generic_node): Likewise.
232         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
233         Likewise.
234         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
235         * tree-ssa-loop-niter.c (number_of_iterations_cond,
236         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
237         Likewise.
238         * tree-ssa-loop-ivcanon.c (create_canonical_iv,
239         canonicalize_loop_induction_variables): Likewise.
240         * tree-vectorizer.c (vect_create_index_for_array_ref,
241         vect_transform_loop_bound, vect_compute_data_ref_alignment):
242         Likewise.
243
244         * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
245         alpha_gimplify_va_arg_1): Likewise.
246         * config/arm/arm.c (arm_get_cookie_size): Likewise.
247         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
248         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
249         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
250         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
251         mips_gimplify_va_arg_expr): Likewise.
252         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
253         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
254         add_compiler_branch_island): Likewise.
255         * config/s390/s390.c (s390_va_start): Likewise.
256         * config/sh/sh.c (sh_va_start): Likewise.
257         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
258         Likewise.
259         * config/xtensa/xtensa.c (xtensa_va_start,
260         xtensa_gimplify_va_arg_expr): Likewise.
261         
262         * objc/objc-act.c (build_objc_string_object,
263         build_objc_symtab_template, init_def_list, init_objc_symtab,
264         init_module_descriptor, generate_static_references,
265         build_selector_translation_table, get_proto_encoding,
266         build_typed_selector_reference, build_selector_reference,
267         build_next_objc_exception_stuff,
268         build_method_prototype_list_template, generate_descriptor_table,
269         generate_protocols, build_protocol_initializer,
270         build_ivar_list_template, build_method_list_template,
271         build_ivar_list_initializer, generate_ivars_list,
272         generate_dispatch_table, generate_protocol_list,
273         build_category_initializer, build_shared_structure_initializer,
274         generate_shared_structures, handle_impent,
275         generate_objc_image_info): Likewise.
276
277 2004-04-25  Paolo Bonzini  <bonzini@gnu.org>
278
279         * cfglayout.c (duplicate_insn_chain): Remove references to
280         NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
281         * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
282         * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
283         * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
284         and NOTE_INSN_LOOP_CONT.
285         * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
286         * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
287         and NOTE_INSN_LOOP_CONT.
288         * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
289         check_dbra_loop, loop_dump_aux): Remove references to removed notes
290         and fields.
291         * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
292         * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
293         references to removed notes and fields.
294         (subtract_reg_term, ujump_to_loop_cont): Remove.
295
296 2004-08-25  Paolo Bonzini  <bonzini@gnu.org>
297
298         * doc/install.texi: Document that libcpp does not require
299         Automake any longer.  Document that Automake 1.9.1 should
300         work everywhere.
301
302 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
303
304         * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
305         * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
306         DWARF_DEBUGGING_INFO from choice-of-definition chain;
307         restructure using C89 features (#elif, #error).
308         * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
309         * config/sh/sh.h: Remove references to DWARF_DEBUG.
310         * doc/invoke.texi: Remove references to DWARF version 1;
311         clarify why -gdwarf-2<n> doesn't work.
312
313 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
314
315         * basic-block.h (BB_SET_PARTITION): Clear old value first.
316         * cfg.c (clear_bb_flags): Don't clear partition setting.
317         * ifcvt.c (find_if_case_1): Remove ??? comment.
318
319 2004-08-25  Alan Modra  <amodra@bigpond.net.au>
320
321         PR target/17052
322         * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
323         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
324         current_function_stdarg in place of sysv_varargs_p.
325         * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
326         sysv_varargs_p.
327
328 2004-08-24  Richard Henderson  <rth@redhat.com>
329
330         PR target/16298
331         * config/i386/i386.c (legitimate_constant_p): Rework to not accept
332         random codes within CONST.
333
334 2004-08-24  James E Wilson  <wilson@specifixinc.com>
335
336         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
337         -freorder-blocks-and-partition.
338
339 2004-08-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
340
341         PR middle-end/17044
342         * tree-ssa-threadupdate.c (redirection_data): Make static.
343         (thread_block): Use ggc_alloc_cleared to allocate struct
344         redirection_data.  Don't free elements in redirection_data.
345
346 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
347
348         * config/mips/predicates.md (small_data_pattern): Match prefetches.
349
350 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
351
352         PR tree-optimization/17016
353         * tree-ssa-loop-niter.c (number_of_iterations_cond,
354         number_of_iterations_exit): Use POINTER_TYPE_P instead
355         of testing for POINTER_TYPE.
356
357 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
358
359         * tree-ssa-loop-ivcanon.c: New file.
360         * tree-ssa-loop-manip.c (create_iv): New function.
361         * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
362         (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
363         * cfgloop.c (mark_single_exit_loops): New function.
364         (verify_loop_structure): Verify single-exit loops.
365         * cfgloop.h (struct loop): Add single_exit field.
366         (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
367         (mark_single_exit_loops): Declare.
368         (tree_num_loop_insns): Declare.
369         * cfgloopmanip.c (update_single_exits_after_duplication): New function.
370         (duplicate_loop_to_header_edge): Use it.
371         * common.opt (fivcanon): New flag.
372         * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
373         * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
374         (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
375         (bsi_insert_on_edge_immediate): New function.
376         * tree-flow.h (bsi_insert_on_edge_immediate,
377         canonicalize_induction_variables, tree_unroll_loops_completely,
378         create_iv): Declare.
379         * tree-optimize.c (init_tree_optimization_passes): Add
380         pass_iv_canon and pass_complete_unroll.
381         * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
382         * tree-scalar-evolution.c (get_loop_exit_condition,
383         get_exit_conditions_rec, number_of_iterations_in_loop,
384         scev_initialize): Use single_exit information.
385         * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
386         missing assumptions.
387         (loop_niter_by_eval):  Return number of iterations as unsigned
388         int.
389         * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
390         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
391         tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
392         New passes.
393         (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
394         * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
395         the defining statement is ready.
396         * tree-vectorizer.c (vect_create_iv_simple): Removed.
397         (vect_create_index_for_array_ref, vect_transform_loop_bound):
398         Use create_iv.
399         (vect_transform_loop_bound): Use single_exit information.
400         (vect_analyze_loop_form): Cleanup bogus tests.
401         (vectorize_loops): Do not call flow_loop_scan.
402         * tree.h (may_negate_without_overflow_p): Declare.
403         * fold-const.c (may_negate_without_overflow_p): Split out from ...
404         (negate_expr_p): ... this function.
405         (tree_expr_nonzero_p): Handle overflowed constants correctly.
406         * doc/invoke.texi (-fivcanon): Document.
407         * doc/passes.texi: Document canonical induction variable creation.
408
409 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
410
411         * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
412         * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
413         using the mode of the operand to decide between them.
414         * config/mips/mips.md (MOVECC): New mode macro.
415         (ccreg): New mode attribute.
416         (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
417         Redefine using :GPR and :MOVECC.  Use %T and %t for the condition.
418         (mov[sd]icc): Redefine using :GPR.
419
420 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
421
422         * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
423         (mips_prefetch_cookie): New function.
424         * config/mips/mips.c (print_operand_address): Fix handling of
425         ADDRESS_CONST_INT.
426         (mips_emit_prefetch): Delete.
427         (mips_prefetch_cookie): New function.
428         * config/mips/mips.md (prefetch): Turn into a define_insn.  Use a
429         mode of QImode for the address_operand.  Use mips_prefetch_cookie
430         to calculate the first "pref" operand.
431         (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
432         (prefetch_indexed_[sd]i): Redefine using :P.  Use mips_prefetch_cookie.
433
434 2004-08-24  Richard Earnshaw  <rearnsha@arm.com>
435
436         * arm.md: Include predicates.md.
437         * predicates.md: New file.
438         * arm.c (s_register_operand, arm_hard_register_operand)
439         (arm_general_register_operand, f_register_operand, reg_or_int_operand)
440         (arm_immediate_operand, arm_neg_immediate_operand)
441         (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
442         (arm_add_operand, arm_addimm_operand, arm_not_operand)
443         (offsettable_memory_operand, alignable_memory_operand)
444         (arm_reload_memory_operand, arm_float_rhs_operand)
445         (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
446         (index_operand, shiftable_operator, logical_binary_operator)
447         (shift_operator, equality_operator, arm_comparison_operator)
448         (minmax_operator, cc_register, dominant_cc_register)
449         (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
450         (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
451         (const_shift_operand, load_multiple_operation)
452         (store_multiple_operation, multi_register_push, thumb_cmp_operand)
453         (thumb_cmpneg_operand, thumb_cbrch_target_operand)
454         (cirrus_register_operand, cirrus_fp_register)
455         (cirrus_shift_const): Delete, replaced with equivalents in
456         predicates.md.
457         (shift_op): Handle ROTATE.
458         * arm-protos.h: Delete declarations for above.
459         * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
460         * t-arm (MD_INCLUDES): Add predicates.md.
461         (s-preds): Depends on MD_INCLUDES.
462
463 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
464
465         * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
466         * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
467         patterns.  Redefine using :GPR.  Give the match_operator a mode.
468         Use '%2' rather than '%z2' for operand 2.
469
470 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
471
472         * config/mips/mips.md (load_call[sd]i): Redefine using :P.  Add mode
473         attribute.
474
475 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
476
477         * config/mips/mips.md (indirect_jump): Use force_reg.  Adjust names
478         of internal patterns.
479         (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
480         Redefine using :P.
481         (tablejump): Use expand_binop to calculate address.  Adjust names
482         of internal patterns.
483         (tablejump[sd]i): Renamed from tablejump_internal[12].
484         Redefine using :P.
485         (tablejump_mips16[12]): Delete.
486
487 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
488
489         * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
490         (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
491         (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
492         (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
493         (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
494
495 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
496
497         * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
498         (*branch_zero[sd]i): Renamed from branch_zero{,_di}.  Redefine
499         using :GPR.
500         (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
501         (*branch_equality[sd]i): Likewise branch_equality{,_di}.
502         (*branch_equality[sd]i_inverted): Likewise
503         branch_equality{,_di}_inverted.
504         (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
505         Redefine using :GPR.
506
507 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
508
509         * rtl.def: Reorganize, placing all codes used only in machine
510         descriptions at the end.
511
512         * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
513         * gengtype.c: Don't include rtl.h.  Define enum rtx_code and
514         rtx_name, rtx_format arrays by direct reference to rtl.def,
515         first undefining GENERATOR_FILE.  Define enum insn_note and
516         note_insn_name array by direct reference to insn-notes.def.
517         (adjust_field_rtx_def): Remove local definition of rtx_name.
518         Use symbolic names for insn notes.
519         * Makefile.in (gengtype.o): Update dependencies.
520
521 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
522
523         * basic-block.h (struct basic_block_def): Reorder fields to
524         eliminate interior padding.  Remove 'partition' field.
525         (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
526         (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
527         (BB_COPY_PARTITION): New macros.
528         * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
529         Replace all references to the 'partition' field of a basic
530         block with new macros.
531
532         * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
533         * final.c (final_scan_insn): Don't handle it.
534         * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
535         instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
536         * sched-rgn.c (sched_is_disabled_for_current_region_p):
537         Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
538
539 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
540
541         * c-decl.c (c_init_decl_processing): Adjust
542         build_common_tree_nodes call.
543         * expmed.c (const_mult_add_overflow_p): Use
544         build_distinct_type_copy.
545         * stor-layout.c (early_type_list): Remove.
546         (layout_type): Don't append to early_type_list.
547         (initialize_sizetypes): Add signed_p argument.
548         (set_sizetype): Overwrite the stub type nodes directly.
549         * tree.c (copy_node_stat): Clear a type's value cache here ...
550         (build_distinct_type): ... not here.
551         (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
552         * tree.h (initialize_sizetypes): Add signed_p argument.
553         (build_common_tree_nodes): Likewise.
554
555         * objc/objc-act.c (get_static_reference): Use
556         build_variant_type_copy.
557         (get_protocol_reference): Likewise.
558         * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
559
560 2004-08-24  Richard Henderson  <rth@redhat.com>
561             Andrew Pinski  <apinski@apple.com>
562
563         * gimplify.c (gimplify_array_ref_to_plus): Delete.
564         (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
565         for ARRAY_REF.
566
567         * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
568         ARRAY_REF also to get to the STRING_CST.
569
570 2004-08-24  Paul Brook  <paul@codesourcery.com>
571
572         * config/arm/arm.c (arm_override_options): Update error message.
573         * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
574         TARGET_HARD_FLOAT_ABI.
575         (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
576         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
577
578 2004-08-24  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
579
580         PR target/17093
581         * config/m32r.md (movsi_sda): Add SI mode specification to
582         UNSPEC.
583
584 2004-08-24  Nick Clifton  <nickc@redhat.com>
585
586         * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
587         of seth_add3_operand.
588
589 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
590
591         * Makefile.in (PROTO_OBJS): Add errors.o.
592         * protoize.c (fancy_abort): Remove.
593         * mips-tfile.c (fancy_abort): Add parameters.
594
595 2004-08-24  Jonathan Wakely  <redi@gcc.gnu.org>
596
597         * doc/trouble.texi (C++ misunderstandings): Fix example code.
598
599 2004-08-24  Andreas Tobler  <a.tobler@schweiz.ch>
600
601         * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
602         (host-default.o): Add dependency on HOOKS_H.
603         * config/x-linux: Likewise.
604         * config/x-solaris: Likewise.
605         * config/i386/x-mingw32: Likewise.
606         * config/rs6000/x-darwin: Likewise.
607
608 2004-08-23  James E Wilson  <wilson@specifixinc.com>
609
610         * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
611         DEF_REG_NOTE.
612
613 2004-08-23  Mark Mitchell  <mark@codesourcery.com>
614
615         PR c/14492
616         * dwarf2out.c (loc_descriptor_from_tree): Robustify.
617
618 2004-08-23  Diego Novillo  <dnovillo@redhat.com>
619
620         * cfg.c (check_bb_profile): Fix typos.
621         * function.c (assign_parm_is_stack_parm): Likewise.
622         * tree-nested.c: Likewise.
623
624 2004-08-23  Daniel Jacobowitz  <dan@debian.org>
625
626         * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
627         Remove TYPECODE.
628         (ggc_alloc_zone_1): Mark TYPE as unused.  Don't save it in the chunk.
629
630 2004-08-23  Eric Christopher  <echristo@redhat.com>
631
632         * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
633         * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
634         * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
635         * target.h: Ditto.
636         * hooks.h: Include machmode.h.
637         (hook_bool_mode_false): Declare.
638         * hooks.c (hook_bool_mode_false): Define.
639         * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
640         * stor-layout.c (layout_type): Ditto.
641         * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
642         Define to target macro.
643         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
644         * config/arm/arm.c: Ditto. Use.
645         * config/arm/arm.h: Ditto.
646         * config/arm/arm-protos.h: Ditto.
647         * config/i386/i386.c: Ditto.
648         * config/i386/i386.h: Ditto.
649         * config/rs6000/rs6000.c: Ditto.
650         * config/rs6000/rs6000.h: Ditto.
651         * config/sh/sh.c: Ditto.
652         * config/sh/sh.h: Ditto.
653         * config/sh/sh-protos.h: Ditto.
654         * config/sh/sh.md: Use.
655         * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
656         to TARGET_VECTOR_MODE_SUPPORTED_P.
657
658 2004-08-23  Nathan Sidwell  <nathan@codesourcery.com>
659
660         * Makefile.in (BUILD_ERRORS): Set to build-errors.
661         (errors.o): New target for host.
662         (build-errors.o): New target for build.
663         (genobjs): Replace errors.o with build-errors.
664         (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
665         (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
666         (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
667         (fix-header.o): Add errors.h
668         * collect2.c (fancy_abort): Add parameters.
669         * collect2.h (fancy_abort): Don't declare.
670         * errors.h (fancy_abort): Don't declare.
671         * errors.c: Include either bconfig.h or config.h.
672         (fancy_abort): Trim filename.
673         * fix-header.c (v_fatal, fatal): Remove.
674         (progname): Remove definition.
675         (main): Set progname here.
676         * gcc.c (fancy_abort): Add parameters.
677         * gcc.h (fancy_abort): Remove declaration.
678         * gcov.c (fancy_abort): Remove.
679         * rtl.h (fancy_abort): Don't declare.
680         (abort): Don't define.
681         * tree.h (fancy_abort): Don't declare.
682         (abort): Don't define.
683         * system.h (fancy_abort): Declare.
684         (abort): Define to fancy_abort.
685         * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
686
687         * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
688         (usize_type, ubitsizetype): Remove.
689         * stor-layout.c (set_sizetype): Don't initialize usizetype,
690         ubitsizetype.
691         * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
692
693         * tree.h (build_distinct_type_copy): New.
694         (build_type_copy): ... here.  Rename to ...
695         (build_variant_type_copy): ... here.
696         * tree.c (build_qualified_type): Rename build_type_copy call.
697         (build_distinct_type_copy): New, broken out of ...
698         (build_type_copy): ... here.  Rename to ...
699         (build_variant_type_copy): ... here.  Use
700         build_distinct_type_copy.
701         (build_common_tree_nodes_2): Rename build_type_copy call.
702         * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
703         call.
704         (handle_packed_attribute, handle_unused_attribute,
705         handle_transparanet_union_attribute, handle_aligned_attribute,
706         handle_deprecated_attribute): Likewise.
707         * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
708         Likewise.
709         * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
710         * config/rs6000/rs6000.c (rs6000_init_builtins): Use
711         build_distinct_type_copy.
712
713 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
714
715         * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR.  Add mode
716         attribute.
717
718 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
719
720         * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
721         loads and stores.
722         (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
723         formerly unnamed patterns.  Redefine using :P for the address.  Remove
724         explicit length attributes.
725
726 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
727
728         * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
729         New functions.
730         (single_reachable_address): Use them.
731         (schedule_sm): Add dump.
732         (is_call_clobbered_ref): New function.
733         (determine_lsm_reg): Check whether the reference is call clobbered.
734         Only work for gimple_reg_type values.
735
736 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
737
738         * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
739         $31 store insns.  Redefine using :GPR.
740
741 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
742
743         * config/mips/mips.md (P): New mode macro.
744         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
745         (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
746         Add mode attributes.
747
748 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
749
750         * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
751         (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants.  Shuffle
752         later constants to cover the gap.
753         (load, store): New mode attributes.
754         (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
755         Use new unspec constants.
756
757 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
758
759         * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
760         (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise.  Change 32-bit patterns
761         to use register_operand rather than uns_arith_operand as the predicate
762         for operand 1.  Remove redundant MIPS16 force_reg() for operand 1.
763         (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
764         Redefine using :GPR.  Make same predicate change here.  Extend the
765         commutativity of operands 1 and 2 from the SImode version to the
766         DImode one.
767         (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
768         but with no predicate changes.
769         (*nor[sd]i3): Redefine using :GPR.
770
771 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
772
773         * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
774         noreturn functions.
775
776 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
777
778         * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
779         * config/mips/mips.md (abs[sd]i2): Redefine using :GPR.  Only use
780         branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY.  Use "%."
781         rather than "%z2" (with a fake const0_rtx for operand 2).
782         (ffs[sd]i2): Redefine using :GPR.
783         (clz[sd]i2): Likewise.  Use ISA_HAS_CLO_CLZ for the 64-bit case.
784
785 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
786
787         * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
788
789 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
790
791         * config/mips/mips.md (any_extend): New code macro.
792         (u, su): New code attributes.
793         ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
794         ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
795         ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
796         (*{s,u}mul_acc_di): Redefine using any_extend.
797         (*{,u}muls_di, *{s,u}msac_di): Likewise.  Change names of patterns
798         to reflect real insn names.
799         (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
800         with an any_extend template.
801         ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
802         Add '*' to name.
803
804 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
805
806         * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
807         * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
808         (mul[sd]i3_r4000): Redefine using :GPR.
809         (mulsi3_mult3): Don't check TARGET_MAD separately.
810         (muldi3_mult3): Moved after mulsi_mult3.
811
812 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
813
814         * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
815         OBJECT_FORMAT_ELF.  Set MASK_SPLIT_ADDR by default if using GNU ld.
816         * config/mips/mips.h (MASK_GAS): Delete.  Shuffle later masks down.
817         (TARGET_GAS, TARGET_MIPS_AS): Delete.
818         (TARGET_GPWORD): Define to true for n32 on IRIX.
819         (TARGET_SWITCHES): Remove -mmips-as.  Turn -mgas into a no-op.
820         (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
821         (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
822         (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
823         (MDEBUG_ASM_SPEC): Delete, folding into...
824         (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
825         (ASM_SPEC): Inline old GAS_ASM_SPEC.  Use GNU names for ABI switches.
826         (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
827         subtarget_mips_as_asm_spec, mdebug_asm_spec.  Use MULTILIB_ABI_DEFAULT
828         to define asm_abi_default_spec.
829         (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
830         (TARGET_ASM_SELECT_SECTION): Delete.
831         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
832         for non-mips16 code, removing previous workaround for SGI assemblers.
833         (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
834         (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
835         (override_options): Remove !TARGET_GAS and !have_named_sections code.
836         (print_operand): Fold TARGET_GAS conditionals into asm strings.
837         (mips_output_filename): Remove !TARGET_GAS code.  Replace use of
838         ASM_STABS_OP and ASM_STABN_OP.
839         (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
840         (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
841         (mips_output_function_prologue): Remove !TARGET_GAS code.
842         (mips_select_rtx_section): Remove !have_named_sections code.
843         (mips_select_section): Delete.
844         * config/mips/mips.md (trap): Remove !TARGET_GAS check.
845         * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
846         * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
847         (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
848         * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
849         * config/mips/windiss.h (ASM_SPEC): Likewise.
850
851 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
852
853         * read-rtl.c (map_value, mapping, macro_group): New structures.
854         (BELLWETHER_CODE): New macro.
855         (modes, codes, bellwether_codes): New variables.
856         (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
857         (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
858         (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
859         (add_condition_to_rtx, apply_macro_traverse, add_mapping)
860         (add_map_value, initialize_macros): New functions.
861         (def_hash, def_hash_eq_p): Generalize to anything that points to,
862         or starts with, a char * field.
863         (find_macro, read_mapping, check_code_macro): New functions.
864         (read_rtx_1): New, split out from read_rtx.  Handle the new
865         define_{mode,code}_{macro,attr} constructs.  Use find_macro
866         to parse the name of a code or mode.  Use BELLWETHER_CODE to
867         extract the format and to choose a suitable code for rtx_alloc.
868         Modify recursive invocations to use read_rtx_1.
869         (read_rtx): Call initialize_macros.  Apply code and mode macros
870         to the rtx returned by read_rtx_1.  Cache everything after the
871         first macro expansion for subsequent read_rtx calls.
872         * doc/md.texi: Document new .md constructs.
873         * config/mips/mips.md (GPR): New mode macro.
874         (d, si8_di5): New mode attributes.
875         (any_cond): New code macro.
876         (add[sd]i3): Redefine using :GPR.
877         (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
878         (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
879         previously unnamed MIPS16 patterns.
880         (*addsi3_extended): Renamed from addsi3_internal_2.  Fix overly long
881         lines.  Don't match (plus (const_int 0) ...).
882         (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
883         Use a define_split to generate the addition.
884         (sub[sd]i3): Redefine using :GPR.  Turn subsi3 into a define_insn.
885         (subsi3_internal): Delete.
886         (*subsi3_extended): Renamed from subsi3_internal_2.
887         (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
888         (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
889         using an any_cond template.
890
891 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
892
893         * read-rtl.c (read_rtx): Tidy use of format_ptr.
894
895 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
896
897         * read-rtl.c (string_obstack): New file-scope variable.
898         (read_string, read_quoted_string, read_braced_string)
899         (read_escape): Remove obstack parameter and use string_obstack instead.
900         (read_rtx): Remove function-local rtl_obstack and initialize
901         string_obstack instead.  Update call to read_string.
902
903 2004-08-22  Andrew Pinski  <apinski@apple.com>
904
905         PR c/15262
906         * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
907         expression is not constant.
908         (c_finish_return): Do not go through INDIRECT_REF when looking
909         for the inner expression of an ADDR_EXPR for warning about.
910
911 2004-08-22  Richard Henderson  <rth@redhat.com>
912
913         PR 17075
914         * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
915         create new blocks and fall through.
916         (expand_gimple_basic_block): Update to match.
917
918 2004-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
919
920         * reload.c (find_reloads_address): Make return value tri-state.
921         Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
922         (find_reloads): Assume that reloaded addresses match 'o' or
923         EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
924         returned 1 (not -1).  Omit optional reloads for address operands
925         only if find_reloads_address returned 1 (not -1).
926
927         * config/s390/s390.c (legitimize_reload_address): New function.
928         * config/s390/s390-protos.h (legitimize_reload_address): Declare.
929         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define.  Call
930         legitimize_reload_address.
931
932 2004-08-22  Richard Hendersion  <rth@redhat.com>
933
934         * tree.h (SAVE_EXPR_RESOLVED_P): New.
935         * gimplify.c (gimplify_save_expr): Use it.
936         * expr.c (expand_expr_real_1): Likewise.  Also set DECL_IGNORED_P
937         on the temporary variable.
938
939 2004-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
940
941         * fold-const.c (rtl_expr_nonnegative_p): Delete.
942         * tree.h (rtl_expr_nonnegative_p): Remove.
943
944 2004-08-22  Steven Bosscher  <stevenb@suse.de>
945
946         * config/i386/ppro.md (ppro_complex_insn): Add missing check
947         for cpu==pentiumpro.
948
949         * combine.c (struct reg_stat): Fix comment typo.
950
951 2004-08-22  Joseph S. Myers  <jsm@polyomino.org.uk>
952
953         * c-tree.h (c_sizeof_nowarn): Remove.
954
955 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
956
957         * c-decl.c (set_array_declarator_type): Rename to
958         set_array_declarator_inner.
959         (build_c_parm, build_attrs_declarator, build_function_declarator):
960         New functions.
961         (make_pointer_declarator): Call build_attrs_declarator.
962         * c-tree.h (set_array_declarator_type): Rename to
963         set_array_declarator_inner.
964         (build_c_parm, build_attrs_declarator, build_function_declarator):
965         New prototypes.
966         * c-parse.in (after_type_declarator,
967         parm_declarator_starttypename, parm_declarator_nostarttypename,
968         notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
969         firstparm): Use these functions
970
971 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
972
973         * c-decl.c (build_array_declarator, set_array_declarator_type,
974         start_decl, grokdeclarator, grokparms): Change boolean parameters
975         to type bool.
976         * c-tree.h (build_array_declarator, set_array_declarator_type,
977         start_decl): Update prototypes.
978         * c-decl.c, c-parse.in: All callers changed.
979
980 2004-08-21  Mike Stump  <mrs@apple.com>
981
982         * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
983         (darwin_fix_and_continue): Likewise.
984         (darwin_fix_and_continue_switch): Likewise.
985         * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
986         (darwin_fix_and_continue): Likewise.
987         (darwin_fix_and_continue_switch): Likewise.
988
989 2004-08-21  Danny Smith  <dannysmith@users.sourceforge.net>
990
991         PR  c++/16030
992         * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
993         Remove, merging into ...
994         (gen_stdcall_or_fastcall_suffix): New function, returning tree
995         rather than const char*, and accepting additional parameter.
996         Don't add suffix to '*'-prefixed symbols or variadic functions.
997         (i386_pe_encode_section_info): Adjust for call to new function.
998         Call change_decl_assembler_name.
999
1000 2004-08-20  Mike Stump  <mrs@apple.com>
1001
1002         * config/darwin.c (machopic_indirect_data_reference): Mark
1003         stubs as defined.
1004         * config/386/386.c (darwin_local_data_pic): Add.
1005         (legitimate_constant_p): Reorder so that PLUS handling runs
1006         before darwin_local_data_pic to match the ordering in
1007         legitimate_pic_address_disp_p and so that MINUS runs after
1008         darwin_local_data_pic as otherwise the darwin_local_data_pic
1009         logic can be skipped, which would be very bad.
1010         (legitimate_pic_address_disp_p): Move from from here to
1011         darwin_local_data_pic so it can be reused.
1012
1013 2004-08-21  Alan Modra  <amodra@bigpond.net.au>
1014
1015         * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
1016         (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
1017         (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
1018         (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
1019         (RS6000_ABI_NAME): Define as "linux".
1020         (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
1021         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
1022         ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
1023         * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
1024         * config/rs6000/rs6000.c (dot_symbols): New global var.
1025         (rs6000_output_function_entry): New function, modified for
1026         !DOT_SYMBOLS..
1027         (print_operand <case 'z'>): ..extracted from here.
1028         (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
1029         (rs6000_output_function_epilogue): Likewise.
1030         (rs6000_elf_declare_function_name): Likewise.
1031         * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
1032         (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
1033         * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
1034         * configure: Regenerate.
1035         * config.in: Regenerate.
1036
1037 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
1038
1039         * reload.c (find_reloads_address): Fix thinko in previous change.
1040
1041         * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
1042         a CONST_INT.
1043
1044 2004-08-20  Jakub Jelinek  <jakub@redhat.com>
1045
1046         PR rtl-optimization/17099
1047         * combine.c (force_to_mode): Check if inner_mask has any bits set
1048         outside of GET_MODE (x) instead of op_mode.
1049
1050 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
1051
1052         * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
1053         fragment.
1054         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
1055         (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
1056         * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
1057         architecture.
1058         (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
1059         configurations.
1060         * config/arm/t-symbian: New file.
1061
1062 2004-08-20  Andrew Pinski  <apinski@apple.com>
1063
1064         * regrename.c (kill_value_regno): ANSIfy.
1065
1066 2004-08-20  Dale Johannesen  <dalej@apple.com>
1067
1068         * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
1069
1070 2004-08-20  Daniel Jacobowitz  <dan@debian.org>
1071
1072         * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
1073         (kill_value_regno): New function, derived from kill_value.
1074         (kill_value): Update.
1075         (copyprop_hardreg_forward_1): Update call to kill_value_regno.
1076
1077 2004-08-20  Daniel Berlin  <dberlin@dberlin.org>
1078
1079         Fix PR tree-optimization/17111
1080         * tree-ssa-pre.c (create_value_expr_from): Don't change the types
1081         of non-value_handles.
1082         (bitmap_set_contains): All constants are in every set.
1083
1084 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
1085
1086         * fold-const.c (round_up, round_down): Use build_int_cst.
1087         Optimize common case.
1088
1089 2004-08-20  Zack Weinberg  <zack@codesourcery.com>
1090             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1091
1092         * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
1093         one_only_data_section): Rename to som_readonly_data_section,
1094         som_one_only_readonly_data_section and som_one_only_data_section.
1095         * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
1096         NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
1097         conditional defines.
1098         (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
1099         NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
1100         string values.
1101         (pa_select_section): Use renamed section functions.
1102         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
1103         SOM_READONLY_DATA_SECTION_FUNCTION,
1104         SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
1105         SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
1106         Define here ...
1107         * config/pa/som.h: ... not here.
1108         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
1109         ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
1110         ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
1111         ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
1112         (READONLY_DATA_SECTION): Use som_readonly_data_section.
1113
1114 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
1115
1116         * fold-const.c (int_const_binop): Don't generate non-overflowing
1117         size-types specially.
1118         (fold_convert_const): Likewise.
1119
1120         * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
1121         clear cache on copied sizetype.
1122
1123 2004-08-20  Ben Elliston  <bje@au.ibm.com>
1124
1125         * configure.ac: Don't escape apostrophe in --enable-coverage help.
1126         * configure: Regenerate.
1127
1128 2004-08-20  Danny Smith  <dannysmith@users.sourceforge.net>
1129
1130         PR 5620
1131         * gcc.c (struct stat input_stat): Don't define if
1132         HOST_LACKS_INODE_NUMBERS
1133         (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
1134         than stat to determine if temp file is same as input file.
1135         * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
1136         * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
1137
1138 2004-08-20  Richard Sandiford  <rsandifo@redhat.com>
1139
1140         * configure.ac (mips*-*-*): Print an error if not using GAS.
1141         * configure: Regenerated.
1142         * doc/install.texi: Remove irix5 bullet from --with-gnu-as.  Remove
1143         comments about buggy MIPSpro assemblers.
1144         * config.gcc (mips-sgi-irix[56]*): Combine stanzas.  Include elfos.h
1145         before mips.h and iris.h after it.  Use t-iris and t-slibgcc-irix.
1146         Use iris5.h only for IRIX 5 configs.  Use iris6.h and t-iris6 for
1147         IRIX 6 configs.  Define IRIX_USING_GNU_LD if using GNU ld.
1148         * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
1149         (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
1150         (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
1151         (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
1152         (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
1153         of more general IRIX 6 definitions.
1154         (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
1155         (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
1156         (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
1157         (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
1158         (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
1159         (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
1160         (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
1161         (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
1162         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
1163         (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
1164         (LINK_SPEC): Move most of definition to iris.h.
1165         (SUBTARGET_LINK_SPEC): New macro.
1166         (IRIX_STARTFILE_SPEC): Fold into...
1167         (STARTFILE_SPEC): ...here.
1168         (IRIX_ENDFILE_SPEC): Fold into...
1169         (ENDFILE_SPEC): ...here.
1170         * config/mips/iris6.h (TARGET_IRIX5): Remove override.
1171         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
1172         (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
1173         (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
1174         (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
1175         (TARGET_OS_CPP_BUILTINS): Likewise.  Guard IRIX6-specific bits.
1176         (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
1177         (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
1178         (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
1179         (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
1180         (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
1181         (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
1182         (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
1183         (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
1184         (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
1185         (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
1186         (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
1187         (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
1188         (TARGET_IRIX6): Define to 1.
1189         (DRIVER_SELF_SPECS): Define.
1190         (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
1191         (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
1192         (SUBTARGET_LINK_SPEC): New macro.
1193         (IRIX_STARTFILE_SPEC): Fold into...
1194         (STARTFILE_SPEC): ...here.  Remove !mabi=* case.
1195         (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
1196         (LIB_SPEC, LIBGCC_SPEC): Use them.
1197         (LIB_SPEC): Remove !mabi=* case.
1198         (IRIX_ENDFILE_SPEC): Fold into...
1199         (ENDFILE_SPEC): ...here.  Remove !mabi=* case.
1200         * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
1201         * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
1202         (TARGET_IRIX6): New macro.
1203         (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
1204         (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
1205         (LABEL_AFTER_LOC): Delete.
1206         * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
1207         (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
1208         (mips_build_builtin_va_list): Check TARGET_IRIX6.
1209         (override_options): Remove TARGET_SGI_O32_AS-related code.
1210         (irix_output_external_libcall): Make static.
1211         (mips_output_filename): Avoid use of SET_FILE_NUMBER and
1212         LABEL_AFTER_LOC.
1213         (mips_file_start): Tidy guard for ABI sections.  Remove use of
1214         ABICALLS_ASM_OP; use .abicalls instead.
1215         (mips_output_aligned_decl_common, mips_declare_object_name)
1216         (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
1217         (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
1218         .globl foo .text directives.
1219         (irix_asm_named_section_1, irix_asm_named_section)
1220         (irix_section_align_entry, irix_section_align_htab)
1221         (irix_orig_asm_out_file, irix_section_align_entry_eq)
1222         (irix_section_align_entry_hash, irix_asm_output_align)
1223         (irix_file_start, irix_section_align_1, copy_file_data)
1224         (irix_file_end, irix_section_type_flags): Delete.
1225         * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
1226         Use standard section syntax.  Remove protective "jr $31".
1227         (__gcc_fini): Likewise .gcc_fini.
1228         * config/mips/irix-crtn.asm: Adjust sections accordingly.
1229         * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
1230         iris5gas.h.
1231         * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
1232         from t-irix-gld.
1233         (EXTRA_MULTILIB_PARTS): Define.
1234         * config/mips/t-iris6: Remove bogus comment.
1235         (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
1236         * config/mips/iris5gas.h, config/mips/iris5gld.h,
1237         config/mips/iris6gas.h, config/mips/iris6gld.h,
1238         config/mips/t-iris5-as, config/mips/t-iris5-gas
1239         config/mips/t-irix-gld: Delete.
1240         * config/mips/iris.h: New file.
1241         * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
1242
1243 2004-08-20  Richard Earnshaw  <rearnsha@arm.com>
1244
1245         * postreload.c (reload_cse_move2add): Allow any condjump, but check
1246         that the implicit set isn't clobbered in the jump insn.
1247
1248 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
1249
1250         * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
1251         * optabs.c (init_optabs): Don't check it.
1252         * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
1253         * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
1254
1255 2004-08-18  Andreas Krebbel  <krebbel1@de.ibm.com>
1256
1257         * config/s390/s390.md (s390_warn_framesize_string)
1258         (s390_warn_dynamic_string, s390_stack_size_string)
1259         (s390_stack_guard_string): New global string variables.
1260         (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
1261         (s390_stack_guard): New global variables.
1262         (override_options): Added checks for the new options.
1263         (s390_emit_prologue): Emit stack check and trap code and perform
1264         compile time stack size checking.
1265
1266         * config/s390/s390.h (TARGET_OPTIONS): Added new options
1267         "warn-framesize", "warn-dynamicstack", "stack-size" and
1268         "stack-guard".
1269
1270         * doc/invoke.texi: Added documentation for the new options.
1271
1272 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
1273
1274         * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
1275         to eliminate warning.
1276         (linear_search_fdes): Declare p as unsigned.
1277         (binary_search_mixed_encoding_fdes): Likewise.
1278         * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
1279         to eliminate warning.
1280         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
1281         type cast.
1282
1283 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
1284
1285         * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
1286         * config/s390/s390.c (preferred_la_operand_p): Accept two operands
1287         instead of one.  Check for strictly legitimate address.
1288         * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
1289         to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
1290
1291 2004-08-19  Eric Christopher  <echristo@redhat.com>
1292
1293         * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
1294         * langhooks.h (unsave_expr_now): Ditto.
1295         * tree.h (unsave_expr_1): Remove prototype.
1296         (lhd_unsave_expr_now): Rename to unsave_expr_now.
1297         * tree-inline.c (unsave_expr_1): Move here
1298         from tree.c. Make static.
1299         (unsave_expr_now): Rename from lhd_unsave_expr_now.
1300         * tree-sra.c: Fix up for rename.
1301         * tree-ssa-copy.c: Ditto.
1302         * tree-eh.c: Ditto.
1303         * tree.c (unsave_expr_1): Move to tree-inline.c.
1304
1305 2004-08-19  Caroline Tice  <ctice@apple.com>
1306
1307         * config/i386/cygming.h (switch_to_section):  Fix typo (change
1308         in_unlikely_text_section to in_unlikely_executed_text).
1309
1310 2004-08-19  Daniel Berlin  <dberlin@dberlin.org>
1311
1312         * vec.h (VEC_lower_bound): New macro.
1313
1314 2004-08-19  Richard Sandiford  <rsandifo@redhat.com>
1315
1316         PR target/16446
1317         * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
1318         (mips_arg_info): Update accordingly.  Remove common treatment of fpr_p;
1319         treat each ABI separately.  Deal with n32/n64 complex float arguments.
1320         (function_arg): Add associated complex handling here.
1321
1322 2004-08-19  Richard Henderson  <rth@redhat.com>
1323
1324         * config/arm/arm.c (arm_gen_load_multiple): Use
1325         adjust_automodify_address.  Take base memory and offset instead
1326         of unchanging/struct/scalar bits.
1327         (arm_gen_store_multiple): Likewise.
1328         (arm_gen_movmemqi): Use adjust_automodify_address.
1329         * config/arm/arm-protos.h: Update decls.
1330         * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
1331         (store_multiple): Similarly.
1332
1333 2004-08-19  J"orn Rennecke <joern.rennecke@superh.com>
1334
1335         * regclass.c (globalize_reg): Update call_really_used_regs.
1336
1337 2004-08-19  Nathan Sidwell  <nathan@codesourcery.com>
1338
1339         * doc/invoke.texi (integer-share-limit): Document.
1340
1341         * tree.h (TYPE_CACHED_VALUES_P): New.
1342         (TYPE_CACHED_VALUES): New.
1343         (TYPE_ORIG_SIZE_TYPE): Adjust.
1344         * tree.def (INTEGER_CST): Update documentation.
1345         * tree.c: Inlcude params.h.
1346         (build_int_cst): Cache small values.
1347         (build_type_copy): Do not copy the value cache.
1348         * c-common.c (c_common_nodes_and_builtins): Add comment, remove
1349         unneeded zeroing.
1350         * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
1351         * expmed.c (const_mult_add_overflow_p): Clear type copy's value
1352         cache.
1353         * fold-const.c (force_fit_type): Copy value when setting
1354         overflows.
1355         (int_const_binop): Likewise.
1356         * stor-layout.c: Include params.h
1357         (set_sizetype): Create values cache.
1358         (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
1359         * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
1360         * params.h (INTEGER_SHARE_LIMIT): New.
1361         * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
1362
1363 2004-08-19  Paolo Bonzini  <bonzini@gnu.org>
1364
1365         * gimplify.c (gimplify_minimax_expr): Remove.
1366         (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
1367
1368 2004-08-19  Dorit Naishlos  <dorit@il.ibm.com>
1369
1370         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
1371         STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
1372
1373 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
1374
1375         * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
1376
1377 2004-08-18  Andrew Pinski  <apinski@apple.com>
1378
1379         * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
1380
1381 2004-08-18  Mark Mitchell  <mark@codesourcery.com>
1382
1383         * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
1384         (__aeabi_ul2f): Likewise.
1385
1386 2004-08-18  Richard Henderson  <rth@redhat.com>
1387
1388         * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
1389         move to rtl completely.
1390         (struct meminsnbuf, xtensa_emit_block_move): Remove.
1391         (xtensa_find_mode_for_size): Remove.
1392         * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
1393         * config/xtensa/xtensa.md (movmemsi_internal): Remove.
1394
1395 2004-08-18  Richard Henderson  <rth@redhat.com>
1396
1397         * config/mcore/mcore.c (mode_from_align): Remove DImode.
1398         (block_move_sequence): Rewrite to use adjust_address.
1399         (mcore_expand_block_move): Cleanup logic.  Accept only operands.
1400         Return boolean indicating success/failure.
1401         * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
1402         * config/mcore/mcore.md (movmemsi): Update to match.
1403
1404 2004-08-18  Mike Stump  <mrs@apple.com>
1405
1406         * doc/invoke.texi (-mfix-and-continue): Add support for
1407         fast turn around debugging.
1408         (-ffix-and-continue): Likewise.
1409         (-mindirect-data): Likewise.
1410         (-findirect-data): Likewise.
1411         * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
1412         (indirect_data): Likewise.
1413         (machopic_data_defined_p): Likewise.
1414         (machopic_output_indirection): Likewise.
1415         (darwin_encode_section_info): Likewise.
1416         (darwin_fix_and_continue): Likewise.
1417         (darwin_fix_and_continue_switch): Likewise.
1418         * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
1419         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
1420         (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
1421         (SUBTARGET_OPTIONS): Likewise.
1422         (darwin_fix_and_continue): Likewise.
1423         (darwin_fix_and_continue_switch): Likewise.
1424         (TARGET_FIX_AND_CONTINUE): Likewise.
1425         * config/rs6000.c (rs6000_emit_prologue): Likewise.
1426
1427 2004-08-19  Steven Bosscher  <stevenb@suse.de>
1428
1429         * basic-block.h (struct edge_def): Remove crossing_edge.
1430         (EDGE_CROSSING): New define.
1431         (EDGE_ALL_FLAGS): Update.
1432         * bb-reorder.c (find_traces_1_round, better_edge_p,
1433         find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
1434         find_jump_block, fix_crossing_conditional_branches,
1435         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
1436         Replace all occurences of crossing_edge with an edge flag check
1437         or set/reset.
1438         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
1439         try_crossjump_bb): Likewise.
1440         * cfglayout.c (fixup_reorder_chain): Likewise.
1441         * cfgrtl.c (force_nonfallthru_and_redirect,
1442         commit_one_edge_insertion): Likewise.
1443
1444         * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
1445         * tree-flow.h (compute_dominance_frontiers): Move prototype...
1446         * basic-block.h:  ...here.
1447         * tree-cfg.c (compute_dominance_frontiers_1,
1448         compute_dominance_frontiers): Move from here...
1449         * cfganal.c: ...to here.  Include timevar.h.
1450
1451 2004-08-18  James E Wilson  <wilson@specifixinc.com>
1452
1453         * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
1454         * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
1455
1456         * config/mips/mips.md (type): Add frdiv.
1457         (divsf3+1, divsf3+2): Change type to frdiv.
1458         * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
1459         ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
1460
1461         * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
1462         * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
1463         * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
1464         * config/mips/5000.md (r5k_fdiv_single): Likewise.
1465         * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
1466         * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
1467         * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
1468         * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
1469         * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
1470         * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
1471         Likewise.
1472         * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
1473
1474 2004-08-18  Robert Bowdidge <bowdidge@apple.com>
1475
1476         * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
1477         get regression tester working again.
1478
1479 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
1480
1481         * insn-notes.def, reg-notes.def: New files.
1482         * rtl.h: Use them to define enum insn_note and enum reg_note.
1483         * rtl.c: Use them to define note_insn_name and reg_note_name.
1484         * Makefile.in (RTL_BASE_H): Update.
1485
1486         * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
1487         renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
1488
1489 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
1490
1491         * arm.c (arm_size_rtx_costs): New function.
1492         (arm_override_options): Use it if optimizing for space.
1493
1494 2004-08-18  Richard Henderson  <rth@redhat.com>
1495
1496         * emit-rtl.c (gen_const_mem): New.
1497         * rtl.h (gen_const_mem): Declare.
1498         * expr.c (do_tablejump): Use it.
1499         * varasm.c (force_const_mem): Likewise.
1500         * config/darwin.c (machopic_indirect_data_reference): Likewise.
1501         (machopic_legitimize_pic_address): Likewise.
1502         * config/arm/arm.c (legitimize_pic_address): Likewise.
1503         * config/i386/i386.c (legitimize_pic_address): Likewise.
1504         (legitimize_tls_address): Likewise.
1505         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
1506         * config/ia64/ia64.md (load_fptr): Likewise.
1507         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
1508         * config/pa/pa.c (legitimize_pic_address): Likewise.
1509         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
1510         (rs6000_emit_move): Likewise.
1511         * config/s390/s390.c (legitimize_pic_address): Likewise.
1512         (legitimize_tls_address): Likewise.
1513         * config/s390/s390.md (casesi): Likewise.
1514         * config/sh/sh.c (sh_reorg): Likewise.
1515         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
1516         * config/v850/v850.md (casesi): Likewise.
1517
1518         * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
1519         * config/sh/sh.c (prepare_move_operands): Remove incorrect
1520         use of MEM_READONLY_P.
1521
1522 2004-08-18  Steven Bosscher  <stevenb@suse.de>
1523
1524         * Makefile.in (OBJS-common): Add postreload-gcse.c.
1525         Add new postreload-gcse.o.
1526         * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
1527         (lookup_as_function, insert, rehash_using_reg, use_related_value,
1528         equiv_constant): Use SAFE_HASH instead of safe_hash.
1529         (exp_equiv_p): Export.  Add for_gcse argument when comparing
1530         for GCSE.
1531         (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
1532         find_comparison_args, fold_rtx, cse_insn): Update callers.
1533         (hash_rtx): New function derived from old canon_hash and bits
1534         from gcse.c hash_expr_1.
1535         (canon_hash_string): Rename to hash_rtx_string.
1536         (canon_hash, safe_hash): Make static inline.  Call hash_rtx.
1537         * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
1538         (cselib_lookup): Update this caller.
1539         * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
1540         Make static.
1541         (hash_expr): Call hash_rtx.
1542         (ldst_entry): Likewise.
1543         (expr_equiv_p): Call exp_equiv_p.
1544         (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
1545         reg_used_on_edge, reg_set_between_after_reload_p,
1546         reg_used_between_after_reload_p, get_avail_load_store_reg,
1547         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
1548         get_bb_avail_insn, hash_scan_set_after_reload,
1549         compute_hash_table_after_reload,
1550         eliminate_partially_redundant_loads, gcse_after_reload,
1551         get_bb_avail_insn, gcse_after_reload_main): Remove.
1552         * postreload-gcse.c: New file, reincarnating most of the above.
1553         * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
1554         (gcse_after_reload_main): Update prototype.
1555         * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
1556         * passes.c (rest_of_handle_gcse2): Use it.
1557
1558 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
1559
1560         * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
1561         (pass_loop_done): Likewise.
1562
1563 2004-08-18  Andrew Pinski  <apinski@apple.com>
1564
1565         * config/rs6000/darwin.md: Delete the altivec patterns which are
1566         handled differently now.
1567         (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
1568         (macho_correct_pic_di): Likewise.
1569         (call_indirect_nonlocal_darwin64): Likewise.
1570         Delete the save world/saveFP/saveVec patterns.
1571
1572         Revert the reversion of: 2004-08-16  Stan Shebs  <shebs@apple.com>
1573         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
1574         * config/rs6000/rs6000.md: Include darwin.md.
1575         (builtin_setjmp_receiver): Add DImode case.
1576         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
1577         Darwin bits.
1578
1579 2004-08-18  Matt Austern  <austern@apple.com>
1580
1581         Dead code stripping
1582         * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
1583         * darwin.c (darwin_file_end): Mark file as potentially strippable.
1584
1585 2004-08-18  Richard Henderson  <rth@redhat.com>
1586
1587         * alias.c (readonly_fields_p): Remove.
1588         (objects_must_conflict_p): Don't call it.
1589         * tree.h (readonly_fields_p): Remove.
1590         * langhooks.h (struct lang_hooks): Remove honor_readonly.
1591         * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
1592
1593 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
1594
1595         * tree-dfa.c (add_referenced_var): Only global variables are
1596         call-clobbered.
1597         * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
1598         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
1599         all pointers dereferenced if the statement dereferences them.
1600         (create_name_tags): Do not create memory tags for pointers
1601         that have PT_ANYTHING set.
1602         Also check if PT_VARS is not empty before creating a name tag.
1603         (compute_flow_sensitive_aliasing): Don't mark call-clobbered
1604         variables that share the same alias set with a pointer that
1605         may point anywhere.
1606         (add_may_alias): Add FIXME comment to remove clobbering
1607         aliased variables and tags.
1608         (replace_may_alias): Likewise.
1609         (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
1610         (merge_pointed_to_info): If the original variable has not
1611         points-to information, call set_pt_anything.
1612         (add_pointed_to_var): Do not prevent adding a pointed-to
1613         variable if the pointers is PT_ANYTHING.
1614         If the variable is a global, set PT_GLOBAL_MEM.
1615         (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
1616         pointer type only come in PTR+OFFSET flavours.
1617         Always call merge_pointed_to_info on PHI arguments that are
1618         SSA_NAMEs.
1619         (get_nmt_for): Mark call-clobbered tags whose pointer points
1620         to global memory.
1621         * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
1622         values.
1623         (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
1624         FLAGS.
1625         (add_stmt_operand): Abort if the caller tried to add a killing
1626         definition for a memory tag.
1627         * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
1628         unnecessary checks.
1629
1630 2004-08-18  J"orn Rennecke <joern.rennecke@superh.com>
1631
1632         * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
1633         from call_used_regs.  Update call_really_used_regs.
1634         (CALL_REALLY_USED_REGISTERS): Define.
1635         * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
1636         Replace call_used_regs with call_really_used_regs.
1637         (calc_live_regs, sh_media_register_for_return): Likewise.
1638         (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
1639         * sh.md (return_media): Likewise.
1640
1641 2004-08-18  Andrew Pinski  <apinski@apple.com>
1642
1643         * config/darwin.c (machopic_legitimize_pic_address): Only set
1644         MEM_READONLY_P in the non TARGET_TOC case.
1645
1646 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
1647
1648         * rtl.def (NIL): Delete.
1649         * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
1650         Tighten the syntax a little.
1651
1652         * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
1653         * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
1654         * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
1655         * config/i386/predicates.md, config/m32r/m32r.h
1656         * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
1657         * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
1658         * config/sparc/sparc.h, doc/tm.texi:
1659         Replace all occurrences of NIL with UNKNOWN.
1660
1661 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
1662
1663         * dojump.c (do_jump <unordered_bcc>): Do not recursively call
1664         self with a TRUTH_ORIF_EXPR; generate the appropriate jump
1665         sequence inline.  Move drop_through_label code into this
1666         block, being the only place it is used.  Adjust comments.
1667
1668 2004-08-18  Fariborz Jahanian <fjahanian@apple.com>
1669
1670         * config/rs6000/altivec.md: Add new patterns for calls to
1671         save_world/rest_world functions.
1672
1673         * config/rs6000/rs6000-protos.h: (save_world_operation,
1674         restore_world_operation) new declarations.
1675
1676         * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
1677         field added.
1678         (rs6000_stack_info): Set world_save_p field.
1679         (save_world_operation): New function.
1680         (restore_world_operation): New function.
1681         (compute_save_world_info): New function.
1682         (rs6000_stack_info): Call compute_save_world_info.
1683         (rs6000_emit_prologue): Check for world_save_p and generate
1684         pattern to call save_world for saving all non-volatile and
1685         special registers.
1686         (rs6000_emit_epilogue): Check for world_save_p and generate
1687         pattern to call rest_world to restore saved registers.
1688
1689         config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
1690         FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
1691         (rs6000_reg_names): New entries added for save_world_operation and
1692         restore_world_operation.
1693
1694 2004-08-18  Caroline Tice  <ctice@apple.com>
1695
1696         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
1697         "-freorder-blocks-and-partition" to the flags used in second
1698         stage of profiledbootstrap.
1699         * bb-reorder.c (push_to_next_round_p): Add new variable,
1700         next_round_is_last; set and use variable to make sure, when
1701         partitioning, that the last trace construction round consists
1702         of all (and only) cold basic blocks.
1703         (rotate_loop): Don't copy blocks that end in a section
1704         crossing jump.
1705         (copy_bb): Correctly initialize "partition" of duplicated bb.
1706         (add_unlikely_executed_notes): Add a comment.
1707         (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
1708         to make sure, if function contains hot blocks, that the
1709         successors of ENTRY_BLOCK_PTR are hot; also, only look for
1710         crossing edges if the architecture supports named sections.
1711         (mark_bb_for_unlikely_executed_section): Modify to always
1712         insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
1713         the basic block note insn.
1714         (fix_crossing_unconditional_branches): Remove extra space.
1715         (fix_edges_for_rarely_executed_code): Modify to only do
1716         partitioning work if the architecture supports named sections.
1717         (reorder_basic_blocks): Modify to only add
1718         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
1719         supports named sections.
1720         * c-common.c (handle_section_attribute): Initialize new global
1721         variable, user_defined_section_attribute, to true if user has
1722         specified one.
1723         * cfgcleanup.c (try_forward_edges): Modify to not attempt to
1724         forward edges that cross section boundaries.
1725         * cfglayout.c (fixup_reorder_chain): Modify to only fix up
1726         partitioning information if the architecture supports named
1727         sections.
1728         * cfgrtl.c (target.h): Add statement to include this.
1729         (rtl_split_block): Make sure newly created bb gets correct
1730         partition.
1731         (try_redirect_by_replacing_jump): Make sure redirection isn't
1732         attempting to cross section boundaries.
1733         (force_nonfallthru_and_redirect): Only do partition fix up if
1734         architecture supports named sections.
1735         (rtl_split_edge): Make sure newly created bb ends up in
1736         correct partition.
1737         (commit_one_edge_insertion): Remove code that incorrectly
1738         updated basic block partition; Make sure partition fix up only
1739         happens if architecture supports named sections and it's not
1740         already done.
1741         (rtl_verify_flow_info_1): Fix if-condition on test/error
1742         condition that fallthru edges are not allowed to cross section
1743         boundaries.
1744         * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
1745         * final.c (final_scan_insn): Remove redundant test from if-statement;
1746         change calls to text_section into calls to function_section; add code
1747         to only to partitioning fix up if architecture supports named
1748         sections.
1749         * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
1750         partition.
1751         (if_convert): Add targetm.have_named_sections to test.
1752         * output.h (unlikely_section_label): Extern declaration for new global
1753         variable.
1754         (unlikely_text_section_name): Likewise.
1755         * opts.c (decode_options): If both partitioning and DWARF debugging
1756         are turned on, issue a warning that this doesn't work, and change
1757         partitiong to basic block reordering (without hot/cold partitions).
1758         * passes.c (rest_of_handle_final): Re-set new global variable,
1759         user_defined_section_attribute, to false.
1760         (rest_of_compilation): Change options for calling partitioning
1761         function: Don't call if the user defined the section attribute, and
1762         don't call if DECL_ONE_ONLY is true for the current function.
1763         * predict.c (choose_function_section): Return immediately if we
1764         are doing hot/cold partitioning (i.e. let the basic block partitioning
1765         determine where the function belongs).
1766         * reg-stack.c (emit_swap_insn): Add condition to step over
1767         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
1768         * toplev.c (user_defined_section_attribute): New global variable.
1769         * toplev.h (user_defined_section_attribute): Extern declaration
1770         for new global variable.
1771         * varasm.c (unlikely_section_label): New global variable.
1772         (unlikely_text_section_name): New global variable.
1773         (unlikely_text_section): Add code to initialize
1774         unlikely_text_section_name if necessary; modify to use
1775         unlikely_text_section_name and unlikely_section_label; also to use
1776         named_section properly.
1777         (in_unlikely_text_section):  Modify to work correctly with
1778         named_section and to use unlikely_text_section_name.
1779         (named_section):  Add code to work properly with cold section.
1780         (function_section): Clean up if-statement.
1781         * config/darwin.c (darwin_asm_named_section): Return to original
1782         code, removing use of SECTION_FORMAT_STRING.
1783         * config/arm/pe.h (switch_to_section):  Add case for
1784         in_unlikely_executed_text to switch statement.
1785         * config/i386/cygming.h (switch_to_section): Likewise.
1786         * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
1787         (SECTION_FORMAT_STRING): Likewise.
1788         * config/mcore/mcore.h (switch_to_section): Likewise.
1789         * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
1790         (SECTION_FORMAT_STRING): Remove.
1791
1792 2004-08-18  Roger Sayle  <roger@eyesopen.com>
1793
1794         * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
1795         -ffixed-reg safe, by preserving the meanings of zero and one.
1796         (CALL_USED_REGISTERS): Likewise.
1797         (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
1798
1799 2004-08-18  Kaz Kojima  <kkojima@gcc.gnu.org>
1800
1801         * config/sh/sh.c (split_branches): Check the result of
1802         next_active_insn.
1803         (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
1804         Call rtl_register_cfg_hooks.
1805
1806 2004-08-18  Richard Henderson  <rth@redhat.com>
1807
1808         * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
1809         * alias.c (true_dependence): Update to match new semantics.
1810         (canon_true_dependence, write_dependence_p): Likewise.
1811         (anti_dependence, output_dependence): Update write_dependence_p args.
1812         (unchanging_anti_dependence): Remove.
1813         * calls.c (purge_mem_unchanging_flag): Remove.
1814         (fixup_tail_calls): Don't call it.
1815         (expand_call): Don't add unchanging memory to function usage.
1816         * expr.c (emit_block_move_via_libcall): Likewise.
1817         (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
1818         (get_subtarget): Don't use RTX_UNCHANGING_P.
1819         (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
1820         (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
1821         * combine.c (get_last_value_validate): Use MEM_READONLY_P.
1822         * cse.c (insert): Don't use RTX_UNCHANGING_P.
1823         (cse_insn, canon_hash): Use MEM_READONLY_P.
1824         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
1825         instead of RTX_UNCHANGING_P.
1826         * explow.c (maybe_set_unchanging): Remove.
1827         * expr.h (maybe_set_unchanging): Remove.
1828         * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
1829         * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
1830         (assign_parm_setup_reg, expand_function_start): Likewise.
1831         * integrate.c (copy_rtx_and_substitute): Likewise.
1832         * ra-rewrite.c (emit_colors): Likewise.
1833         * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
1834         (fixup_match_1): Likewise.
1835         * reload1.c (reload, alter_reg): Likewise.
1836         * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
1837         not RTX_UNCHANGING_P.
1838         (equiv_init_varies_p): Likewise.
1839         * loop-invariant.c (check_maybe_invariant): Likewise.
1840         * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
1841         * loop.c (note_addr_stored): Likewise.
1842         (prescan_loop): Likewise. Don't check function usage for clobbered
1843         unchanging memory.
1844         * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
1845         not RTX_UNCHANGING_P.
1846         (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
1847         * varasm.c (force_const_mem): Likewise.
1848         * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
1849         * web.c (entry_register): Likewise.
1850         * tree-gimple.h (get_base_address): Move decl ...
1851         * tree.h: ... here.
1852         * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
1853
1854         * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
1855         called via for_each_rtx.  Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
1856         (alpha_set_memflags): Update to match.
1857
1858         * config/darwin.c (machopic_indirect_data_reference): Set
1859         MEM_READONLY_P instead of RTX_UNCHANGING_P.
1860         (machopic_indirect_call_target): Likewise.
1861         (machopic_legitimize_pic_address): Likewise.
1862         * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
1863         arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
1864         * config/arm/arm.md (load_multiple, store_multiple): Likewise.
1865         * config/frv/frv.md (symGOT2reg): Likewise.
1866         * config/i386/i386.c (legitimize_pic_address,
1867         legitimize_tls_address, ix86_split_to_parts): Likewise.
1868         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
1869         * config/ia64/ia64.md (load_fptr): Likewise.
1870         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
1871         * config/m68k/m68k.c (legitimize_pic_address): Likewise.
1872         * config/mcore/mcore.c (block_move_sequence): Likewise.
1873         * config/mn10300/mn10300.md (symGOT2reg): Likewise.
1874         * config/pa/pa.c (legitimize_pic_address): Likewise.
1875         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
1876         (rs6000_emit_move): Likewise.
1877         * config/s390/s390.c (legitimize_pic_address): Likewise.
1878         (legitimize_tls_address): Likewise.
1879         * config/s390/s390.md (casesi): Likewise.
1880         * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
1881         * config/sh/sh.md (symGOT2reg): Likewise.
1882         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
1883         * config/v850/v850.md (casesi): Likewise.
1884
1885         * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
1886         * config/iq2000/iq2000.c (save_restore_insns): Likewise.
1887         * config/mips/mips.c (mips_restore_gp): Likewise.
1888         (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
1889         * config/sh/sh.c (sh_reorg): Likewise.
1890
1891 2004-08-18  Richard Henderson  <rth@redhat.com>
1892
1893         * tree.h (struct tree_decl): Add gimple_formal_temp.
1894         (DECL_GIMPLE_FORMAL_TEMP_P): New.
1895         * gimplify.c (pop_gimplify_context): Clear it.
1896         (lookup_tmp_var): Set it, if is_formal.
1897         (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
1898         Use is_gimple_val for VECTOR.  Simplify return value.
1899         (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
1900         (gimplify_expr): Likewise.
1901         * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
1902         is_gimple_tmp_rhs for clarity.  Update all callers.
1903         (is_gimple_reg_rhs): Simplify logic.
1904         (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
1905         clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
1906         (is_gimple_formal_tmp_reg): Similarly.
1907         * tree-gimple.h: Update decls.
1908         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
1909         DECL_IGNORED_P, not DECL_ARTIFICIAL.  Tidy formatting.
1910         * tree-ssa-live.c (var_union, type_var_init): Likewise.
1911
1912 2004-08-18  Paolo Bonzini  <bonzini@gnu.org>
1913
1914         * c4x.c (legitimize_operands): Remove calls to
1915         preserve_subexpressions_p.
1916
1917 2004-08-18  David Edelsohn  <edelsohn@gnu.org>
1918
1919         * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
1920         * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
1921
1922 2004-08-18  Ziemowit Laski  <zlaski@apple.com>
1923
1924         * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
1925         Objective-C++ extensions.
1926         * gengtype.c (get_file_basename): Match entire subdirectory name
1927         ('cp', 'objc', 'objcp') rather than just its suffix.
1928         (get_base_file_bitmap): Allow for files to belong to more than one
1929         language.
1930         (get_output_file_with_visibility): Treat objc/objc-act.h as a header
1931         used by more than one front-end.
1932
1933 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
1934
1935         * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
1936         avoid use of preserve_subexpressions_p.
1937
1938 2004-08-17  Richard Henderson  <rth@redhat.com>
1939
1940         PR 17051
1941         * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
1942
1943 2004-08-17  DJ Delorie  <dj@redhat.com>
1944
1945         * doc/extend.texi: Document new xstormy16 attribute.
1946
1947         * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
1948         (xstormy16_splittable_below100_or_register): New.
1949         (combine_bnp): New.
1950         (xstormy16_reorg): New.
1951         (TARGET_MACHINE_DEPENDENT_REORG): Define.
1952
1953         * config/stormy16/stormy16.md (movqi_internal): Make name public.
1954         (movhi_internal): Likewise.
1955         (cbhranchhi): Likewise.
1956         (cbhranchhi_neg): Likewise.
1957         (andhi3): Only allow splittable below100 operands.
1958         (iorhi3): Likewise.
1959         (peephole2): New and/zero_extend->and peephole.
1960         (peephole2): New load/ior/save->set1 peephole.
1961         (peephole2): New load/and/save->clr1 peephole.
1962         (bclrx, bclrx2, bclr7, bclr15): New.
1963         (bsetx, bsetx2, bset7, bset15): New.
1964
1965         * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
1966         liberal about acceptable 'B' masks.
1967
1968         * config/stormy16/stormy16-protos.h
1969         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
1970         xstormy16_below100_operand, xstormy16_below100_or_register,
1971         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
1972         (PREDICATE_CODES): Add new predicates.
1973
1974         * config/stormy16/stormy16.c
1975         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
1976         xstormy16_below100_operand, xstormy16_below100_or_register,
1977         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
1978         (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
1979         (xstormy16_legitimate_address_p): Allow below100 symbols.
1980         (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
1981         (xstormy16_expand_move): Leave below100 operands as-is.
1982         (xstormy16_encode_section_info): Encode below100 symbols.
1983         (xstormy16_strip_name_encoding): New.
1984         (xstormy16_print_operand): Print 'b' as shift mask.
1985         (xstormy16_attribute_table): Add below100 attributes.
1986         (xstormy16_handle_below100_attribute): New.
1987
1988         * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
1989         (XSTORMY16_SECTION_FUNCTION): New.
1990         (EXTRA_SECTION_FUNCTIONS): Define using the above.
1991         (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
1992         (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
1993         (ASM_OUTPUT_LABELREF): Define.
1994
1995         * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
1996         (movhi_internal): Add below100 support.
1997         (andhi3): Add below100 support.
1998         (iorhi3): Add below100 support.
1999         (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
2000
2001 2004-08-17  James E Wilson  <wilson@specifixinc.com>
2002
2003         * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
2004         of VOIDmode for comparison code mode.
2005         * config/mips/mips.md: For conditional move patterns, use mode of
2006         first compare operand for comparison mode, instead of VOIDmode.
2007
2008         * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
2009         normal and -ffast-math code.
2010
2011 2004-08-17  Mark Mitchell  <mark@codesourcery.com>
2012
2013         PR c++/15871
2014         * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
2015
2016 2004-08-17  Robert Bowdidge  <bowdidge@apple.com>
2017
2018         * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
2019
2020 2004-08-17  Andreas Tobler  <a.tobler@schweiz.ch>
2021
2022         * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
2023         for non Darwin targets.
2024         (*call_value_nonlocal_darwin64): Likewise.
2025
2026 2004-08-17  Fariborz Jahanian <fjahanian@apple.com>
2027
2028         * config/rs6000/rs6000.c (rs6000_function_value): Check for
2029         altivec mode for altivec return register.
2030
2031 2004-08-17  David Edelsohn  <edelsohn@gnu.org>
2032
2033         Revert 2004-08-16  Stan Shebs  <shebs@apple.com>
2034         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
2035         * config/rs6000/rs6000.md: Include darwin.md.
2036         (builtin_setjmp_receiver): Add DImode case.
2037         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
2038         Darwin bits.
2039
2040 2004-08-17  Dorit Naishlos  <dorit@il.ibm.com>
2041
2042         * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
2043         trees.
2044         * tree-vectorizer.h: New File: Same.
2045         * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
2046         * common.opt (ftree-vectorize): New flag to enable vectorization.
2047         * timevar.def (TV_TREE_VECTORIZATION): New dump file for
2048         vectorization pass.
2049         * tree-data-ref.h (init_data_ref): Additional argument.
2050         (array_base_name_differ_p): Moved to tree-data-ref.c.
2051         * tree-data-ref.c (array_base_name_differ_p): Revised.
2052         (initialize_data_dependence_relation): Call array_base_name_differ_p
2053         with an extra argument.
2054         (analyze_all_data_dependences): Same.
2055         (init_data_ref): Additional argument is_read to set DR_IS_READ.
2056         * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
2057         file.
2058         * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
2059         * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
2060         * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
2061         vectorization pass.
2062         * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
2063         (tree_ssa_loop_done): Call scev_finalize.
2064         (tree_vectorize): Define the new vectorization pass.
2065         * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
2066         size of the vector they support (until support for multiple vector
2067         sizes is added to the vectorizer).
2068         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
2069         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
2070         * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
2071         documentation.
2072
2073 2004-08-17  Nathan Sidwell  <nathan@codesourcery.com>
2074
2075         * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
2076         usage.
2077         (generate_protocol_list, handle_impent): Likewise.
2078
2079 2004-08-17  Roger Sayle  <roger@eyesopen.com>
2080
2081         * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
2082         ensure that call_used_regs is a superset of both fixed_regs and
2083         call_really_used_regs.
2084
2085 2004-08-17  Daniel Bornstein  <danfuzz@milk.com>
2086
2087         PR target/17019
2088         * arm.md (addsi3_cbranch_scratch): Correct case labels.
2089
2090 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
2091
2092         PR middle-end/17036
2093         * fold-const.c (fold): Check for integer operand when
2094         folding (A >> N) & 1 ? (1 << N) : 0.  Fix from Andrew
2095         Pinski  <pinskia@physics.uc.edu>.
2096
2097 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
2098
2099         * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
2100         No need to check if in a cross configuration.
2101         * configure: Regenerate.
2102
2103         * calls.c (precompute_register_parameters):
2104         Inline preserve_subexpressions_p ().
2105         * expmed.c (expand_mult_const, emit_store_flag): Likewise.
2106         * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
2107         Likewise.
2108         * expr.c (get_subtarget): Likewise.
2109         * rtl.h (preserve_subexpressions_p): Remove.
2110         * stmt.c (preserve_subexpressions_p): Remove.
2111
2112         * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
2113         TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
2114         Abort on gimplified cases.
2115
2116 2004-08-16  James E Wilson  <wilson@specifixinc.com>
2117
2118         * tree.h (VECTOR_FLOAT_TYPE_P): New.
2119         (FLOAT_TYPE_P): Use it.
2120         * c-typeck.c (build_binary_op): After convert calls, check for
2121         check for ERROR_MARK operands.
2122
2123 2004-08-16  Zack Weinberg  <zack@codesourcery.com>
2124
2125         * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
2126         (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
2127         (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
2128         (genobjs static pattern rule): Remove %.c dependency.
2129         ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
2130         Rename rules; delete commands; fix dependencies.
2131         (mostlyclean): Do not delete temporary source copies.
2132         * configure.ac: Delete all references to BUILD_PREFIX and
2133         BUILD_PREFIX_1.
2134         * configure: Regenerate.
2135
2136         * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
2137         Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
2138         basic-block.h #ifdef GENERATOR_FILE.  Surround some more code
2139         with #ifndef GENERATOR_FILE so that nothing from those headers
2140         is used.
2141
2142         * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
2143
2144 2004-08-16  Adam Nemet  <anemet@lnxw.com>
2145
2146         * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
2147
2148 2004-08-16  Andrew Pinski  <apinski@apple.com>
2149
2150         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
2151         extraneous semicolon.
2152
2153 2004-08-16  Devang Patel  <dpatel@apple.com>
2154
2155         * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
2156         * print-tree.c (print_node): Print DECL_PRESERVE_P.
2157         * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
2158         (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
2159         * target.h (struct gcc_target): New member, mark_decl_preserved.
2160         * hooks.c (hook_void_charptr): Rename to ...
2161         (hook_void_constcharptr): ... new name.
2162         * hooks.h (hook_void_charptr): Rename to ..
2163         (hook_void_constcharptr): ... new name.
2164         * tree.h (DECL_PRESERVE_P): New #define.
2165         (struct tree_decl): New member, preserve_flag.
2166         * varasm.c (assemble_start_function): Mark decl preserved.
2167         (assemble_variable): Same.
2168         * darwin.c (darwin_mark_decl_preserved): New function.
2169         * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
2170         * darwin-protos.h (darwin_mark_decl_preserved): New decl.
2171         * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
2172
2173 2004-08-16  Joseph S. Myers  <jsm@polyomino.org.uk>
2174
2175         * c-decl.c (grokdeclarator): Allow for function definition where
2176         innermost declarator has attributes.
2177
2178 2004-08-16  Fariborz Jahanian <fjahanian@apple.com>
2179
2180         * except.c (get_exception_filter, build_post_landing_pads,
2181         dw2_build_landing_pads): Use target-specific mode for 'filter'.
2182         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
2183         * target.h (eh_return_filter_mode): New field added.
2184         * targhooks.c (default_eh_return_filter_mode): Defined.
2185         * targhooks.h (default_eh_return_filter_mode): Declared.
2186         * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
2187
2188 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
2189
2190         * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
2191         ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
2192         * configure: Regenerate.
2193
2194 2004-08-16  Stan Shebs  <shebs@apple.com>
2195
2196         Basic support for 64-bit Darwin.
2197         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
2198         (machopic_legitimize_pic_address): Similarly, plus use Pmode
2199         instead of SImode.
2200         * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
2201         (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
2202         (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
2203         (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
2204         (PROCESSOR_DEFAULT64): Define.
2205         * config/rs6000/darwin.md: New file, patterns specific to 64-bit
2206         Darwin.
2207         * config/rs6000/rs6000.md: Include darwin.md.
2208         (builtin_setjmp_receiver): Add DImode case.
2209         * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
2210         Darwin.
2211         (TARGET_ASM_ALIGNED_DI_OP): Ditto.
2212         (rs6000_emit_move): Add DImode case to Darwin bits.
2213         (machopic_output_stub): Use .quad if 64-bit.
2214         * invoke.texi: Document -m32 and -m64.
2215
2216 2004-08-16  Janis Johnson  <janis187@us.ibm.com>
2217
2218         * doc/extend.texi (AltiVec builtins): Document additional differences
2219         from the Motorola AltiVec PIM.
2220
2221 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
2222
2223         * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
2224         * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
2225         (struct tree_common): Update public_flag documentation.
2226
2227 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
2228
2229         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
2230         Check for artificial variables, not is_gimple_tmp_var.
2231         * tree-ssa-live.c (var_union): Likewise.
2232
2233 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
2234
2235         * calls.c (load_register_parameters): Remove spurious FIXME token.
2236
2237 2004-08-15  Ziemowit Laski  <zlaski@apple.com>
2238
2239         * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
2240         (c-lang.o): Depend on c-objc-common.h.
2241         (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
2242         c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
2243         * c-lang.c: Include c-objc-common.h.
2244         (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
2245         LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
2246         LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
2247         LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
2248         LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
2249         LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
2250         LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
2251         LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
2252         LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
2253         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
2254         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
2255         LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
2256         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
2257         LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
2258         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
2259         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
2260         LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
2261         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
2262         LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
2263         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
2264         LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
2265         LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
2266         LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
2267         LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
2268         Move to c-objc-common.h.
2269         * c-objc-common.c: Include c-objc-common.h.
2270         * c-objc-common.h: New file.
2271
2272 2004-08-15  Andreas Tobler  <a.tobler@schweiz.ch>
2273             Andrew Pinski  <pinskia@physics.uc.edu>
2274
2275         PR target/14931
2276         * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
2277         style.
2278
2279 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
2280
2281         * tree.h (build_int_cst): New.
2282         (build_int_2): Remove.
2283         * tree.c (build_int_2): Remove.
2284         (build_int_cst): New.
2285         (make_vector_type, build_common_tree_nodes,
2286         build_common_tree_nodes_2): Use build_int_cst.
2287         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
2288         expand_builtin_strpbrk, expand_builtin_fputs,
2289         build_string_literal, expand_builtin_printf,
2290         expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
2291         fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
2292         fold_builtin_isdigit, simplify_builtin_strstr,
2293         simplify_builtin_strpbrk, fold_builtin_fputs,
2294         simplify_builtin_sprintf): Use build_int_cst.
2295         * c-common.c (start_fname_decls, fix_string_type,
2296         c_common_nodes_and_builtins, c_init_attributes,
2297         shorten_compare): Likewise.
2298         * c-decl.c (complete_array_type,
2299         check_bitfield_type_and_width): Likewise.
2300         * c-lex.c (interpret_integer, lex_charconst): Likewise.
2301         * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
2302         * c-pretty-print.c (pp_c_integer_constant): Likewise.
2303         * c-typeck.c (really_start_incremental_init, push_init_level,
2304         set_nonincremental_init_from_string): Likewise.
2305         * calls.c (load_register_parameters): Likewise.
2306         * convert.c (convert_to_pointer): Likewise.
2307         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
2308         build_fn_info_type, build_ctr_info_value, build_gcov_info):
2309         Likewise.
2310         * except.c (init_eh, assign_filter_values, assign_filter_values):
2311         Likewise.
2312         * expmed.c (store_fixed_bit_field, extract_bit_field,
2313         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
2314         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
2315         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
2316         * expr.c (convert_move, emit_group_load, emit_group_store,
2317         expand_assignment, store_constructor, store_field,
2318         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
2319         * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
2320         invert_truthvalue, optimize_bit_field_compare,
2321         decode_field_reference, all_ones_mask_p, constant_boolean_node,
2322         fold_div_compare, fold, fold_read_from_constant_string,
2323         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
2324         * function.c (assign_parm_setup_block): Likewise.
2325         * stmt.c (shift_return_value, expand_end_case_type,
2326         estimate_case_costs): Likewise.
2327         * stor-layout.c (layout_type, initialize_sizetypes,
2328         set_min_and_max_values_for_integral_type): Likewise.
2329         * tree-chrec.c (chrec_fold_multiply_poly_poly,
2330         reset_evolution_in_loop): Likewise.
2331         * tree-chrec.h (build_polynomial_chrec): Likewise.
2332         * tree-complex.c (build_replicated_const): Likewise.
2333         * tree-eh.c (honor_protect_cleanup_actions,
2334         lower_try_finally_onedest, lower_try_finally_copy,
2335         lower_try_finally_switch): Likewise.
2336         * tree-mudflap.c (mf_build_string, mx_register_decls,
2337         mudflap_register_call, mudflap_enqueue_constant): Likewise.
2338         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
2339         * tree-pretty-print.c (dump_generic_node): Likewise.
2340         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
2341         Likewise.
2342         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
2343         * tree-ssa-loop-niter.c (number_of_iterations_cond,
2344         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
2345         Likewise.
2346
2347         * config/alpha/alpha.c (alpha_initialize_trampoline,
2348         alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
2349         * config/arm/arm.c (arm_get_cookie_size): Likewise.
2350         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
2351         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
2352         * config/i860/i860.c (i860_va_start): Likewise.
2353         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
2354         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
2355         mips_gimplify_va_arg_expr): Likewise.
2356         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
2357         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
2358         add_compiler_branch_island): Likewise.
2359         * config/s390/s390.c (s390_va_start): Likewise.
2360         * config/sh/sh.c (sh_va_start): Likewise.
2361         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
2362         Likewise.
2363         * config/xtensa/xtensa.c (xtensa_va_start,
2364         xtensa_gimplify_va_arg_expr): Likewise.
2365
2366         * objc/objc-act.c (build_objc_string_object,
2367         build_objc_symtab_template, init_def_list, init_objc_symtab,
2368         init_module_descriptor, generate_static_references,
2369         build_selector_translation_table, get_proto_encoding,
2370         build_typed_selector_reference, build_selector_reference,
2371         build_next_objc_exception_stuff,
2372         build_method_prototype_list_template, generate_descriptor_table,
2373         generate_protocols, build_protocol_initializer,
2374         build_ivar_list_template, build_method_list_template,
2375         build_ivar_list_initializer, generate_ivars_list,
2376         generate_dispatch_table, generate_protocol_list,
2377         build_category_initializer, build_shared_structure_initializer,
2378         generate_shared_structures, handle_impent,
2379         generate_objc_image_info): Use build_int_cst.
2380
2381 2004-08-15  Ben Elliston  <bje@au.ibm.com>
2382
2383         * vec.h: Comment improvements.
2384
2385 2004-08-14  Roger Sayle  <roger@eyesopen.com>
2386
2387         * c-common.c (shorten_compare, pointer_int_sum,
2388         c_common_truthvalue_conversion, boolean_increment): Replace calls
2389         to build with calls to buildN.
2390         * c-decl.c (complete_array_type, grokdeclarator): Likewise.
2391         * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
2392         gimplify_switch_stmt): Likewise.
2393         * c-typeck.c (default_function_array_conversion,
2394         build_component_ref, build_array_ref, build_function_call,
2395         pointer_diff, build_unary_op, build_conditional_expr,
2396         build_compound_expr, build_modify_expr, c_finish_goto_label,
2397         c_finish_goto_ptr, c_finish_return, c_finish_loop,
2398         c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
2399         build_binary_op): Likewise.
2400
2401 2004-08-15  Steven Bosscher  <stevenb@suse.de>
2402
2403         * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
2404
2405 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2406
2407         * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
2408         curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
2409         * fixinc/fixincl.x: Rebuilt.
2410
2411 2004-08-14  Richard Sandiford  <rsandifo@redhat.com>
2412
2413         * config/mips/mips-protos.h (mips_symbolic_constant_p)
2414         (mips_atomic_symbolic_constant_p, mips_stack_address_p)
2415         (mips_small_data_pattern_p): Declare.
2416         * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
2417         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
2418         * config/mips/mips.c (mips_symbolic_constant_p): Make global.
2419         (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
2420         (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
2421         (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
2422         (reg_or_const_float_1_operand, hilo_operand, extend_operator)
2423         (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
2424         (pc_or_label_operand, call_insn_operand, move_operand)
2425         (consttable_operand, symbolic_operand, general_symbolic_operand)
2426         (global_got_operand, local_got_operand, stack_operand)
2427         (fp_register_operand, lo_operand, fcc_register_operand): Delete.
2428         (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
2429         (mips_small_data_pattern_p): Replace previous small_data_pattern
2430         predicate.  Turn into a bool () (rtx) function.
2431         * config/mips/predicates.md: New file.
2432         * config/mips/mips.md: Include it.  Use the target-independent
2433         comparison_operator instead of cmp_op.  Rename trap_cmp_op to
2434         trap_comparison_operator and equality_op to equality_operator.
2435         Replace uses of small_int with the equivalent const_arith_operand.
2436         Rename reg_or_const_float_1_operand to reg_or_1_operand.  Rename
2437         const_float_1_operand to const_1_operand.  Rename fcc_register_operand
2438         to fcc_reload_operand.
2439         * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
2440
2441 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2442
2443         PR libstdc++/17005 partial fix.
2444         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
2445         except when generating ANSI/C89 code.
2446
2447 2004-08-14  Nathan Sidwell  <nathan@codesourcery.com>
2448
2449         * c-common.c (shorten_compare): Use force_fit_type directly.
2450
2451 2004-08-14  Gerald Pfeifer  <gerald@pfeifer.com>
2452             Dimitri Papadopoulos-Orfanos  <papadopo@shfj.cea.fr>
2453             Dave Korn  <dk@artimi.com>
2454
2455         * doc/install.texi (Building): Avoid duplicate reference to GNU
2456         make requirement.
2457         (*-*-solaris2*): Do not recommend GNU make any longer.  Simplify.
2458
2459 2004-08-14  Richard Henderson  <rth@redhat.com>
2460
2461         * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
2462         * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
2463
2464 2004-08-13  Richard Henderson  <rth@redhat.com>
2465
2466         * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
2467         for constant_call_address_operand.
2468         (call_value_pop_1, call_value_1): Likewise.
2469         (sibcall_value_1, call_value_1_rex64): Likewise.
2470
2471 2004-08-13  James E Wilson  <wilson@specifixinc.com>
2472
2473         * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
2474         Correct mode from SFmode to DFmode.
2475
2476 2004-08-13  Ziemowit Laski  <zlaski@apple.com>
2477
2478         * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
2479         __cstring_object and __image_info sections with the no_dead_strip
2480         attribute.
2481
2482 2004-08-13  Roger Sayle  <roger@eyesopen.com>
2483             David Billinghurst  <David.Billinghurst@riotinto.com>
2484
2485         PR libgfortran/15930
2486         * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
2487         * fixinc/fixincl.x: Regenerate.
2488         * fixinc/tests/base/internal/math_core.h: New file.
2489
2490 2004-08-13  Richard Henderson  <rth@redhat.com>
2491
2492         * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
2493         (dbxout_function_end): Remove ifdefs for it.
2494         (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
2495
2496 2004-08-13  Richard Henderson  <rth@redhat.com>
2497
2498         * Makefile.in (insn-preds.o): Depend on TREE_H.
2499         * genpreds.c (write_insn_preds_c): Include tree.h.
2500         * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
2501         reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
2502         const48_operand, and_operand, or_operand, mode_width_operand,
2503         mode_mask_operand, mul8_operand, const0_operand,
2504         hard_fp_register_operand, hard_int_register_operand,
2505         reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
2506         samegp_function_operand, direct_call_operand, small_symbolic_operand,
2507         global_symbolic_operand, call_operand, symbolic_operand,
2508         dtp16_symbolic_operand, dtp32_symbolic_operand,
2509         gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
2510         gottp_symbolic_operand, alpha_comparison_operator,
2511         alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
2512         signed_comparison_operator, alpha_fp_comparison_operator,
2513         divmod_operator, fix_operator, aligned_memory_operand,
2514         unaligned_memory_operand, reg_or_unaligned_mem_operand,
2515         any_memory_operand, reg_not_elim_operand, normal_memory_operand,
2516         reg_no_subreg_operand, addition_operation): Move to predicates.md.
2517         (reg_or_const_int_operand): Remove.  Replace all users with
2518         reg_or_cint_operand.
2519         (tls_symbolic_operand_1): Export.  Don't check mode or for CONST.
2520         (resolve_reload_operand): Split out of aligned_memory_operand.
2521         * config/alpha/alpha-protos.h: Update for exports.
2522         * config/alpha/alpha.h (PREDICATE_CODES): Remove.
2523         * config/alpha/alpha.md: Include predicates.md.
2524         * config/alpha/predicates.md: New file.
2525
2526 2004-08-13  Richard Sandiford  <rsandifo@redhat.com>
2527
2528         * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
2529         fields with a pointer to the instruction definition.
2530         (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
2531         (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
2532         (write_attr_case, write_const_num_delay_slots): Update accordingly.
2533         (write_attr_case, write_const_num_delay_slots): Write the name of
2534         an insn next to its case statement.
2535         * genoutput.c (data): Add a filename field.
2536         (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
2537         (output_insn_data): Print the location of each insn definition.
2538         * genrecog.c (write_action): Print the name of an insn above
2539         the statement that returns its code.
2540
2541 2004-08-12  Andrew Pinski  <pinskia@physics.uc.edu>
2542
2543         * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
2544         * config/libgloss.h: Likewise.
2545         * config/arm/arm.c (arm_gen_load_multiple): Likewise.
2546         * c4x/c4x-modes.def: Likewise.
2547         * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
2548         (c4x_rptb_nop_p): Likewise.
2549         (c4x_rptb_valid_p): Likewise.
2550         (c4x_rptb_insert): Likewise.
2551         (c4x_address_conflict): Likewise.
2552         * config/c4x/c4x.md: Likewise.
2553         * config/frv/frv.md: Likewise.
2554         * config/i386/athlon.md: Likewise.
2555         * config/i386/i386.md: Likewise.
2556         * config/i386/predicates.md: Likewise.
2557         * config/ia64/ia64.c: Likewise.
2558         * config/ia64/itanium1.md: Likewise.
2559         * config/ia64/itanium2.md: Likewise.
2560         * config/iq2000/iq2000.md: Likewise.
2561         * config/mcore/mcore.c: Likewise.
2562         * config/mips/mips.c: Likewise.
2563         * config/mips/r3900.h: Likewise.
2564         * config/mips/sb1.md: Likewise.
2565         * config/pa/milli64.S: Likewise.
2566         * config/pa/pa.c: Likewise.
2567         * config/pa/pa.h: Likewise.
2568         * config/rs6000/8540.md: Likewise.
2569
2570 2004-08-13  Daniel Berlin  <dberlin@dberlin.org>
2571
2572         * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
2573
2574 2004-08-13  J"orn Rennecke <joern.rennecke@superh.com>
2575
2576         * sh.md (cbranch define_delay) Use cond_delay_slot for
2577         non-anulled condition too.
2578
2579 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
2580
2581         * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
2582         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
2583         any_parallel_operand, lmw_operation, stmw_operation,
2584         mfcr_operation, mtcrf_operation.  Remove PARALLEL from any_operand.
2585         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
2586         any_parallel_operand.
2587         (return_and_restore_fpregs_{si,di}): Same.
2588
2589 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
2590
2591         * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
2592         if pred->singleton != PARALLEL, issue a warning and pretend it was.
2593         Also issue a warning for any predicate we don't know about.
2594
2595 2004-08-12  Richard Henderson  <rth@redhat.com>
2596
2597         * config/i386/i386.c (internal_label_prefix): Export.
2598         (internal_label_prefix_len, struct ix86_address,
2599         ix86_decompose_address, maybe_get_pool_constant,
2600         ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
2601         memory_address_length): Export.
2602         (any_fp_register_operand, fp_register_operand,
2603         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
2604         x86_64_general_operand, x86_64_szext_general_operand,
2605         x86_64_nonmemory_operand, x86_64_movabs_operand,
2606         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
2607         x86_64_zext_immediate_operand, const_int_1_31_operand,
2608         symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
2609         tls_symbolic_operand, global_dynamic_symbolic_operand,
2610         local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
2611         local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
2612         constant_call_address_operand, const0_operand, const1_operand,
2613         const248_operand, const_0_to_3_operand, const_0_to_7_operand,
2614         const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
2615         shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
2616         general_no_elim_operand, nonmemory_no_elim_operand,
2617         index_register_operand, q_regs_operand, flags_reg_operand,
2618         non_q_regs_operand, zero_extended_scalar_load_operand,
2619         vector_move_operand, no_seg_address_operand, sse_comparison_operator,
2620         ix86_comparison_operator, ix86_carry_flag_operator,
2621         fcmov_comparison_operator, promotable_binary_operator,
2622         cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
2623         mult_operator, div_operator, arith_or_logical_operator,
2624         memory_displacement_operand, cmpsi_operand, long_memory_operand,
2625         aligned_operand): Move to predicates.md as define_predicates.
2626         (tls_symbolic_operand_1): Remove.
2627         (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
2628         (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
2629         (legitimize_address): Merge tls_symbolic_operand contents.
2630         (ix86_expand_move): Likewise.
2631         * config/i386/i386-protos.h: Update for exports.
2632         * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
2633         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
2634         * config/i386/i386.md: Include predicates.md.
2635         * config/i386/predicates.md: New file.
2636
2637 2004-08-13  Mark Mitchell  <mark@codesourcery.com>
2638
2639         PR c++/16924
2640         * config/i386/winnt.c (i386_pe_mark_dllexport): Set
2641         SYMBOL_REF_DECL.
2642         (i386_pe_mark_dllimport): Likewise.
2643         (i386_pe_encode_section_info): Likewise, when overriding
2644         dllimport attribute.
2645
2646 2004-08-12  Geoffrey Keating  <geoffk@apple.com>
2647
2648         * configure.ac: When testing for flex, nm, ar, and bison, check
2649         that they will actually be built.
2650         * configure: Regenerate.
2651
2652 2004-08-12  Ulrich Weigand  <uweigand@de.ibm.com>
2653
2654         * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
2655         (MOVE_MAX_PIECES): Define.
2656
2657 2004-08-12  Devang patel  <dpatel@apple.com>
2658
2659         * dbxout.c (dbxout_begin_prologue): New function.
2660         (dbx_debug_hooks): Use new begin prologue hook.
2661         (dbxout_function_end): Emit N_ENSYM.
2662         * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
2663
2664 2004-08-12  Janis Johnson  <janis187@us.ibm.com>
2665
2666         * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
2667         argument is float*.
2668
2669         * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
2670         for vec_dss.
2671
2672         * doc/extend.texi (AltiVec builtins): Fix description for recent
2673         changes.  Update operation list to match current support.
2674
2675 2004-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
2676
2677         * config/s390/s390.c (struct s390_frame_layout): New struct as element
2678         of struct machine_function.
2679         (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
2680         changed all uses.
2681         (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
2682         changed all uses.
2683         (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
2684         (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
2685         (s390_frame_area, s390_register_info): New functions.
2686         (s390_optimize_prolog): Renamed to s390_optimize_prologue.  Added check
2687         for base register.
2688         (s390_return_addr_rtx, s390_return_address_offset)
2689         (s390_va_start, s390_gimplify_va_arg)
2690         (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
2691         layouts.
2692         (s390_frame_info): Functionality partly moved to s390_register_info.
2693         Made adaptions for new stack layout.
2694         (save_gprs, restore_gprs): Changed meaning of second parameter and
2695         adapted all callers.
2696
2697         * config/s390/s390.h (s390_backchain_string): New global variable.
2698         (MASK_BACKCHAIN): Removed definition.
2699         (TARGET_BACKCHAIN): Changed check.
2700         (TARGET_KERNEL_BACKCHAIN): New macro.
2701         (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
2702         (TARGET_OPTIONS): Added "backchain", "no-backchain" and
2703         "kernel-backchain".
2704         (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
2705
2706         * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
2707         as condition.  Adjusted for new stack layout.
2708
2709         * doc/invoke.texi: Added documentation for new option
2710         "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
2711         "-mno-backchain".
2712
2713 2004-08-12  Paul Brook  <paul@codesourcery.com>
2714
2715         * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
2716         (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
2717
2718 2004-08-12  David Daney  <ddaney@avtrex.com>
2719
2720         * java/gcj.texi:  Add subsection on signal usage.
2721
2722 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
2723
2724         * expr.c (move_by_pieces): Set alignment for move to minimum of
2725         MOVE_MAX_PIECES mode alignment and the largest non-slow mode
2726         alignment, but not less than the original alignment.
2727         (move_by_pieces_ninsns): Same.
2728         (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
2729         (store_by_pieces_1): Same.
2730
2731 2004-08-12  Diego Novillo  <dnovillo@redhat.com>
2732
2733         PR tree-optimization/16867
2734         * tree.c (is_global_var): New function.
2735         (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
2736         Call is_global_var.
2737         * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
2738         Update all users.
2739         (is_global_var): Declare.
2740         * tree-dfa.c (dump_variable): Display global and addressable
2741         attributes.
2742         (add_referenced_var): Clarify documentation when marking
2743         variables call-clobbered.
2744         * tree-flow-inline.h (is_call_clobbered): Call is_global_var
2745         instead of needs_to_live_in_memory.
2746         (mark_call_clobbered): If the variable is a tag, mark it
2747         DECL_EXTERNAL.
2748         * tree-gimple.c (is_gimple_reg): Don't check for
2749         TREE_ADDRESSABLE.
2750         (is_gimple_non_addressable): Likewise.
2751         * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
2752         needs to be marked call-clobbered.
2753         (setup_pointers_and_addressables): Call is_global_var instead
2754         of needs_to_live_in_memory.
2755         * tree-ssa-dce.c (need_to_preserve_store): Remove.
2756         Update all users with is_global_var.
2757         (mark_stmt_if_obviously_necessary): Fix processing of aliased
2758         stores.  Don't check the virtual definitions.  Rather, check
2759         whether the store is going into global memory.
2760         (find_obviously_necessary_stmts): Get the symbol from the PHI
2761         result.
2762         * tree-ssa-operands.c (get_call_expr_operands): Do not add
2763         clobbering may-defs if the call does not have side effects.
2764
2765 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
2766
2767         PR c++/16276
2768         * output.h (default_function_rodata_section,
2769         default_no_function_rodata_section): New prototypes.
2770         * target.h (struct gcc_target): Add asm_out.function_rodata_section.
2771         * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
2772         (TARGET_ASM_OUT): Add it.
2773         * varasm.c (default_function_rodata_section,
2774         default_no_function_rodata_section): New functions.
2775         * final.c (final_scan_insn): Call
2776         targetm.asm_out.function_rodata_section instead of
2777         readonly_data_section.
2778         * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
2779         * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
2780         * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
2781         * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
2782         Likewise.
2783         * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
2784         * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
2785         Likewise.
2786         * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
2787         Likewise.
2788         * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
2789         * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
2790         * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
2791
2792 2004-08-12  Paul Brook  <paul@codesourcery.com>
2793
2794         * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
2795         frame info.
2796         * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
2797         DWARF2_UNWIND_INFO.
2798
2799 2004-08-12  Ben Elliston  <bje@au.ibm.com>
2800
2801         PR target/16286
2802         * config/rs6000/altivec.h: Change vector to __vector throughout.
2803         (Except for the `vector' macro itself).
2804
2805 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
2806
2807         * genpreds.c: Add capability to generate predicate bodies as
2808         well as function prototypes.  Write function prototypes for
2809         the generic predicates too.
2810         (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
2811         (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
2812         (write_match_code, write_predicate_expr, write_one_predicate_function)
2813         (parse_option): New functions.
2814         (output_predicate_decls): Delete.
2815         (main): Read the machine description, process DEFINE_PREDICATE or
2816         DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
2817         as appropriate.
2818
2819         * genrecog.c (struct decision_test): Replace index with
2820         struct pred_data pointer.
2821         (next_index): Remove, unused.
2822         (pred_table, preds, special_mode_pred_table): Delete.
2823         (compute_predicate_codes, process_define_predicate): New functions.
2824         (validate_pattern, add_to_sequence, write_switch): Update for
2825         new data structures.
2826         (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
2827         Check both error_count and have_error.
2828
2829         * gensupport.c (in_fname, first_predicate): New globals.
2830         (define_pred_queue, define_pred_tail): New RTL-pattern queue.
2831         (predicate_table, last_predicate, old_pred_table)
2832         (old_special_pred_table): New statics.
2833         (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
2834         (add_predicate, init_predicate_table): New functions.
2835         (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
2836         (init_md_reader_args_cb): Use the global in_fname.  No need to zero
2837         it or max_include_len.  Call init_predicate_table.
2838         (read_rtx): Run the predicate queue after the attribute queue
2839         but before all the others.
2840         * gensupport.h (in_fname, struct pred_data, first_predicate)
2841         (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
2842         * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
2843         (DEFINE_SPECIAL_PREDICATE): New RTL codes.
2844         * dummy-conditions.c: Don't include bconfig.h, system.h,
2845         coretypes.h, tm.h, or system.h.  Do include stddef.h.
2846         Duplicate declaration of struct c_test from gensupport.h.
2847
2848         * Makefile.in (OBJS-common): Add insn-preds.o.
2849         (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
2850         (insn-preds.c, insn-preds.o): New rules.
2851         (s-preds): Also generate insn-preds.c.
2852         (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
2853         Update dependencies.
2854         (print-rtl.o, print-rtl1.o): Correct dependencies.
2855
2856         * recog.h: Delete prototypes of predicate functions.
2857
2858         * doc/md.texi (Predicates): New section with complete
2859         documentation of operand/operator predicates.  Remove some
2860         incomplete documentation of predicates from other places.
2861         * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
2862         PREDICATE_CODES; indicate that both are deprecated in favor
2863         of define_predicate/define_special_predicate.
2864
2865         * config/ia64/ia64.c: All predicate function definitions moved
2866         to ia64.md, except
2867         (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
2868         (ia64_expand_load_address, ia64_expand_move):
2869         Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
2870
2871         * config/ia64/ia64.md: All predicates now defined here.
2872         (symbolic_operand): Is now a special predicate.
2873
2874         * config/ia64/ia64.h: Declare ia64_section_threshold.
2875         (PREDICATE_CODES): Delete.
2876
2877 2004-08-12  Richard Henderson  <rth@redhat.com>
2878
2879         * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
2880         * c-semantics.c (add_stmt): Set it.
2881         * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
2882         before instantiating a variable sized type.
2883
2884 2004-08-12  Richard Henderson  <rth@redhat.com>
2885
2886         * stor-layout.c (round_up, round_down): Move ...
2887         * fold-const.c (round_up, round_down): ... here.  Use
2888         multiple_of_p to avoid any arithmetic at all.
2889
2890 2004-08-12  Richard Henderson  <rth@redhat.com>
2891
2892         * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
2893         (gimplify_init_ctor_preeval_1): New.
2894         (gimplify_init_ctor_preeval): New.
2895         (gimplify_init_ctor_eval): New.
2896         (gimplify_init_constructor): Use them.  Always gimplify the LHS
2897         object first.
2898
2899 2004-08-12  Ziemowit Laski  <zlaski@apple.com>
2900
2901         (This patch is part of merge of objc-improvements-branch
2902         into mainline.)
2903
2904         * doc/frontends.texi: Mention Objective-C++ in addition to
2905         Objective-C.
2906         * doc/install.texi: Add 'obj-c++' to list of configurable
2907         languages.
2908         * doc/invoke.texi: Rename Objective-C option headings to
2909         indicate they also apply to Objective-C++.  List file
2910         extensions for Objective-C++ sources.  Mention that
2911         ObjC and ObjC++ compilations may also use C and C++ options,
2912         respectively.  Point users to doc/standards.texi for
2913         further info on ObjC and ObjC++.
2914         * doc/sourcebuild.texi: Mention the objcp/ directory and
2915         the Objective-C++ sources it contains.
2916         * doc/standards.texi: Update link to Apple ObjC site;
2917         add link to gcc readings.html WWW doc.
2918
2919 2004-08-12  Alan Modra  <amodra@bigpond.net.au>
2920
2921         * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
2922         and 2004-07-14 changes.
2923
2924 2004-08-12  Paul Brook  <paul@codesourcery.com>
2925
2926         * doc/invoke.texi: Fix typo.
2927
2928 2004-08-11 Devang Patel  <dpatel@apple.com>
2929
2930         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
2931         and -no_dead_strip_inits_and_terms.
2932         (LINK_SPEC): Same.
2933         * doc/invoke.texi (Darwin Options): Document -dead_strip and
2934         -no_dead_strip_inits_and_terms.
2935
2936 2004-08-11  Paul Brook  <paul@codesourcery.com>
2937
2938         * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
2939         (arm_load_pic_register): ... to this.
2940         * config/arm/arm.c (arm_finalize_pic): Rename ...
2941         (arm_load_pic_register): ... to this.  Always output insns at the
2942         current location.  Load via low reg in thumb mode.
2943         (arm_expand_prologue): Call arm_load_pic_register.
2944         (thumb_expand_prologue): Ditto.
2945         * config/arm/arm.h (FINALIZE_PIC): Remove.
2946         * config/arm/arm.md (builtin_setjmp_receiver): Call
2947         arm_load_pic_register.
2948
2949 2004-08-11  Paul Brook  <paul@codesourcery.com>
2950
2951         * arm.c (thumb_force_lr_save): Add prototype.
2952         (thumb_compute_save_reg_mask): New function.
2953         (thumb_find_work_register): New function.
2954         (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
2955         (thumb_unexpanded_epilogue): Ditto.  Remove redundant code.
2956         Don't clobber r3 when removing pretend args.
2957         (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
2958         (thumb_output_function_prologue): Use new functions.
2959         (thumb_set_return_address): Use thumb_compute_save_reg_mask.
2960         * arm.h (THUMB_REG_PUSHED_P): Remove.
2961
2962 2004-08-11  James E Wilson  <wilson@specifixinc.com>
2963
2964         PR rtl-optimization/16490
2965         * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
2966         global_live_at_end for new basic block if already set for other blocks.
2967
2968 2004-08-11 David Edelsohn  <edelsohn@gnu.org>
2969
2970         * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
2971
2972         * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
2973         (mfcr rlwinm rlwinm patterns): Set length to 12.
2974
2975 2004-08-11  Andrew MacLeod  <amacleod@redhat.com>
2976
2977         * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
2978         get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
2979         (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
2980         (start_ssa_stmt_operands): Delete.
2981         * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
2982         struct stmt_operands_d.
2983         (build_ssa_operands): New extern entry point.
2984         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
2985         building code, replace with create_ssa_artficial_load_stmt().
2986         * tree-ssa-operands.c (struct voperands_d): Delete.
2987         (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
2988         (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
2989         (free_uses, free_defs, free_vuses, free_v_may_defs,
2990         free_v_must_defs): Remove dealloc parameter.
2991         (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
2992         (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
2993         finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
2994         vector comparisons, ssa_name reuse, and allocations here.
2995         (verify_start_operands): Delete.
2996         (finalize_ssa_stmt_operands): Set new operands by calling finalize
2997         routines.
2998         (start_ssa_stmt_operands): Move from tree-flow-inline.h.
2999         (append_def, append_usei): Simplify to simple accumulation.
3000         (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
3001         duplicates and simple accumulation.
3002         (free_ssa_operands): Free vectors in a stmt_operand structure.
3003         (build_ssa_operands): New. Create a new stmt_operand structure from
3004         a stmt and an old set of stmt_operands.
3005         (get_stmt_operands): Simplify and call build_ssa_operands.
3006         (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
3007         get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
3008         add_call_read_ops): Don't pass prev_vops around anymore.
3009         (note_addressable): Return if no stmt annotation.
3010         (copy_virtual_operands): Access v_may_def operands through a struct.
3011         (create_ssa_artficial_load_stmt): New.  Create a load stmt for DOM's
3012         hash tables without treating the stmt as a real stmt.
3013         * tree-ssa-operands.h (struct v_may_def_operand_type): New.  Access
3014         v_may_def def and use through a struct instead of 2 array elements.
3015         (struct v_may_def_optype_d): Use v_may_def_operand_type.
3016         (struct stmt_operands_d): New.  Struct for storing all operand vectors.
3017
3018 2004-08-11  Nick Clifton  <nickc@redhat.com>
3019
3020         * config/arm/arm.c (arm_is_longcall_p): Update comment describing
3021         this funciton's behaviour.  Return true when the current function
3022         has a section attribute and -mlong-calls is in effect.
3023         * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
3024         short-call marker when -mlong-calls is in effect and the function
3025         has a section attribute.
3026
3027 2004-08-10  Zack Weinberg  <zack@codesourcery.com>
3028
3029         * stmt.c (expand_return): If asked to return the RESULT_DECL,
3030         just call expand_value_return on result_rtl.
3031
3032 2004-08-10  Richard Henderson  <rth@redhat.com>
3033
3034         * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
3035         * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
3036         * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
3037         (add_location_or_const_value_attribute): ... not here.  Use
3038         loc_descriptor_from_tree if possible.
3039         (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
3040         Simplify address handling.  Handle DECL_VALUE_EXPR.  Handle register
3041         values specially.
3042         (loc_descriptor_from_tree): New.  Update callers.
3043         * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
3044         * gimplify.c (gimplify_decl_expr): Lower variable sized types to
3045         pointer plus dereference.  Set DECL_VALUE_EXPR.  Set save_stack.
3046         (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
3047         and BUILT_IN_STACK_RESTORE.
3048         (gimplify_expr): Lower DECL_VALUE_EXPR decls.
3049         * stmt.c (expand_stack_alloc): Remove.
3050         * tree-mudflap.c (mx_register_decls): Don't look for
3051         BUILT_IN_STACK_ALLOC.
3052         * tree-nested.c (convert_local_reference): Likewise.
3053         * tree.h (DECL_VALUE_EXPR): New.
3054
3055 2004-08-10  Richard Henderson  <rth@redhat.com>
3056
3057         * stor-layout.c (round_up): Check for 0/1 before dividing.
3058         (round_down): Likewise.
3059
3060         * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
3061
3062 2004-08-09  Mark Mitchell  <mark@codesourcery.com>
3063
3064         * config.gcc (arm*-*-eabi*): New target.
3065         * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
3066         (TARGET_LIB_INT_CMP_BIASED): Likewise.
3067         * expmed.c (expand_divmod): Try a two-valued divmod function as a
3068         last resort.
3069         * gthr.h: Remove bogus tokens at end of #pragma.
3070         * optabs.c (expand_twoval_binop_libfunc): New function.
3071         (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
3072         (prepare_float_lib_cmp): Try reversing the condition.
3073         (debug_optab_libfuncs): New function.
3074         * optabs.h (expand_twoval_binop_libfunc): Declare.
3075         * config/arm/arm.c (arm_init_libfuncs): New function.
3076         (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
3077         (TARGET_INIT_LIBFUNCS): Define it.
3078         * config/arm/arm.h (TARGET_BPABI): New macro.
3079         * config/arm/arm-protos.h
3080         (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
3081         * config/arm/bpabi.S: New file.
3082         * config/arm/bpabi.c: Likewise.
3083         * config/arm/bpabi.h: Likewise.
3084         * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
3085         (__aeabi_drsub): Likewise.
3086         (__aeabi_dsub): Likewise.
3087         (__aeabi_dadd): Likewise.
3088         (__aeabi_ui2d): Likewise.
3089         (__aeabi_i2d): Likewise.
3090         (__aeabi_f2d): Likewise.
3091         (__aeabi_dmul): Likewise.
3092         (__aeabi_ddiv): Likewise.
3093         (__aeabi_cdrcmple): Likewise.
3094         (__aeabi_cdcmpeq): Likewise.
3095         (__aeabi_cdcmple): Likewise.
3096         (__aeabi_dcmpeq): Likewise.
3097         (__aeabi_dcmplt): Likewise.
3098         (__aeabi_dcmple): Likewise.
3099         (__aeabi_dcmpge): Likewise.
3100         (__aeabi_dcmpgt): Likewise.
3101         (__aeabi_dcmpun): Likewise.
3102         (__aeabi_d2iz): Likewise.
3103         (__aeabi_d2uiz): Likewise.
3104         (__aeabi_d2f): Likewise.
3105         * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
3106         (__aeabi_frsub): Likewise.
3107         (__aeabi_fsub): Likewise.
3108         (__aeabi_fadd): Likewise.
3109         (__aeabi_ui2f): Likewise.
3110         (__aeabi_i2f): Likewise.
3111         (__aeabi_fmul): Likewise.
3112         (__aeabi_fdiv): Likewise.
3113         (__aeabi_cfrcmple): Likewise.
3114         (__aeabi_cfcmpeq): Likewise.
3115         (__aeabi_cfcmple): Likewise.
3116         (__aeabi_fcmpeq): Likewise.
3117         (__aeabi_fcmplt): Likewise.
3118         (__aeabi_fcmple): Likewise.
3119         (__aeabi_fcmpge): Likewise.
3120         (__aeabi_fcmpgt): Likewise.
3121         (__aeabi_fcmpun): Likewise.
3122         (__aeabi_f2iz): Likewise.
3123         (__aeabi_f2uiz): Likewise.
3124         * config/arm/lib1funcs.asm (ARM_CALL): New macro.
3125         (__aeabi_uidivmod): New function or alias.
3126         (__aeabi_idivmod): Likewise.
3127         (__aeabi_idiv0): Likewise.
3128         (__aeabi_ldiv0): Likewise.
3129         (__aeabi_llsr): Likewise.
3130         (__aeabi_lasr): Likewise.
3131         (__aeabi_llsl): Likewise.
3132         (bpabi.S): Include it.
3133         * config/arm/libgcc-bpabi.ver: New file.
3134         * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
3135         (LINK_SPEC): Remove.
3136         * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
3137         __aeabi_ulcmp.
3138         * config/arm/t-bpabi: New file.
3139         * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
3140         (TARGET_LIB_INT_CMP_BIASED): Likewise.
3141
3142 2004-08-10  David Edelsohn  <edelsohn@gnu.org>
3143
3144         * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
3145         * config/rs6000/rs6000.md (clrmemsi): New pattern.
3146         * config/rs6000/rs6000.c (expand_block_clear): New function.
3147         (expand_block_move): Convert alignment to bits.  Use SImode and
3148         HImode for unaligned addresses if not STRICT_ALIGNMENT.
3149
3150 2004-08-10  Caroline Tice  <ctice@apple.com>
3151
3152         * varasm.c (unlikely_section_label): New global variable.
3153         (unlikely_text_section_name): New global variable.
3154         (text_section):  Remove alignment statement.
3155         (unlikely_text_section): Remove alignment statement; use
3156         unlikely_section_label rather than hard-coded string.
3157         (assemble_start_function): Initialize unlikely_section_label and
3158         unlikely_text_section_name;  make sure cold section is properly
3159         aligned at start of function; output unlikely_section_label if
3160         appropriate.
3161
3162 2004-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
3163
3164         * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
3165         * config/s390/s390.c (s390_canonicalize_comparison): New function.
3166         * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
3167         * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
3168         "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
3169         ("*tmqi_mem"): Remove SUBREG from pattern.
3170         ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
3171         ("*andsi3_cconly"): Likewise.
3172
3173 2004-08-10  H.J. Lu  <hongjiu.lu@intel.com>
3174
3175         PR target/16909
3176         * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
3177
3178 2004-08-10  Janis Johnson  <janis187@us.ibm.com>
3179
3180         * doc/sourcebuild.texi (compat testing): Document available test
3181         framework commands.  Use the preferred spelling of DejaGnu.
3182
3183 2004-08-10  Daniel Berlin <dberlin@dberlin.org>
3184
3185         * lambda.h: Add matrix type, and prototypes for remainder of
3186         matrix and vector functions.
3187         (lambda_vector_mult_const): New function.
3188         (lambda_vector_negate): Ditto.
3189         (lambda_vector_add): Ditto.
3190         (lambda_vector_add_mc): Ditto.
3191         (lambda_vector_copy): Ditto.
3192         (lambda_vector_zerop): Ditto.
3193         (lambda_vector_equal): Ditto.
3194         (lambda_vector_min_nz): Ditto.
3195         (lambda_vector_first_nz): Ditto.
3196         (lambda_vector_matrix_mult): Ditto.
3197         * lambda-mat.c: New file.
3198         * Makefile.in (lambda-mat.o): New.
3199
3200 2004-08-10  Andrew MacLeod  <amacleod@redhat.com>
3201
3202         * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
3203         after linking stmt into the program.
3204         (bsi_remove): Don't call modify_stmt.
3205         * tree-complex.c (update_complex_assignment,
3206         expand_complex_comparison): Call modify_stmt after changing the stmt.
3207         * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
3208         removing the stmt.
3209         * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
3210         the stmt, and only if needed.
3211         * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
3212         expression.
3213         (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
3214         (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
3215         (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
3216         (eliminate_redundant_computations): Don't pass an annotation. Call
3217         modify_stmt rather than setting the annotation directly.
3218         (record_equivalences_from_stmt): Remove unused local 'j'.
3219         (cprop_operand): Take a stmt rather than an annotation as a parameter.
3220         Call modify_stmt.
3221         (cprop_into_stmt): Pass stmt rather than annotation.
3222         (update_rhs_and_lookup_avail_expr): Call modify_stmt.
3223         * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
3224         modify_stmt.
3225         * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
3226
3227 2004-08-10  Jason Merrill  <jason@redhat.com>
3228
3229         PR middle-end/16948
3230         * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
3231         the RESULT_DECL.
3232
3233 2004-08-10  Geoffrey Keating  <geoffk@apple.com>
3234
3235         * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
3236         hash function.
3237
3238 2004-08-10  Roger Sayle  <roger@eyesopen.com>
3239
3240         * config/mips/mips.md: New reciprocal square root patterns that
3241         match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
3242
3243 2004-08-10  Paul Brook  <paul@codesourcery.com>
3244
3245         * config/arm/arm-protos.h (arm_set_return_address,
3246         thumb_set_return_address): Add prototypes.
3247         * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
3248         * config/arm/arm.c (arm_compute_func_type,
3249         use_return_insn, arm_compute_save_reg0_reg12_mask,
3250         arm_compute_save_reg_mask, arm_output_function_prologue,
3251         arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
3252         current_function_calls_eh_return.
3253         (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
3254         old eh code.
3255         (arm_set_return_address, thumb_set_return_address): New functions.
3256         * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
3257         ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
3258         * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
3259         (epilogue): Use the stackadj register.
3260         (eh_return, arm_eh_return, thumb_eh_return): New pattern.
3261
3262 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
3263
3264         PR target/3144
3265         * expr.c (move_by_pieces_ninsns): Add max_size argument.
3266         (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
3267         (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
3268         (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
3269         but using MOVE_RATIO.
3270         (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
3271         (can_store_by_pieces): Change max_size type to unsigned int.
3272         (store_by_pieces_1): Likewise.  Pass max_size to
3273         move_by_pieces_ninsns.
3274         * config/s390/s390.h (STORE_BY_PIECES_P): Define.
3275         * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
3276         to move_by_pieces_ninsns.
3277         (STORE_BY_PIECES_P): Define.
3278         * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
3279         to move_by_pieces_ninsns.
3280         * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
3281
3282         * config/i386/i386.h (CLEAR_RATIO): Define.
3283
3284 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
3285
3286         * expr.c (expand_expr_real_1): Add back code that was not dead.
3287
3288 2004-08-09  Andrew Pinski  <apinski@apple.com>
3289
3290         * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
3291         which is found to be compatible before returning the aliasing set.
3292
3293 2004-08-09  Daniel Jacobowitz  <dan@debian.org>
3294
3295         * ggc-zone.c (struct alloc_zone): Add statistics counters.
3296         (always_collect): New flag.
3297         (ggc_alloc_zone_1): Update statistics support.  Don't include
3298         overhead in allocated counter.
3299         (sweep_pages): Update allocated counter for large pages.  Don'y
3300         include overhead.
3301         (ggc_collect_1): Always collect.
3302         (ggc_collect): Honor always_collect flag.  Sum all zones to decide
3303         whether to collect.
3304         (SCALE, LABEL): New macros.
3305         (ggc_print_statistics): Add statistics support.
3306
3307 2004-08-09  Roger Sayle  <roger@eyesopen.com>
3308
3309         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
3310         (init_expmed): Fix potential overrun problem with "all.reg".
3311         (expand_sdiv2_pow2): Add an alternate implementation for signed
3312         division, if the target provides a suitable conditional move insn.
3313
3314 2004-08-09  Paul Brook  <paul@codesourcery.com>
3315         Richard Henderson  <rth@redhat.com>
3316
3317         * unwind-dw2.c (uw_install_context_1): Update target saved stack
3318         pointer.
3319
3320 2004-08-09  Geoffrey Keating  <geoffk@apple.com>
3321
3322         * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
3323         Check DATA limit only if there's no AS limit.  Ignore insanely
3324         low DATA limits.
3325         (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
3326         but take care that the AS limit isn't overrun.
3327         * doc/invoke.texi: Update documentation of min-heapsize parameter.
3328
3329 2004-08-09  Jeff Law  <law@redhat.com>
3330
3331         * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
3332         (tree-ssa-threadupdate.o): Add dependencies.
3333         * tree-ssa-threadupdate.c: New file.
3334         * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
3335         (rewrite_vars_out_of_ssa): Remove prototype.
3336         (cleanup_tree_cfg): Returns a bool.
3337         * tree.h (thread_through_all_blocks): Prototype.
3338         * tree-outof-ssa.c  (SSANORM_*): Move into here.
3339         (remove_ssa_form): Now static.
3340         (rewrite_vars_out_of_ssa): Kill.
3341         * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
3342         * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
3343         (remove_ssa_form, register_partitions_for_vars): Kill declarations.
3344         * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
3345         anything was changed.
3346         * tree-phinodes.c (add_phi_arg): Get the block for the PHI
3347         from the PHI's annotation rather than the edge associated with
3348         the new argument.
3349         * tree-ssa-dom.c (redirection_edges): Kill.
3350         (redirect_edges_and_update_ssa_graph): Kill.
3351         (tree_ssa_dominator_optimize): Do not reset forwardable flag
3352         for blocks anymore.  Do not initialize redirection_edges.
3353         Call thread_through_all_blocks.  Simplify code for cleanup
3354         of the CFG and iterating.  No longer call cleanup_tree_cfg
3355         outside the iteration loop.
3356         (thread_across_edge): No longer mess with forwardable blocks.
3357
3358 2004-08-09  Zack Weinberg  <zack@codesourcery.com>
3359
3360         * explow.c (memory_address): Use memory_address_p.
3361         * recog.c (general_operand): Likewise.
3362         * regrename.c: No need to define REG_OK_STRICT.
3363
3364 2004-08-09  Steven Bosscher  <stevenb@suse.de>
3365
3366         * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
3367         New timers.
3368         * gcse.c: Include timevar.h.
3369         (const_prop_count, copy_prop_count): Rename to global_const_prop_count
3370         and global_copy_prop_count.
3371         (local_const_prop_count, local_copy_prop_count): New static globals.
3372         (gcse_main): Set the right timevar for each pass.
3373         (cprop_jump): Increment global_const_prop_count when a constant is
3374         propagated.  Add "GLOBAL" to dump output.
3375         (cprop_insn): Increment global_const_prop_count when a constant is
3376         propagated, or global_copy_prop_count when a copy is propagated.
3377         (do_local_cprop): Likewise for local_const_prop_count and
3378         local_copy_prop_count.
3379         (one_cprop_pass): Initialize const/cprop counters to zero.
3380         Print out results of local and global const/cprop separately.
3381         (bypass_block): Break over-length line.
3382         * Makefile.in (gcse.o): Add TIMEVAR_H dependency.  Fix dependencies
3383         for bb-reorder.o and tracer.o.
3384
3385 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
3386
3387         * Makefile.in (GTFILES): Remove stmt.c
3388         (stmt.o): Do not depend on gt-stmt.h.
3389         * emit-rtl.c (emit_line_note): Do not call
3390         set_file_and_line_for_stmt.
3391         * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
3392         do everything.
3393         * function.c (free_after_parsing): Do not free STMT field.
3394         (allocate_struct_function): Do not call init_stmt_for_function.
3395         (assign_stack_temp_for_type): Do not accept values of keep
3396         other than 0 or 1.
3397         (init_temp_slots): Do not initialize removed variables.
3398         * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
3399         and X_VAR_TEMP_SLOT_LEVEL fields.
3400         * rtl.h (set_file_and_line_for_stmt): Remove.
3401         * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
3402         struct stmt_status, cond_stack, case_stack, nesting_stack,
3403         nesting_depth, emit_locus, set_file_and_line_for_stmt,
3404         same_case_target_p, init_stmt_for_function, emit_nop,
3405         expand_start_cond, expand_start_elseif, expand_start_else,
3406         expand_elseif, expand_end_cond): Remove.
3407         (preserve_subexpressions_p): Remove references to CFUN->STMT.
3408         (expand_start_case, expand_end_case_type): Remove, merge into...
3409         (expand_case): ... this one, including other bits from
3410         expand_expr_real_1.  Inline same_case_target_p.  Turn members
3411         of CASE_STACK into local variables.
3412         (emit_case_bit_tests): Inline same_case_target_p.
3413         (add_case_node): Add HEAD argument, return new head of the list,
3414         do not handle default label here.
3415         * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
3416         expand_start_elseif, current_nesting_level, expand_start_case,
3417         expand_end_case_type, expand_end_case, add_case_node,
3418         init_stmt_for_function, expand_elseif): Remove prototypes.
3419         (expand_case): Add prototype.
3420
3421 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
3422
3423         * expr.c (expand_expr_real_1): Use optab_for_tree_code.
3424
3425 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
3426
3427         * expr.c (var_rtx): Remove.
3428         (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
3429         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
3430         TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
3431         Abort.
3432         (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
3433         * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
3434         * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
3435
3436 2004-08-08  Mostafa Hagog  <mustafa@il.ibm.com>
3437         Ayal Zaks <zaks@il.ibm.com>
3438
3439         * common.opt (freschedule-modulo-scheduled-loops): New flag.
3440         * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
3441         * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
3442         when -freschedule-modulo-scheduled-loops flag is not specified.
3443         (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
3444         add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
3445         More accurate placing of insn in row of partial schedule.
3446         (ps_insn_find_column): New function.
3447         * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
3448         * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
3449         (schedule_region): Use sched_is_disabled_for_current_region_p.
3450         * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
3451
3452 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
3453
3454         * config/i386/i386.c (ix86_expand_clrmem): Revert the last
3455         change.
3456
3457 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
3458
3459         * config/i386/i386.c (ix86_expand_clrmem): Properly call
3460         gen_strset for 64bit target.
3461
3462 2004-08-07  Olivier Hainque  <hainque@act-europe.fr>
3463
3464         * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
3465
3466 2004-08-07  Jason Merrill  <jason@redhat.com>
3467
3468         Make return in memory explicit.
3469         * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
3470         (assign_parm_find_data_types): Remove code for old front end
3471         invisible reference handling.
3472         (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
3473         (expand_function_end): Likewise.
3474         * gimplify.c (gimplify_return_expr): Handle a dereferenced
3475         RESULT_DECL.
3476         * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
3477         (declare_return_variable): Handle DECL_BY_REFERENCE.
3478         * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
3479         (cp_genericize_r): Use convert_from_reference.
3480         Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
3481         (cp_genericize): Handle the RESULT_DECL.  Unset TREE_ADDRESSABLE.
3482
3483         * c-common.c (c_warn_unused_result): Check TREE_USED before
3484         warning about a CALL_EXPR with an unused value.
3485
3486 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
3487
3488         * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
3489         to the compiler.  Use -fshort-wchar by default.
3490
3491 2004-08-06  Pat Haugen  <pthaugen@us.ibm.com>
3492
3493         * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
3494         * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
3495         threshhold.
3496         * doc/invoke.texi (param): Document min-crossjump-insns.
3497
3498 2004-08-06  Richard Sandiford  <rsandifo@redhat.com>
3499
3500         PR c/13282
3501         * c.opt (Wmissing-field-initializers): New option.
3502         * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
3503         * c-typeck.c (pop_init_level): Guard the missing field warning with
3504         warn_missing_field_initializers rather than extra_warnings.
3505         * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
3506         some of the explanation from...
3507         (-Wextra): ...here.  Say that the missing field warning can be
3508         seperately controlled by -Wmissing-field-initializers.
3509
3510 2004-08-06  Paolo Bonzini  <bonzini@gnu.org>
3511
3512         * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
3513         * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
3514         * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
3515         * tree.def (ENTRY_VALUE_EXPR): Remove.
3516
3517 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
3518
3519         * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
3520         the places where it is actually needed.  Don't use repz; stosb
3521         for -Os with sufficiently small constant sizes.
3522         For sufficiently small repz; stos{l,q} repeat counts use a sequence
3523         of stos{l,q} instructions instead.
3524
3525 2004-08-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3526
3527         PR tree-optimization/16807
3528         * loop-iv.c (dump_iv_info): Dump invariants correctly.
3529         (iv_subreg, iv_extend): Express value of invariant purely in
3530         base field.
3531
3532 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
3533
3534         * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
3535         (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
3536
3537 2004-08-06  Roman Zippel  <zippel@linux-m68k.org>
3538
3539         * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
3540         * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
3541         pre_dec_operand.
3542         * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
3543         pattern until reload is finished to allow better code generation
3544         and split them completely into separate instrunctions.
3545         (*andsi3_split): New pattern.
3546
3547 2004-08-05  Mark Mitchell  <mark@codesourcery.com>
3548
3549         * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
3550         Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P.  Set
3551         DECL_VISIBLITY.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
3552         * tree.h (handle_dll_attribute): Declare.  Test
3553         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
3554         * c-common.h (c_determine_visibility): Declare.
3555         * c-common.c (c_determine_visibility): New function.
3556         * c-decl.c (finish_decl): Use it.
3557         (finish_function): Likewise.
3558         * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
3559         zero, by default.  Use #if, not #ifdef, to test it.
3560         * config/arm/arm.c (arm_attribute_table): Use
3561         handle_dll_attribute.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
3562         #if.
3563         * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
3564         * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
3565         to 1.
3566         * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
3567         * config/i386/i386.c (ix86_attribute_table): Use
3568         handle_dll_attribute for dllimport/dllexport.  Test
3569         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
3570         * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
3571         * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
3572         it to 1.
3573         * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
3574         with #if.
3575         * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
3576         it to 1.
3577         * doc/extend.texi (dllexport): Clarify and correct documentation.
3578         (dllimport): Likewise.
3579         * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
3580         handle_dll_attribute.
3581
3582 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3583
3584         * tree-ssa-loop-manip.c: New file.
3585         * Makefile.in (tree-ssa-loop-manip.o): Add.
3586         * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
3587         Declare.
3588         * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
3589         form.
3590         (tree_ssa_loop_done): Verify loop closed ssa form.
3591         * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
3592
3593 2004-08-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3594
3595         * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
3596         pa_asm_output_aligned_local): New functions.
3597         * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
3598         pa_asm_output_aligned_common and pa_asm_output_aligned_local.
3599         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
3600         pa_asm_output_aligned_common.
3601         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
3602         * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
3603         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
3604         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
3605         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
3606         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
3607         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
3608         * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
3609         common data.
3610
3611 2004-08-05  Andrew Pinski  <apinski@apple.com>
3612
3613         * objc/objc-act.c (build_objc_string_object): Mark the address
3614         expression as constant.
3615
3616 2004-08-05  David Edelsohn  <edelsohn@gnu.org>
3617
3618         * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
3619         and mask64_operand thinkos.  Handle ZERO_EXTRACT.  Handle
3620         SIGN_EXTEND / ZERO_EXTEND of MEM.  Handle rlwinm patterns.
3621
3622 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
3623
3624         * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
3625         Remove definitions conditioned on USE_GNULIBC_1 or conditioned
3626         out, and associated obsolete comments.
3627
3628 2004-08-05  Nathan Sidwell  <nathan@codesourcery.com>
3629
3630         * tree.h (force_fit_type): Return a tree, take three flags.
3631         * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
3632         TREE_CONSTANT_OVERFLOW here.
3633         (int_const_binop, const_binop): Adjust.
3634         (size_int_type): Do sign extension here.
3635         (fold_convert_const, optimize_bit_field_compare,
3636         decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
3637         fold_negate_const, fold_abs_const, fold_not_const): Adjust.
3638         * tree.c (size_in_bytes, int_fits_type_p): Adjust.
3639
3640 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3641
3642         PR tree-optimization/16864
3643         * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
3644         for ssa names without default_def.
3645
3646 2004-08-05  Richard Sandiford  <rsandifo@redhat.com>
3647
3648         * config/i386/i386.c (ix86_expand_prologue): If the function uses a
3649         frame pointer, restore eax with an ebp-relative address.
3650
3651 2004-08-04  Geoffrey Keating  <geoffk@apple.com>
3652
3653         PR 14516
3654         * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
3655         * c-common.h (make_rtl_for_local_static): Delete.
3656         * c-decl.c (shadow_tag_warned): Clean up comment.
3657         (finish_decl): Clean up spacing.  Use set_user_assembler_name when
3658         appropriate.  Don't pass asmspec to rest_of_decl_compilation.
3659         * c-semantics.c (make_rtl_for_local_static): Delete.
3660         * expr.c (init_block_move_fn): Use set_user_assembler_name.
3661         (init_block_clear_fn): Likewise.
3662         * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
3663         expect it to be in DECL_ASSEMBLER_NAME.  Update callers in many files.
3664         * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
3665         * tree.h (make_decl_rtl): Remove second parameter.
3666         (set_user_assembler_name): New.
3667         * varasm.c (set_user_assembler_name): New.
3668         (make_decl_rtl): Remove second parameter.  Update callers in many
3669         files.
3670
3671 2004-08-05  Adam Nemet  <anemet@lnxw.com>
3672
3673         * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
3674         (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*.  Update
3675         to LynxOS 4.0.
3676         * gthr-lynx.h: New file.
3677         * config/lynx-ng.h: Remove file.
3678         * config/lynx.h: Update to LynxOS 4.0.
3679         * config/t-lynx: New file.
3680         * config/i386/lynx-ng.h: Remove file.
3681         * config/i386/lynx.h: Update to LynxOS 4.0.
3682         * config/rs6000/lynxbase.h: Remove file.
3683         * config/rs6000/lynx.h: Update to LynxOS 4.0.
3684         * config/rs6000/t-lynx: New file.
3685         * doc/install.texi (Options specification): Remove reference to
3686         LynxOS from systems where --with-gnu-as makes a difference.
3687
3688 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
3689
3690         * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
3691         __UINTMAX_TYPE__.
3692         * c-cppbuiltin.c (builtin_define_stdint_macros): New.  Define
3693         __INTMAX_MAX__.
3694         (c_cpp_builtins): Call it.
3695         * doc/cpp.texi: Update.
3696
3697 2004-08-04  David Edelsohn  <edelsohn@gnu.org>
3698
3699         * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
3700         cost.
3701
3702 2004-08-04  Jan Hubicka  <jh@suse.cz>
3703
3704         * basic-block.h (profile_staus): New global variable.
3705         * cfg.c (profile_status): Declare.
3706         (check_bb_profile): Break out from ....; use profile_status
3707         (dump_flow_info): ... here.
3708         * cfgbuild.c (find_basic_blocks): Set profile_status.
3709         * cfgexpand.c (tree_expand_cfg): Likewise.
3710         * predict.c (estimate_probability): Likewise.
3711         * profile.c (branch_prob): Likewise.
3712         * tree-cfg.c (build_tree_cfg): Likewise.
3713         (dump_function_to_file): Use check_bb_profile.
3714         * tree-pretty-print (dump_bb_header): Likewise.
3715         * tree-profile.c (do_tree_profiling): Cleanup.
3716
3717 2004-08-04  Zack Weinberg  <zack@codesourcery.com>
3718
3719         * Makefile.in (RTL_BASE_H, RTL_H): Correct.
3720         (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
3721         (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
3722         (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
3723         (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
3724         (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
3725         (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
3726         (ggc-none.o, errors.o): Move rule to generators section;
3727         correct dependencies.
3728         (min-insn-modes.o): Move rule to generators section; remove
3729         unnecessary explicit command; correct dependencies.
3730         (print-rtl.o, print-rtl1.o): Correct dependencies.
3731         ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
3732         (mostlyclean): Update.
3733
3734         * errors.c: Include bconfig.h not config.h.  Correct comment.
3735         * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
3736         * ggc-none.c: Include bconfig.h; not config.h or tm.h.
3737         * print-rtl.c: Don't include tm_p.h.
3738
3739         * rtl.h: Move forward-decl of struct function down where it's
3740         needed.  Include genrtl.h #ifndef GENERATOR_FILE, not
3741         #ifndef NO_GENRTL_H.  Remove unnecessary #ifdef BUFSIZ statements.
3742
3743 2004-08-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3744             Jeff Law  <law@redhat.com>
3745
3746         * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
3747         * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
3748         * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
3749         manipulate the duplicated ssa names.
3750         * tree-ssanames.c (ssa_names_to_rewrite): New variable.
3751         (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
3752         unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
3753         New functions.
3754         (release_ssa_name): Do not release ssa names that may have multiple
3755         definitions.
3756         * tree.h (release_ssa_name_force, mark_for_rewrite,
3757         unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
3758         marked_ssa_names): Declare.
3759         * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
3760         (duplicate_blocks): Remove call to mark_defs_for_rewrite.
3761         Update call to rewrite_ssa_into_ssa.
3762
3763 2004-08-04  Mark Mitchell  <mark@codesourcery.com>
3764
3765         * defaults.h (TARGET_DECLSPEC): New macro.
3766         * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
3767         * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
3768         * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
3769         * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
3770         __declspec support.
3771         (TARGET_DECLSPEC): Define.
3772         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
3773         __declspec support.
3774         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
3775         __declspec support.
3776         (TARGET_DECLSPEC): Define.
3777         * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
3778         __declspec support.
3779         * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
3780         support.
3781         * doc/tm.texi (TARGET_DECLSPEC): Document.
3782
3783         * doc/extend.texi: Fix typo in comment.
3784
3785 2004-08-04  Paul Brook  <paul@codesourcery.com>
3786
3787         * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
3788         (TARGET_CXX): Use it.
3789         * target.h (struct gcc_target): Add cdtor_returns_this.
3790         * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
3791         (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
3792         * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
3793
3794 2004-08-03  Nathan Sidwell  <nathan@codesourcery.com>
3795
3796         * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
3797         low/high pair. Do range checking directly.
3798         (interpret_integer): Adjust.
3799
3800 2004-08-04  Nick Clifton  <nickc@redhat.com>
3801
3802         * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
3803         GCC ABI.
3804         * doc/invoke.texi: Document this new switch and also the -mrenesas
3805         switch.
3806
3807 2004-08-04  Nathan Sidwell  <nathan@codesourcery.com>
3808
3809         * cfglayout.c (insn_locators_initialize): Update the current
3810         location before initializing a location.
3811
3812 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
3813
3814         * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
3815         (dbxout_function_end): Return after emitting the "Lscope" symbol
3816         under the same conditions that this function formerly wasn't called.
3817         Add explanatory comments.
3818
3819         PR 14860
3820         * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
3821         on the new decl.
3822
3823         PR 13956
3824         * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
3825         functions, broken out of dbxout_block.
3826         (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
3827         stabs too, if it contains symbols.  Use the begin_label and
3828         the Lscope label (emitted by dbxout_function_end) for the
3829         range of this block.
3830
3831 2004-08-03  Nathanael Nerode  <neroden@gcc.gnu.org>
3832
3833         * doc/install.texi: Update autoconf version requirements.
3834
3835 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
3836
3837         * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
3838         * recog.c (general_operand, immediate_operand, nonmemory_operand)
3839         (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
3840         * regclass.c (record_reg_classes): Likewise.
3841         * reload.c (find_reloads): Likewise.
3842         * reload1.c (reload): Likewise.
3843
3844 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
3845
3846         * gensupport.c (init_md_reader_args_cb): Renamed from
3847         init_md_reader_args.  Add third option, callback function for
3848         parsing program-specific options.  Add diagnosis of incorrect
3849         number of input files.
3850         (init_md_reader): Fold into init_md_reader_args_cb.
3851         (init_md_reader_args): Now a thin wrapper around
3852         init_md_reader_args_cb.
3853         * gensupport.h: Update prototypes.
3854
3855         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
3856         * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
3857         * genrecog.c: No need to diagnose lack of an input file;
3858         init_md_reader_args will handle it.
3859         * genconditions.c: Likewise, and use init_md_reader_args.
3860         * genconstants.c: Likewise, and no need to call read_md_rtx.
3861
3862 2004-08-03  Joseph S. Myers  <jsm@polyomino.org.uk>
3863
3864         * c-decl.c (implicitly_declare): Diagnose incompatible implicit
3865         declarations.
3866
3867 2004-08-03  Mike Stump  <mrs@apple.com>
3868
3869         * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
3870         for frameworks.
3871         * doc/invoke.texi (Darwin Options): Update to reflect above.
3872
3873 2004-08-03  Roger Sayle  <roger@eyesopen.com>
3874
3875         PR middle-end/16790
3876         * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
3877         truncations, not just global truncations.
3878
3879 2004-08-03  Andrew Pinski  <apinski@apple.com>
3880
3881         PR bootstrap/16865
3882         * loop-iv.c (simplify_using_assignment): Initialize lhs.
3883
3884 2004-08-03  Paul Brook  <paul@codesourcery.com>
3885
3886         * gcc/doc/install.texi: Document MPFR requirement.
3887
3888 2004-08-03  Maciej W. Rozycki  <macro@linux-mips.org>
3889
3890         * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
3891         and mmap() explicitly instead of relying on preset autoconf cache
3892         variables.
3893         * configure: Regenerate.
3894
3895 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
3896
3897         PR target/16570
3898         * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
3899         to tmake_file.
3900         (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
3901         (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
3902         to tmake_file.
3903
3904         * config/i386/t-gmm_malloc: New file.
3905         * config/i386/t-pmm_malloc: Likewise.
3906
3907         * config/i386/xmmintrin.h: Include <mm_malloc.h>.
3908
3909 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
3910             Tanguy Fautrà <tfautre@pandora.be>
3911
3912         * config/i386/pmm_malloc.h: New file.
3913
3914 2004-08-03  Danny Smith  <dannysmith@users.sourceforge.net>
3915
3916         * config/i386/gmm_malloc.h: New file.
3917
3918 2004-08-03  Dale Johannesen  <dalej@apple.com>
3919
3920         * config/rs6000/rs6000.c (machopic_output_stub):  Align Darwin stubs.
3921         * c-common.c: Include opts.h.
3922         (c_common_get_alias_set): Fix check for a single input file.
3923         * toplev.c: Remove current_file_decl.
3924         * tree.h: Ditto.
3925
3926 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
3927
3928         * config.gcc (arm*-*-symbianelf*): New target.
3929         * config/arm/symbian.h: New file.
3930
3931         * gthr-gnat.c: Add visibility #pragmas.
3932         * gthr-gnat.h : Likewise.
3933         * gthr.h: Likewise.
3934         * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
3935         (__ffsDI2): Likewise.
3936         (__clzSI2): Likewise.
3937         (__ctzSI2): Likewise.
3938         (__ctzDI2): Likewise.
3939         (__popcountSI2): Likewise.
3940         (__popcountDI2): Likewise.
3941         (__paritySI2): Likewise.
3942         (__parityDI2): Likewise.
3943         * libgcc2.h: Add visibility #pragmas.
3944         (__clzDI2): Add prototype.
3945         (__clzSI2): Likewise.
3946         (__ctzSI2): Likewise.
3947         (__ffsDI2): Likewise.
3948         (__ffsSI2): Likewise.
3949         (__ctzDI2): Likewise.
3950         (__popcountSI2): Likewise.
3951         (__popcountDI2): Likewise.
3952         (__paritySI2): Likewise.
3953         (__parityDI2): Likewise.
3954         * unwind-dw2-fde.h: Add visibility #pragmas.
3955         * unwind.h: Likewise.
3956
3957 2004-08-03  David Edelsohn  <edelsohn@gnu.org>
3958             Dale Johannesen  <dalej@apple.com>
3959             Roger Sayle  <roger@eyesopen.com>
3960
3961         * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
3962         constants more accurately.  Adjust costs for FMA instructions.
3963         Add cases for most logical and float operations.  Recurse into
3964         most operands.
3965
3966 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
3967
3968         * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
3969
3970 2004-08-03  Pat Haugen  <pthaugen@us.ibm.com>
3971
3972         * ra-build.c (conflicts_between_webs): For webs that cross a call add
3973         conflicts to regs_invalidated_by_call.
3974
3975 2004-08-03  Paul Brook  <paul@codesourcery.com>
3976
3977         * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
3978
3979 2004-08-03  Jan Hubicka  <jh@suse.cz>
3980
3981         * coverage.c (tree_coverage_counter_ref): Fix computation of the new
3982         ARRAY_REF argument.
3983
3984 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
3985
3986         * arm-cores.def: Sort by architecture.  Add arm946es, arm966es,
3987         arm968es, arm10e, arm1020e, arm1022e.
3988         * invoke.texi: Update list of ARM cores.
3989         * arm-tune.md: Regenerate.
3990
3991 2004-08-03  Richard Earnshaw <rearnsha@arm.com>
3992
3993         * arm/gentune.sh: New file.
3994         * arm/t-arm: New file.
3995         * arm/arm-tune.md: New file (autogenerated).
3996         * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
3997         * arm.md (attribute tune): Delete.  Include arm-tune.md.
3998
3999 2004-08-03  Paolo Bonzini <bonzini@gnu.org>
4000
4001         * gcc.c (add_prefix, add_sysrooted_prefix): Remove
4002         penultimate parameter.  All callers adjusted.
4003         (struct prefix_list): Remove used_flag_ptr.
4004         (find_a_file): Do not set *pl->used_flag_ptr.
4005         (warn_B, warn_std_ptr): Remove.
4006
4007 2004-08-03  Yossi Markovich <yossim@il.ibm.com>
4008             Mostafa Hagog <mustafa@il.ibm.com>
4009
4010         * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
4011
4012 2004-08-02  Geoffrey Keating  <geoffk@apple.com>
4013
4014         * dwarf2out.c (output_call_frame_info): Don't change data format
4015         due to TARGET_USES_WEAK_UNWIND_INFO.  Always refer to the local
4016         label.  Use 'true' not '1'.
4017         * doc/install.texi (powerpc-*-darwin*): Mention cctools version
4018         required.
4019
4020 2004-08-02  Gabriel Dos Reis  <gdr@cs.tamu.edu>
4021
4022         * gdbinit.in: Reflect previous changes to rtunion_def.
4023
4024 2004-08-02  Roger Sayle  <roger@eyesopen.com>
4025
4026         * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
4027         -> "X % Y" is only valid for TRUNC_MOD_EXPR.
4028
4029 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4030
4031         * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
4032         vec_p_reserve.
4033         * langhooks.h (lang_hooks::builtin_function): Rename parameter
4034         from "class" to "bt_class".
4035
4036 2004-08-02  Paul Brook  <paul@codesourcery.com>
4037
4038         PR rtl-optimization/15068
4039         * flow.c (init_propagate_block_info): Check condition is reversible.
4040
4041 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4042
4043         * gengtype.h (options::info): Change type to const char *.
4044         (enum gc_used_enum): Move out of struct type scope.
4045         * gengtype.c (create_option): Convert initializer for option::info to
4046         appropiate type.
4047         (adjust_field_type, walk_type, write_func_for_structure,
4048         write_root, write_roots): Remove pointless cast.
4049
4050 2004-08-02  J"orn Rennecke <joern.rennecke@superh.com>
4051
4052         * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
4053
4054 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4055
4056         * rtl.h (union rtunion_def): Have all members  start with the
4057         prefix "rt_".
4058         (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
4059         X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
4060         X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
4061         XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
4062         access.
4063         * gengtype.c (adjust_field_rtx_def): Likewise.
4064         * rtlanal.c (loc_mentioned_in_p): Likewise.
4065
4066 2004-08-02  Richard Sandiford  <rsandifo@redhat.com>
4067
4068         * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
4069         Replace uses of mips/elf64.h with mips/elf.h
4070         * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
4071         (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
4072         (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
4073         (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
4074         (HANDLE_SYSV_PRAGMA): Delete.
4075         (ASM_OUTPUT_DEF): Fix formatting.
4076         * config/mips/elf64.h: Delete.
4077
4078 2004-08-01  Zack Weinberg  <zack@codesourcery.com>
4079
4080         * config/ia64/ia64.c (got_symbolic_operand): Do require a
4081         symbol+offset operand to have its offset be zero mod 0x3fff
4082         when GOT entries are in use.  Clarify logic in SYMBOL_REF
4083         case.  Clarify comments.
4084         (ia64_expand_load_address): Split a symbol+offset load when
4085         the offset is nonzero mod 0x3fff, not 0x1fff.
4086
4087 2004-08-01  Geoffrey Keating  <geoffk@apple.com>
4088
4089         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
4090         if trying to *store* to a non-offsettable address.
4091         * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
4092         a nonoffsettable address.
4093         (movdi_internal32): Don't move GPRs to a nonoffsettable address.
4094         Clean up.
4095         (movti_string): Don't move GPRs to a nonoffsettable address.
4096         (movti_ppc64): Don't move GPRs to a nonoffsettable address.  Clean up.
4097
4098 2004-08-02  Ben Elliston  <bje@au.ibm.com>
4099
4100         PR target/16155
4101         * config/rs6000/altivec.h: Replace typeof with __typeof__.
4102
4103 2004-08-01  Richard Henderson  <rth@redhat.com>
4104
4105         * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
4106         variable sized types.
4107
4108 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
4109
4110         * doc/invoke.texi: In the MIPS options section, remove the passage
4111         saying that -mexplicit-relocs is usually disabled for -mabicalls
4112         -fno-unit-at-a-time.
4113         * config/mips/mips.c (override_options): Remove the code that enforced
4114         this rule.
4115
4116 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
4117
4118         * config/mips/mips.md (cprestore): Provide two alternatives, one for
4119         an in-range offset and one for an out-of-range offset.  Wrap the latter
4120         in .set macro/.set nomacro if it's inside a .set nomacro block.
4121
4122 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
4123
4124         * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
4125         (mips_restore_gp): Declare.
4126         * config/mips/mips.c (mips_add_offset): Add a scratch register
4127         argument.  Reimplement in rtl only, reusing MIPS16 logic from
4128         mips_output_mi_thunk.
4129         (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
4130         to mips_add_offset.
4131         (mips_gp_save_slot): Delete.
4132         (mips_restore_gp): New function.
4133         (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
4134         * config/mips/mips.md (exception_receiver): Turn into a
4135         define_insn_and_split.  Use mips_restore_gp to do the split.
4136         (call_internal, call_value_internal, call_value_multiple_internal): Use
4137         mips_restore_gp to restore $gp.
4138
4139 2004-07-31  Andrew Pinski  <apinski@apple.com>
4140
4141         PR other/16842
4142         * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
4143
4144 2004-07-31  Joseph S. Myers  <jsm@polyomino.org.uk>
4145
4146         * c-decl.c (diagnose_mismatched_decls): Give error for external
4147         redeclaration of identifier declared with no linkage, not just
4148         warning with -Wtraditional.  Do not check DECL_CONTEXT to give
4149         error for redeclaration with no linkage.
4150
4151 2004-07-30  Geoffrey Keating  <geoffk@apple.com>
4152             Fariborz Jahanian <fjahanian@apple.com>
4153
4154         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
4155         non-offsettable addresses even for DImode.
4156         (rs6000_split_multireg_move): Cope with non-offsettable addresses
4157         being moved into multiple GPRs.
4158
4159         * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
4160         to 64.
4161         (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
4162         * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
4163         to 128.
4164         * config/rs6000/darwin-ldouble.c (isless): New macro.
4165         (inf): New macro.
4166         (nonfinite): New macro.
4167         (FPKINF): Delete.
4168         (_xlqadd): Completely rewrite.
4169         (_xlqmul): Correct overflow handling.
4170         (_xlqdiv): Correct overflow handling.
4171         * config/rs6000/darwin-ldouble-format: New file.
4172
4173 2004-07-30  Roger Sayle  <roger@eyesopen.com>
4174             Richard Henderson  <rth@redhat.com>
4175
4176         * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
4177         9 into the equivalent lea instruction.
4178
4179 2004-07-30  Richard Henderson  <rth@redhat.com>
4180
4181         * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
4182         with DECL_INITIAL if fb_lvalue.
4183         * tree-gimple.c (is_gimple_id): Add CONST_DECL.
4184         * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
4185         with <Cxxx>.
4186         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
4187
4188 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
4189
4190         * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
4191         pointer escapes through a function call, assume that the
4192         callee will dereference it.
4193         (add_pointed_to_var): Assume that VALUE is always an
4194         ADDR_EXPR.
4195         (collect_points_to_info_r): Only call add_pointed_to_var if
4196         the value is an ADDR_EXPR.
4197
4198 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
4199
4200         * tree-ssa-alias.c (create_alias_map_for): Do not get the
4201         alias set of the inner type of ARRAY_TYPEs.
4202
4203 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
4204
4205         * tree-ssa-ccp.c (visit_assignment): Move code to prevent
4206         setting a non-register to UNDEFINED right before the call to
4207         set_lattice_value.
4208
4209 2004-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
4210
4211         * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
4212
4213 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
4214
4215         * tree-ssa.c (verify_flow_sensitive_alias_info): When
4216         comparing points-to sets of different pointers, make sure the
4217         second pointer is actually referenced in the code.
4218
4219 2004-07-29  Zack Weinberg  <zack@codesourcery.com>
4220
4221         * config/ia64/ia64.c (setjmp_operand): Delete, unused.
4222         (got_symbolic_operand): Remove unreachable code.
4223         * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
4224         setjmp_operand; add entry for tls_symbolic_operand.
4225         * config/ia64/ia64-protos.h: Remove all prototypes of
4226         predicate functions.
4227
4228 2004-07-29  Mark Mitchell  <mark@codesourcery.com>
4229
4230         * c-common.h (lang_post_pch_load): New variable.
4231         * c-pch.c (lang_post_pch_load): Define it.
4232         (c_common_read_pch): Use it.
4233         * cgraphunit.c (record_call_1): Give the front end a chance to
4234         record additional needed entities when a variable is marked as
4235         needed.
4236         * tlink.c (recompile_files): Robustify.
4237         (scan_linker_output): If a symbol is assigned to a file,
4238         but after recompilation is not present there, issue an error
4239         message.
4240
4241 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4242
4243         * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
4244         Take orig_loop argument and pass it to set_level.
4245         (schedule_sm): Pass the correct orig_loop to force_move_till.
4246
4247 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4248
4249         * cfgloop.c (update_latch_info): Update dominator of the new block.
4250         (canonicalize_loop_headers, flow_loops_find): Do not free dominance
4251         info.
4252         * dominance.c (verify_dominators): Check that the dominance tree is
4253         connected.
4254         (recount_dominator): Ignore unreachable blocks.
4255         (iterate_fix_dominators): Cleanup old dominance information before
4256         recomputing it.
4257
4258 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
4259
4260         * tree-ssa-operands.c (get_expr_operands): Revert changes
4261         to ADDR_EXPR processing introduced by:
4262             2004-06-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4263             * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
4264
4265 2004-07-29  Joseph S. Myers  <jsm@polyomino.org.uk>
4266
4267         * doc/implement-c.texi: Add C90 subclause references.  Point to
4268         preprocessor documentation instead of duplicating it.  Add points
4269         only present in C90.  Fill in documentation for all points.
4270
4271 2004-07-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4272
4273         * pa.c (output_movb): Correct typo.
4274
4275 2004-07-29  Pat Haugen  <pthaugen@us.ibm.com>
4276
4277         * ra.h (single_reg_in_regclass): Declare.
4278         * ra.c (single_reg_in_regclass): Define.
4279         (first_hard_reg): New.
4280         (init_ra): Initialize single_reg_in_regclass.
4281         * ra-colorize.c (ok_class): New.
4282         (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
4283
4284 2004-07-29  Nathan Sidwell  <nathan@codesourcery.com>
4285
4286         * gcov-io.h: Allow zero tag as EOF indicator.
4287         (gcov_is_eof): Remove.
4288         (gcov_truncate): Remove.
4289         * gcov-io.c (gcov_seek): Always SEEK_SET.
4290         * libgcov.c (gcov_exit): Don't use gcov_truncate.  Write explicit
4291         EOF tag.
4292         * coverage.c (read_counts_file): Don't use gcov_is_eof.
4293         * gcov-dump.c (dump_file): Likewise.
4294         * gcov.c (read_graph_file, read_count_file): Likewise.
4295
4296         * c-decl.c (complete_array_type): Don't gratuitously copy
4297         maxindex.  Check it always has a type.
4298
4299 2004-07-29  Steven Bosscher  <stevenb@suse.de>
4300
4301         * rtl.c (currently_expanding_to_rtl): New.
4302         * rtl.h (currently_expanding_to_rtl): Export it.
4303         * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
4304
4305         * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
4306         inliner hack.
4307         * config/sh/sh.c: Replace rtx_equal_function_value_matters
4308         with currently_expanding_to_rtl.
4309         * config/sh/sh.md: Likewise.
4310         * config/ia64/ia64.c (got_symbolic_operand): Likewise.
4311
4312 2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
4313
4314         Introduce sh2a support.
4315         2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
4316         * config.gcc: Build multilibs for sh2a and sh2a-single by
4317         default.
4318         * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
4319         default.  Split their tests out of the corresponding SH4
4320         multilibs.
4321         * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
4322         multilibs for SH2a.
4323         2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
4324         * config.gcc: Handle sh2a multilibs and cpu selection.
4325         * config/sh/sh.h: Likewise.  Handle sh2a command line flags.
4326         * config/sh/t-mlib-sh2a: New.
4327         * config/sh/t-mlib-sh2a-nofpu: New.
4328         * config/sh/t-mlib-sh2a-single: New.
4329         * config/sh/t-mlib-sh2a-single-only: New.
4330         2004-07-09  Nick Clifton  <nickc@redhat.com>
4331         Issue 43400
4332         * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
4333         -ml and -m2a are used together.
4334         2004-03-23  DJ Delorie  <dj@redhat.com>
4335         * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
4336         when we have a double-sized FPU.
4337         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
4338         * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
4339         is set.
4340         * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
4341         -msh2a-single and -msh2a-single-only
4342         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
4343         * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
4344         is set.
4345         2004-02-20  DJ Delorie  <dj@delorie.com>
4346         * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
4347         2004-02-20  Fred Fish <fnf@redhat.com>,
4348         Corinna Vinschen <vinschen@redhat.com>
4349         * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
4350         (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
4351         2004-02-18  DJ Delorie  <dj@redhat.com>
4352         * config/sh/sh.c (broken_move): Add support for movi20.
4353         * config/sh/sh.h: Likewise.
4354         (SHIFT_COUNT_TRUNCATED): Set for sh2a.
4355         * config/sh/sh.md (udivsi3_sh2a): New.
4356         (udivsi3): Call it.
4357         (divsi3_sh2a): New.
4358         (divsi3): Call it.
4359         (mul_r): New.
4360         (ashlsi3_sh2a): New.
4361         (ashrsi3_sh2a): New.
4362         (lshrsi3_sh2a): New.
4363         (movsi_i): Disable for sh2a.
4364         (movsi_ie): Add movi20.
4365         (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
4366         sh2a, for -m2a-nofpu mode.
4367         2004-02-13  DJ Delorie  <dj@redhat.com>
4368         * config/sh/lib1funcs.asm: Handle double vs single better.
4369         * config/sh/sh.h: Likewise.
4370         2004-02-09  DJ Delorie  <dj@redhat.com>
4371         * config/sh/crt1.asm: Add support for sh2a.
4372         * config/sh/elf.h: Likewise.
4373         * config/sh/lib1funcs.asm: Likewise.
4374         * config/sh/sh.c: Likewise.
4375         * config/sh/sh.md: Likewise.
4376         * config/sh/sh.h: Likewise.
4377         * config/sh/t-sh: Likewise.
4378
4379 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
4380
4381         * config/frv/frv.md (movqi_internal, movhi_internal,
4382         movsi_internal): Add backup alternatives for memory inputs.
4383
4384 2004-07-28  Matt Austern  <austern@apple.com>
4385
4386         * config/darwin.c (darwin_one_byte_bool): New global variable.
4387         * config/darwin.h (darwin_one_byte_bool): Declare.
4388         (SUBTARGET_OPTIONS): Define macro.  (for -mone-byte-bool flag.)
4389         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
4390         value of darwin_one_byte_bool.
4391         * doc/invoke.texi: Document -mone-byte-bool flag.
4392
4393 2004-07-28  Eric Christopher  <echristo@redhat.com>
4394
4395         * c-common.c (c_common_unsafe_for_reeval): Delete.
4396         * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
4397         * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
4398         * calls.c (fix_unsafe_tree): Delete.
4399         (expand_call): Delete code which used above.
4400         * dojump.c (do_jump): Delete UNSAVE_EXPR case.
4401         * expr.c (expand_expr_real_1): Ditto.
4402         * fold-const.c (non_lvalue): Ditto.
4403         * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
4404         (lhd_unsafe_for_reeval): Ditto.
4405         * langhooks.c (lhd_unsafe_for_reeval): Ditto.
4406         * langhooks.h (unsafe_for_reeval): Ditto.
4407         (unsave_expr_now): Adjust comment.
4408         * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
4409         (estimate_num_insns_1): Ditto.
4410         * tree-pretty-print.c (dump_generic_node): Ditto.
4411         * tree.c (expr_align): Ditto.
4412         (unsave_expr): Delete.
4413         (unsafe_for_reeval): Ditto.
4414         * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
4415         * tree.def (UNSAVE_EXPR): Delete.
4416         * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
4417
4418 2004-07-28  Zack Weinberg  <zack@codesourcery.com>
4419
4420         * tree.h (enum tls_model): Move ...
4421         * coretypes.h: ... here.
4422
4423 2004-07-28  Richard Sandiford <rsandifo@redhat.com>
4424
4425         * config/frv/frv.h (EPILOGUE_USES): New.  Use LR.
4426
4427 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
4428
4429         * cse.c (validate_canon_reg): New function, split out from...
4430         (canon_reg): ...here.  Use validate_canon_reg for both 'e' and 'E'.
4431
4432 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
4433
4434         * tree-ssa-alias.c (maybe_create_global_var): Don't just
4435         return if .GLOBAL_VAR has been created.
4436
4437 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
4438
4439         * tree-ssa.c (verify_flow_insensitive_alias_info): Process
4440         every variable that may have aliases, not just tags.
4441
4442 2004-07-28  Aldy Hernandez  <aldyh@redhat.com>
4443
4444         * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
4445         move_from_CR_eq_bit.
4446         Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
4447
4448
4449         * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
4450         e500_flip_eq_bit.
4451
4452         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
4453         output_e500_flip_eq_bit.
4454
4455         * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
4456         output_e500_flip_eq_bit.
4457         (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
4458         output_e500_flip_eq_bit.
4459         Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
4460         (print_operand): case D.  Get to EQ bit.
4461
4462 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
4463
4464         * gcov.c (function_summary): Add missing \n.
4465
4466 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
4467
4468         Introduce sh4a support.
4469         * config.gcc: Handle sh4a multilibs and cpu selection.
4470         * config/sh/sh.h: Likewise.  Handle sh4a command line flags.
4471         * config/sh/t-mlib-sh4a: New.
4472         * config/sh/t-mlib-sh4al: New.
4473         * config/sh/t-mlib-sh4a-nofpu: New.
4474         * config/sh/t-mlib-sh4a-single: New.
4475         * config/sh/t-mlib-sh4a-single-only: New.
4476         2004-02-20  DJ Delorie  <dj@redhat.com>
4477         * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
4478         * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
4479         2003-08-22  Eric Christopher  <echristo@redhat.com>
4480         * config/sh/sh4a.md: Update for chip errata.
4481         2003-08-07  Eric Christopher  <echristo@redhat.com>
4482         * config/sh/sh4a.md: New file. sh4a processor description.
4483         2003-07-08  Alexandre Oliva  <aoliva@redhat.com>
4484         * config/sh/sh.h (TARGET_SWITCHES): Added 4al.  Adjust description
4485         of -m4a-nofpu.
4486         (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
4487         * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
4488         * doc/invoke.texi (SH Options): Document -m4al.
4489         2003-07-03  Alexandre Oliva  <aoliva@redhat.com>
4490         * config/sh/sh.c (expand_block_move): Remove commented-out code
4491         checked in by mistake.
4492         (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
4493         single elements from SFmode vectors.
4494         * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
4495         register.
4496         (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
4497         2003-07-01  Alexandre Oliva  <aoliva@redhat.com>
4498         * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
4499         sh_fsca_int2sf): Remove variable declarations.
4500         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
4501         sh_fsca_int2sf): New functions.
4502         (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
4503         sh_fsca_int2sf_rtx): New static variables.
4504         * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
4505         sh_fsca_int2sf): Declare.
4506         * config/sh/sh.md: Adjust.
4507         * doc/invoke.texi (SH Options): Document new options.
4508         * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
4509         compatibility from SH4 code.
4510         2003-06-27  Alexandre Oliva  <aoliva@redhat.com>
4511         * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
4512         early.
4513         (memory_movsrc_operand): Renamed to...
4514         (unaligned_load_operand): ... this.  Simplified.
4515         * config/sh/sh.h (PREDICATE_CODES): Adjust.
4516         * config/sh/sh.md (movua, extv, extzv): Likewise.  Change movua's
4517         input operand to SImode, and adjust the others.  Introduce
4518         post-increment by peephole.
4519         * config/sh/sh.c (expand_block_move): Give the target address the
4520         same mode as the temp reg.
4521         * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
4522         copying.
4523         2003-06-26  Alexandre Oliva  <aoliva@redhat.com>
4524         Introduce support for SH4a.
4525         * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
4526         __SH4A__.  Emit 4 4kb blocks and touch all of them otherwise.
4527         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
4528         sh_fsca_int2sf): New.
4529         (sh_init_builtins): Initialize them.
4530         (print_operand): Support `d'.
4531         (expand_block_move): Use movua if src is misaligned.
4532         (memory_movsrc_operand): New.
4533         * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
4534         and one of the SH4 macros.
4535         (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
4536         SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
4537         SELECT_SH4A_SINGLE): New.
4538         (TARGET_NONE): Add SH4A_BIT.
4539         (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
4540         (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
4541         (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
4542         (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
4543         (enum processor_type): Added PROCESSOR_SH4A.
4544         (PREDICATE_CODES): Add memory_movsrc_operand.
4545         * config/sh/sh.md: Removed unused variables.
4546         (attr cpu): Add sh4a.
4547         (attr type): Add movua, fsrra and fsca.
4548         (prefetch): New, for SH4.
4549         (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
4550         (toggle_sz): Set type to fp.
4551         (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
4552         (movua, extv, extzv): New.
4553         * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
4554         and 4a-single-only.
4555
4556 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
4557
4558         * tree-optimize.c (init_tree_optimization_passes): Schedule
4559         pass_may_alias right after the program is renamed into SSA.
4560         * tree-pass.h (PROP_alias): Define.
4561         * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
4562         * tree-sra.c (pass_sra): Likewise.
4563         * tree-ssa-ccp.c (pass_ccp): Likewise.
4564         * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
4565         * tree-ssa-dce.c (pass_dce): Likewise.
4566         * tree-ssa-dom.c (pass_dominator): Likewise.
4567         * tree-ssa-dse.c (pass_dse): Likewise.
4568         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
4569         * tree-ssa-loop-ch.c (pass_ch): Likewise.
4570         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
4571         * tree-ssa-pre.c (pass_pre): Likewise.
4572         * tree-tailcall.c (pass_tail_recursion): Likewise.
4573         * tree-ssa.c (pass_redundant_phi): Likewise.
4574         * tree-ssa-alias.c (aliases_computed_p): Remove.
4575         Update all users.
4576         (init_alias_info): Do not mark all type tags for renaming
4577         unconditionally.
4578         Clear may_aliases from every symbol.
4579         (setup_pointers_and_addressables): If a pointer has not been
4580         dereferenced and it had a type tag, clear it and mark the old
4581         tag for renaming.
4582
4583 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
4584
4585         PR tree-optimization/16705
4586         * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
4587         .GLOBAL_VAR.
4588
4589 2004-07-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4590
4591         * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
4592         check.
4593
4594         * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
4595         don't make another one.
4596
4597         PR optimization/15077
4598         * function.h (struct function): Add field saved_static_chain_decl.
4599         Fix comment for static_chain_decl.
4600         * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
4601         * tree-inline.h (save_body): Add new arg.
4602         * tree-optimize.c (tree_rest_of_compilation): Handle saving
4603         static_chain_decl.
4604
4605 2004-07-27  Richard Henderson  <rth@redhat.com>
4606
4607         * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
4608         (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
4609         is_gimple_addressable.
4610         * tree-gimple.c (is_gimple_addressable): Rename from
4611         is_gimple_addr_expr_arg; accept INDIRECT_REF.
4612         (is_gimple_lvalue): Don't test INDIRECT_REF directly.
4613         * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
4614         rename to is_gimple_addressable.
4615
4616 2004-07-28  Alan Modra  <amodra@bigpond.net.au>
4617
4618         * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
4619
4620 2004-07-27  Richard Henderson  <rth@redhat.com>
4621
4622         * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
4623         before rounding.
4624
4625 2004-07-27  Zack Weinberg  <zack@codesourcery.com>
4626
4627         * libgcc2.c: Change all conditionals testing
4628         LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
4629         * libgcc2.h: Likewise.
4630         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
4631         TYPE_PRECISION of float80_type to 80.
4632         * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
4633         of fpreg_type and float80_type to 80.
4634         * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
4635         * config/m68k/netbsd-elf.h:
4636         Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
4637         to evaluate to 80 whenever they would formerly have evaluated to 96.
4638         * config/i386/sco5.h: Remove unnecessary redefinition of
4639         LONG_DOUBLE_TYPE_SIZE.
4640         * doc/rtl.texi: Clarify uses of XFmode and TFmode.
4641         * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
4642         XFmode, with a bitsize of 80.  Update commentary.
4643         * config/ia64/ia64-modes.def: Likewise.
4644         * config/m68k/m68k-modes.def: Likewise.
4645
4646 2004-07-27  Steven Bosscher  <stevenb@suse.de>
4647
4648         * cfgexpand.c (tree_expand_cfg): Fix comment.
4649
4650         * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
4651         * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
4652         Remove.
4653         (prepare_function_start): Don't set rtx_equal_function_value_matters.
4654         * integrate.c (copy_rtx_and_substitute): Don't test for it.
4655         * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
4656         Don't set rtx_equal_function_value_matters.  Don't register RTL hooks
4657         here again.  Update leading comment.
4658         * rtl.c (rtx_equal_function_value_matters): Remove.
4659         (rtx_equal_p): Don't test for it.
4660         * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
4661         Likewise.
4662
4663         * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
4664         * rtl.c (note_insn_name): Likewise.
4665         * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
4666         * final.c (final_scan_insn): Likewise.
4667
4668         * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
4669         * passes.c (rest_of_handle_eh): Do it here.
4670
4671         * stmt.c (struct nesting): Remove struct nesting block member.
4672         (struct stmt_status): Remove x_block_start_count field.
4673         (current_block_start_count): Remove.
4674
4675 2004-07-27  Brian Booth  <bbooth@redhat.com>
4676
4677         * tree-optimize.c (register_one_dump_file): Update condition that uses
4678         static_pass_number.
4679         (dup_pass_1): Replace with...
4680         (next_pass_1): This.
4681         (NEXT_PASS): Call next_pass_1.
4682         (DUP_PASS): Remove.
4683         (init_tree_optimization_passes): Remove uses of DUP_PASS.
4684         (execute_one_pass): Update condition that uses
4685         static_pass_number.
4686         * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
4687         integer.
4688
4689 2004-07-27  Nick Clifton  <nickc@redhat.com>
4690
4691         * config/m32r/m32r.c: Include integrate.h in order to get the
4692         prototype for get_hard_reg_initial_val().
4693
4694         * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
4695         and tidy up indentation.
4696         (final_presence_set): Use absence_set instead, so that if there is
4697         nothing in the "o" pipe the "s" pipe can be scheduled.
4698
4699 2004-07-27  Diego Novillo  <dnovillo@redhat.com>
4700
4701         * tree-ssa-alias.c (create_name_tags): Ignore pointers that
4702         don't have PT_VARS nor PT_MALLOC set.
4703         Clear name tag from pointers that have not been dereferenced.
4704         (set_pt_anything, set_pt_malloc): Forward declare.
4705         * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
4706         not type compatibility when determining if a pointer can be
4707         copy propagated.
4708
4709 2004-07-27  Richard Sandiford  <rsandifo@redhat.com>
4710
4711         * expr.h (canonicalize_condition, get_condition): Add an int argument.
4712         * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
4713         it to check whether the condition is still valid at the jump insn.
4714         * ifcvt.c (noce_get_condition): Likewise.
4715         (noce_get_alt_condition): Update call to canonicalize_condition.
4716         * loop-iv.c (simplify_using_initial_values): Update call to
4717         get_condition.  Remove FIXME.
4718         (check_simple_exit): Update call to get_condition.
4719         * loop-unswitch.c (may_unswitch_on): Likewise.
4720         * loop.c (check_dbra_loop): Likewise.
4721         (canonicalize_condition, get_condition): Add an argument to say whether
4722         the condition must still be valid at INSN.
4723         (get_condition_for_loop): Update call to get_condition.  Require that
4724         the condition be valid at INSN.
4725         * predict.c (estimate_probability): Update call to get_condition.
4726         Remove unused earliest parameter.
4727         (expected_value_to_br_prob): Update call to canonicalize_condition.
4728
4729 2004-07-26  Eric Christopher  <echristo@redhat.com>
4730
4731         * tree-dfa.c (add_referenced_var): Register initializers of global
4732         variables.
4733
4734 2004-07-26  Paolo Bonzini  <bonzini@gnu.org>
4735
4736         * config/i386/i386.c (function_arg): Always treat 8-
4737         and 16-byte wide vectors the same, even if MMX/SSE
4738         are disabled.
4739         (contains_128bit_aligned_vector_p): Add comment.
4740
4741 2004-07-26  J"orn Rennecke <joern.rennecke@superh.com>
4742
4743         * ra.h (enum node_type): Rename to:
4744         (enum ra_node_type).
4745         * ra-colorize.c: Likewise.
4746
4747 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
4748
4749         * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
4750         after simplifying the jump.
4751
4752 2004-06-26  Richard Henderson  <rth@redhat.com>
4753
4754         * calls.c (combine_pending_stack_adjustment_and_call): Make
4755         preferred_unit_stack_boundary argument unsigned.  Make
4756         unadjusted_alignment unsigned.
4757         (expand_call): Make preferred_stack_boundary and
4758         preferred_unit_stack_boundary variables unsigned.
4759         * function.c (assign_stack_local_1): Make alignment unsigned.
4760         * function.h (struct function): Make stack_alignment_needed,
4761         preferred_stack_boundary unsigned.
4762         * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
4763         (ix86_compute_frame_layout): Make stack_alignment_needed,
4764         preferred_alignment variables unsigned.
4765         * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
4766
4767 2004-07-26  Tom Tromey  <tromey@redhat.com>
4768
4769         * tree.h: Fix typo in comment.
4770
4771 2004-07-26  Daniel Jacobowitz  <dan@debian.org>
4772
4773         PR bootstrap/12804
4774         * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
4775         (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
4776         (ggc_free): Remove incorrect freeing.
4777         (sweep_pages): Advance PP for large pages.  Fix indentation.
4778
4779 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
4780
4781         PR rtl-optimization/16643
4782         * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
4783         * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
4784         * basic-block.h (reorder_basic_blocks): Add a flags parameter.
4785         * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
4786         (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
4787         * function.c (thread_prologue_and_epilogue_insns): Likewise.
4788         * rtl.h (tracer): Add a flags parameter.
4789         * tracer.c (tracer): Pass it to cfg_layout_initialise.
4790         * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
4791         (rest_of_handle_reorder_blocks): Update calls to tracer and
4792         reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
4793         (rest_of_handle_tracer): Pass 0 to tracer.
4794         (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
4795
4796 2004-07-25  David Edelsohn  <edelsohn@gnu.org>
4797
4798         PR target/16239
4799         * config/rs6000/rs6000.md (movdi_internal64): Further disparage
4800         f->f.
4801
4802 2004-07-24  Nathan Sidwell  <nathan@codesourcery.com>
4803
4804         * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
4805         (BINFO_BASE_ACCESS): Adjust.
4806         (BINFO_BASE_ACCESS_APPEND): New.
4807         (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
4808         * dbxout.c (dbxout_type): Adjust binfo access accessing.
4809         * dwarf2out.c (gen_member_die): Likewise.
4810         * tree-dump.c (deque_and_dump): Likewise.
4811
4812 2004-07-26  Falk Hueffner  <falk@debian.org>
4813
4814         * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
4815         costs.
4816
4817 2004-07-25  Roger Sayle  <roger@eyesopen.com>
4818
4819         * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
4820         value off of the stack if TARGET_USE_FFREEP.
4821
4822 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
4823
4824         * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
4825         * gengtype-yacc.y: Likewise.  Replace free() with XDELETE ().
4826         * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
4827         check on invocation of XRESIZEVEC ().
4828
4829 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
4830
4831         * c-common.c (disable_builtin_function): Rename variable n to
4832         new_disabled_builtin.
4833         * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
4834         Rename local variable old to old_decl.
4835         * gensupport.c (shift_output_template): Rename parameter old to src.
4836         * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
4837         old_rtx and newx to new_rtx.
4838
4839 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
4840
4841         * Makefile.in (C_PRAGMA_H): New variable to track dependencies
4842         of c-pragma.h.
4843         * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
4844         enum cpp_ttype.
4845         * c-lex.c: Likewise.
4846
4847 2004-07-25  Roger Sayle  <roger@eyesopen.com>
4848
4849         * fold-const.c (constant_boolean_node): Make extern.
4850         (make_range): Wrap long lines.
4851         (fold_cond_expr_with_comparison): Remove unnecessary call to
4852         pedantic_non_lvalue.  Add missing calls to fold_convert.
4853         (fold_truthop): Add missing calls to fold_convert.
4854         (fold): Likewise.
4855         * tree.h (constant_boolean_node): Add prototype here.
4856         * builtins.c (expand_builtin_strncmp): Add missing calls to
4857         fold_convert.
4858         * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
4859         Call fold_convert and constant_boolean_node to correct types.
4860         * tree-ssa-forwprop.c (substitute_single_use_vars): Add
4861         missing call to fold_convert to correct types.
4862
4863 2004-07-26  Niall Douglas  <s_fsfeurope2@nedprod.com>
4864             Brian Ryner  <bryner@brianryner.com>
4865
4866         PR c++/9283
4867         PR c++/15000
4868         * c-common.c (c_common_attribute_table): Allow
4869         handle_visibility_attribute to be called for types.
4870         (handle_visibility_attribute) When given a type, set the visibility
4871         bits on the TYPE_NAME.  When given a decl, don't set no_add_attrs
4872         so that we can check later whether the attribute was present. Added
4873         warning if attribute applied to non class type.
4874         * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
4875         decls and checking that they are consistent.
4876         * common.opt: Added -fvisibility.
4877         * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
4878         * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
4879         * flags.h, tree.h: Added assorted support defines for overall patch
4880         * opts.c: Added parsing support for -fvisibility.
4881         * tree.c (build_decl): Set visibility for all decls to be whatever
4882         is in force at that time.
4883         * varasm.c (default_binds_local_p_1): Reworked logic determining
4884         when to make a symbol locally bound.
4885         * doc/invoke.texi: Added documentation for -fvisibility and
4886         -fvisibility-inlines-hidden.
4887
4888 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
4889
4890         * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
4891         * c-common.c: Add missing casts from void * to other types.
4892         * c-decl.c: Likewise.
4893         * c-format.c: Likewise.
4894         * c-lex.c: Likewise.
4895         * c-pragma.c: Likewise.
4896         * c-typeck.c: Likewise.
4897         * defaults.h: Likewise.
4898         * genconstants.c: Likewise.
4899         * gengtype-lex.l: Likewise.
4900         * genmodes.c: Likewise.
4901         * read-rtl.c: Likewise.
4902         * rtl.c: Likewise.
4903
4904 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
4905
4906         * bitmap.c: Use type-safe memory allocation macros from libiberty.
4907         * c-common.c: Likewise.
4908         * c-decl.c: Likewise.
4909         * c-lang.c: Likewise.
4910         * c-lex.c: Likewise.
4911         * c-opts.c: Likewise.
4912         * c-parse.in: Likewise.
4913         * c-typeck.c: Likewise.
4914         * genconditions.c: Likewise.
4915         * gengtype-lex.l: Likewise.
4916         * gengtype-yacc.y: Likewise.
4917         * gengtype.c: Likewise.
4918         * genmodes.c: Likewise.
4919         * gensupport.c: Likewise.
4920         * read-rtl.c: Likewise.
4921         * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
4922         htab_find_slot().
4923
4924 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
4925
4926         * c-decl.c (groktypename, groktypename_in_param_context): Rename
4927         variable typename to type_name.
4928         * c-lex.c (interpret_float): Likewise.
4929
4930 2004-07-25  Roger Sayle  <roger@eyesopen.com>
4931
4932         * convert.c (convert_to_real, convert_to_integer,
4933         convert_to_complex): Replace calls to build with calls to buildN.
4934         * coverage.c (tree_coverage_counter_ref): Likewise.
4935         * dojump.c (do_jump): Likewise.
4936         * dwarf2out.c (loc_descriptor_from_tree): Likewise.
4937         * emit-rtl.c (component_ref_for_mem_expr,
4938         set_mem_attributes_minus_bitpos): Likewise.
4939         * explow.c (update_nonlocal_goto_save_area): Likewise.
4940         * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
4941         expand_mult_add): Likewise.
4942         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
4943         store_constructor, get_inner_reference, expand_expr_real_1,
4944         try_casesi, try_tablejump): Likewise.
4945         * function.c (expand_function_start): Likewise.
4946         * stmt.c (emit_case_bit_tests, expand_end_case_type,
4947         node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
4948         * stor-layout.c (place_union_field, layout_type): Likewise.
4949         * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
4950         * varasm.c (copy_constant): Likewise.
4951
4952 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
4953
4954         * c-common.c: Rename all identifiers named `new'.
4955         * c-decl.c: Likewise.
4956         * gensupport.c: Likewise.
4957         * simplify-rtx.c: Likewise.
4958         * c-common.c (disable_builtin_function): Replace a call to xmalloc()
4959         with XNEW().
4960         * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
4961         with XNEWVEC().
4962
4963 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
4964
4965         PR c/15360
4966         * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
4967         declarations until after calling pushdecl.
4968         (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
4969         "extern" and not on whether the declaration is initialized.
4970
4971 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
4972
4973         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
4974         (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
4975         * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
4976         "cpplib.h", "c-pragma.h", "c-common.h".
4977         (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
4978         (solaris_register_pragmas): New functions.
4979         * config/sol2-protos.h: New file.
4980         * config/sol2.c: New file.
4981         * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
4982         (REGISTER_TARGET_PRAGMAS): New macros.
4983         (solaris_pending_aligns, solaris_pending_inits)
4984         (solaris_pending_finis): New variables.
4985         * config/t-sol2 (sol2-c.o): Update dependencies.
4986         (sol2.o): New rule.
4987         * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
4988         SUBTARGET_INSERT_ATTRIBUTES.
4989         (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
4990         * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
4991         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
4992         * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
4993         * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
4994         * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
4995         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
4996         * config/sparc/sparc.c (sparc_attribute_table): New.
4997         (TARGET_INSERT_ATTRIBUTES): Define in terms of
4998         SUBTARGET_INSERT_ATTRIBUTES.
4999         (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
5000         is defined.
5001         * doc/extend.texi (Solaris Pragmas): New section.
5002
5003 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
5004
5005         * c-common.c: Rename all identifiers named `class' to `cl'.
5006         * c-common.h: Likewise.
5007         * c-parse.in: Likewise.
5008         * c-typeck.c: Likewise.
5009         * genmodes.c: Likewise.
5010         * real.c: Likewise.
5011         * real.h: Likewise.
5012         * recog.c: Likewise.
5013         * recog.h: Likewise.
5014         * regrename.c: Likewise.
5015         * tree.h: Likewise.
5016         * c-common.c (builtin_function_2): Change type of 5th parameter from
5017         int to enum built_in_function. Change type of 8th parameter from int
5018         to bool.
5019         * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
5020         with GGC_CNEW().
5021         * c-typeck.c (convert_arguments): Change type of formal_prec from
5022         int to unsigned int.
5023         * genmodes.c (blank_mode): Make a few negative constants unsigned.
5024         (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
5025         emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
5026         emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
5027         emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
5028         iterator to for_all_modes () instead of an enum because enums can't
5029         be incremented in C++.
5030
5031
5032 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
5033
5034         * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
5035         hard registers.
5036
5037 2004-07-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5038
5039         * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
5040         Handle ARRAY_RANGE_REF like ARRAY_REF.
5041
5042 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
5043
5044         * c-typeck.c (digest_init): Don't allow arrays of signed or
5045         unsigned variants of wchar_t to be initialized by wide string
5046         constants.  Do allow arrays of enumerated types compatible with
5047         wchar_t to be initialized by wide string constants.  Refine tests
5048         distinguishing wide and narrow strings and arrays.  Give specific
5049         error for arrays of other integer types initialized by string
5050         constants.
5051         (output_init_element, process_init_element): Check for
5052         INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
5053         initializing with string constants.
5054
5055 2004-07-25  Richard Henderson  <rth@redhat.com>
5056
5057         * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
5058         on the RESULT_DECL.
5059         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
5060         * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
5061         DECL_IGNORED_P to new decl.
5062
5063 2004-07-24  Zack Weinberg  <zack@codesourcery.com>
5064
5065         * config/ia64/ia64.c (general_xfmode_operand)
5066         (destination_xfmode_operand): Delete.
5067         * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
5068         * config/ia64/ia64.md (*movxf_internal): Use general_operand
5069         and destination_operand.
5070
5071 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
5072
5073         * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
5074         (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
5075
5076 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
5077             Zack Weinberg  <zack@codesourcery.com
5078
5079         PR 16684
5080         * c-decl.c (diagnose_mismatched_decls): Don't issue a
5081         redundant-declaration warning the first time a builtin is
5082         declared explicitly.
5083
5084 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
5085
5086         * tree.h (staticp): Change return type to bool.
5087
5088 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
5089
5090         * c-common.c (c_staticp): Last episode of the staticp saga.
5091
5092 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
5093
5094         * c-common.h (c_staticp): Change return type from int to bool.
5095         * tree.c (staticp): Likewise.
5096         * langhooks.h (staticp): Likewise.
5097
5098 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
5099
5100         * langhooks-def.h (lhd_staticp): Change return type from int to
5101         bool in prototype to match definition.
5102
5103 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
5104
5105         * system.h (bool, true, false): Don't redefine as preprocessor macros
5106         in C++.
5107
5108 2004-07-24  Roger Sayle  <roger@eyesopen.com>
5109
5110         * expmed.c (init_expmed): A signed modulus by a power of two is
5111         considered cheap if its less than or equal to four instructions.
5112
5113 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
5114
5115         * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
5116         GGC_CNEWVAR): New macros.
5117
5118 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
5119
5120         * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
5121         lists.
5122         * c-decl.c: Likewise.
5123         * c-format.c: Likewise.
5124         * c-lex.c: Likewise.
5125         * c-opts.c: Likewise.
5126         * c-pragma.c: Likewise.
5127         * c-typeck.c: Likewise.
5128         * gencheck.c: Likewise.
5129         * genconditions.c: Likewise.
5130         * genconfig.c: Likewise.
5131         * genflags.c: Likewise.
5132         * gengtype.c: Likewise.
5133         * gensupport.c: Likewise.
5134         * ggc-none.c: Likewise.
5135         * langhooks.c: Likewise.
5136         * statistics.h: Likewise.
5137         * stub-objc.c: Likewise.
5138         * java/decl.c: Likewise.
5139
5140 2004-07-24  Roman Zippel  <zippel@linux-m68k.org>
5141
5142         * config/m68k/m68k.c (output_scc_di): Fix coding style.
5143         (symbolic_operand): Fix prototype.
5144         * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
5145         * config/m68k/m68k.md: Add constants for registers a0 and sp and
5146         use them, change from the "{...}" syntax to the simpler {...}
5147         syntax.
5148         (*cfv4_extendqisi2): Fix destination predicate.
5149         * config/m68k/m68k-protos.h: Remove various declarations also
5150         generated via PREDICATE_CODES.
5151
5152 2004-07-23  Mike Stump  <mrs@apple.com>
5153
5154         * c-typeck.c (convert_for_assignment): Tightened up pointer
5155         converstions that differ in signedness.
5156
5157 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
5158
5159         * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
5160
5161 2004-07-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5162
5163         * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
5164         * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
5165
5166         * gimplify.c (gimplify_compound_lval): Check for no handled
5167         operations, rather than checking for explicit list of nodes.
5168         (is_gimple_addr_expr_arg_or_indirect): New function.
5169         (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
5170         redundant setting of TREE_INVARIANT.
5171         (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
5172         * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
5173
5174 2004-07-23  Diego Novillo  <dnovillo@redhat.com>
5175
5176         PR tree-optimization/16688
5177         PR tree-optimization/16689
5178         * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
5179         unnecessary initialization of 'tag'.
5180         (get_tmt_for): Check that the new type tag has the same alias
5181         set as the pointed-to type.
5182         (group_aliases): Only regular variables need to be removed
5183         from the alias set of a name tag.
5184         * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
5185         propagation if the two types are not compatible.
5186         (merge_alias_info): Rename from replace_ssa_names_ann.
5187         Add more checking.
5188         (replace_exp_1): If both arguments are SSA_NAMEs, check that
5189         the propagation can be done.
5190         Only call merge_alias_info on pointers.
5191         (propagate_value): Likewise.
5192         * tree-ssa-copyrename.c: Include langhooks.h.
5193         (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
5194         to do the merging.
5195         Do not coalesce variables with incompatible types.
5196         (rename_ssa_copies): Call replace_ssa_name_symbol.
5197         * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
5198         the same type as the underlying _DECL.
5199         * tree-ssanames.c (replace_ssa_name_symbol): New function.
5200         * tree.h (replace_ssa_name_symbol): Declare.
5201
5202 2004-07-23  Richard Henderson  <rth@redhat.com>
5203
5204         PR c++/16277
5205         * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
5206         unshare it properly.
5207         (gimplify_modify_expr_rhs): Push assignment from a conditional into
5208         the conditional for all non-register types.
5209
5210 2004-07-23  Richard Henderson  <rth@redhat.com>
5211
5212         * expr.c (expand_expr_real_1): Don't handle non-local variables.
5213         * expr.h (fix_lexical_addr): Remove.
5214         * function.c (NEED_SEPARATE_AP): Remove.
5215         (fix_lexical_addr): Remove.
5216         * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
5217         not null decl_function_context.
5218         (create_alias_vars): Likewise.
5219         * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
5220         (simple_goto_p): Likewise.
5221         * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
5222         * tree-ssa-ccp.c (get_default_value): Likewise.
5223         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
5224         * tree.c (needs_to_live_in_memory): Likewise.
5225         * tree-flow-inline.h (may_be_aliased): Move...
5226         * tree-ssa-alias.c (may_be_aliased): ... here.  Enhance check for
5227         when TREE_STATIC variables may be addressable.
5228
5229 2004-07-24  Jakub Jelinek  <jakub@redhat.com>
5230
5231         * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
5232
5233 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
5234
5235         * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
5236         bitmap contents if GENERATOR_FILE is defined.
5237         * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
5238         ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
5239
5240 2004-07-23  Joseph S. Myers  <jsm@polyomino.org.uk>
5241
5242         * c-decl.c (start_function): Form composite type of function types
5243         rather than copying type from previous prototype declaration.
5244
5245 2004-07-23  Janis Johnson  <janis187@us.ibm.com>
5246
5247         * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
5248         the const qualifier for the second argument in the C++ functions.
5249
5250         * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
5251         specific pointer types.
5252
5253         * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
5254         vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
5255         for vector bool and/or vector pixel, add C++ and C missing support.
5256         (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
5257         vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
5258         vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
5259         vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
5260         vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
5261         missing C++ and C support for vector bool and/or vector pixel.
5262         (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
5263         vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
5264         vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
5265         vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
5266         vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
5267         C++ and C types used for vector bool and/or vector pixel.
5268         (vec_st, vec_stl): Add C++ support for vector pixel.
5269         (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
5270         (vec_all_ne): Add C++ support for vector pixel.
5271
5272         * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
5273         (vec_vmulesb): Add missing C++ function.
5274         (vec_perm): Fix type of third argument in C++ function.
5275         (vec_vsum4shs): Fix C++ function name.
5276         (vec_any_ge): Remove C++ functions for unsupported arg combinations.
5277         (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
5278         argument passed to the error handler in C macro.
5279         (vec_nmsub): Remove extra parens around argument names in C macro.
5280         (vec_packpx): Add missing parens in C macro.
5281
5282 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
5283
5284         * machmode.def: Remove vector modes.
5285         * config/alpha/alpha-modes.def: Add supported vector modes.
5286         * config/arm/arm-modes.def: Likewise.
5287         * config/frv/frv-modes.def: Likewise.
5288         * config/i386/i386-modes.def: Likewise.
5289         * config/rs6000/rs6000-modes.def: Likewise.
5290         * config/sh/sh-modes.def: Likewise.
5291
5292 2004-07-23  Matthias Klose  <doko@debian.org>
5293
5294         * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
5295         * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
5296         * config.h: Regenerate.
5297         * configure: Likewise.
5298
5299 2004-07-22  Mark Mitchell  <mark@codesourcery.com>
5300
5301         * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
5302         generated SYMBOL_REFs for labels.
5303         * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
5304         Change prototype.
5305         (machopic_stub_name): Remove.
5306         (machopic_indirection_name): New function.
5307         (machopic_mcount_stub_name): Likewise.
5308         (machopic_classify_name): Remove.
5309         (machopic_function_base_sym): New function.
5310         (machpoic_classify_symbol): Likewise.
5311         (machopic_classify_ident): Remove.
5312         (machopic_define_ident): Likewise.
5313         (machopic_define_name): Likewise.
5314         (machopic_name_defined_p): Likewise.
5315         (machopic_ident_defined_p): Likewise.
5316         (darwin_strip_name_encoding): Likewise.
5317         (machopic_define_symbol): New function.
5318         * config/darwin.c (hashtab.h): Include.
5319         (machopic_defined_list): Remove.
5320         (machopic_classify_ident): Likewise.
5321         (machopic_classify_name): Likewise.
5322         (machopic_ident_defined_p): Likewise.
5323         (machopic_define_ident): Likewise.
5324         (machopic_define_name): Likewise.
5325         (machopic_symbol_defined_p): New function.
5326         (machopic_classify_symbol): Likewise.
5327         (machopic_data_defined_p): Use machopic_classify_symbol.
5328         (machopic_define_symbol): New function.
5329         (machopic_function_base_sym): New function.
5330         (machopic_non_lazy_pointers): Remove.
5331         (machopic_non_lazy_ptr_name): Likewise.
5332         (machopic_stubs): Likewise.
5333         (machopic_stub_name): Likewise.
5334         (NON_LAZY_POINTER_SUFFIX): New macro.
5335         (STUB_SUFFIX): Likewise.
5336         (machopic_indirection): New structure.
5337         (machopic_indirections): New variable.
5338         (machopic_indirection_hash): New function.
5339         (machopic_indirection_eq): Likewise.
5340         (machopic_indirection_name): Likewise.
5341         (machopic_mcount_stub_name): New function.
5342         (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
5343         hash table.
5344         (machopic_indirect_data_reference): Rework to use new functions.
5345         (machopic_indirect_call_target): Likewise.
5346         (machopic_legitimize_pic_address): Likewise.
5347         (machopic_output_indirection): New function.
5348         (machopic_finish): Use it.
5349         (machopic_operand_p): Rework to use new functions.
5350         (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
5351         (darwin_strip_name_encoding): Remove.
5352         (update_non_lazy_ptrs): Remove.
5353         (update_stubs): Likewise.
5354         (darwin_non_lazy_pcrel): Use new functions.
5355         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
5356         (ASM_OUTPUT_LABELREF): Likewise.
5357         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
5358         (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
5359         (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
5360         (TARGET_STRIP_NAME_ENCODING): Do not use
5361         darwin_strip_name_encoding.
5362         (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
5363         darwin_strip_name_encoding.
5364         * config/i386/darwin.h (FUNCTION_PROFILER): Use
5365         machopic_mcount_stub_name.
5366         * config/i386/i386.c (x86_output_mi_thunk): Use
5367         machopic_indirection_name, not machopic_stub_name.
5368         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
5369         machopic_function_base_sym.
5370         (print_operand): Use machopic_classify_symbol.
5371         (rs6000_emit_prologue): Use machopic_function_base_sym.
5372         (output_profile_hook): Do not use machopic_stub_name.
5373         (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
5374
5375 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
5376
5377         PR c/7284
5378         * fold-const.c (extract_muldiv_1): Do not treat signed left shift
5379         as multiplication.
5380
5381 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
5382
5383         * doc/implement-c.texi: New file.
5384         * doc/extend.texi (C Implementation): Move to there.
5385         * doc/gcc.texi: Include implement-c.texi.
5386         * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
5387
5388 2004-07-22  Jason Merrill  <jason@redhat.com>
5389
5390         * integrate.c (copy_decl_for_inlining): Remove invisible reference
5391         handling.
5392         * tree-inline.c (setup_one_parameter): Likewise.
5393
5394 2004-07-22  Brian Booth  <bbooth@redhat.com>
5395
5396         * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
5397         (substitute_and_fold): Propigate into VUSE operands when possible.
5398         (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
5399         (cp_lattice_meet): Handle merging of latticevalues when
5400         UNKNOWN_VAL is present.
5401         (visit_stmt): Visit assignments with V_MUST_DEFs.
5402         (visit_assignment): Gather ccp information for V_MUST_DEF operands.
5403         (ccp_fold): Deal with RHS' that are constant and virtual.
5404         (evaluate_stmt): Handle UNKNOWN_VAL likely values.
5405         (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
5406         (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
5407         V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
5408         computing immediate uses.
5409         (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
5410         transition.
5411         (replace_vuse_in): New function.
5412         (likely_value): Add check of vuse operands.
5413         (get_default_value): Set the default value of virtually defined
5414         variables to UKNOWN_VAL instead of VARYING.
5415
5416 2004-07-22  Richard Henderson  <rth@redhat.com>
5417
5418         * expr.c (emit_push_insn): Don't use set_mem_attributes.
5419
5420 2004-07-22  Richard Henderson  <rth@redhat.com>
5421
5422         * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
5423         variables due to conditional compilation.
5424
5425 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
5426
5427         * tree-into-ssa.c (set_livein_block): Fix typo in comment.
5428         (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
5429         Release SSA names that have been re-renamed.
5430         * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
5431         variable.
5432         * tree-ssa-alias.c (init_alias_info): If aliases have been
5433         computed before, clear existing alias information.
5434         (create_name_tags): Do no fixup PT_ANYTHING pointers.
5435         If the new name tag for a pointer is different than the one it
5436         had before, mark the old tag for renaming.
5437         (replace_may_alias): New function.
5438         (group_aliases): Call it.
5439         (setup_pointers_and_addressables): Always call get_tmt_for.
5440         (maybe_create_global_var): Don't create .GLOBAL_VAR more than
5441         once.
5442         (set_pt_anything): New local function.
5443         (set_pt_malloc): New local function.
5444         (merge_pointed_to_info): Don't merge pointed-to variables from
5445         the original pointer if the destination is pointing to an
5446         unknown location.
5447         (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
5448         (add_pointed_to_var): Do not add a variable to the points-to
5449         set if the pointer is already pointing to anywhere.
5450         (collect_points_to_info_r): If the defining statement is a PHI
5451         node, only merge pointed-to information if the argument has
5452         already been visited.
5453         (get_tmt_for): Only create a new tag if the pointer didn't
5454         have one already.
5455         (dump_alias_info): Emit more information.
5456         (dump_points_to_info_for): Likewise.
5457         * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
5458         try to get the annotation of an SSA_NAME.
5459         * tree-ssa-operands.c (add_stmt_operand): Only check for empty
5460         alias sets when checking is enabled.
5461         * tree-ssa-pre.c (need_eh_cleanup): New local variable.
5462         (eliminate): Mark basic blocks that will need
5463         EH information cleaned up.
5464         (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
5465         predecessor.
5466         Initialize need_eh_cleanup.
5467         (fini_pre): Call tree_purge_all_dead_eh_edges and
5468         cleanup_tree_cfg if needed.
5469         Free need_eh_cleanup.
5470         * tree-ssa.c (verify_ssa_name): New function.
5471         (verify_def): Call it.
5472         Re-arrange to avoid printing too many error messages.
5473         (verify_use): Likewise.
5474         (verify_phi_args): Likewise.
5475         (verify_flow_insensitive_alias_info): New function.
5476         (verify_flow_sensitive_alias_info): New function.
5477         (verify_alias_info): New function.
5478         (verify_ssa): Call verify_alias_info.
5479         Clear TREE_VISITED on all the SSA_NAMEs before scanning the
5480         program.
5481         Re-arrange to avoid printing too many error messages.
5482         * tree-ssanames.c (make_ssa_name): Clear
5483         SSA_NAME_IN_FREE_LIST.
5484         (release_ssa_name): Never release a default definition.
5485         (release_defs): New function.
5486         * tree.h: Declare it.
5487         * tree-ssa-dce.c (remove_dead_stmt): Call it.
5488
5489 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
5490
5491         * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
5492         If true, do a depth-first search.  Do a breadht-first search,
5493         otherwise.
5494         (walk_use_def_chains): Add new argument IS_DFS.
5495         Update all users.
5496         * tree-flow.h (walk_use_def_chains): Update prototype.
5497
5498 2004-07-22  Hans-Peter Nilsson  <hp@axis.com>
5499
5500         * config/cris/cris.md: Tweak formatting.
5501         (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
5502         (mover2side, moverside, movemside, movei, op3, andu): Replace
5503         live define_peephole:s with define_peephole2 near-equivalents.
5504         Delete the rest.
5505         ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap".  Match all
5506         word-size modes.
5507         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
5508         Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
5509         "*mov_sidesi_mem" respectively.
5510
5511 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
5512
5513         * tree-cfg.c (gimplify_val): Move from tree-complex.c.
5514         (gimplify_build1): Move from tree-complex.c do_unop.
5515         (gimplify_build2): Move from tree-complex.c do_binop.
5516         (gimplify_build3): New.
5517         * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
5518         Adjust throughout to call the functions above.
5519         * tree-flow.h: Declare the functions above.
5520         * tree-nested.c (gimplify_val): Rename to...
5521         (tsi_gimplify_val): ... this.
5522
5523         * Makefile.in (tree_complex.o): Update dependencies.
5524         (stor-layout.o): Depend on regs.h.
5525         * c-common.c (handle_vector_size_attribute): Update for
5526         vector types without corresponding vector modes.
5527         * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
5528         a corresponding vector mode is not available.
5529         * print-tree.c (print_node): Print nunits for vector types
5530         * regclass.c (have_regs_of_mode): New.
5531         (init_reg_sets_1): Initialize it and use it instead
5532         of allocatable_regs_of_mode.
5533         * regs.h (have_regs_of_mode): Declare it.
5534         * stor-layout.c (layout_type): Pick a mode for vector types.
5535         * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
5536         build_replicated_const, do_unop, do_binop, do_plus_minus,
5537         do_negate, expand_vector_piecewise, expand_vector_parallel,
5538         expand_vector_addition, expand_vector_operations_1,
5539         expand_vector_operations, tree_lower_operations,
5540         pass_lower_vector_ssa, pass_pre_expand): New.
5541         (expand_complex_operations, pass_lower_complex): Remove.
5542         * tree-optimize.c (init_tree_optimization_passes): Adjust
5543         pass ordering for changes in tree-complex.c.
5544         * tree-pass.h: Declare new passes.
5545         * tree.c (finish_vector_type): Remove.
5546         (make_vector_type): New.
5547         (build_vector_type_for_mode, build_vector_type): Rewritten.
5548         * tree.def (VECTOR_TYPE): Document where the number of
5549         subparts is stored.
5550         * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
5551         (make_vector): Remove declaration.
5552
5553 2004-07-21  Richard Henderson  <rth@redhat.com>
5554
5555         * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
5556         TREE_THIS_VOLATILE, may_aliases, or optimization level.
5557         (remove_useless_vars): Dump debugging info.
5558         (expand_used_vars): Move ...
5559         * cfgexpand.c (expand_used_vars): ... here.  Make static.
5560         * tree-flow-inline.h (set_is_used): New.
5561         (set_default_def): Use get_var_ann.
5562         * tree-flow.h: Update decls.
5563         * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
5564         (create_ssa_var_map): Use it.
5565         * tree-ssa.c (set_is_used): Remove.
5566
5567 2004-07-22  Ben Elliston  <bje@au.ibm.com>
5568
5569         * gdbinit.in: Set a breakpoint on internal_error.
5570
5571 2004-07-21  Richard Henderson  <rth@redhat.com>
5572
5573         * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
5574         to create a new basic block.
5575
5576 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
5577
5578         PR c/15052
5579         * c-decl.c (grokdeclarator): Only pedwarn for qualified void
5580         return type on function definitions.  Move other warnings for
5581         qualified return type to -Wreturn-type.  Do not condition any such
5582         warnings on -pedantic.  Update comments.
5583         (start_function): Only copy function type from previous prototype
5584         declaration if return types are compatible.
5585         * c-typeck.c (function_types_compatible_p): Don't condition
5586         warning for incompatibility of volatile qualifiers on the return
5587         type on -pedantic.  Update comment.
5588         * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
5589
5590 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
5591
5592         * c-typeck.c (set_init_index): Require designator to be of integer
5593         type.
5594
5595 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
5596
5597         PR c/11250
5598         * c-parse.in (init): Change to exprtype.
5599         (primary): Set original_code for STRING to STRING_CST.
5600         Call maybe_warn_string_init for compound literals.
5601         (initdcl, notype_initdcl): Call maybe_warn_string_init.
5602         (initval): Update.
5603         * c-tree.h (maybe_warn_string_init): New.
5604         (pop_init_level, process_init_element): Use struct c_expr.
5605         (struct c_expr): Update comment.
5606         * c-typeck.c (maybe_warn_string_init): New function.
5607         (digest_init): Call it.  Additional parameter strict_string.  All
5608         callers changed.
5609         (output_init_element): Likewise.
5610         (struct constructor_stack): Use struct c_expr for
5611         replacement_value.
5612         (really_start_incremental_init, push_init_level): Update.
5613         (pop_init_level): Update.  Return struct c_expr.
5614         (process_init_level): Update.  Take struct c_expr argument.
5615
5616 2004-07-21  David S. Miller  <davem@nuts.davemloft.net>
5617
5618         * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
5619         commit.
5620
5621 2004-07-21  Eric Christopher  <echristo@redhat.com>
5622
5623         * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
5624         removal.
5625         * c-decl.c (pop_scope): Ditto.
5626         * calls.c (expand_call): Remove call to current_nesting_level,
5627         update comment accordingly. Remove calls to expand_start_target_temps
5628         and expand_end_target_temps.
5629         * cfgexpand.c (construct_init_block): Remove call to
5630         expand_start_bindings_and_block.
5631         (construct_exit_block): Remove call to expand_end_bindings.
5632         * expr.c (safe_from_p): Remove BIND_EXPR handling.
5633         (expand_expr_real_1): Ditto. Fix formatting.
5634         (expand_vars): Delete.
5635         * stmt.c (POPSTACK): Remove block_stack.
5636         (stmt_status): Remove x_block_stack.
5637         (block_stack): Delete.
5638         (expand_start_bindings_and_block): Ditto.
5639         (expand_start_target_temps): Ditto.
5640         (expand_end_target_temps): Ditto.
5641         (current_nesting_level): Ditto.
5642         (warn_about_unused_variables): Ditto.
5643         (expand_end_bindings): Ditto.
5644         * tree.h: Remove declarations for above.
5645
5646 2004-07-21  Steven Bosscher  <stevenb@suse.de>
5647
5648         * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
5649         * rtl.c (note_insn_name): Likewise.
5650         * print-rtl.c (print_rtx): Don't print it.
5651         * cfgrtl.h (can_delete_note_p): Don't handle it.
5652         (rtl_delete_block): Likewise.
5653         * passes.c (rest_of_handle_guess_branch_prob): Remove.
5654         (rest_of_compilation): Don't call it.
5655         * predict.c (process_note_predictions, process_note_prediction,
5656         note_prediction_to_br_prob): Remove.
5657         * basic-block.c (note_prediction_to_br_prob): Remove prototype.
5658         * stmt.c (return_prediction): Remove.
5659         (expand_value_return): Don't call it.  Don't add prediction
5660         notes for return statements.
5661
5662 2004-07-21  Josef Zlomek  <zlomekj@suse.cz>
5663
5664         * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
5665         once.
5666
5667 2004-07-21  Paolo Bonzini  <bonzini@gnu.org>
5668
5669         * c-common.c (vector_types_convertible_p): Use vector types'
5670         TYPE_SIZE and TREE_TYPE instead of their mode.
5671         * convert.c (convert_to_integer): Likewise.
5672         (convert_to_vector): Likewise.
5673         * fold-const.c (fold_convert): Likewise.
5674         * varasm.c (output_constant): Likewise.
5675         * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
5676         Allow a VECTOR_TYPE initializer to be made of several vectors.
5677         For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
5678         of cleared and need_to_clear, and use fold_convert.
5679         * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
5680         integer vectors.
5681
5682 2004-07-20  Richard Henderson  <rth@redhat.com>
5683
5684         * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
5685         (expand_gimple_basic_block): out from here.  Renamed from expand_block.
5686
5687 2004-07-20  David S. Miller  <davem@nuts.davemloft.net>
5688
5689         * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
5690         enormous cost if not TARGET_HARD_MUL.
5691
5692 2004-07-20  Andrew Pinski  <apinski@apple.com>
5693
5694         PR target/16557
5695         * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
5696         (ASM_SPEC): here.
5697
5698 2004-07-21  Paul brook  <paul@codesourcery.com>
5699
5700         * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
5701
5702 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5703
5704         * fold-const.c (operand_equal_p): Temporarily support NULL args.
5705         (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
5706         (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
5707
5708 2004-07-20  Zack Weinberg  <zack@codesourcery.com>
5709
5710         * rtl.h (plus_constant): Delete.
5711         (plus_constant_wide): Rename to plus_constant.
5712         (plus_constant_for_output_wide): Delete vestigial prototype.
5713         (GEN_INT): Remove unnecessary cast.
5714         * tree.h (build_int_2, size_int_type): Delete.
5715         (build_int_2_wide): Rename to build_int_2.
5716         (size_int_wide): Rename to size_int_kind.
5717         (size_int_type_wide): Rename to size_int_type.
5718         (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
5719         Remove unnecessary cast.
5720         * tree.c (build_int_2_wide): Rename build_int_2; update comment.
5721         * explow.c (plus_constant_wide): Rename plus_constant; update comment.
5722         * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
5723         (size_int_type_wide): Rename size_int_type.
5724         (int_const_binop): Use size_int_type.
5725         * c-lex.c (interpret_integer): Use build_int_2.
5726         * final.c (split_double): Remove unnecessary casts.
5727         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
5728
5729 2004-07-20  Richard Henderson  <rth@redhat.com>
5730
5731         * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
5732         (gimplify_compound_lval): Use is_gimple_tmp_reg.
5733         * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
5734         (is_gimple_tmp_reg): New.
5735         * tree-gimple.h (is_gimple_tmp_reg): Declare.
5736
5737 2004-07-20  Richard Henderson  <rth@redhat.com>
5738
5739         * tree-pretty-print.c (dump_generic_node): Dump
5740         CALL_EXPR_HAS_RETURN_SLOT_ADDR.
5741
5742 2004-07-20  Frank Ch. Eigler  <fche@redhat.com>
5743
5744         * tree-mudflap.c (mf_set_options_fndecl): New tree.
5745         (mudflap_init): Set it.
5746         (mudflap_register_call): Remove __mf_init call.
5747         (mudflap_finish_file): Emit call to __mf_init here.  Emit a call to
5748         to pass "-ignore-reads" option to libmudflap if needed.
5749
5750 2004-07-20  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
5751
5752         PR c++/14607
5753         * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
5754         (MAKE_DECL_ONE_ONLY): Undefine.
5755         * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
5756         readonly_data, one_only_data_section, forget_section): New prototypes.
5757         * pa.c (pa_init_machine_status, som_text_section_asm_op): New
5758         functions.
5759         (pa_select_section): Add one-only (COMDAT) support.
5760         * pa.h (struct machine_function): Define.
5761         * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
5762         (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
5763         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
5764         ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
5765         ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
5766         (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
5767         (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
5768         (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
5769         ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
5770         for EXTRA_SECTION_FUNCTIONS.
5771         * doc/install.texi: Update binutils requirements.
5772
5773 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
5774
5775         * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
5776         VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
5777         VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
5778         size_t.
5779         (struct VEC): Use unsigned for num and alloc.
5780         * vec.c (struct vec_prefix): Likewise.
5781         (vec_o_reserve): Adjust.
5782
5783         * dbxout.c (dbxout_type): Fix printf format.
5784
5785         * tree.h (binfo_member): Remove.
5786         * tree.c (binfo_member): Remove.
5787
5788 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
5789
5790         * tree.h: Include vec.h
5791         (DEF_VEC_P(tree)): New type.
5792         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
5793         (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
5794         (BINFO_LANG_SLOT): Remove.
5795         (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
5796         (struct tree_binfo): Turn base_binfos into a trailing
5797         VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
5798         (binfo_lang_slots): Remove.
5799         * tree.c (binfo_lang_slots): Remove.
5800         (make_tree_binfo_stat): Take a base binfo count, not a
5801         lang slot count.  Adjust.
5802         * Makefile.in (TREE_H): Add vec.h
5803         * alias.c (record_component_aliases): Adjust BINFO access.
5804         * dbxout.c (dbxout_type): Likewise.
5805         * dwarf2out.c (gen_member_die): Likewise.
5806         * sdbout.c (sdbout_one_type): Likewise.
5807         * tree-dump.c (deque_and_dump): Likewise.
5808         * config/i386/i386.c (classify_argument,
5809         contains_128bit_aligned_vector_p): Likewise.
5810         * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
5811         * doc/c-tree.texi (Classes): Update BINFO documentation.
5812
5813 2004-07-20  Steven Bosscher  <stevenb@suse.de>
5814
5815         * c-common.h (check_case_value): Remove prototype.
5816         (c_add_case_label): Adjust prototype.
5817         * c-common.c (check_case_value): Make static.
5818         (check_case_bounds): New function.
5819         (c_add_case_label): Use it.  Take new argument orig_type.
5820         * c-typeck.c (struct c_switch): New orig_type field.
5821         (c_start_case): Set it.
5822         (do_case): Pass it to c_add_case_label.
5823         * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
5824         cases from here.  Add the labels in reverse order.
5825         * stmt.c (struct case_node): Adjust comment.  Remove balance field.
5826         (add_case_node): Return nothing, don't check for duplicate cases.
5827         Insert new case nodes in a list, not in an AVL tree.
5828         (expand_end_case_type): Don't turn a case tree into a case list.
5829         (case_tree2list): Remove.
5830         * tree.h (add_case_node): Adjust prototype.
5831
5832 2004-07-19  Paolo Bonzini  <bonzini@gnu.org>
5833
5834         * genattr.c (struct range, struct function_unit,
5835         write_units, extend_range, init_range): Remove them.
5836         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
5837         Output "#define INSN_SCHEDULING" here.
5838         * genattrtab.c (struct range, struct function_unit_op,
5839         struct function_unit, struct dimension, enum operator,
5840         operate_exp, expand_units, simplify_knowing,
5841         encode_units_mask, simplify_by_exploding,
5842         find_and_mark_used_attributes, unmark_used_attributes,
5843         add_values_to_cover, increment_current_value,
5844         test_for_current_value, simplify_with_current_value,
5845         simplify_with_current_value_aux, gen_unit,
5846         write_unit_name, write_function_unit_info,
5847         write_complex_function, write_toplevel_expr,
5848         find_single_value, extend_range): Remove.
5849         (write_attr_get): Do not handle common_av->value
5850         being an FFS.
5851         (struct attr_desc): Remove func_units_p and blockage_p.
5852         (write_attr_valueq): Do not handle them.
5853         (find_attr): Do not clear them.
5854         (make_internal_attr): Do not initialize them.
5855         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
5856         * sched-vis.c (init_target_units, insn_print_units,
5857         init_block_visualization, print_block_visualization,
5858         visualize_scheduled_insns, visualize_no_unit,
5859         visualize_stall_cycles, visualize_alloc,
5860         visualize_free, target_units, get_visual_tbl_length,
5861         MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
5862         visual_tbl_line_length, visual_tbl, n_vis_no_unit,
5863         MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
5864         * haifa-sched.c (blockage_range, clear_units,
5865         schedule_unit, actual_hazard, potential_hazard,
5866         insn_unit, unit_last_insn, unit_tick,
5867         actual_hazard_this_instance, potential_hazard,
5868         schedule_unit, max_insn_queue_index_value): Remove.
5869         (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
5870         max_insn_queue_index.
5871         * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
5872         * doc/md.texi (Processor pipeline description): Remove
5873         references to old pipeline descriptions.
5874         (Automaton pipeline description): Merge with the above.
5875         (Old pipeline description, Comparison of the two descriptions):
5876         Remove.
5877
5878         * bt-load.c (migrate_btr_def): Remove references to
5879         use_pipeline_interface.
5880         * haifa-sched.c (insn_cost, schedule_insn,
5881         schedule_block, advance_one_cycle, sched_init,
5882         queue_to_ready, sched_finish): Likewise.
5883         * modulo-sched.c (sms_schedule, advance_one_cycle,
5884         ps_has_conflicts): Likewise.
5885         * sched-rgn.c (init_ready): Likewise.
5886         (debug_dependencies): Likewise, and remove an "if (1)".
5887         * target.h (use_dfa_pipeline_interface): Remove.
5888         * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
5889         * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
5890         * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
5891         * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
5892         * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
5893         * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
5894         * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
5895         * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
5896         * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
5897         * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
5898         * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
5899         * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
5900         * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
5901         * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
5902         * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
5903         * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
5904         * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
5905         * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
5906         * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
5907
5908 2004-07-19  Roger Sayle  <roger@eyesopen.com>
5909
5910         * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
5911
5912 2004-07-19  Jeff Law  <law@redhat.com>
5913
5914         * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
5915         (get_eq_expr_value): Use it.  Simplify slightly.
5916
5917 2004-07-19  Maciej W. Rozycki  <macro@linux-mips.org>
5918
5919         * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
5920         (umulsidi3_32bit_r4000): Likewise.
5921
5922 2004-07-19  Nathan Sidwell  <nathan@codesourcery.com>
5923
5924         * vec.h: Propagate location information properly.
5925         (VEC_T_iterate): Add result pointer parameter.
5926         (VEC_T_space): New.
5927         (VEC_T_reserve): Use it.
5928
5929 2004-07-19  Daniel Jacobowitz  <dan@debian.org>
5930
5931         * Makefile.in (c-format.o): Depend on c-format.h.
5932         * c-format.h: New file.
5933         (struct format_char_info): Add CHAIN member.
5934         * c-format.c: Move some types and constants to c-format.h.
5935         (format_type_error): Set to -1.
5936         (struct function_format_info): Use an int for format_type.
5937         (decode_format_type): Return an int.  Return format_type_error
5938         on error.
5939         (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
5940         (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
5941         (scan_char_table, time_char_table, monetary_char_table): Initialize
5942         CHAIN to NULL.
5943         (n_format_types): New variable.
5944         (check_format_info_main): Handle CHAIN in format_char_info.
5945         (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
5946         TARGET_N_FORMAT_TYPES.
5947         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
5948         (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
5949         * config/sol2-c.c: New file.
5950         * config/t-sol2: New file.
5951         * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
5952         * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
5953         TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
5954
5955         * doc/extend.texi (Target Format Checks): New section.
5956         (Function Attributes): Mention it.
5957         * doc/invoke.texi: Mention target format checks.
5958         * doc/sourcebuild.texi: Mention target format checks.
5959         * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
5960         TARGET_FORMAT_TYPES.
5961
5962 2004-07-19  Andreas Krebbel  <krebbel1@de.ibm.com>
5963
5964         * config/s390/s390-protos.h (s390_return_address_offset): Prototype
5965         added.
5966         * config/s390/s390.c (regclass_map initializer): Register 35 added to
5967         ADDR_REGS.
5968         (load_multiple_operation, store_multiple_operation): Removed
5969         pointless sanity check.
5970         (s390_decompose_address): Added check for return_address_pointer_rtx.
5971         (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
5972         (s390_return_address_offset): New function.
5973         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
5974         (FRAME_REGNO_P): Added check for register 35.
5975         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5976         REG_ALLOC_ORDER): Appended entry for register 35.
5977         (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
5978         (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
5979         (RETURN_ADDRESS_POINTER_REGNUM): New macro.
5980         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
5981         is eliminable using stack pointer or hard frame pointer.
5982         (REGISTER_NAMES): Added name for register 35.
5983         * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
5984         pointless sanity check.
5985
5986 2004-07-19  Roger Sayle  <roger@eyesopen.com>
5987
5988         * fold-const.c (tree_expr_nonzero_p): Add function prototype.
5989         (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
5990         fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
5991         (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
5992         of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
5993         (fold_relational_const): Tidy up handling of floating point
5994         comparisons by calling real_compare.  Remove tree_expr_nonzero_p
5995         transformation; fold_relational_const assumes constant operands.
5996
5997 2004-07-19  Gabriel Dos Reis  <gdr@integrable-solution.net>
5998
5999         * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
6000         directory.
6001
6002 2004-07-19  Joseph S. Myers  <jsm@polyomino.org.uk>
6003
6004         * c-tree.h (struct c_expr): Define.
6005         (C_SET_EXP_ORIGINAL_CODE): Remove.
6006         (parser_build_binary_op, build_compound_expr): Update prototypes.
6007         * c-parse.in (%union): Add exprtype.
6008         (FUNC_NAME): Mark as ttype.
6009         (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
6010         exprtype.
6011         (expr): Update.  Define directly in terms of expr_no_commas
6012         instead of using nonnull_exprlist.
6013         (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
6014         offsetof_member_designator, typespec_nonreserved_nonattr, init,
6015         initval, designator, component_declarator,
6016         component_notype_declarator, enumerator, array_declarator,
6017         condition, exexpr, switch_statement, stmt_nocomp, stmt,
6018         nonnull_asm_operands, ivar_declarator, receiver): Update.  Don't
6019         set C_EXP_ORIGINAL_CODE.  Use TREE_NO_WARNING for assignments
6020         where appropriate.
6021         * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
6022         * c-common.c (c_common_truthvalue_conversion): Don't check
6023         C_EXP_ORIGINAL_CODE.
6024         * c-typeck.c (parser_build_binary_op): Use c_expr structures.
6025         Don't use C_EXP_ORIGINAL_CODE.
6026         (default_conversion, default_function_array_conversion): Don't use
6027         C_EXP_ORIGINAL_CODE.  Preserve TREE_NO_WARNING.
6028         (internal_build_compound_expr): Merge into build_compound_expr.
6029         (build_compound_expr): Take two operands instead of a TREE_LIST.
6030         * objc/objc-act.c (get_super_receiver): Update calls to
6031         build_compound_expr.
6032
6033 2004-07-18  Paolo Bonzini  <bonzini@gnu.org>
6034
6035         * config/sh/sh.c (sh_use_dfa_interface): Remove.
6036         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
6037         hook_int_void_1.
6038         * config/sh/sh.md: Extract pipeline descriptions
6039         into separate files.
6040         * config/sh/sh1.md: New file, extracted from sh.md.
6041         * config/sh/sh4.md: New file, extracted from sh.md.
6042         * config/sh/shmedia.md: New file, extracted from sh.md
6043         and rewritten using new-style pipeline description.
6044
6045 2004-07-18  Zack Weinberg  <zack@codesourcery.com>
6046
6047         * config/pa/pa.md: Delete the two remaining define_peephole
6048         patterns.
6049
6050 2004-07-18  Steven Bosscher  <stevenb@suse.de>
6051             Joseph S. Myers  <jsm@polyomino.org.uk>
6052
6053         * c-common.c (c_common_truthvalue_conversion): Don't warn if
6054         TREE_NO_WARNING is set.
6055
6056 2004-07-18  Roger Sayle  <roger@eyesopen.com>
6057
6058         * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
6059         simplify_builtin_strncmp): Delete.
6060         (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
6061         Change argument to accept an arglist instead of an "exp".  Assume
6062         that the return type is always integer_type_node.  Copy missing
6063         transformations from their now obsolete simplify_builtin_*
6064         equivalents.
6065         (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
6066         fold_builtin_strcmp and fold_builtin_strncmp.
6067         (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
6068         and fold_builtin_strncmp instead of simplify_builtin_memcmp,
6069         simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
6070
6071 2004-07-18  Daniel Jacobowitz  <dan@debian.org>
6072
6073         * Makefile.in (tree-alias-common.o): Update dependencies.
6074
6075 2004-07-17  Sebastian Pop  <pop@cri.ensmp.fr>
6076
6077         * cfgloop.c (flow_loop_nested_p): Fix comment.
6078
6079 2004-07-17  Jason Merrill  <jason@redhat.com>
6080
6081         PR c++/16115
6082         * stor-layout.c (relayout_decl): New fn.
6083         * tree.h: Declare it.
6084         (DECL_BY_REFERENCE): New macro.
6085
6086 2004-07-17  Eric Botcazou  <ebotcazou@act-europe.fr>
6087
6088         * libgcc2.c (__enable_execute_stack): New symbol.
6089         * libgcc-std.ver (GCC_3.4.2): New version.  Inherit from GCC_3.4
6090         and declare __enable_execute_stack.
6091         * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
6092         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
6093         * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
6094         ENABLE_EXECUTE_STACK.
6095         * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
6096         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
6097         * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
6098         ENABLE_EXECUTE_STACK.
6099         * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
6100         * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
6101         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
6102         * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
6103         ENABLE_EXECUTE_STACK.
6104         * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
6105         * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
6106         * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
6107         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
6108         * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
6109         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
6110         (sparc64_initialize_trampoline): Likewise.
6111         * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
6112
6113 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
6114
6115         * langhooks.h (builtin_function): New langhook.
6116         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
6117         (LANG_HOOKS_INITIALIZER): Update.
6118         * tree.h (builtin_function): Remove.
6119         * doc/tm.texi: Update.
6120         * c-tree.h (builtin_function): Declare.
6121         * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
6122         config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
6123         config/ia64/ia64.c, config/iq2000/iq2000.c,
6124         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
6125         config/stormy16/stormy16.c: All callers of builtin_function
6126         changed.
6127
6128 2004-07-17  Andrew Pinski  <pinskia@physics.uc.edu>
6129
6130         PR target/16556
6131         * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
6132         Remove white space after the backslash.
6133
6134 2004-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
6135
6136         PR rtl-optimization/16294
6137         * resource.c (return_insn_p): New predicate.
6138         (mark_target_live_regs): Use it.  Special-case return insns.
6139         (init_resource_info): Use it.  Don't scan the epilogue past
6140         a return.
6141
6142 2004-07-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6143
6144         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
6145         destroy dominance information.
6146         * passes.c (rest_of_handle_loop2):  Free dominance information.
6147         * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
6148         jump threading.
6149         (thread_jumps): Update dominance information and remove unreachable
6150         blocks.
6151         * tree-ssa-phiopt.c (replace_phi_with_stmt):  Update dominance
6152         information and remove the unreachable block.
6153
6154 2004-07-17  Graham Stott  <graham.stott@btinternet.com>
6155
6156         * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
6157
6158 2004-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
6159
6160         * doc/sourcebuild.texi: Remove libf2c entry.
6161
6162 2004-07-17  Paolo Bonzini  <bonzini@gnu.org>
6163
6164         * config/i386/i386.md (movv16qi_internal): Fix typo.
6165
6166 2004-07-17  Steven Bosscher  <stevenb@suse.de>
6167
6168         * final.c (final_scan_insn): Fix broken commit from previous
6169         patch.
6170
6171 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
6172
6173         * c-typeck.c (parser_build_binary_op): Condition warnings for
6174         X<=Y<=Z on -Wparentheses instead of -Wextra.
6175         * doc/invoke.texi: Update.  Document that most of -Wparentheses is
6176         supported for C only.
6177
6178 2004-07-17  Steven Bosscher  <stevenb@suse.de>
6179
6180         * cfgcleanup.c (try_simplify_condjump): Don't remove line
6181         notes to avoid unreachable code warnings.
6182         * toplev.c (backend_init): Don't emit line notes for
6183         unreachable code warnings.
6184
6185         * combine.c (distribute_notes): Don't distribute a
6186         REG_VTABLE_REF note.
6187         * final.c (final_scan_insn): Don't handle it.
6188         * rtl.c (reg_note_name): Remove it.
6189         * rtl.h (enum reg_node): Dito.
6190
6191         * emit-rtl.c (force_line_numbers, restore_line_number_status):
6192         Remove.
6193         * rtl.h (force_line_numbers, restore_line_number_status):
6194         Remove prototypes.
6195
6196         * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
6197         * tree-eh.c (using_eh_for_cleanups_p): ...here.  Make static.
6198         (using_eh_for_cleanups): Also moved here.
6199
6200         * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
6201         <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY.  Update calls
6202         to expand_start_case and add_case_node.
6203         * stmt.c (struct nesting): Cleanup unused fields condition_code,
6204         last_unconditional_cleanup, nominal_type, printname, and
6205         line_number_status.
6206         (struct fixup_goto): Remove.
6207         (struct stmt_status): Remove x_goto_fixup_chain field.
6208         (goto_fixup_chain): Remove.
6209         (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
6210         pushcase, pushcase_range): Remove.
6211         (expand_start_bindings_and_block): Don't set unused fields in
6212         the nesting stack.
6213         (expand_start_case, add_case_node): Cleanup unused formal arguments.
6214         (expand_end_case_type): Don't simplify the case-list.  Use emit_jump
6215         instead of emit_jump_if_reachable.
6216         (emit_case_nodes): Likewise.
6217         * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
6218         static.
6219         (update_eh_label): Work around left-over exception handing regions.
6220         * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
6221         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
6222         (pass_cleanup_cfg_post_optimizing): New pass.
6223         (init_tree_optimization_passes): Run the new pass after all
6224         optimizations.
6225         * tree.h (pushcase, pushcase_range): Remove prototypes.
6226         (expand_start_case, add_case_node): Update prototypes.
6227
6228 2004-07-16  Krister Walfridsson  <cato@df.lth.se>
6229
6230         * tree-inline.c (estimate_num_insns_1): Correct increase of count.
6231
6232 2004-07-16  Richard Henderson  <rth@redhat.com>
6233
6234         * builtins.c (std_expand_builtin_va_arg): Remove.
6235         (expand_builtin_va_arg): Remove.
6236         * expr.h: Don't declare them.
6237         * gimplify.c (mark_decls_volatile_r): Remove.
6238         (copy_if_shared_r): Don't call it.
6239         * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
6240         * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
6241         * gimple-low.c (lower_stmt): Likewise.
6242         * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
6243         * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
6244         * tree-ssa-operands.c (get_expr_operands): Likewise.
6245         * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
6246         EXPAND_BUILTIN_VA_ARG.
6247         * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
6248         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
6249         config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
6250         config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
6251
6252 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
6253
6254         * tree-ssa-pre.c (insert_aux): Break out if we hit
6255         a critical edge.
6256
6257 2004-07-16  Richard Henderson  <rth@redhat.com>
6258
6259         * basic-block.h (remove_fake_exit_edges): Declare.
6260         * cfganal.c (remove_fake_predecessors): Rename from
6261         remove_fake_successors; iterate over predecessors.
6262         (remove_fake_exit_edges): New.
6263         * cfgcleanup.c (try_optimize_cfg): Use it.
6264         * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
6265         * predict.c (estimate_probability): Likewise.
6266         (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
6267         * tree-cfg.c (make_edges): Likewise.
6268         * tree-ssa-pre.c (fini_pre): Likewise.
6269         * profile.c (instrument_edges): Don't remove_fake_edges.
6270         (branch_prob): Do it earlier here.
6271
6272 2004-07-16  Richard Henderson  <rth@redhat.com>
6273
6274         * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
6275         switchification wrt CONSTRUCTOR.  Document the reason.
6276
6277 2004-07-16  Frank Ch. Eigler  <fche@redhat.com>
6278
6279         * tree-mudflap.c (mf_file_function_line_tree): Correct typo
6280         that prevented descriptive __mf_check source location strings.
6281
6282 2004-07-16  Richard Henderson  <rth@redhat.com>
6283
6284         * tree-def (WITH_SIZE_EXPR): New.
6285         * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
6286         * expr.c (expand_expr_real_1): Likewise.
6287         * gimplify.c (maybe_with_size_expr): New.
6288         (gimplify_arg, gimplify_modify_expr): Use it.
6289         (gimplify_modify_expr_to_memcpy): Take size parameter.
6290         (gimplify_modify_expr_to_memset): Likewise.
6291         (gimplify_expr): Handle WITH_SIZE_EXPR.
6292         * tree-alias-common.c (find_func_aliases): Likewise.
6293         * tree-eh.c (tree_could_trap_p): Likewise.
6294         (tree_could_throw_p): Likewise.
6295         * tree-gimple.c (is_gimple_lvalue): Likewise.
6296         (get_call_expr_in): Likewise.
6297         * tree-inline.c (estimate_num_insns_1): Likewise.
6298         (expand_calls_inline): Likewise.
6299         * tree-nested.c (convert_call_expr): Likewise.
6300         * tree-pretty-print.c (dump_generic_node): Likewise.
6301         * tree-sra.c (sra_walk_expr): Likewise.
6302         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
6303         * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
6304         * tree-ssa-operands.c (get_expr_operands): Likewise.
6305         * tree-tailcall.c (find_tail_calls): Likewise.
6306
6307         * calls.c (expand_call): Reset old_stack_allocated after
6308         calling emit_stack_restore.
6309
6310 2004-07-16  Richard Henderson  <rth@redhat.com>
6311
6312         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
6313         lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
6314         * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
6315         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
6316         copy_res_decl_for_inlining.
6317
6318         * tree-inline.c (declare_return_variable): New modify_dest argument.
6319         Use it as the return value, when possible or manditory.  Handle
6320         TREE_ADDRESSABLE types.
6321         (expand_call_inline): Extract MODIFY_EXPR lhs for call.  Simplify
6322         replacement of CALL_EXPR.
6323
6324 2004-07-16  Richard Henderson  <rth@redhat.com>
6325
6326         * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
6327         * gimple-low.c (expand_var_p): Don't check it.
6328         * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
6329         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
6330         * tree-ssa-operands.c (add_stmt_operand): Likewise.
6331         * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
6332         (find_referenced_vars): Don't call them.
6333         * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
6334
6335 2004-07-16  Richard Henderson  <rth@redhat.com>
6336
6337         * function.c (pass_by_reference): True for all variable sized types.
6338
6339 2004-07-16  Sebastian Pop  <pop@cri.ensmp.fr>
6340
6341         * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
6342         * tree-pretty-print.c: Include tree-chrec.h.
6343         (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
6344         and POLYNOMIAL_CHREC nodes.
6345
6346 2004-07-16  Steve Ellcey  <sje@cup.hp.com>
6347
6348         * builtins.c (expand_builtin_stpcpy): Do not create temporary
6349         reg with VOIDmode.
6350
6351 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
6352
6353         * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
6354
6355 2004-07-16  Andreas Krebbel  <krebbel1@de.ibm.com>
6356
6357         * config/s390/s390.md: Changed every occurence of BASE_REGISTER
6358         to BASE_REGNUM.
6359         * config/s390/s390.c: Likewise.
6360         * config/s390/s390.h: Likewise.
6361
6362 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
6363
6364         * config/mips/mips.md (addsi3, adddi3): Remove special handling
6365         of $sp adds.  Remove REGNO checks from mips16 patterns.
6366
6367 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
6368
6369         * config/mips/mips.md: Delete outdated comment.
6370
6371 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
6372
6373         * config/mips/mips.c (get_float_compare_codes): Delete.
6374         (mips_emit_compare): New function, mostly extracted from
6375         get_float_compare_codes and gen_conditional_branch.
6376         (gen_conditional_branch, gen_conditional_move): Use it.
6377
6378 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
6379
6380         * genautomata.c (add_vect): Speedup by using integers as
6381         bit-vectors for walking through the comb_vect and finding
6382         a match.
6383
6384 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
6385
6386         * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
6387         operand is an uns_arith_operand; use subtraction otherwise.
6388         * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
6389         not just arith_operands.
6390
6391 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
6392
6393         * config/mips/mips-protos.h (gen_int_relational): Delete.
6394         (mips_emit_scc): Declare.
6395         * config/mips/mips.c (internal_test): Delete.
6396         (sle_operand, sleu_operand): New functions.
6397         (map_test_to_internal_test, gen_int_relational): Delete.
6398         (mips_emit_binary, mips_relational_operand_ok_p)
6399         (mips_emit_int_relational, mips_zero_if_equal)
6400         (mips_emit_scc): New functions.
6401         (gen_conditional_branch): Rework to use mips_emit_int_relational.
6402         * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
6403         sleu_operand.
6404         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
6405         (sltu, sleu): Use mips_emit_scc.
6406         (*sge_[sd]i, *sgeu_[sd]i): New patterns.
6407         (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
6408         (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
6409
6410 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
6411
6412         * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
6413
6414 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
6415
6416         * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
6417         (*sne_[sd]i): Likewise sne_[sd]i_zero.
6418         (*sgt_[sd]i): ...and sgt_[sd]i.
6419         (*slt_[sd]i): ...and slt_[sd]i.
6420         (*sgtu_[sd]i): ...and sgtu_[sd]i.
6421         (*sltu_[sd]i): ...and sltu_[sd]i.
6422         (*sleu_[sd]i): ...and sleu_[sd]i_const.
6423         Name previously unnamed mips16 patterns.  Formatting fixes.
6424
6425 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
6426
6427         * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
6428         (branch_type): Delete.
6429         (gen_conditional_branch, gen_conditional_move)
6430         (mips_gen_conditional_trap): Update after name change.  Get the
6431         comparison mode from cmp_operands[0].
6432         * config/mips/mips.h (cmp_type, branch_type): Delete.
6433         (cmp_operands): Renamed from branch_cmp.
6434         * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
6435         name change.  Don't set branch_type.
6436         (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
6437         mode class of cmp_operands[0] rather than branch_type.  Update after
6438         name change.
6439
6440 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
6441
6442         * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
6443         of 0...255 to 0 when inside a SET.
6444
6445 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
6446
6447         * config/mips/mips.md: Remove mips16 define_peepholes.
6448
6449 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
6450
6451         * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
6452         (fini_pre): Remove fake edges.
6453
6454 2004-07-15  Richard Henderson  <rth@redhat.com>
6455
6456         * tree-ssa-operands.c (get_expr_operands): Use a switch.  Split out...
6457         (get_indirect_ref_operands, get_call_expr_operands): ... these.
6458
6459 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
6460
6461         * vec.h (VEC_address): New function.
6462
6463 2004-07-14  Jason Merrill  <jason@redhat.com>
6464
6465         PR middle-end/15885
6466         * gimplify.c (gimplify_arg): New fn, split out from...
6467         (gimplify_call_expr): Here.  Special-case BUILT_IN_VA_START.
6468
6469 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
6470
6471         * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
6472         generate code which is generated by pushqi1 now
6473         * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
6474
6475 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
6476
6477         * combine.c (simplify_set): match the mode of the constant 0 with
6478         the tested operand to match the compare behaviour and the
6479         simplify_relational_operation() expectation.
6480
6481 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
6482
6483         * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
6484         ("bordered"): Same.
6485
6486 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
6487
6488         * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
6489         unconditionally.
6490         * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
6491
6492 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
6493
6494         * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
6495         calls in mips16 code.
6496
6497 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
6498
6499         * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
6500         the destination of the li as well as for the neg.
6501
6502 2004-07-15  Frank Ch. Eigler  <fche@redhat.com>
6503
6504         g++/15861
6505         * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
6506         * cgraph.h: Update declaration.
6507         * c-decl.c (build_cdtor): Update call with default priority.
6508         * coverage.c (create_coverage): Ditto.
6509         * tree-mudflap.c (mf_init_fndecl): New tree.
6510         (mudflap_init): Set it.
6511         (mudflap_register_call): Arrange to call __mf_init before the first
6512         __mf_register call.
6513         (mudflap_finish_file): Mark the mudflap static initializer as extra
6514         high priority, to beat all C++ static constructors.
6515
6516 2004-07-15  Jeff Law  <law@redhat.com>
6517
6518         * loop.c (check_insn_for_givs): Restore check for code labels that was
6519         accidentally deleted by a recent checkin.
6520
6521 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
6522
6523         * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
6524         (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
6525
6526 2004-07-14  Richard Henderson  <rth@redhat.com>
6527
6528         * print-tree.c (print_node): Fix casts last change.
6529
6530 2004-07-15  Paul Brook  <paul@codesourcery.com>
6531
6532         * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
6533         to TARGET_UNWIND_INFO.
6534         * except.c (output_function_exception_table): Ditto.
6535         * except.h: Ditto.
6536         * opts.c (decode_options): Ditto.
6537         * passes.c (rest_of_handle_final): Ditto.
6538         * final.c (final_start_function): Ditto.
6539         (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
6540         target hook.
6541         * targhooks.h (default_unwind_emit): Declare.
6542         * targhooks.c (default_unwind_emit): New function.
6543         * target-def.h: Define and use TARGET_UNWIND_EMIT.
6544         * target.h (struct gcc_target): Add unwind_emit.
6545         * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
6546         * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
6547         Remove IA64_UNWIND_EMIT.
6548         * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
6549
6550 2004-07-14  Richard Henderson  <rth@redhat.com>
6551
6552         * print-tree.c (print_node): Handle SSA_NAME.
6553
6554 2004-07-14  James E Wilson  <wilson@specifixinc.com>
6555
6556         PR target/16325
6557         * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
6558         and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
6559
6560 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
6561
6562         * expr.c (expand_assignment): Reenable bitfield += optimizations.
6563         Use alias set 0 for memory, do proper mode calculations and adjust
6564         address for memories.
6565
6566 2004-07-14  Per Bothner  <per@bothner.com>
6567
6568         * input.h:  If USE_MAPPED_LOCATION, define separate expanded_location
6569         structure with extra column field.
6570         * tree.c (expand_location):  Also fill in column field.
6571         * gengtype-lex.l:  Ignore expanded_location typedef, sinze gengtype
6572         gets confused by the two conditionally-compiled definitions.
6573
6574 2004-07-14  Eric Christopher  <echristo@redhat.com>
6575
6576         * calls.c (expand_call): Fix typo in comment.
6577
6578 2004-07-14  Steve Ellcey  <sje@cup.hp.com>
6579
6580         * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
6581         comparision of TFmode.
6582
6583 2004-07-14  Richard Henderson  <rth@redhat.com>
6584
6585         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
6586         (alpha_gimplify_va_arg): ... handling here.  Use pass_by_reference.
6587         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
6588         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
6589         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
6590         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6591         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
6592         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
6593         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6594
6595 2004-07-14  Mike Stump  <mrs@apple.com>
6596
6597         * config/darwin.h (WINT_TYPE): Define to be int to match
6598         system header files.
6599
6600 2004-07-14  Bob Wilson  <bob.wilson@acm.org>
6601
6602         * config/xtensa/xtensa.c (function_arg_advance): Check for args
6603         that must be passed in the stack.
6604         (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
6605         arguments if the size is not a constant.
6606
6607 2004-07-14  Per Bothner  <per@bothner.com>
6608
6609         * c-typeck.c (emit_side_effect_warnings):  Use EXPR_HAS_LOCATION
6610         instead of EXPR_LOCUS in a boolean context, which is always true
6611         if --enable-mapped-location.
6612         * stmt.c (warn_if_unused_value):  Likewise.  Also use EXPR_LOCATION.
6613
6614 2004-07-14  Richard Henderson  <rth@redhat.com>
6615
6616         * dominance.c (struct dom_info): Add fake_exit_edge.
6617         (init_dom_info): Allocate it.
6618         (free_dom_info): Free it.
6619         (calc_dfs_tree): Set it.  Handle noreturn and infinite loops
6620         in two passes.
6621         (calc_idoms): Honor fake_exit_edge.
6622
6623 2004-07-13  Jason Merrill  <jason@redhat.com>
6624
6625         * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
6626         (rhs_test_for): New fn.
6627         (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
6628         * tree-gimple.h: Declare them.
6629         * gimplify.c (gimplify_modify_expr): Use the new fns.
6630
6631 2004-07-14  Richard Henderson  <rth@redhat.com>
6632
6633         * config/arm/arm-protos.h (arm_va_arg): Remove.
6634         * config/arm/arm.c (arm_va_arg): Remove.
6635         (arm_init_expanders): Fix alignment of arg_pointer_rtx.
6636         * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
6637
6638 2004-07-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6639
6640         * pa.c (fix_range): New function to mark a range(s) of registers as
6641         fixed registers.
6642         (override_options): Call fix_range if the -mfixed-range option string
6643         is not empty.
6644         * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
6645         * doc/invoke.texi (-mfixed-range): Document new option.
6646
6647 2004-07-14  David Edelsohn  <edelsohn@gnu.org>
6648
6649         * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
6650         for TARGET_64BIT.
6651         (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
6652
6653 2004-07-14  Roger Sayle  <roger@eyesopen.com>
6654
6655         * expmed.c (expand_sdiv_pow2): New function to expand signed division
6656         by a positive power of two, split out from expand_divmod.  Provide
6657         an alternate implementation when shifts are expensive.  Lower the
6658         threshold for using a branchless implementation to BRANCH_COST >= 2.
6659         (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
6660
6661 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
6662
6663         * tree-dfa.c (make_rename_temp): *Really* work just
6664         like create_tmp_var if called while outside SSA form.
6665
6666 2004-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
6667
6668         * config/s390/s390.md ("udivsi3"): Ensure trap is generated
6669         for division by zero.
6670         ("umodsi3"): Likewise.
6671
6672 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
6673
6674         * config/mips/mips.c (mips_output_move): When generating mips16 code,
6675         force loads of negative constants to be split.
6676         * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
6677         Generalize SImode li/neg splitter to cope with other modes.
6678
6679 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
6680
6681         * expmed.c: Remove more references to QUEUED in the comments.
6682         * expr.c: Likewise.
6683
6684 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
6685
6686         Revert:
6687         2004-07-13  Richard Henderson  <rth@redhat.com>
6688         * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
6689         correctly.
6690
6691 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
6692
6693         * tree-dfa.c (make_rename_temp): Work just like
6694         create_tmp_var if called while outside SSA form.
6695
6696 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
6697
6698         * expr.c (enqueue_insn, finish_expr_for_function,
6699         protect_from_queue, queued_subexp_p, mark_queue,
6700         emit_insns_enqueued_after_mark, emit_queue,
6701         expand_increment): Remove.
6702         (store_constructor): Expand increment as an assignment.
6703         (expand_expr_real_1 <case PREINCREMENT_EXPR,
6704         case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
6705         case POSTDECREMENT_EXPR>): Abort.
6706         * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
6707         QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
6708         protect_from_queue, emit_queue, queued_subexp_p): Remove.
6709         * function.h (pending_chain, x_pending_chain): Remove.
6710         * rtl.def (QUEUED): Remove.
6711
6712         * emit-rtl.c (copy_insn_1, copy_most_rtx,
6713         set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
6714         * genattrtab.c (attr_copy_rtx, clear_struct_flag,
6715         encode_units_mask): Likewise.
6716         * local-alloc.c (equiv_init_varies_p): Likewise.
6717         * rtl.c (copy_rtx): Likewise.
6718         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
6719         * simplify-rtx.c (simplify_gen_subreg): Likewise.
6720         * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
6721
6722         * builtins.c (expand_builtin, expand_builtin_apply,
6723         expand_builtin_mathfn, expand_builtin_mathfn_2,
6724         expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
6725         Remove calls to emit_queue and protect_from_queue.
6726         * calls.c (expand_call, precompute_arguments,
6727         precompute_register_parameters, rtx_for_function_call,
6728         store_one_arg): Likewise.
6729         * dojump.c (do_compare_and_jump, do_jump): Likewise.
6730         * explow.c (memory_address): Likewise.
6731         * expmed.c (clear_by_pieces_1, clear_storage,
6732         clear_storage_via_libcall, emit_group_load,
6733         emit_group_store, emit_store_flag,
6734         expand_expr_real_1, store_by_pieces,
6735         store_constructor, store_expr, try_casesi,
6736         try_tablejump): Likewise.
6737         * function.c (expand_pending_sizes): Likewise.
6738         * optabs.c (emit_cmp_and_jump_insns,
6739         emit_conditional_add, emit_conditional_move,
6740         expand_fix, expand_float, prepare_cmp_insn): Likewise.
6741         * stmt.c (emit_case_bit_tests,
6742         expand_asm_expr, expand_computed_goto,
6743         expand_decl_init, expand_end_case_type,
6744         expand_end_stmt_expr, expand_expr_stmt_value,
6745         expand_return, expand_start_case,
6746         optimize_tail_recursion): Likewise.
6747         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
6748         * config/s390/s390.c (s390_expand_cmpmem): Likewise.
6749
6750 2004-07-14  Ben Elliston  <bje@au.ibm.com>
6751
6752         * vec.h: Comment fix.
6753
6754 2004-07-13  Richard Henderson  <rth@redhat.com>
6755
6756         * target.h (struct gcc_target): Add calls.pass_by_reference.
6757         * target-def.h (TARGET_PASS_BY_REFERENCE): New.
6758         * function.c (pass_by_reference): Use the hook.
6759         * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
6760         * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
6761         (hook_pass_by_reference_must_pass_in_stack): New.
6762         * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
6763         (alpha_pass_by_reference): New.
6764         (TARGET_PASS_BY_REFERENCE): New.
6765         * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6766         * config/arc/arc.c (arc_pass_by_reference): New.
6767         (TARGET_PASS_BY_REFERENCE): New.
6768         * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6769         (FUNCTION_ARG_CALLEE_COPIES): True.
6770         * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
6771         * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
6772         (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
6773         * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6774         * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6775         * config/cris/cris.c (cris_pass_by_reference): New.
6776         (TARGET_PASS_BY_REFERENCE): New.
6777         * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
6778         (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
6779         (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6780         * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
6781         * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6782         * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
6783         * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
6784         (frv_function_arg_pass_by_reference): Remove.
6785         * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6786         * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
6787         * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
6788         (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
6789         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6790         * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
6791         * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
6792         (ia64_pass_by_reference): Rename from
6793         ia64_function_arg_pass_by_reference.
6794         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6795         * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6796         * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
6797         * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
6798         (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
6799         * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6800         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
6801         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
6802         * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
6803         (m32r_pass_by_reference): Adjust prototype.  Make static.
6804         Handle mode sizes correctly.
6805         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6806         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
6807         (m68hc11_function_arg_pass_by_reference): Remove.
6808         * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6809         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
6810         * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
6811         * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6812         * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
6813         * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
6814         (mips_va_arg): Use pass_by_reference.
6815         (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
6816         Handle mode sizes correctly.
6817         * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6818         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
6819         * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
6820         * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
6821         (mmix_pass_by_reference): Rename from
6822         mmix_function_arg_pass_by_reference.
6823         * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6824         (FUNCTION_ARG_CALLEE_COPIES): True.
6825         * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
6826         (mn10300_pass_by_reference): New.
6827         * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6828         (FUNCTION_ARG_CALLEE_COPIES): True.
6829         * config/pa/pa.c (pa_pass_by_reference): New.
6830         (TARGET_PASS_BY_REFERENCE): New.
6831         * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6832         (FUNCTION_ARG_CALLEE_COPIES): True.
6833         * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
6834         * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
6835         (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
6836         * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6837         * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
6838         * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
6839         (s390_pass_by_reference): Rename from
6840         s390_function_arg_pass_by_reference.
6841         (s390_function_arg_advance): Don't query pass-by-ref.
6842         (s390_function_arg): Likewise.
6843         (s390_gimplify_va_arg): Use pass_by_reference.
6844         (s390_call_saved_register_used): Likewise.
6845         * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6846         * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
6847         (shcompact_byref, sh_pass_by_reference): New.
6848         * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6849         (SHCOMPACT_BYREF): Remove.
6850         * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
6851         * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
6852         (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
6853         (sparc_gimplify_va_arg): Use pass_by_reference.
6854         * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6855         * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6856         * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
6857         (v850_pass_by_reference): New.
6858         * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6859         (FUNCTION_ARG_CALLEE_COPIES): True.
6860         * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
6861         FUNCTION_ARG_PASS_BY_REFERENCE docs.
6862
6863 2004-07-14  Richard Henderson  <rth@redhat.com>
6864             Richard Sandiford  <rsandifo@redhat.com>
6865
6866         * config/mips/mips-protos.h (mips_va_arg): Delete.
6867         * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
6868         * config/mips/mips.c: Include tree-gimple.h.
6869         (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
6870         (mips_arg_info): Remove special handling of must_pass_in_stck args.
6871         (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
6872         (function_arg_pass_by_reference): Return true if must_pass_in_stack.
6873
6874 2004-07-13  Bob Wilson  <bob.wilson@acm.org>
6875
6876         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
6877         arguments for COND_EXPR in big-endian adjustment code.
6878
6879 2004-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6880
6881         * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
6882         * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
6883         * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
6884         * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
6885
6886 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
6887
6888         PR tree-optimization/16443
6889         * tree-ssa-alias.c: Add more description for
6890         CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
6891         * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
6892         clobbering of call-clobbered and addressable variables.  If
6893         there are any before aliases have been computed, add them.
6894
6895 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
6896
6897         * tree-optimize.c (execute_todo): Flush DUMP_FILE before
6898         verification.
6899
6900 2004-07-13  Ulrich Weigand  <uweigand@de.ibm.com>
6901
6902         * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
6903         of build_int_2.  Convert both operands of PLUS_EXPR and MULT_EXPR
6904         to the same type.
6905
6906 2004-07-13  Per Bothner  <per@bothner.com>
6907
6908         * collect2.c (main):  Handle --no-demangle and --demangle flags.
6909
6910 2004-07-13  Sebastian Pop  <pop@cri.ensmp.fr>
6911
6912         * Makefile.in (OBJS-common): Add tree-data-ref.o.
6913         (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
6914         (tree-data-ref.o): New rule.
6915         * lambda.h: New file.
6916         * tree-data-ref.c: New file.
6917         * tree-data-ref.h: New file.
6918         * tree.c (int_cst_value, tree_fold_gcd): New functions.
6919         * tree.h (int_cst_value, tree_fold_gcd): Declared here.
6920
6921 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
6922
6923         PR target/13926
6924         * config/sparc/sparc-protos.h (output_ubranch): New prototype.
6925         * config/sparc/sparc.c (output_ubranch): New function.
6926         * config/sparc/sparc.md (jump pattern): Use it.
6927
6928 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
6929
6930         PR target/16494
6931         * config/sparc/sparc.c (output_cbranch): Properly guard
6932         the code handling far branches with TARGET_V9.
6933         * config/sparc/sparc.md (length attribute): Document the
6934         side-effect of having a length greater or equal to 3.
6935
6936 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
6937             Lloyd Parkes  <lloyd@must-have-coffee.gen.nz>
6938
6939         PR target/15186
6940         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
6941         /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
6942
6943 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
6944             Martin Sebor  <sebor@roguewave.com>
6945
6946         PR target/12602
6947         * doc/invoke.texi (SPARC options): Document -threads
6948         and -pthreads on Solaris.
6949
6950 2004-07-13  Richard Henderson  <rth@redhat.com>
6951
6952         * builtins.c (std_gimplify_va_arg_expr): Handle types passed
6953         by reference.
6954         (ind_gimplify_va_arg_expr): Remove.
6955         * tree.h (ind_gimplify_va_arg_expr): Remove.
6956         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
6957         * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
6958         argsp to be null.
6959
6960         * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
6961         (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
6962         * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
6963         config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
6964         config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
6965
6966 2004-07-13  Richard Henderson  <rth@redhat.com>
6967
6968         * function.c (pass_by_reference): New.
6969         (assign_parm_find_data_types): Use it.
6970         * calls.c (initialize_argument_information): Likewise.
6971         (emit_library_call_value_1): Likewise.
6972         * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
6973         * function.h (pass_by_reference): Declare.
6974
6975 2004-07-13  Richard Henderson  <rth@redhat.com>
6976
6977         * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
6978         * target.h (struct gcc_target): Add calls.must_pass_in_stack.
6979         * expr.h (MUST_PASS_IN_STACK): Remove.
6980         * system.h (MUST_PASS_IN_STACK): Poison.
6981         * tree.h (must_pass_in_stack_var_size): Declare.
6982         (must_pass_in_stack_var_size_or_pad): Declare.
6983         * calls.c (must_pass_in_stack_var_size): New.
6984         (must_pass_in_stack_var_size_or_pad): Rename from
6985         default_must_pass_in_stack.
6986         * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
6987         (TARGET_MUST_PASS_IN_STACK): New.
6988         * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
6989         * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
6990         (TARGET_MUST_PASS_IN_STACK): New.
6991         * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
6992         * config/frv/frv.c (frv_must_pass_in_stack): New.
6993         (TARGET_MUST_PASS_IN_STACK): New.
6994         * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
6995         * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
6996         * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
6997         (ix86_must_pass_in_stack): Make static.
6998         * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
6999         * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
7000         * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
7001         * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
7002         * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
7003         * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
7004         * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
7005         (mcore_must_pass_on_stack): Remove.
7006         * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
7007         * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
7008         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
7009         * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
7010         * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
7011         * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
7012         * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
7013         * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
7014         (TARGET_MUST_PASS_IN_STACK): New.
7015         * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
7016         * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
7017         * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
7018         * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
7019         * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
7020         * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
7021         * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
7022         MUST_PASS_IN_STACK.
7023
7024         * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
7025         config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
7026         config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
7027         config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
7028         config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
7029         config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
7030         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
7031         config/xtensa/xtensa.c: Use target hook.
7032
7033 2004-07-13  Anthony Heading  <aheading@jpmorgan.com>
7034
7035         * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
7036         * configure: Rebuilt.
7037
7038 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
7039
7040         * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
7041         * config/mips/mips.h (mips_reg_names): Don't declare.
7042         (MASK_NAME_REGS): Delete.  Shuffle other MASK_* values down.
7043         (TARGET_NAME_REGS): Delete.
7044         (TARGET_SWITCHES): Remove -mrnames.
7045         (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
7046         (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
7047         in REGISTER_NAMES.
7048         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
7049         (override_options): Remove handling of TARGET_NAME_REGS.
7050
7051 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
7052
7053         * config/mips/mips.h (TARGET_*): Boolify.
7054
7055 2004-07-12  Nick Clifton  <nickc@redhat.com>
7056
7057         * config.gcc: Add sh-*-symbianelf target.
7058         * config/sh/sh.c: Add new target macros:
7059         TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
7060         TARGET_CXX_IMPORT_EXPORT_CLASS.
7061         (sh_file_start): Create a definition of the .directive section.
7062         (sh_attribute): Add dllimport and dllexport attributes.
7063         * config/sh/symbian-pre.h: New file.
7064         * config/sh/symbian-post.h: New file.
7065         * config/sh/symbian.c: New file. Contains Symbian specific
7066         functions.
7067         * config/sh/sh-protos.h: Add prototypes for new functions
7068         provided by symbian.c.
7069         * config/sh/t-symbian: New file.
7070         * doc/extend.texi: Document support for dllimport and dllexport
7071         attributes by the sh-symbianelf target.
7072
7073 2004-07-12  James E Wilson  <wilson@specifixinc.com>
7074
7075         * Makefile.in (AR): Use @AR@ not ar.
7076         (NM): New.
7077         (AR_FOR_TARGET): Use $(AR) not ar for native.
7078         (NM_FOR_TARGET): Use $(NM) not nm for native.
7079         * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
7080         * configure: Regenerate.
7081
7082 2004-07-12  David S. Miller  <davem@nuts.davemloft.net>
7083
7084         * config/sparc/sparc.md (ashlsi3): Eliminate const 1
7085         special case.
7086         (ashldi3_sp64): Likewise.
7087
7088 2004-07-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7089
7090         PR target/16477
7091         * pa.c (function_arg): Update comment.
7092         * pa.h (BLOCK_REG_PADDING): Define.
7093
7094 2004-07-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7095
7096         PR tree-optimization/16461
7097         * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
7098         arguments of phi nodes.
7099
7100 2004-07-12  Devang Patel  <dpatel@apple.com>
7101
7102         * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
7103
7104 2004-07-12  Steve Ellcey  <sje@cup.hp.com>
7105
7106         * function.c (expand_function_start): Ensure r_save is in Pmode.
7107         * calls.c (prepare_call_address): Ensure static_chain_value is
7108         in Pmode.
7109         * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
7110         r_save_area are in Pmode.
7111         * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
7112         fnaddr, and static_chain are in Pmode.
7113
7114 2004-07-12  Vladimir Makarov  <vmakarov@redhat.com>
7115
7116         PR target/16445
7117         * config/ia64/ia64.c (bundling): Don't count ignored insns.
7118
7119 2004-07-12  Richard Henderson  <rth@redhat.com>
7120
7121         * target.h (struct gcc_target): Move gimplify_va_arg_expr
7122         next to build_builtin_va_list.
7123         * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
7124         * builtins.c (gimplify_va_arg_expr): Likewise.
7125         * gimplify.c (copy_if_shared_r): Likewise.
7126
7127 2004-07-12  Alexandre Oliva  <aoliva@redhat.com>
7128
7129         * passes.c (rest_of_decl_compilation): Don't defer call of
7130         assemble_variable if its DECL_RTL is already set.
7131
7132 2004-07-12  Sebastian Pop  <pop@cri.ensmp.fr>
7133
7134         * cfgloop.h (struct loop): Add nb_iterations field.
7135         (current_loops): Declare.
7136         * tree-chrec.c (chrec_not_analyzed_yet,
7137         chrec_dont_know, chrec_known, count_ev_in_wider_type,
7138         chrec_contains_symbols_defined_in_loop): Remove the temporary
7139         hooks.
7140         * tree-flow-inline.h (loop_containing_stmt): New function.
7141         * tree-scalar-evolution.c: Add implementation.
7142         * tree-scalar-evolution.h: Add declarations.
7143
7144 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
7145
7146         PR rtl-optimization/15921
7147         * Makefile.in (global.o): Add recog.h.
7148
7149         * global.c (recog.h): Add the include-clause.
7150         (bb_info): New member earlyclobber.
7151         (allocate_bb_info, free_bb_info): Initialize/finish the new
7152         member.
7153         (earlyclobber_regclass, earlyclobber_regclass_length): The new
7154         global variables.
7155         (check_earlyclobber, regclass_intersect,
7156         mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
7157         New functions.
7158         (calculate_local_reg_bb_info): Calculate value of earlyclobber.
7159         (make_accurate_live_analysis): Modify pavin.
7160
7161 2004-07-12  Diego Novillo  <dnovillo@redhat.com>
7162
7163         * tree-cfg.c (find_taken_edge): Statically compute the truth
7164         value of a predicate comparing an SSA_NAME to itself.
7165
7166 2004-07-12  Roger Sayle  <roger@eyesopen.com>
7167
7168         * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
7169         rs6000 doesn't have shift-and-add or shift-and-sub instructions
7170         by returning the cost of a multiplication plus an addition.
7171
7172 2004-07-12  Paolo Bonzini  <bonzini@gnu.org>
7173
7174         PR tree-optimization/14107
7175         * gimplify.c (gimplify_return_expr): Accept a
7176         RETURN_EXPR with an error argument.
7177         * tree-optimize.c (init_tree_optimization_passes):
7178         Run pass_warn_function_return at -O0.
7179
7180 2004-07-12  Roger Sayle  <roger@eyesopen.com>
7181
7182         * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
7183         index entry.
7184
7185 2004-07-12  Richard Sandiford  <rsandifo@redhat.com>
7186
7187         * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
7188         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
7189         * config/mips/3000.md: Add copyright notice.  Remove automota and
7190         function units; use generic ones instead.  Only define reservations
7191         for things that are different from generic.md.  Extend each clause
7192         to include r3900.
7193         * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
7194         * config/mips/mips.md: Include them. Remove define_function_units.
7195         (alu, imuldiv): New automata and units.
7196
7197 2004-07-12  Ben Elliston  <bje@au.ibm.com>
7198
7199         * doc/invoke.texi (Optimize Options): Document -frename-registers
7200         not being enabled by default at -O3.
7201
7202 2004-07-11  Roger Sayle  <roger@eyesopen.com>
7203
7204         * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
7205         floating point additions, to keep real immediate constant positive.
7206         <MINUS_EXPR>:  For floating point subtractions, only transform X - -C
7207         into X + C, and leave positive real constants as X - C.
7208
7209 2004-07-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7210
7211         * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
7212
7213 2004-07-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7214
7215         PR tree-optimization/15654
7216         * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
7217
7218 2004-07-11  Roger Sayle  <roger@eyesopen.com>
7219
7220         * builtins.c (fold_builtin_fputs): Don't bother converting the
7221         return type to integer_type_node, as we've already checked that
7222         the result will be ignored.
7223
7224         * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
7225         that signed addition, subtraction, multiplication, division,
7226         remainder, negation and absolute value may potentially trap.
7227
7228         * fold-const.c (fold_ignored_result): New function to strip
7229         non-side-effecting tree nodes from an expression whose result
7230         is ignored.
7231         (fold_convert): Call fold_ignored_result when casting a value
7232         to VOID_TYPE.
7233         (omit_one_operand):  Call fold_ignored_result on the "omitted"
7234         operand when building a COMPOUND_EXPR.
7235         (pedantic_omit_one_operand): Likewise.
7236         * tree.h (fold_ignored_result): Prototype here.
7237         * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
7238         when we're going to ignore the result.
7239
7240 2004-07-11  Richard Henderson  <rth@redhat.com>
7241
7242         PR tree-opt/16383
7243         * tree-ssa-ccp.c (fold_stmt_r): Split out...
7244         * tree.c (fields_compatible_p, find_compatible_field): ... new.
7245         * tree.h (fields_compatible_p, find_compatible_field): Declare.
7246         * tree-sra.c (sra_hash_tree): Hash fields by offset.
7247         (sra_elt_eq): Use fields_compatible_p.
7248         (generate_one_element_ref): Use find_compatible_field.
7249
7250 2004-07-11  Richard Henderson  <rth@redhat.com>
7251
7252         PR tree-opt/16422
7253         * tree-sra.c (generate_one_element_init): New.
7254         (generate_element_init): Use it.
7255         (scalarize_init): Push/pop gimplify context around it.
7256         (find_new_referenced_vars_1, find_new_referenced_vars): New.
7257         * gimplify.c (gimplify_expr): Allow SSA_NAME.
7258
7259 2004-07-11  Roger Sayle  <roger@eyesopen.com>
7260
7261         * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
7262         combine.c's combine_insn_cost.
7263         * rtl.h (insn_rtx_cost): Prototype here.
7264         * combine.c (combine_insn_cost): Delete function.
7265         (combine_validate_cost): Update callers of combine_insn_cost to
7266         call insn_rtx_cost instead.
7267         (combine_instructions): Likewise.  Use NONJUMP_INSN_P to avoid
7268         requesting the rtx_cost of call and/or jump instructions.
7269
7270         * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
7271         rtx_cost directly.  Don't request/use the cost of call or jump
7272         instructions.  Return -1 if the cost of any instruction can't be
7273         determined (or the BB contains a function call).
7274         (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
7275         -1 (i.e. can't determine the cost of any instruction or the basic
7276         block contains a subroutine call).
7277         (find_if_case_2): Likewise.
7278
7279 2004-07-11  Roger Sayle  <roger@eyesopen.com>
7280
7281         * rs6000.c (struct processor_costs): Change semantics of fields to
7282         include the COST_N_INSNS scaling, and update all initializers.
7283         (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
7284         Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
7285         Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP.  When
7286         optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
7287
7288 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
7289
7290         * LANGUAGES: Remove obsolete information.
7291
7292 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
7293
7294         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
7295         SIGBUS signal frames, the PSW address points *to* the faulting
7296         instruction, not after it.
7297
7298 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
7299
7300         * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
7301         added to TLS symbol addresses.
7302
7303 2004-07-11  Richard Henderson  <rth@redhat.com>
7304
7305         * expmed.c (init_expmed): Use stack-local structures for
7306         temporary rtl.  Don't recognize shifts.
7307
7308 2004-07-11  Richard Henderson  <rth@redhat.com>
7309
7310         * expr.c (store_expr): Don't fiddle subreg promotion for types
7311         with precision smaller than the mode.
7312
7313 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
7314
7315         * tree.h (all_types_permanent): Remove.
7316
7317 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
7318
7319         * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
7320         maybe_build_cleanup, update_decl_after_saving): Remove hooks.
7321         * langhooks.c (lhd_clear_binding_stack): Remove.
7322         * langhooks-def.h (lhd_clear_binding_stack,
7323         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
7324         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
7325         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
7326         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
7327         (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
7328         * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
7329         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
7330         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
7331         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
7332         * tree.h (poplevel): Don't declare.
7333         * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
7334         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
7335         * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
7336         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
7337         Remove.
7338
7339 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
7340
7341         PR tree-optimization/16437
7342         * c-common.c (shorten_compare): Don't mark result of conversion to
7343         narrower signed type as overflowing.
7344         * fold-const.c (decode_field_reference): Determine whether
7345         signedness comes from outer type using precision rather than size.
7346
7347 2004-07-11  Phil Edwards  <phil@codesourcery.com>
7348
7349         * configure.ac:  Alphabetize --enable-checking list, add
7350         missing valgrind entry.
7351         * configure:  Regenerate.
7352
7353 2004-07-11  Phil Edwards  <phil@codesourcery.com>
7354
7355         * doc/install.texi (Testing):  Fix syntax in "make check" example.
7356
7357 2004-07-10  James E Wilson  <wilson@specifixinc.com>
7358
7359         * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
7360
7361 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7362
7363         PR rtl-optimization/16001
7364         * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
7365         niter_expr.
7366
7367 2004-07-10  Geoffrey Keating  <geoffk@apple.com>
7368
7369         * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
7370
7371 2004-07-10  Steve Kargl  <sgk@troutmask.apl.washington.edu>
7372             James Morrison  <phython@gcc.gnu.org>
7373
7374         * doc/contrib.texi (Contributors): Add gfortran contributors and
7375         fix a couple of typos.
7376
7377 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7378
7379         PR rtl-optimization/15387
7380         * calls.c (check_sibcall_argument_overlap_1): Handle pointers
7381         to incoming args space correctly.
7382
7383 2004-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7384
7385         * pa.c (output_indirect_call): Only use %r2 as the link register in
7386         indirect calls with the long PA 2.0 pc-relative branch.
7387
7388 2004-07-10  Daniel Jacobowitz  <dan@debian.org>
7389
7390         * config/i386/i386.c (override_options): Pick a 64-bit CPU
7391         for the default tuning if TARGET_64BIT.
7392
7393 2004-07-10  Richard Henderson  <rth@redhat.com>
7394
7395         * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
7396         to HOST_WIDE_INT.  Fold pad-args-down arithmetic.
7397
7398 2004-07-10  Jakub Jelinek  <jakub@redhat.com>
7399
7400         * expr.h (store_bit_field, extract_bit_field): Remove last argument.
7401         * expmed.c (store_bit_field, extract_bit_field): Remove last
7402         argument.
7403         * builtins.c (expand_builtin_signbit): Adjust callers.
7404         * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
7405         * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
7406         * ifcvt.c (noce_emit_move_insn): Likewise.
7407         * stmt.c (expand_return): Likewise.
7408         * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
7409         store_field, expand_expr_real_1): Likewise.
7410
7411 2004-07-10  Richard Henderson  <rth@redhat.com>
7412
7413         * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
7414
7415 2004-07-09  Mike Stump  <mrs@apple.com>
7416
7417         * config/darwin.c (no_dead_strip): Add.
7418         (HAVE_DEAD_STRIP): Add.
7419         (darwin_emit_unwind_label): Ensure that we don't dead code strip
7420         the .eh label.
7421
7422 2004-07-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7423
7424         * tree-ssa-loop-im.c: New file.
7425         * Makefile.in (tree-ssa-loop-im.o): Add.
7426         * cfgloop.c (superloop_at_depth): New function.
7427         * cfgloop.h (superloop_at_depth): Declare.
7428         * common.opt (ftree-lim): New flag.
7429         * expr.c (array_ref_up_bound): New function.
7430         * params.def (PARAM_LIM_EXPENSIVE): New parameter.
7431         * timevar.def (TV_LIM): New timevar.
7432         * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
7433         computing immediate uses of a phi node.
7434         * tree-flow.h (struct tree_ann_common_d): Add aux field.
7435         (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
7436         * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
7437         * tree-pass.h (pass_lim): Declare.
7438         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
7439         functions.
7440         (pass_lim): New pass structure.
7441         * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
7442         * tree.c (in_array_bounds_p): New function.
7443         * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
7444         (in_array_bounds_p, array_ref_up_bound): Declare.
7445         * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
7446         * doc/passes.texi (tree-ssa-loop-im.c): Document.
7447
7448 2004-07-09  Richard Henderson  <rth@redhat.com>
7449
7450         * builtins.c (expand_builtin_stpcpy): Don't modify len.
7451
7452         * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
7453         with prejudice.
7454
7455 2004-07-10  Kelley Cook  <kcook@gcc.gnu.org>
7456
7457         * flags.h: Delete redundant prototypes that are being generated
7458         in options.h from common.opt.
7459         * common.opt: Add in the expository comments formerly in flags.h.
7460
7461 2004-07-09  Jan Beulich  <jbeulich@novell.com>
7462
7463         * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
7464         available for use only when TARGET_MMX/_SSE is set, and check for
7465         variable argument function if any register count is non-zero.
7466         (function_arg): Correctly suppress repeated warnings for passing SSE
7467         vectors are arguments without SSE enabled.
7468         (ix86_function_arg_boundary): Without SSE enabled, the use of what
7469         would be SSE register modes does no longer influence the alignment.
7470
7471 2004-07-09  Richard Henderson  <rth@redhat.com>
7472
7473         * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
7474         Always align upward to arg boundary.  Use size_in_bytes/round_up.
7475         Maintain type-correctness of constants.
7476         * stor-layout.c (round_up, round_down): Special-case powers of 2.
7477
7478 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
7479
7480         * config/sparc/sparc.c (*_costs): Scale instruction costs
7481         by COSTS_N_INSNS.
7482         (sparc_rtx_costs): Adjust as appropriate.
7483
7484 2004-07-09  Jan Beulich  <jbeulich@novell.com>
7485
7486         * config/i386/mm3dnow.h: New.
7487         * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
7488
7489 2004-07-09  Richard Henderson  <rth@redhat.com>
7490
7491         * simplify-rtx.c (simplify_const_relational_operation): Only
7492         look at bounds of scalar integers.
7493
7494 2004-07-09  Jan Beulich  <jbeulich@novell.com>
7495
7496         * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
7497
7498 2004-07-09  Andrew Pinski  <apinski@apple.com>
7499
7500         * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
7501         always referenced.
7502         (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
7503         UOBJC_METACLASS_decl.
7504
7505 2004-07-09  James E Wilson  <wilson@specifixinc.com>
7506
7507         PR target/16364
7508         * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
7509         do return a parallel if hfa_mode == XFmode and mode == TImode.
7510
7511 2004-07-09  Jan Beulich  <jbeulich@novell.com>
7512
7513         * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
7514         permissible for unary plus.
7515
7516 2004-07-09  Jan Beulich  <jbeulich@novell.com>
7517
7518         * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
7519         (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
7520         (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
7521         (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
7522         BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
7523         * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
7524         BUILTIN_POPCOUNTxxx): Arguments are unsigned.
7525         (BUILTIN_xxxIMAX): New.
7526         * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
7527         BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
7528         BUILT_IN_PARITYIMAX.
7529
7530 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
7531
7532         * config/sparc/sparc.h (processor_costs): Define.
7533         (sparc_costs): Declare.
7534         * config/sparc/sparc.c (cypress_costs, supersparc_costs,
7535         hypersparc_costs, sparclet_costs, ultrasparc_costs,
7536         ultrasparc3_costs): New.
7537         (sparc_override_options): Set sparc_costs as appropriate.
7538         (sparc_rtx_costs): Use sparc_costs instead of messy
7539         conditionals.
7540
7541 2004-07-09  Steven Bosscher  <stevenb@suse.de>
7542
7543         * doc/md.texi (Processor pipeline description): Mention that
7544         the old pipeline description is deprecated.
7545
7546         * config/rs6000/7450.md (automaton ppc7450): Split up, move
7547         mciu_7450 function unit to...
7548         (automaton ppc7450mciu): ...new automaton.
7549
7550         * haifa-sched.c (insert_schedule_bubbles_p): Remove.
7551         (schedule_block): Don't consider inserting bubbles.
7552         (sched_init): Don't initialize DFA bubbles.
7553         * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
7554         TARGET_SCHED_DFA_BUBBLE): Remove.
7555         * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
7556         * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
7557         TARGET_SCHED_DFA_BUBBLE): Remove documentation.
7558
7559         * stmt.c (conditional_context): Remove prototype.
7560         * tree.h (conditional_context): Remove.
7561         * tree-cfg.c (pre_insert_on_edge): Remove.
7562
7563         * c-common.h (c_expand_asm_operands): Remove prototype.
7564         * c-typeck.c (c_expand_asm_operands): Remove.
7565
7566 2004-07-09  Jan Beulich  <jbeulich@novell.com>
7567
7568         * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
7569         their base modes. CTImode, TCmode, and XCmode must be passed in memory.
7570         TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
7571         and V8QI are class SSE. All sufficiently small remaining vector modes
7572         must be passed in one or two integer registers.
7573         (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
7574         returned in memory.
7575         (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
7576         __builtin_ia32_pmuludq128 have non-uniform argument and return types
7577         and must thus be handled explicitly.
7578         * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
7579         MMX and XMM regs.
7580         (movv8qi_internal, movv4hi_internal, movv2si_internal,
7581         movv2sf_internal): Permit moving between MMX and XMM registers (since
7582         MMX areguments and return values are passed in XMM registers).
7583         (sse2_umulsidi3): Correct type and mode.
7584
7585 2004-07-09  Richard Henderson  <rth@redhat.com>
7586
7587         * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
7588
7589 2004-07-09  Eric Christopher  <echristo@redhat.com>
7590
7591         * config/rs6000/40x.md: Split into two automatons.
7592
7593 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
7594             Andrew Pinski  <apinski@apple.com>
7595
7596         * c-opts.c (c_common_post_options): Force unit-at-a-time mode
7597         on when we have more than one input file.
7598         (c_common_parse_file): Restore loop over all input files.
7599         Clarify diagnostic for -dy when YYDEBUG wasn't defined.
7600
7601         * c-decl.c (set_type_context): New function.
7602         (pop_scope): Use it to set context of types.  When we
7603         encounter a TYPE_DECL, set the context of the attached type too.
7604         (pop_file_scope): Don't call cpp_undef_all here.
7605         (diagnose_mismatched_decls): Do not complain about a second
7606         definition of an 'extern inline' function if it's not in the
7607         same translation unit.  Do not complain about inline
7608         declaration after use if the use was in a different
7609         translation unit.
7610         (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
7611         (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
7612         the external scope.
7613         (pushdecl_top_level): Likewise.
7614         (grokdeclarator): Clarify what is going on with setting
7615         DECL_EXTERNAL on function types, a little.
7616         (c_write_global_declarations): Don't do anything if
7617         -fsyntax-only or errors have been encountered.
7618
7619 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
7620
7621         * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
7622
7623 2004-07-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7624
7625         PR target/16459
7626         * pa.c (output_indirect_call): Use %r2 as the link register when
7627         calling $$dyncall with a pc-relative branch.
7628
7629 2004-07-08  Gerald Pfeifer  <gerald@pfeifer.com>
7630
7631         * doc/install.texi (Binaries): Mention OpenPKG.
7632
7633 2004-07-09  Diego Novillo  <dnovillo@redhat.com>
7634
7635         Fix PR tree-optimization/15555
7636         * tree-dfa.c (dump_variable): If the variable is a pointer
7637         SSA_NAME, also dump its points-to information.
7638         * tree-flow.h (struct ptr_info_def): Add field
7639         is_dereferenced.
7640         (dump_points_to_info_for): Declare.
7641         (debug_points_to_info_for): Declare.
7642         * tree-optimize.c (init_tree_optimization_passes): Add a
7643         second alias analysis pass after DOM2.
7644         Move pass_del_pta to a later spot.
7645         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
7646         create a name tags when we find a dereferenced pointer.  Just
7647         mark the pointer dereferenced.
7648         (collect_points_to_info_for): Move code to clear points-to
7649         information to create_name_tags.
7650         (create_name_tags): New function.
7651         (compute_flow_sensitive_aliasing): Call it.
7652         (setup_pointers_and_addressables): Mark type tags for renaming
7653         here instead of ...
7654         (create_memory_tag): ... here.
7655         (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
7656         (dump_points_to_info_for): Declare extern.
7657         (debug_points_to_info_for): New function.
7658
7659 2004-07-09  Paolo Bonzini  <bonzini@gnu.org>
7660
7661         * config/arc/arc.md: Switch to DFA-based scheduler description.
7662         * config/arc/arc.c: Switch to DFA-based scheduler description.
7663
7664 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
7665
7666         * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
7667         pointer.
7668
7669 2004-07-09  Richard Henderson  <rth@redhat.com>
7670
7671         * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
7672         * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
7673         (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
7674         * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
7675
7676         * config/v850/v850-protos.h (v850_va_arg): Remove.
7677         * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
7678         (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
7679         * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
7680         (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
7681         (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
7682
7683 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
7684
7685         PR target/12133
7686         * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
7687         and DImode to use +/-4k offset.
7688
7689 2004-07-09  Richard Henderson  <rth@redhat.com>
7690
7691         * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
7692         Remove.
7693         * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
7694         (xstormy16_gimplify_va_arg_expr): Rewrite from
7695         xstormy16_expand_builtin_va_arg.
7696         * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
7697
7698         * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
7699         * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
7700
7701         * config/sh/sh-protos.h (sh_va_arg): Remove.
7702         * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
7703         (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
7704         * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
7705
7706         * config/pa/pa-protos.h (hppa_va_arg): Remove.
7707         * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
7708         (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
7709         * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
7710
7711         * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
7712         * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
7713         (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
7714         * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
7715
7716 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
7717
7718         * config/sparc/sparc.md (return): Rewrite length formula.
7719         * config/sparc/sparc.c (output_return): Pass 1 as 5th
7720         argument to final_scan_insn when in a delay slot.
7721         (output_sibcall): Likewise.
7722
7723 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
7724
7725         * arm.c (arm_cpp_interwork): New variable.
7726         (arm_override_options): Set it if TARGET_INTERWORK was on the command
7727         line.
7728         * arm.h (arm_cpp_interwork): Declare it.
7729         (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
7730         __THUMB_INTERWORK__ in the preprocessor.
7731
7732 2004-07-09  Nathan Sidwell  <nathan@codesourcery.com>
7733
7734         * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
7735
7736 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
7737
7738         PR target/16416
7739         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
7740         Override default settings to account for -m32 and -m64.
7741
7742 2004-07-08  Randolph Chung  <tausq@debian.org>
7743
7744         * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
7745
7746 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
7747
7748         * builtins.c (fold_builtin_strncpy): Make sure len is a constant
7749         before comparing it as such.
7750
7751 2004-07-08  Richard Henderson  <rth@redhat.com>
7752
7753         * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
7754         temporary.  Use bit arithmetic to align.
7755
7756 2004-07-08  Jerry Quinn  <jlquinn@optonline.net>
7757
7758         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
7759         nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
7760         NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
7761         * bb-reorder.c (mark_bb_for_unlikely_executed_section,
7762         add_labels_and_missing_jumps, find_jump_block,
7763         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
7764         Likewise.
7765         * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
7766         link_btr_uses, move_btr_def): Likewise.
7767         * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
7768         expand_builtin_expect_jump): Likewise.
7769         * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
7770         * calls.c (expand_call, emit_library_call_value_1): Likewise.
7771         * cfganal.c (forwarder_block_p): Likewise.
7772         * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
7773         make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
7774         find_bb_boundaries): Likewise.
7775         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
7776         merge_blocks_move_predecessor_nojumps,
7777         merge_blocks_move_successor_nojumps, insns_match_p,
7778         flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
7779         try_optimize_cfg): Likewise.
7780         * cfgexpand.c (expand_block, construct_exit_block): Likewise.
7781         * cfglayout.c (skip_insns_after_block, label_for_bb,
7782         record_effective_endpoints, insn_locators_initialize,
7783         fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
7784         * cfgmainloop.c (create_loop_notes): Likewise.
7785         * cfgrtl.c (delete_insn, delete_insn_chain,
7786         create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
7787         update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
7788         block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
7789         redirect_branch_edge, force_nonfallthru_and_redirect,
7790         rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
7791         rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
7792         update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
7793         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
7794         cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
7795         cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
7796         need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
7797         * combine.c (combine_instructions, can_combine_p, try_combine,
7798         find_split_point, record_dead_and_set_regs, reg_dead_at_p,
7799         distribute_notes, distribute_links, insn_cuid): Likewise.
7800         * cse.c (fold_rtx, cse_insn, cse_around_loop,
7801         invalidate_skipped_block, cse_set_around_loop,
7802         cse_end_of_basic_block, cse_main, cse_basic_block,
7803         cse_condition_code_reg): Likewise.
7804         * cselib.c (cselib_process_insn): Likewise.
7805         * ddg.c (create_ddg): Likewise.
7806         * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
7807         Likewise.
7808         * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
7809         gen_label_die, dwarf2out_var_location): Likewise.
7810         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
7811         next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
7812         last_call_insn, active_insn_p, next_label, prev_label,
7813         link_cc0_insns, next_cc0_user, try_split, add_insn_after,
7814         add_insn_before, remove_insn, add_function_usage_to,
7815         reorder_insns, find_line_note, remove_unnecessary_notes,
7816         emit_insn_after_1, classify_insn): Likewise.
7817         * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
7818         connect_post_landing_pads, sjlj_mark_call_sites,
7819         sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
7820         can_throw_internal, can_throw_external, set_nothrow_function_flags,
7821         convert_to_eh_region_ranges): Likewise.
7822         * explow.c (optimize_save_area_alloca): Likewise.
7823         * expr.c (expand_expr_real): Likewise.
7824         * final.c (insn_current_reference_address, compute_alignments,
7825         shorten_branches, final, scan_ahead_for_unlikely_executed_note,
7826         final_scan_insn, output_asm_label, leaf_function_p): Likewise.
7827         * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
7828         propagate_block_delete_insn, propagate_one_insn,
7829         init_propagate_block_info, propagate_block, libcall_dead_p,
7830         mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
7831         Likewise.
7832         * function.c (instantiate_virtual_regs, reorder_blocks_1,
7833         expand_function_start, expand_function_end, contains,
7834         thread_prologue_and_epilogue_insns,
7835         reposition_prologue_and_epilogue_notes): Likewise.
7836         * gcse.c (constprop_register, bypass_conditional_jumps,
7837         insert_insn_end_bb, gcse_after_reload): Likewise.
7838         * genemit.c (gen_expand, gen_split): Likewise.
7839         * genpeep.c (gen_peephole, main): Likewise.
7840         * global.c (build_insn_chain): Likewise.
7841         * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
7842         * haifa-sched.c (unlink_other_notes, unlink_line_notes,
7843         get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
7844         restore_line_notes, rm_redundant_line_notes, rm_other_notes,
7845         ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
7846         * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
7847         cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
7848         merge_if_block, block_jumps_and_fallthru_p, find_if_block,
7849         dead_or_predicable): Likewise.
7850         * integrate.c (try_constants): Likewise.
7851         * jump.c (rebuild_jump_labels, cleanup_barriers,
7852         purge_line_number_notes, init_label_info, mark_all_labels,
7853         squeeze_notes, get_label_before, get_label_after,
7854         reversed_comparison_code_parts, simplejump_p, pc_set,
7855         returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
7856         delete_barrier, delete_prior_computation, delete_computation,
7857         delete_related_insns, delete_for_peephole, redirect_jump):
7858         Likewise.
7859         * lcm.c (optimize_mode_switching): Likewise.
7860         * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
7861         Likewise.
7862         * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
7863         * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
7864         * loop-iv.c (simplify_using_assignment): Likewise.
7865         * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
7866         libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
7867         find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
7868         loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
7869         check_insn_for_givs, check_final_value, update_giv_derive,
7870         basic_induction_var, product_cheap_p, check_dbra_loop,
7871         loop_insn_first_p, last_use_this_basic_block,
7872         canonicalize_condition, get_condition, loop_regs_scan, load_mems,
7873         try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
7874         * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
7875         sms_schedule_by_order): Likewise.
7876         * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
7877         * postreload.c (reload_cse_simplify_operands, reload_combine,
7878         reload_cse_move2add): Likewise.
7879         * predict.c (can_predict_insn_p, estimate_probability,
7880         expected_value_to_br_prob, process_note_predictions): Likewise.
7881         * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
7882         * profile.c (branch_prob): Likewise.
7883         * ra-build.c (live_out_1, livethrough_conflicts_bb,
7884         detect_webs_set_in_cond_jump): Likewise.
7885         * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
7886         ra_print_rtl_with_bb): Likewise.
7887         * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
7888         * recog.c (next_insn_tests_no_inequality, find_single_use,
7889         split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
7890         * reg-stack.c (next_flags_user, record_label_references,
7891         emit_swap_insn, swap_rtx_condition, subst_stack_regs,
7892         compensate_edge, convert_regs_1): Likewise.
7893         * regclass.c (scan_one_insn): Likewise.
7894         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
7895         regmove_optimize, fixup_match_1, single_set_for_csa,
7896         combine_stack_adjustments_for_block): Likewise.
7897         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
7898         * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
7899         find_equiv_reg): Likewise.
7900         * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
7901         reload_as_needed, emit_input_reload_insns, do_output_reload,
7902         delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
7903         Likewise.
7904         * reorg.c (find_end_label, emit_delay_sequence,
7905         delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
7906         get_jump_flags, rare_destination, mostly_true_jump,
7907         try_merge_delay_insns, redundant_insn, own_thread_p,
7908         fill_simple_delay_slots, fill_slots_from_thread,
7909         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
7910         dbr_schedule): Likewise.
7911         * resource.c (find_basic_block, next_insn_no_annul,
7912         find_dead_or_set_registers, mark_target_live_regs): Likewise.
7913         * rtl.h (RTX_PREV): Likewise.
7914         * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
7915         no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
7916         reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
7917         find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
7918         tablejump_p, computed_jump_p, insns_safe_to_move_p,
7919         find_first_parameter_load, can_hoist_insn_p): Likewise.
7920         * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
7921         sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
7922         * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
7923         schedule_ebbs): Likewise.
7924         * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
7925         is_conditionally_protected, can_schedule_ready_p,
7926         add_branch_dependences, debug_dependencies): Likewise.
7927         * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
7928         Likewise.
7929         * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
7930         reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
7931         set_dominates_use, ujump_to_loop_cont): Likewise.
7932         * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
7933         * varasm.c (output_constant_pool_1): Likewise.
7934
7935 2004-07-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7936
7937         * tree-scalar-evolution.c: New file.
7938         * tree-scalar-evolution.h: New file.
7939         * tree-ssa-loop-niter.c: New file.
7940         * Makefile.in (SCEV_H): New.
7941         (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
7942         * cfgloop.h (struct loop): Add bounds field.
7943         * tree-flow.h (struct tree_niter_desc): New type.
7944         (number_of_iterations_cond, number_of_iterations_exit,
7945         loop_niter_by_eval, find_loop_niter_by_eval,
7946         estimate_numbers_of_iterations, can_count_iv_in_wider_type,
7947         free_numbers_of_iterations_estimates): Declare.
7948         * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
7949         * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
7950         * doc/invoke.texi (max-iterations-to-track): Document.
7951
7952 2004-07-08  Kaz Kojima  <kkojima@gcc.gnu.org>
7953
7954         * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
7955         * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
7956         (MODE_AFTER): Add cast appropriately.
7957         * config/sh/sh.md (movdi splitter): Likewise.
7958         (casesi_worker_2): Add const qualifier appropriately.
7959         (eh_return): Remove unused variable.
7960         (insv): Initialize v;
7961
7962 2004-07-08  Richard Henderson  <rth@redhat.com>
7963
7964         * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
7965         * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
7966         (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
7967         * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
7968         (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
7969
7970         * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
7971         * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
7972         (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
7973         * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
7974
7975         * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
7976         * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
7977         (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
7978         * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
7979
7980         * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
7981         * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
7982         (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
7983         * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
7984
7985         * config/i860/i860-protos.h (i860_va_arg): Remove.
7986         * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
7987         (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
7988         * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
7989
7990 2004-05-31  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
7991
7992         * system.h: Prototype getpagesize if missing.
7993         * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
7994         * configure: Regenerate.
7995         * config.in: Regenerate.
7996
7997 2004-07-08  Richard Henderson  <rth@redhat.com>
7998
7999         * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
8000         * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
8001         (fr30_gimplify_va_arg_expr): New.
8002         (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
8003         * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
8004
8005 2004-07-08  Vladimir Makarov  <vmakarov@redhat.com>
8006
8007         PR target/16414
8008         * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
8009         of asm_noperands result.
8010
8011 2004-07-08  Richard Henderson  <rth@redhat.com>
8012
8013         * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
8014         * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
8015         (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
8016         * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
8017
8018 2004-07-08  Richard Henderson  <rth@redhat.com>
8019
8020         * builtins.c (ind_gimplify_va_arg_expr): New.
8021         * tree.h (ind_gimplify_va_arg_expr): Declare.
8022         * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
8023
8024 2004-07-08  Jan Beulich  <jbeulich@novell.com>
8025
8026         * expmed.c (extract_bit_field): Correct condition to use vec_extract
8027         patterns also on vector elements other than the first one.
8028         * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
8029         break statements.
8030
8031 2004-07-08  Geoffrey Keating  <geoffk@apple.com>
8032
8033         * config/rs6000/darwin-ldouble.c: Correct reference
8034         to the Linnainmaa paper.
8035
8036 2004-07-08  Richard Henderson  <rth@redhat.com>
8037
8038         * config/arc/arc-protos.h (arc_va_arg): Remove.
8039         * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
8040         (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
8041         * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
8042
8043         * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
8044         * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
8045         (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
8046         * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
8047
8048 2004-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8049
8050         * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
8051
8052 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
8053
8054         * c-decl.c (static_ctors, static_dtors): Make static.
8055         (pop_file_scope): Call c_common_write_pch and
8056         cgraph_finalize_compilation_unit here.
8057         (build_cdtor): Moved here from c-objc-common.c; simplify.
8058         (c_write_global_declarations_1): Clarify comment.
8059         (c_write_global_declarations): Close the external scope before
8060         doing anything else.  Call build_cdtor, cgraph_optimize, and
8061         mudflap_finish_file here.
8062         * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
8063         Clarify comment.
8064         * c-objc-common.c: No need to include cgraph.h.
8065         (build_cdtor): Moved to c-decl.c.
8066         (c_objc_common_finish_file): Delete.
8067         * c-tree.h: Update to match.
8068         * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
8069         (generate_static_references): Set TREE_USED before calling finish_decl.
8070         Eliminate unnecessary dummy declaration.  Call rest_of_decl_compilation
8071         on the static_instances_decl.
8072
8073 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
8074
8075         * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
8076         decls when there is only one input translation unit.
8077         * langhooks.c (lhd_set_decl_assembler_name): Partially revert
8078         change of 2004-07-05; do not treat declarations with
8079         DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
8080         * opts.c (cur_in_fname): Delete.
8081         * opts.h: Likewise.
8082         * tree.c: Revert changes of 2004-07-05; no special treatment
8083         for TRANSLATION_UNIT_DECLs.
8084         * Makefile.in (tree.o): Update dependencies.
8085
8086 2004-07-08  Roger Sayle  <roger@eyesopen.com>
8087
8088         * builtins.c (fold_builtin_strcpy): Merge functionality from
8089         simplify_builtin_strcpy.  Add additional len argument.  No longer
8090         static.  Remove function prototype.
8091         (fold_builtin_strncpy): Likewise integrate functionality from
8092         simplify_builtin_strncpy.  Add additional slen argument.  No
8093         longer static.  Remove function prototype.
8094         (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
8095         (simplify_builtin_fputs): Rename to fold_builtin_fputs.  Change
8096         types of "ignore" and "unlocked" parameters to bool.
8097         (fold_builtin_1):  Add additional ignore argument.  Call renamed
8098         fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
8099         builtins.  Update arguments to fold_builtin_strncpy and
8100         fold_builtin_strcpy.  Add function prototype.
8101         (fold_builtin): Add additional Boolean ignore argument to pass
8102         to fold_builtin_1.
8103         (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
8104         and fold_builtin_strncpy instead of simplify_builtin_fputs,
8105         simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
8106
8107         * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
8108         simplify_builtin_strncpy): Delete function prototypes.
8109         * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
8110         fold_builtin_strncpy): Add function prototypes here.
8111         (fold_builtin): Update function prototype with new "bool ignore".
8112
8113         * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
8114         (ccp_fold_builtin):  Update call to fold_builtin.  Call
8115         fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
8116         instead of simplify_builtin_fputs, simplify_builtin_strcpy and
8117         simplify_builtin_strncpy respectively.
8118         * fold-const.c (fold): Update call to fold_builtin.
8119
8120 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
8121
8122         * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
8123         to strcpy.
8124
8125         * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
8126         (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
8127         (FUNCTION_ARG_CALLEE_COPIES): Likewise.
8128         * calls.c: Remove ifdefs of macros above.
8129         * functions.c: Likewise.
8130         * expr.c: Likewise.
8131
8132 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
8133
8134         * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
8135         (arch attribute): Delete.
8136         (current_function_calls_alloca attribute): Rename into calls_alloca.
8137         (calls_eh_return): New attribute.
8138         (leaf_function): Likewise.
8139         (length attribute): Fix formula for sibcalls.
8140         (return insn): Correctly compute the 'length' attribute.
8141         (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
8142
8143 2004-07-08  Richard Henderson  <rth@redhat.com>
8144
8145         * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
8146         (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
8147         (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
8148         * tree-eh.c (lower_eh_constructs_1): Likewise.
8149         * tree-sra.c (sra_walk_modify_expr): Likewise.
8150         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8151         (eliminate_unnecessary_stmts): Likewise.
8152         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
8153         * tree-tailcall.c (optimize_tail_call): Likewise.
8154         * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
8155
8156 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
8157             Jakub Jelinek  <jakub@redhat.com>
8158
8159         * config/i386/i386.c (override_options): Enable
8160         SSE prefetches with -mtune, as long as we are
8161         compiling for i686 or higher.  All i686 processors
8162         accept SSE prefetches as NOPS, some i586's don't.
8163
8164 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
8165
8166         PR target/10567
8167         * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
8168
8169 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
8170
8171         * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
8172         the handling of clobbering ASM_EXPRs.
8173
8174 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
8175
8176         PR target/16430
8177         * config/sparc/sparc.c (function_value): In 64-bit mode,
8178         return the aggregates larger than 16 bytes like unions.
8179
8180 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
8181
8182         PR target/16199
8183         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
8184         'temp' is zero, generate new pseudos as needed and emit the
8185         sequence of insns in single-assignment form.  Resync comments
8186         with code.
8187         (sparc_emit_set_const64): Pass zero as 'temp' argument to above
8188         function before reload.
8189
8190 2004-07-08  Nathan Sidwell  <nathan@codesourcery.com>
8191
8192         * vec.c (vec_assert_fail): Remove duplicate 'function'.
8193
8194         * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
8195
8196         * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
8197         Allocation is signed.
8198         (VEC_reserve): Return flag, allocation is signed.
8199
8200 2004-07-08  Richard Henderson  <rth@redhat.com>
8201
8202         * tree-ssa-ccp.c (fold_stmt): Get type directly from
8203         OBJ_TYPE_REF_OBJECT.
8204
8205 2004-07-08  Joseph S. Myers  <jsm@polyomino.org.uk>
8206             Neil Booth  <neil@daikokuya.co.uk>
8207
8208         PR c/2511
8209         PR c/3325
8210         * c-decl.c (finish_struct): Ensure bit-fields are given the
8211         correct type.
8212         * c-common.c (c_common_signed_or_unsigned_type): For C, require
8213         the precision to match as well as the mode.
8214         * expr.c (reduce_to_bit_field_precision): New function.
8215         (expand_expr_real_1): Reduce expressions of bit-field type to
8216         proper precision.
8217         * langhooks.h (reduce_bit_field_operations): New hook.
8218         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
8219         Define.
8220         * c-lang.c, objc/objc-lang.c
8221         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
8222         * objc/objc-act.c (check_ivars): Convert types to bit-field types
8223         before checking.
8224         * tree.c (build_nonstandard_integer_type): New function.
8225         * tree.h (build_nonstandard_integer_type): New prototype.
8226         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
8227         conversions between integer and boolean types as useless.
8228
8229 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
8230
8231         * c-common.c (c_common_nodes_and_builtins): Do not
8232         create __builtin_ptrdiff_t and __builtin_size_t.
8233
8234 2004-07-08  Andrew Pinski  <apinski@apple.com>
8235
8236         * Makefile.in (libbackend.o): Add -combine to the gcc
8237         command line.
8238
8239 2004-07-08  Nick Clifton  <nickc@redhat.com>
8240
8241         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
8242         Set to -Os.
8243
8244 2004-07-08  Richard Henderson  <rth@redhat.com>
8245
8246         * except.c (expand_eh_region_start, expand_eh_region_end,
8247         expand_eh_handler, expand_eh_region_end_cleanup,
8248         expand_start_all_catch, expand_start_catch, expand_end_catch,
8249         expand_end_all_catch, expand_eh_region_end_allowed,
8250         expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
8251         expand_eh_region_end_fixup): Remove.
8252         * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
8253         cleanups, outer_cleanups, label_chain, exception_region.
8254         (struct goto_fixup): Remove stack_level, cleanup_list_list.
8255         (struct label_chain): Remove.
8256         (struct stmt_status): Remove x_stack_block_stack.
8257         (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
8258         fixup_gotos, save_stack_pointer, expand_decl_cleanup,
8259         expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
8260         end_cleanup_deferral, last_cleanup_this_contour,
8261         containing_blocks_have_cleanups_or_stack_level,
8262         any_pending_cleanups): Remove.
8263         (expand_null_return_1): Take no arguments.
8264         (expand_label, expand_naked_return, expand_return,
8265         expand_start_bindings_and_block, expand_end_bindings, expand_decl,
8266         expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
8267         expand_end_case_type): Don't use any of them.
8268         * calls.c (expand_call): Likewise.
8269         * dojump.c (do_jump): Likewise.
8270         * function.c (expand_function_end): Likewise.
8271         * expr.c (store_expr, expand_expr_real_1): Likewise.
8272         (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
8273         (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
8274         CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
8275         EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
8276         * fold-const.c (fold_checksum_tree): Use first_rtl_op.
8277         * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
8278         * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
8279         for WITH_CLEANUP_EXPR.
8280         (gimple_push_cleanup): Likewise.
8281         * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
8282         * print-tree.c (print_node): Likewise.
8283         * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
8284         * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
8285         (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
8286         * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
8287         (GOTO_SUBROUTINE_EXPR): Remove.
8288         * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
8289         (DECL_TOO_LATE): Remove.
8290         * except.h, tree.h: Update decls.
8291
8292 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
8293
8294         * explow.c (optimize_save_area_alloca): Do not accept parameters.
8295         * passes.c (rest_of_handle_final): Handle symout.
8296         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
8297         Push timevar here.
8298         (rest_of_handle_sched): Break out SMS.  Remove ifs for
8299         flag_schedule_insns and flag_modulo_sched.
8300         (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
8301         collect at the end.
8302         (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
8303         (rest_of_handle_partition_blocks, rest_of_handle_sms,
8304         rest_of_handle_if_after_reload, rest_of_handle_peephole2,
8305         rest_of_handle_mode_switching, rest_of_handle_jump,
8306         rest_of_handle_guess_branch_prob, rest_of_handle_eh,
8307         rest_of_handle_jump2, rest_of_handle_postreload,
8308         rest_of_handle_flow2, rest_of_clean_state,
8309         rest_of_handle_shorten_branches,
8310         rest_of_handle_prologue_epilogue,
8311         rest_of_handle_branch_target_load_optimize): New.
8312         (rest_of_compilation): Call the above.  Remove ggc_collect
8313         calls moved to rest_of_handle_*.
8314         * rtl.h (optimize_save_area_alloca): Do not accept parameters.
8315
8316         * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
8317         * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
8318         * except.h (set_nothrow_function_flags): Update comment.
8319         * function.c (current_function_nothrow): Remove.
8320         * output.h (current_function_nothrow): Remove.
8321         * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
8322         * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
8323
8324 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
8325
8326         PR bootstrap/16326
8327         * reorg.c: Revert 2004-06-30 change.
8328         (find_end_label): If HAVE_epilogue and !HAVE_return,
8329         return 0 instead of creating a label at the end of the insn chain.
8330         (optimize_skip): Account for the failure mode of find_end_label.
8331         (fill_simple_delay_slots): Likewise.
8332         (fill_slots_from_thread): Likewise.
8333         (relax_delay_slots): Likewise.
8334
8335 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
8336
8337         * tree-flow.h (addressable_vars): Declare.
8338         * tree-ssa-alias.c (addressable_vars): Define.
8339         (setup_pointers_and_addressables): Add addressable variables
8340         to addressable_vars.
8341         * tree-ssa-operands.c (get_stmt_operands): Move
8342         handling of ASM_EXPRs ...
8343         (get_asm_expr_operands): ... here.
8344         When the ASM_EXPR clobbers memory, also clobber addressable
8345         variables.
8346         * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
8347         (delete_tree_ssa): Reset addressable_vars.
8348
8349 2004-07-07  Jan Beulich  <jbeulich@novell.com>
8350             Richard Henderson  <rth@redhat.com>
8351
8352         * varasm.c (assemble_variable): Use assemble_zeros for
8353         zero-initialized variables.
8354         (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
8355         for SECCAT_BSS and SECCAT_TBSS.
8356
8357 2004-07-07  Jan Beulich  <jbeulich@novell.com>
8358
8359         * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
8360
8361         * expmed.c (emit_store_flag): Also special-case double-word
8362         (in-)equality comparison against -1.
8363
8364         * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
8365         passing arguments the containers for which are registers.
8366
8367         * calls.c (emit_library_call_value_1): Use mode of function parameter
8368         rather than that of argument since constants have none.
8369
8370 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
8371
8372         Introduce H8SX support.
8373         * expr.c (expand_strcpy): Renamed and moved to...
8374         * builtins.c (expand_movstr): ... here.  Tweak.
8375         (expand_builtin_strcpy): Adjust.  Use movstr if len can't be
8376         computed or has side effects.
8377         (expand_builtin_stpcpy): Likewise.  Use strcpy if return value is
8378         unused, or if mempcpy fails.  Adjust the return value in the
8379         latter case.  Use movstr if everything else fails.
8380         * doc/md.texi (movstr): Document.
8381         (movmemM, clrmemM): Fix explanation of memory block operands.
8382         * config/h8300/h8300.md (stpcpy): Renamed to...
8383         (movstr): ... this.  Adjust.
8384         2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
8385         * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
8386         movmem* and clrstr* to clrmem*.
8387         2004-06-27  Alexandre Oliva  <aoliva@redhat.com>
8388         * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
8389         GENERAL_REGS, always.
8390         (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
8391         getting the stack pointer as addr.
8392         * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
8393         from general_operand_dst.
8394         * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
8395         variant of...
8396         (movmd_internal): ... this.  Add modes to operands.  Disparage `D'
8397         instead of requiring it to match only before reload.
8398         (stpcpy_internal_normal): New, normal-mode variant of...
8399         (stpcpy_internal): ... this.  Add modes to operands.  Disparage
8400         `D' instead of requiring it to match only before reload.
8401         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
8402         mode argument.
8403         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
8404         * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
8405         h8300_get_index.
8406         * config/h8300/h8300.md (attr type): Add call.
8407         (attr can_delay): If type is call, set it no.
8408         (call, call_value): Set type to call.
8409         2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
8410         * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
8411         2004-06-16  Alexandre Oliva  <aoliva@redhat.com>
8412         * tree.c (get_narrower): Don't narrow integral types into
8413         non-integral types.
8414         * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
8415         frame_size *before* the first use.
8416         * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
8417         on input.
8418         (peephole2): Don't widen instructions that push SP.  Move
8419         decrement of SP to the end of all stm-generating peepholes.
8420         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
8421         * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
8422         and OR to set it to all ones.
8423         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
8424         * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
8425         (call, call_value): Set can_delay to "no".
8426         2003-07-22  Richard Sandiford  <rsandifo@redhat.com>
8427         * config/h8300/h8300.md (extzv): Make subreg check more robust.
8428         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
8429         * config/h8300/h8300.md (*brabit): Remove.
8430         * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
8431         zero_extract.  Use bit_memory_operand as the predicate for
8432         operand 1 and 'WU' as the constraint.  Check the difference
8433         between the base length and the final one when deciding which
8434         type of branch to use.
8435         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
8436         * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
8437         Use convert_move to extend the result for TARGET_H8300SX.  Check
8438         for QImode memory references.  Optimize the case where the
8439         destination is a paradoxical subreg.
8440         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
8441         * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
8442         * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
8443         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
8444         * config/h8300/h8300.md: Include mova.md
8445         (length_table): Add mova and mova_zero.
8446         * config/h8300/h8300.c (print_operand): Handle '%o'.  Print a length
8447         after all constant addresses for '%R', '%X', '%T' and '%S'.
8448         (h8300_mova_length): New function.
8449         (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
8450         * config/h8300/t-h8300 (mova.md): Generate from genmova.sh.  Add to
8451         dependencies for s-config, etc.
8452         * config/h8300/gemova.sh: New file.
8453         * config/h8300/mova.md: Generated.
8454         2003-07-20  Alexandre Oliva  <aoliva@redhat.com>
8455         * config/h8300/h8300.c (h8300_bitfield_length): New.
8456         (nibble_operand): Adjust.
8457         (h8300_binary_length): Handle conditional binary op.
8458         (h8300_insn_length_from_table): Handle bitfield and bitbranch.
8459         * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
8460         P#<X, respectively.  The original P is now IP4>X.  Introduced P#>0
8461         and P#<0, unused so far.  W and Y are now prefixes to multi-letter
8462         constraints.  WU is introduced as a variant of U that requires a
8463         mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
8464         * config/h8300/h8300.md (attr type): Added bitbranch.
8465         (attr length_table): Added bitfield and bitbranch.
8466         (attr length): Compute bitbranch length.
8467         (andqi): Separate pattern for H8300SX.  Use bfld for loading the
8468         least-significant bit of a byte.
8469         (brabit, brabc, brabs): New.
8470         (insv, extzv): Emit bfst and bfld on H8300SX.
8471         (bfld, bfst, seq, sne): New.
8472         (bstzhireg, cmpstz, bstz, bistz): New.
8473         (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
8474         (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
8475         2003-07-11  Richard Sandiford  <rsandifo@redhat.com>
8476         * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
8477         (h8sx_unary_memory_operator): New function.
8478         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
8479         (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
8480         * config/h8300/h8300.md: Add peepholes to combine reloads and
8481         arithmetic insns.
8482         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
8483         * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
8484         (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
8485         (and?i, ior?i, xor?i): Likewise.
8486         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
8487         * config/h8300/h8300.c: Move enums and prototypes to head of file.
8488         Various whitespace fixes.
8489         (h8300_constant_length): New function, split out from...
8490         (h8300_displacement_size): ...here.  Rename h8300_displacement_length.
8491         (h8300_classify_operand): Use IN_RANGE.
8492         (h8300_classify_operand): Use h8300_constant_length.
8493         (h8300_short_move_mem_p): Tighten size check.
8494         (h8sx_mergeable_memrefs_p): Tighten equality check.
8495         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
8496         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
8497         for -msx.
8498         * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
8499         * config/h8300/crtn.asm: Likewise.
8500         * config/h8300/lib1funcs.asm: Likewise.  Use 32-bit pointers
8501         if __H8300SX__ is defined.
8502         2003-06-27  Richard Sandiford  <rsandifo@redhat.com>
8503         * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
8504         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
8505         (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
8506         addresses as mode-dependent.
8507         * config/h8300/h8300.c (print_operand_address): Update call to
8508         h8300_get_index.
8509         (h8300_get_index): Take a mode argument.  Rework to fix an
8510         earlier misunderstanding.
8511         2003-06-26  Richard Sandiford  <rsandifo@redhat.com>
8512         * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
8513         into a register if TARGET_H8300SX.
8514         (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
8515         TARGET_H8300SX.  Also disable related define_splits.
8516         (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
8517         2003-06-23  Richard Sandiford  <rsandifo@redhat.com>
8518         * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
8519         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
8520         * config/h8300/h8300.h (OK_FOR_Z): New macro.
8521         (EXTRA_CONSTRAINT_STR): Check it.
8522         * config/h8300/h8300.c (h8300_classify_operand): Accept null
8523         class arguments.
8524         (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
8525         * config/h8300/h8300.md (length_table): Add mov_imm4.
8526         (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
8527         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
8528         * genattrtab.c (write_eligible_delay): Allow candidate_insn to
8529         be a label.
8530         * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
8531         * config/h8300/h8300.c (h8300_reorg): New function.
8532         (TARGET_MACHINE_DEPENDENT_REORG): Define.
8533         * config/h8300/h8300.md (length): Subtract the length of the
8534         delay slot from (pc) when checking the range of forward branches.
8535         (delay_slot, can_delay): New attributes.
8536         (define_delay): Add bra/s handling.
8537         (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
8538         (jump): Add delayed-branch handling.
8539         2003-06-17  Richard Sandiford  <rsandifo@redhat.com>
8540         * expr.c (expand_strcpy): New function.
8541         * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
8542         (expand_builtin_stpcpy): Likewise.
8543         * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
8544         (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
8545         * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
8546         handling to improve register allocation for -fno-omit-frame-pointer.
8547         (h8sx_split_movmd): Delete, moving er6 handling into...
8548         (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
8549         * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
8550         (movmd): Add calls to copy_rtx.
8551         (movmd_internal): In the second alternative, allow the initial and
8552         final destination registers to be different .  Update the splitter
8553         accordingly.  Call h8300_swap_into_er6 and h8300_swap_out_of_er6
8554         instead of h8sx_split_movmd.
8555         (stpcpy, movsd): New expanders.
8556         (movsd_internal): New define_insn.
8557         2003-06-13  Richard Sandiford  <rsandifo@redhat.com>
8558         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
8559         (h8sx_emit_movmd, h8sx_split_movmd): Declare.
8560         * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
8561         and DESTINATION_REGS.
8562         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
8563         (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
8564         (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
8565         (h8300_move_ratio): Declare.
8566         (MOVE_RATIO): Use it.
8567         * config/h8300/h8300.c (h8300_move_ratio): New variable.
8568         (h8300_init_once): Initialize it.
8569         (h8300_reg_class_from_letter): New function.
8570         (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
8571         (h8sx_emit_movmd, h8sx_split_movmd): New functions.
8572         * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
8573         (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
8574         (movstrsi, movmd): New expanders.
8575         (movmd_internal): New insn.
8576         2003-06-06  Richard Sandiford  <rsandifo@redhat.com>
8577         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
8578         2003-06-04  Richard Sandiford  <rsandifo@redhat.com>
8579         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
8580         * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
8581         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
8582         * config/h8300/h8300.c (nibble_operand): Fix warning.
8583         * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
8584         (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
8585         (movsf_h8300h): Disable for TARGET_H8300SX.
8586         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
8587         * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
8588         h8300_stm_parallel and h8300_return_parallel.
8589         * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
8590         h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
8591         h8300_stm_parallel, h8300_return_parallel): New functions.
8592         (h8300_expand_prologue): Don't enforce ldm/stm register alignment
8593         if TARGET_H8300SX.  Use h8300_push_pop.
8594         (h8300_expand_epilogue): Likewise.  Try to merge the return insn
8595         and final pop when generating h8sx code.  Always emit some form
8596         of return insn.
8597         * config/h8300/h8300.md: Don't enforce register alignment in
8598         stm peepholes if TARGET_H8300SX.
8599         (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
8600         (ldm_h8300s_[234], stm_h8300_[234]): Disable.
8601         (epilogue): Expect h8300_expand_epilogue to emit a return insn.
8602         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
8603         * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
8604         (MULTILIB_DIRNAMES): Add a directory for it.
8605         (MULTILIB_MATCHES): Delete.
8606         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
8607         * final.c (walk_alter_subreg): Handle addresses with subregs
8608         inside a ZERO_EXTEND or AND.
8609         * config/h8300/h8300-protos.h (h8300_get_index): Declare.
8610         * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
8611         if TARGET_H8300SX.
8612         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
8613         * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
8614         @(dd,Rn.w) and @(dd,ERn.L).
8615         (h8300_displacement_size): Take the whole address as argument.
8616         (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
8617         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
8618         * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
8619         (h8sx_mergeable_memrefs_p): Declare.
8620         * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
8621         (HAVE_PRE_INCREMENT): Likewise.
8622         (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
8623         addresses for TARGET_H8300SX,
8624         * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
8625         and POST_DEC.
8626         (movb_length_table, movl_length_table): New tables.
8627         (movw_length_table): Define to movb_length_table.
8628         (h8300_displacement_size): New, split out from...
8629         (h8300_classify_address): ...here.  Handle pre/post inc/dec.
8630         (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
8631         (h8300_insn_length_from_table): Add cases for movb, movw and movl.
8632         (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
8633         (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
8634         (compute_plussi_length, compute_plussi_cc): Update accordingly.
8635         (h8sx_unary_shift_operator): Get the mode from the operator.
8636         (binary_shift_operator): Likewise.
8637         * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
8638         a memory reference, check whether the reference is offsettable.
8639         (length_table): Add movb, movw and movl.
8640         (movqi): Add new h8sx pattern.  Don't force one operand to be a
8641         register when generating h8sx code.
8642         (movhi, movsi, movsf): Likewise.
8643         (movstrictqi): Use the length_table attribute.
8644         (movstricthi): Likewise.  Add h8sx alternative for mov.w #xx:3,Rn.
8645         (addqi3): Split into a define_expand and define_insn.  Don't accept
8646         memory operands in the expander.  Use h8300_operands_match_p to
8647         check for matching operands in the define_insn.
8648         (subqi3, negqi2, one_cmplqi2): Likewise.
8649         (add[hs]i3): Don't accept memory operands in the expander.  Likewise
8650         in any patterns that are unused in h8sx code.  In the h8sx patterns,
8651         use h8300_operands_match_p to check whether operands match.
8652         (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
8653         one_cmpl[hs]i3): Likewise.
8654         (andqi3, iorqi3, xorqi3): Likewise.  Don't call fix_bit_operand
8655         in the expander.
8656         2003-05-23  Richard Sandiford  <rsandifo@redhat.com>
8657         * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
8658         (h8300_insn_length_from_table): Add a second parameter.
8659         (output_h8sx_shift): Declare.
8660         * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
8661         (EXTRA_CONSTRAINT): Replace with...
8662         (EXTRA_CONSTRAINT_STR): ...this.  Use OK_FOR_W and OK_FOR_Y.
8663         (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
8664         (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
8665         and h8sx_binary_shift_operator.
8666         * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
8667         for TARGET_H8300SX.
8668         (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
8669         (bit_memory_operand, fix_bit_operand): Likewise.
8670         (h8300_length_table_for_insn): Remove.
8671         (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
8672         instructions.
8673         (h8300_short_immediate_length, h8300_binary_length): New functions.
8674         (h8300_insn_length_from_table): Add an opcodes parameter.  Rework.
8675         (output_plussi): Use sub to add negative constants.
8676         (compute_plussi_length): Adjust accordingly.
8677         (h8sx_single_shift_type): New enum.
8678         (h8sx_single_shift, h8sx_unary_shift_operator,
8679         h8sx_binary_shift_operator, output_h8sx_shift): New functions.
8680         (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
8681         single h8sx instruction.  Return false in this case.
8682         * config/h8300/h8300.md (length_table): Add short_immediate.
8683         (length): Pass the operand array to h8300_insn_length_from_table.
8684         (adjust_length): Assume "no" for insns with a length_table attribute.
8685         (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
8686         (*addhi3_h8300hs): Don't use for h8sx.
8687         (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
8688         and sub.w #xx:3.
8689         (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
8690         1's predicate to nonimmediate_operand.  Only skip default expansion
8691         if expand_a_shift or expand_a_rotate returns true.  Add new patterns
8692         for single h8sx shift instructions.
8693         2003-05-22  Alexandre Oliva  <aoliva@redhat.com>
8694         * config/h8300/h8300.c (nibble_operand): Split out of...
8695         (reg_or_nibble_operand): ... this.
8696         * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
8697         * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
8698         umulhisi3): Introduce expand, and introduce separate insns for
8699         sign- or zero-extended REG and already-extended CONST_INT.
8700         2003-05-20  Richard Sandiford  <rsandifo@redhat.com>
8701         * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
8702         * config/h8300/h8300.md (subqi3): Generalize for h8sx.
8703         (subhi3): Likewise.  Don't accept immediates for operand 1.
8704         Remove the early clobber from second alternative of the h8300s pattern.
8705         (subsi3): Generalize for h8sx.  Force operand 2 into a register
8706         on plain h8300 targets.
8707         (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
8708         (subsi3_h8300h): Generalize for h8sx.
8709         (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
8710         2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
8711         * config/h8300/h8300.c (reg_or_nibble_operand): New.
8712         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
8713         (TARGET_H8300SXMUL): New.
8714         (CONST_OK_FOR_P): New.
8715         (CONST_OK_FOR_LETTER_P): Adjust.
8716         * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
8717         umulhisi3): Accept 4-bit immediate on H8SX.
8718         (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
8719         (udivsi3, divhi3, udivsi3, divsi3): New.
8720         2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
8721         * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
8722         * config/h8300/h8300.h (OK_FOR_Q): New macro.
8723         (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
8724         (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
8725         Add ADDRESSOF to the bit_operand entry.
8726         * config/h8300/h8300.c (h8300_dst_operand): New predicate.
8727         (h8300_src_operand): Likewise.
8728         (bit_operand): Check nonimmediate_operand rather than general_operand.
8729         Accept any nonimmediate_operand in h8sx code.
8730         (h8300_and_costs): Initialize operands[1].
8731         (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
8732         (h8300_operand_class): New enum.
8733         (h8300_length_table): New typedef.
8734         (addb_length_table, addw_length_table, addl_length_table,
8735         logicl_length_table): New tables.
8736         (logicb_length_table, logicw_length_table): New macros.
8737         (h8300_classify_operand, h8300_length_from_table,
8738         h8300_length_table_for_insn, h8300_unary_length,
8739         h8300_insn_length_from_table): New functions.
8740         (output_plussi): Only use adds and subs for register destinations.
8741         Disable redundant clause.
8742         (compute_plussi_cc): Likewise.
8743         (compute_plussi_length): Likewise.  Use h8300_length_from_table
8744         to work out the length of an insn.
8745         (output_logical_op): Only use narrower immediate instructions
8746         if the destination is a register.
8747         (compute_logical_op_cc): Likewise.
8748         (compute_logical_op_length): Likewise.  Use h8300_length_from_table.
8749         (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
8750         * config/h8300/h8300.md (length_table): New attribute.
8751         (length): When an instruction has a length_table attribute, use
8752         h8300_insn_length_from_table to calculate its default length.
8753         (cmpqi): Use h8300_dst_operand for the first operand and
8754         h8300_src_operand for the second.
8755         (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
8756         negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
8757         addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
8758         iorsi3, xorhi3, xorsi3): Likewise.
8759         (andqi3): Use h8300_src_operand for operand 2.  Adjust the condition
8760         so that it allows any combination of operands for TARGET_H8300SX.
8761         (iorqi3, xorqi3): Likewise.
8762         (cmpqi): Use the length_table attribute.
8763         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
8764         xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
8765         (cmpqi): Add 'Q' constraint.
8766         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
8767         iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
8768         2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
8769         * config/h8300/h8300.h (MASK_H8300SX): New macro.
8770         (TARGET_H8300S): True for both -ms and -msx.
8771         (TARGET_H8300SX): New macro.
8772         (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
8773         * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
8774         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
8775         * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
8776         [Temporary change.]
8777         2003-02-28  Alexandre Oliva  <aoliva@redhat.com>
8778         * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
8779         16-bit pointers and 32-bit ints.
8780         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
8781         CONST_DOUBLE with mode no wider than SImode.
8782         * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
8783         output operand.
8784         2003-02-27  Alexandre Oliva  <aoliva@redhat.com>
8785         * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
8786         or SUBREG thereof.
8787         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
8788         2003-02-22  Alexandre Oliva  <aoliva@redhat.com>
8789         * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
8790
8791 2004-05-28  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
8792
8793         * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
8794
8795 2004-07-07  Per Bothner  <per@bothner.com>
8796
8797         * flow.c (attempt_auto_inc):  Remove now-redundant PUT_CODE.
8798
8799 2004-07-07  Mike Stump  <mrs@apple.com>
8800
8801         * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
8802         * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
8803         (machopic_finish): Likewise.
8804
8805 2004-07-07  Richard Henderson  <rth@redhat.com>
8806
8807         * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
8808         through any value-preserving cast.
8809
8810 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
8811
8812         * function.c (assign_parm_find_data_types): Call
8813         FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
8814
8815 2004-07-07  Steven Bosscher  <stevenb@suse.de>
8816
8817         * tree-cfg.c (group_case_labels): Remove case labels that have
8818         the same target as the default case.
8819
8820 2004-07-07  Steven Bosscher  <stevenb@suse.de>
8821
8822         * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
8823         regardless of DECL_LANG_SPECIFIC being present or not.
8824         * tree.h (DECL_NUM_STMTS): Purge.
8825
8826 2004-07-07  Andrew Pinski  <apinski@apple.com>
8827
8828         * configure: Regenerate with the right autoconf.
8829
8830 2004-07-07  David Edelsohn  <edelsohn@gnu.org>
8831
8832         * ifcvt.c (total_bb_rtx_cost): New function.
8833         (find_if_case_1): Compare rtx_cost of basic block to cost of
8834         BRANCH_COST insns.
8835         (find_if_case_2): Same.
8836
8837 2004-07-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
8838
8839         PR target/10567
8840         * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
8841         (output_return): Likewise.
8842         (output_sibcall): Abort if !flag_delayed_branch.
8843         (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
8844         (emit_and_preserve): New function.
8845         (sparc_output_mi_thunk): Use it.  Honor flag_delayed_branch.  Emit an
8846         indirect jump to the thunked-to function if !flag_delayed_branch.
8847         * config/sparc/sparc.md (delayed_branch): New attribute.
8848         (load_pcrel_sym): Honor flag_delayed_branch.  Use above
8849         attribute to compute the length of the insn.
8850         (goto_handler_and_restore): Likewise.
8851
8852 2004-07-07  Andrew Pinski  <apinski@apple.com>
8853
8854         PR tree-optimization/15777
8855         * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
8856
8857         * expr.c (expand_expr_real_1): Fix formating.
8858         BUFFER_REF and IN_EXPR are dead.
8859         * fold-const.c (non_lvalue): BUFFER_REF is dead.
8860         * tree-inline.c (estimate_num_insns_1): Likewise.
8861         * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
8862         IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
8863         * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
8864
8865 2004-07-07  H.J. Lu  <hongjiu.lu@intel.com>
8866
8867         * collect2.c (dump_file): Don't call cplus_demangle if
8868         HAVE_LD_DEMANGLE is defined.
8869         (main): Pass "--demangle" to ld if no_demangle is not 0 and
8870         HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
8871         if HAVE_LD_DEMANGLE is defined.
8872
8873         * configure.ac (--with-demangler-in-ld): Added
8874         (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
8875         --with-demangler-in-ld is used.
8876         * config.in: Regenerated.
8877         * configure: Likewise.
8878
8879 2004-07-07  Roger Sayle  <roger@eyesopen.com>
8880
8881         * config/rs6000/rs6000.c (struct processor_costs): Add new fields
8882         for simple floating point operations "fp", double precision
8883         multiplication "dmul", and single and double precision division
8884         "sdiv" and "ddiv".  Update all CPU variant tables as appropriate.
8885         (ppc630_cost): New table split from ppc620_cost, to distinguish
8886         differences in floating point latencies.
8887         (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
8888         (rs6000_rtx_costs): Add support for single and double precision
8889         floating point addition, subtraction, multiplication, division,
8890         fused-multiply-add, fused-multiply-sub, negation, absolute value
8891         and negative absolute value.  Tweak MEM case to use prefered idiom.
8892
8893 2004-07-07  Richard Henderson  <rth@redhat.com>
8894
8895         * tree-flow-inline.h (may_propagate_copy): Move...
8896         * tree-ssa-copy.c (may_propagate_copy): ... here.  Fail if we
8897         attempt to copy between types requiring conversion.
8898         * tree-flow.h (may_propagate_copy): Update decl.
8899         * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
8900
8901 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
8902
8903         * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
8904         from -mtune= option.
8905
8906 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
8907
8908         * builtins.c: Rename movstr*, except for movstrict*, to
8909         movmem* and clrstr* to clrmem*.
8910         * expr.c: Likewise.
8911         * expr.h: Likewise.
8912         * genopinit.c: Likewise.
8913         * integrate.c: Likewise.
8914         * local-alloc.c: Likewise.
8915         * optabs.c: Likewise.
8916         * optabs.h: Likewise.
8917         * config/alpha/alpha.h: Likewise.
8918         * config/alpha/alpha.md: Likewise.
8919         * config/arm/arm-protos.h: Likewise.
8920         * config/arm/arm.c: Likewise.
8921         * config/arm/arm.md: Likewise.
8922         * config/avr/avr.md: Likewise.
8923         * config/c4x/c4x.c: Likewise.
8924         * config/c4x/c4x.md: Likewise.
8925         * config/frv/frv.md: Likewise.
8926         * config/i386/i386-protos.h: Likewise.
8927         * config/i386/i386.c: Likewise.
8928         * config/i386/i386.h: Likewise.
8929         * config/i386/i386.md: Likewise.
8930         * config/i860/i860.c: Likewise.
8931         * config/i860/i860.md: Likewise.
8932         * config/ip2k/ip2k.md: Likewise.
8933         * config/ip2k/libgcc.S: Likewise.
8934         * config/ip2k/t-ip2k: Likewise.
8935         * config/m32r/m32r.c: Likewise.
8936         * config/m32r/m32r.md: Likewise.
8937         * config/mcore/mcore.md: Likewise.
8938         * config/mips/mips.c: Likewise.
8939         * config/mips/mips.md: Likewise.
8940         * config/ns32k/ns32k.c: Likewise.
8941         * config/ns32k/ns32k.h: Likewise.
8942         * config/ns32k/ns32k.md: Likewise.
8943         * config/pa/pa.c: Likewise.
8944         * config/pa/pa.md: Likewise.
8945         * config/pdp11/pdp11.h: Likewise.
8946         * config/pdp11/pdp11.md: Likewise.
8947         * config/rs6000/rs6000.c: Likewise.
8948         * config/rs6000/rs6000.md: Likewise.
8949         * config/s390/s390-protos.h: Likewise.
8950         * config/s390/s390.c: Likewise.
8951         * config/s390/s390.md: Likewise.
8952         * config/sh/lib1funcs.asm: Likewise.
8953         * config/sh/sh.c: Likewise.
8954         * config/sh/sh.md: Likewise.
8955         * config/sh/t-sh: Likewise.
8956         * config/sparc/sparc.h: Likewise.
8957         * config/vax/vax.md: Likewise.
8958         * config/xtensa/xtensa.c: Likewise.
8959         * config/xtensa/xtensa.md: Likewise.
8960         * doc/invoke.texi: Likewise.
8961         * doc/md.texi: Likewise.
8962         * doc/rtl.texi: Likewise.
8963
8964 2004-07-07  Richard Sandiford  <rsandifo@redhat.com>
8965
8966         PR target/16407
8967         * config/mips/mips-protos.h (mips_declare_common_object): Declare.
8968         * config/mips/mips.c (mips_declare_common_object): New function,
8969         mostly split out from...
8970         (mips_output_aligned_decl_common): ...here.
8971         * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
8972         (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
8973         * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
8974         rather than ASM_OUTPUT_LOCAL.  Call mips_declare_common_object.
8975
8976 2004-07-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8977
8978         PR c/16392
8979         * function.c (assign_parms): Fix typo from previous change.
8980
8981 2004-07-07  Jason Merrill  <jason@redhat.com>
8982
8983         PR c++/15815
8984         * doc/extend.texi (C++ Interface): Correct information and
8985         discourage use.
8986
8987 2004-07-07  Vladimir Makarov  <vmakarov@redhat.com>
8988
8989         PR target/16130
8990         PR target/16142
8991         PR target/16143
8992         * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
8993         insn.
8994
8995 2004-07-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
8996
8997         PR target/1679.
8998         * config/m32r/m32r.c (m32r_function_symbol): New function:
8999         Generate a symbol name RTX with the correct m32r specific flags
9000         set.
9001         (block_move_call): Use new function to generate correct symbol.
9002         * config/m32r/m32r-protos.h: Add prototype for new funcion.
9003         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
9004         function.
9005
9006 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
9007
9008         * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
9009         TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
9010         TYPE_BINFO_BASETYPE): Remove.
9011         (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
9012         to ...
9013         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
9014         here.
9015         (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
9016         (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
9017         (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
9018         (struct tree_binfo): Rename base_types to base_binfos.
9019         * alias.c (record_component_aliases): Adjust BINFO macros.
9020         * dbxout.c (dbxout_type): Likewise.
9021         * dwarf2out.c (gen_member_die): Likewise.
9022         * sdbout.c (sdbout_one_type): Likewise.
9023         * tree-dump.c (deque_and_dump): Likewise.
9024         * config/i386/i386.c (classify_argument,
9025         contains_128bit_aligned_vector_p): Likewise.
9026
9027 2004-07-07  Nick Clifton  <nickc@redhat.com>
9028
9029         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
9030         arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
9031
9032 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
9033
9034         * vec.h: Fix the example use.
9035
9036 2004-07-06  Richard Henderson  <rth@redhat.com>
9037
9038         * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
9039         * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
9040         * tree-inline.c (copy_body_r, setup_one_parameter,
9041         initialize_inlined_parameters, expand_call_inline,
9042         declare_inline_vars): Don't check it.
9043         (expand_calls_inline): Remove old version, rename new version
9044         from gimple_expand_calls_inline.
9045         * tree-optimize.c (execute_gimple): Remove.
9046         (pass_gimple): Don't run anything.
9047
9048 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
9049
9050         * doc/sourcebuild.texi: Use semicolons instead of commas in
9051         section title.
9052
9053 2004-07-06  Richard Henderson  <rth@redhat.com>
9054
9055         * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
9056         (sra_walk_modify_expr, scan_init): Likewise.
9057         (generate_element_zero): Check visited before scanning children.
9058         (generate_element_init): Set visited on error.
9059         (scalarize_init): Handle generate_element_init failure similar
9060         to use_block_copy.
9061
9062 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
9063
9064         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
9065         (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
9066
9067 2004-07-06  Richard Henderson  <rth@redhat.com>
9068
9069         * config/i386/i386.c (legitimize_pic_address): Make static.
9070         (legitimize_address): Handle CONST with TLS operand.
9071         (ix86_expand_move): Don't call legitimize_pic_address directly.
9072         * config/i386/i386-protos.h (legitimize_pic_address): Remove.
9073
9074 2004-07-06  Roger Sayle  <roger@eyesopen.com>
9075
9076         * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
9077         (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
9078         (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
9079         is currently executed unconditionally, i.e. not in "else_bb".
9080
9081 2004-07-06  Steven Bosscher  <stevenb@suse.de>
9082
9083         * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
9084         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
9085         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
9086         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
9087         * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
9088         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
9089         * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
9090         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
9091         * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
9092         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
9093         * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
9094         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
9095         * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
9096         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
9097         * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
9098         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
9099
9100 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
9101
9102         * dojump.c (do_jump): REFERENCE_EXPR is dead.
9103         * expr.c (expand_expr_real_1): Ditto.
9104         * tree-inline.c (estimate_num_insns_1): Ditto.
9105         * tree-pretty-print.c (dump_generic_node): Ditto.
9106         (op_symbol): Ditto.
9107         * tree.def: Ditto.
9108
9109 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
9110
9111         * tree-ssa-pre.c (reference_node_pool): New pool.
9112         (find_or_generate_expression): Class 'r' is okay too.
9113         (create_value_expr_from): Ditto.
9114         (add_to_sets): LHS should not include vuses.
9115         (eliminate): Ditto.
9116         (compute_avail): Reverse ordering of tests.
9117         Valuize INDIRECT_REF as well.
9118
9119 2004-07-06  Richard Sandiford  <rsandifo@redhat.com>
9120
9121         PR rtl-optimization/16380
9122         * loop.c (check_dbra_loop): Sink comparison instructions if they
9123         do something other than set cc0.
9124
9125 2004-07-06  James E Wilson  <wilson@specifixinc.com>
9126
9127         * doc/interface.texi (longjmp and automatic variables): Delete
9128         paragraph recommending taking the address of a variable.
9129
9130 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
9131
9132         * vec.h (VEC_embedded_alloc): Remove.
9133         (VEC_embedded_size, VEC_embedded_init): New.
9134         (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
9135         MEM_STAT_INFO.
9136         (VEC_truncate): New.
9137         (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
9138         (vec_embedded_alloc): Remove.
9139         * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
9140         (vec_embedded_alloc): Remove.
9141
9142 2004-07-06  Mark Mitchell  <mark@codesourcery.com>
9143
9144         * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
9145         (gt-langhooks.h): Remove.
9146
9147 2004-07-06  George Helffrich <george@gly.bris.ac.uk>
9148
9149         * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
9150
9151 2004-07-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
9152
9153         * config/sparc/sparc.c (get_pc_symbol): Rename into
9154         add_pc_to_pic_symbol.
9155         (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
9156         (load_pic_register): Account for previous changes.
9157         Use reg_names.  Don't create the label twice.
9158         * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
9159         UNSPEC_LOAD_PCREL_SYM.
9160         (get_pc): Rename into load_pcrel_sym.  Add predicate to
9161         operands.  Remove condition.
9162
9163 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
9164
9165         * dbxout.c (dbxout_type): Don't test whether the binfo slot of
9166         RECORD, UNION & QUAL_UNION is actually a binfo.
9167
9168         * tree.h (TREE_VIA_VIRTUAL): Rename to ...
9169         (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
9170         (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
9171         * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
9172         * dwarf2out.c (add_data_member_location_attribute): Likewise.
9173         (gen_inheritance_die): Likewise.
9174         * tree-dump.c (deque_and_dump): Likewise.
9175         * doc/c-tree.texi (Binfos): Add under reconstruction note.
9176
9177 2004-07-06  Steven Bosscher  <stevenb@suse.de>
9178
9179         * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
9180         Define.
9181         * config/mcore/mcore.md: Model memory latency with a simple DFA
9182         pipeline description instead of a define_function_unit.
9183
9184 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9185
9186         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
9187         * langhooks.h (var_mod_type_p): Likewise.
9188         * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
9189         * expr.c (count_type_elements): Properly handle return from
9190         array_type_nelts and properly test for overflow.
9191         * gimplify.c (gimplify_init_constructor): Properly handle return
9192         from array_type_nelts.
9193         (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
9194         * integrate.c (copy_decl_for_inlining): Correct comments.
9195         * tree-inline.c (remap_decl): Update comments, remove dead code,
9196         and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
9197         (remap_type): Only remap if variably modified by vars in function
9198         being inlined.
9199         (copy_body_r): Use compatible_type langhooks to see when can fold.
9200         (setup_one_parameter): Don't remap type.
9201         (inline_forbidden_p_1): Add arg to variably_modified_type_p.
9202         * tree.c (recompute_tree_invarant_for_addr_expr): Properly
9203         compute TREE_INVARIANT for decl case.
9204         (find_var_from_fn): New function.
9205         (variably_modified_type_p): Add arg and call new function.
9206         * tree.h (variably_modified_type_p): Add extra arg.
9207
9208 2004-07-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
9209
9210         * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
9211         (goto_handler_and_restore_v9): Delete disabled insn.
9212         (goto_handler_and_restore_v9_sp64): Likewise.
9213
9214 2004-07-05  Roger Sayle  <roger@eyesopen.com>
9215
9216         * calls.c (load_register_parameters): Call expand_shift instead
9217         of expand_binop with ashl_optab (or other shift optab) directly.
9218         * expr.c (emit_group_load, emit_group_store): Likewise.
9219         * function.c (assign_parm_setup_block): Likewise.
9220         * stmt.c (shift_return_value): Likewise.
9221
9222 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
9223
9224         * expr.c (expand_assignment): Disable the bitfield += optimizations.
9225
9226 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
9227
9228         * doc/sourcebuild.texi: Revert previous patch.
9229
9230 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
9231
9232         * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
9233         TARGET_MEM_FUNCTIONS.
9234         * system.h: Poison TARGET_MEM_FUNCTIONS.
9235         * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
9236         bcmp_libfunc, bzero_libfunc): Remove.
9237         * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
9238         bzero_libfunc.
9239         * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
9240         * doc/standards.texi: Don't mention calling BSD string functions.
9241         * doc/invoke.texi: Likewise.  Mention that memmove may be called.
9242         * config/vax/t-memfuncs: New.
9243         * config/memcmp.c, config/memcpy.c, config/memmove.c,
9244         config/memset.c: New.
9245         * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
9246         * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
9247         vax/t-memfuncs.
9248         * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
9249         config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
9250         config/elfos.h, config/gnu.h, config/h8300/h8300.h,
9251         config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
9252         config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
9253         config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
9254         config/netbsd.h, config/openbsd.h, config/pa/pa.h,
9255         config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
9256         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
9257         config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
9258
9259 2004-07-05  Richard Henderson  <rth@redhat.com>
9260
9261         * function.c (assign_parm_setup_reg): Properly rename variables in
9262         FUNCTION_ARG_CALLEE_COPIES section.
9263
9264 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
9265
9266         * tree-mudflap.c: Include cgraph.h.
9267         (mf_init_extern_trees): Rename to mudflap_init.  Export.
9268         Rewrite to create synthetic declarations instead of looking
9269         up declarations from mf-runtime.h.
9270         (mf_make_builtin, mf_make_cache_struct_type): New functions.
9271         (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
9272         Correct commentary.
9273         (execute_mudflap_function_decls, mudflap_register_call):
9274         Don't call mf_init_extern_trees.
9275         (mudflap_finish_file): Use cgraph_build_static_cdtor.
9276
9277         * tree-mudflap.h: Update prototypes.
9278         * c-mudflap.c: Delete file.
9279         * c-common.c: Include tree-mudflap.h.
9280         (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
9281         * Makefile.in: Remove all references to c-mudflap.o.
9282         Update dependencies.
9283
9284 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9285
9286         * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
9287         displacements with the spatial-locality cache-control completer.
9288
9289 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
9290
9291         * langhooks.c: Don't include gt-langhooks.h.
9292         (var_labelno): Delete.
9293         (lhd_set_decl_assembler_name): Do not append a distinguishing
9294         number to file-scope internal-linkage declarations for the first
9295         input file, even if they have DECL_CONTEXT set.  Use DECL_UID of
9296         the declaration itself (if at block scope), or its containing
9297         TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
9298         number.
9299
9300         * opts.c (cur_in_fname): New global.
9301         * opts.h: Declare it.
9302         * tree.c: Include opts.h.
9303         (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
9304         DECL_UID equal to cur_in_fname.
9305         (copy_node_stat): Do not change DECL_UID when copying a
9306         TRANSLATION_UNIT_DECL.
9307         (build_common_tree_nodes): Adjust next_decl_uid to reserve the
9308         range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
9309
9310         * c-decl.c (c_static_assembler_name): Delete.
9311         * c-tree.h (c_static_assembler_name): Delete prototype.
9312         * c-lang.c, objc/objc-lang.c: Don't override
9313         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
9314
9315         * Makefile.in (tree.o): Update dependencies.
9316         (GTFILES): Remove langhooks.c.
9317
9318 2004-07-05  Roger Sayle  <roger@eyesopen.com>
9319
9320         * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
9321         by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
9322         Normalize "X % C" as "X % -C" for signed modulus and negative C.
9323         Optimize "X % -Y" as "X % Y" for signed modulus.
9324         <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
9325         into "((unsigned) X % Y) == 0".
9326
9327 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
9328
9329         * sourcebuild.texi (Config Fragments): Use @comma{} in
9330         cross-reference to section title.
9331
9332 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9333
9334         * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
9335         * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
9336         (gimplify_target_expr, gimplify_expr): Likewise.
9337         (copy_if_shared_r): No longer need special case for BIND_EXPR.
9338         (unshare_body, unvisit_body): Only look at nested if BODY_P is
9339         whole function.
9340         (gimplify_compound_lval): See if we can strip any useless conversion.
9341         (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
9342         from RHS, not LHS.
9343         (gimplify_modify_expr_to_memset): Likewise.
9344         (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
9345         * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
9346         (declare_inline_vars): Likewise.
9347         (walk_type_fields): New function.
9348         (walk_tree): Use it.
9349         * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
9350
9351         * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
9352         (sra_walk_modify_expr): Allow init function to fail.
9353         (scan_init): Now returns bool.
9354         (generate_element_init): If can't understand INIT, return false.
9355         (scalarize_init): Return false if generate_element_init does.
9356
9357         * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
9358         print bounds.
9359
9360         * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
9361         bounds if bounds aren't constant.
9362
9363         * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
9364
9365         * function.c, langhooks-def.h, langhooks.h: Move max_size hook
9366         to type hooks; remove bogus PARAMS.
9367
9368 2004-07-05  Nathan Sidwell  <nathan@codesourcery.com>
9369
9370         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
9371         * dwarf2out.c (add_data_member_location_attribute): Check for
9372         TREE_BINFO.
9373         * tree.c (tree_node_kinds): Add "binfos".
9374         (binfo_lang_slots): New.
9375         (make_node_stat): Add TREE_BINFO.
9376         (make_tree_binfo_stat): New.
9377         (tree_node_structure): Add TREE_BINFO.
9378         * tree.def (TREE_BINFO): New.
9379         * tree.h (REC_OR_UNION_CHECK): Rename to ...
9380         (RECORD_OR_UNION_CHECK): ... here.
9381         (NOT_RECORD_OR_UNION_CHECK): New.
9382         (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
9383         (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
9384         RECORD_OR_UNION_CHECK.
9385         (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
9386         (TYPE_LANG_SLOT_1): New.
9387         (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
9388         BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
9389         BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
9390         (BINFO_ELTS): Remove.
9391         (BINFO_LANG_SLOT): New.
9392         (struct tree_binfo): New.
9393         (binfo_lang_slots): Declare.
9394         (enum tree_node_structure_enum): Add TS_BINFO.
9395         (union tree_node): Add binfo.
9396         (make_tree_binfo_stat): Declare.
9397         (make_tree_binfo): New.
9398         (enum tree_node_kind): Add binfo_kind.
9399
9400         * objc/objc-act.c (start_class, objc_declare_protocols,
9401         start_protocols): Use TYPE_LANG_SLOT_1.
9402         * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
9403         to ...
9404         (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
9405         (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
9406         CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
9407         PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
9408
9409 2004-07-05  Steven Bosscher  <stevenb@suse.de>
9410
9411         * rtl.h (struct rtx_def): Remove the integrated flag.
9412         Use the return_val flag for MEM_SCALAR_P.
9413         Reshuffle and update flags in CLEAR_RTX_FLAGS.
9414
9415 2004-07-05  Richard Sandiford  <rsandifo@redhat.com>
9416
9417         PR target/16357
9418         * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
9419         to mips_expand_unaligned_load, mips_expand_unaligned_store, and
9420         move_by_pieces.
9421
9422 2004-07-05  Josef Zlomek  <zlomekj@suse.cz>
9423
9424         * var-tracking.c: Fix some comments.
9425         (frame_stack_adjust): New.
9426         (vt_stack_adjustments): Init stack_adjust of entry block to
9427         minus stack adjustment of function prologue.
9428         (adjust_stack_reference): Do not adjust if adjustment == 0.
9429         (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
9430         (emit_notes_in_bb): Likewise.
9431         (vt_add_function_parameters): Do not adjust locations of
9432         function arguments.
9433         (vt_initialize): Compute the stack adjustment of function
9434         prologue and offset the initial "location" of frame_base_decl
9435         from the stack pointer after prologue.
9436
9437 2004-07-04  Richard Henderson  <rth@redhat.com>
9438
9439         * function.c (struct assign_parm_data_all): New.
9440         (struct assign_parm_data_one): New.
9441         (assign_parms_initialize_all, assign_parms_augmented_arg_list,
9442         assign_parm_find_data_types, assign_parms_setup_varargs,
9443         assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
9444         assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
9445         assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
9446         assign_parm_setup_block, assign_parm_setup_reg,
9447         assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
9448         (assign_parms): ... here.
9449
9450 2004-07-04  Daniel Berlin  <dberlin@dberlin.org>
9451
9452         * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
9453         now are bitmap_set_t's.
9454         (bitmap_insert_into_set): No point in inserting the value if
9455         it's invariant.
9456         (bitmap_set_contains): New function.
9457         (bitmap_set_replace_value): Add comment on why we do it
9458         this way.
9459         (set_contains): Removed.
9460         (bitmap_set_subtract_from_value_set): New name of
9461         set_subtract now that it's arguments are two different
9462         types of sets.
9463         Update callers.
9464         (bitmap_find_leader): Change algorithm used.
9465         (find_or_generate_expression): Update use of functions for new
9466         bitmap sets.
9467         (create_expression_by_pieces): Ditto.
9468         (insert_aux): Ditto.
9469         (insert): Ditto.
9470         (add_to_sets): Ditto.
9471         (init_pre): Ditto.
9472         (execute_pre): Ditto.
9473         (compute_avail): Ditto.
9474         Also ignore virtual phis.
9475
9476 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
9477
9478         * combine.c (simplify_comparison): Fix comment typo.
9479
9480 2004-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
9481
9482         * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
9483         into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
9484         (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
9485         (output_restore): Change parameter from 'insn' to 'pat'.
9486         (output_return): Adjust call to output_restore.
9487         (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
9488         Adjust call to output_restore.
9489
9490 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
9491
9492         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
9493         and assert system is bsd.
9494
9495 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
9496
9497         * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
9498         (TARGET_SWITCHES): Remove -mdebugc.
9499         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
9500         (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
9501         (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
9502         (sle_[sd]i_reg): Delete.
9503
9504 2004-07-04  Steven Bosscher  <stevenb@suse.de>
9505
9506         * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
9507         Define.
9508         * config/iq2000/iq2000.md: Translate old pipeline description to an
9509         equivalent new one.
9510
9511 2004-07-04  Roger Sayle  <roger@eyesopen.com>
9512
9513         * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
9514         Ensure the replacement rhs is valid gimple before performing
9515         the substitution.  Return false if these sanity checks fail.
9516         (fold_stmt): Only set changed to true, if set_rhs returns true.
9517         (execute_fold_all_builtins): Only call modify_stmt if set_rhs
9518         succeeds.
9519
9520 2004-07-04  Richard Henderson  <rth@redhat.com>
9521
9522         PR c/16348
9523         * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
9524
9525 2004-07-04  Mark Mitchell  <mark@codesourcery.com>
9526
9527         * configure.ac (ranlib_flags): New variable.
9528         * Makefile.in (RANLIB_FLAGS): New variable.
9529         (libbackend.a): Use it.
9530         * configure: Regenerated.
9531
9532 2004-07-04  Roger Sayle  <roger@eyesopen.com>
9533
9534         * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
9535         a "sign mask" instead of using ashr_optab directly.
9536
9537 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
9538
9539         * doc/cpp.texi: Don't document what we do for ill-formed expressions.
9540         * doc/cppopts.texi: Clarify processing of command-line defines.
9541
9542 2004-07-04  Gerald Pfeifer  <gerald@pfeifer.com>
9543
9544         * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
9545
9546 2004-07-04  Richard Henderson  <rth@redhat.com>
9547
9548         * rtl.def (ADDRESSOF): Remove.
9549         * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
9550         (find_base_term, memrefs_conflict_p): Likewise.
9551         * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
9552         (fold_rtx, cse_insn, set_live_p): Likewise.
9553         * dwarf2out.c (mem_loc_descriptor): Likewise.
9554         (add_location_or_const_value_attribute): Likewise.
9555         * emit-rtl.c (copy_insn_1): Likewise.
9556         * explow.c (memory_address): Likewise.
9557         * expmed.c (store_split_bit_field): Likewise.
9558         * expr.c (expand_expr_real_1): Likewise.
9559         * function.c (instantiate_decl
9560         (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
9561         * genrecog.c (preds, validate_pattern): Likewise.
9562         * integrate.c (copy_rtx_and_substitute): Likewise.
9563         * recog.c (general_operand, register_operand): Likewise.
9564         (memory_address_p): Likwise.
9565         * reload1.c (eliminate_regs, elimination_effects): Likewise.
9566         * rtl.c (copy_rtx): Likewise.
9567         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
9568         (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
9569         * rtlhooks.c (gen_lowpart_general): Likewise.
9570         * stmt.c (expand_asm_operands): Likewise.
9571         * web.c (entry_register, replace_ref, web_main): Likewise.
9572         * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
9573         alpha_expand_block_move, alpha_expand_block_clear): Likewise.
9574         * config/arm/arm.c (thumb_rtx_costs): Likewise.
9575         * config/c4x/c4x.c (c4x_valid_operands): Likewise.
9576         * config/frv/frv.c (move_destination_operand, move_source_operand,
9577         condexec_dest_operand, condexec_source_operand,
9578         condexec_memory_operand): Likewise.
9579         * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
9580         * config/ia64/ia64.c (general_xfmode_operand): Likewise.
9581         (destination_xfmode_operand): Likewise.
9582         * config/mips/mips.h (PREDICATE_CODES): Likewise.
9583         * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
9584         * config/s390/s390.c (general_s_operand): Likewise.
9585         * config/s390/s390.md (mov*): Likewise.
9586         * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
9587
9588         * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
9589         * expr.c (expand_expr_real_1): Likewise.
9590         * stmt.c (expand_decl): Likewise.
9591         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
9592
9593         * function.c (struct fixup_replacement, struct insns_for_mem_entry,
9594         postponed_insns, put_var_into_stack, put_reg_into_stack,
9595         schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
9596         fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
9597         fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
9598         walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
9599         gen_mem_addressof, flush_addressof, put_addressof_into_stack,
9600         purge_bitfield_addressof_replacements, purge_addressof_replacements,
9601         purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
9602         struct insns_for_mem_walk_info, insns_for_mem_walk,
9603         compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
9604         setjmp_protect_args): Remove.
9605         (push_function_context_to): Don't handle var_refs_queue.
9606         (pop_function_context_from, free_after_compilation): Likewise.
9607         (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
9608         (assign_parms, allocate_struct_function): Likewise.
9609         (use_register_for_decl): New.
9610         (expand_function_end): Don't setjmp_protect.
9611         * function.h (struct emit_status): Update commentary.
9612         (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
9613         (max_parm_reg, parm_reg_stack_loc): Remove.
9614         * passes.c (DFI_addressof): Remove.
9615         (dump_file_info): Remove addressof.
9616         (rest_of_handle_addressof): Remove.
9617         (rest_of_compilation): Don't call it.
9618         * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
9619         * stmt.c (expand_decl): Use use_register_for_decl.
9620         * tree.h: Update decls.
9621         * web.c (mark_addressof): Remove.
9622         * doc/invoke.texi (-dF): Remove.
9623
9624 2004-07-03  Richard Henderson  <rth@redhat.com>
9625
9626         * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
9627         instead of gen_mem_addressof.
9628         * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
9629         TImode output register.
9630
9631 2004-07-03  Richard Henderson  <rth@redhat.com>
9632
9633         PR tree-optimization/16341
9634         * tree-sra.c (sra_walk_function): Increment to next stmt before
9635         processing the current stmt.
9636         (sra_insert_after): Always use BSI_SAME_STMT.
9637
9638 2004-07-03  Richard Henderson  <rth@redhat.com>
9639
9640         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
9641         fp plus with minus.
9642
9643 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
9644
9645         * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
9646         with tree_int_cst_equal.
9647
9648 2004-07-03  Andreas Schwab  <schwab@suse.de>
9649
9650         * config/ia64/ia64.md: Define new attribute "empty".
9651         (prologue_use, nop_x, insn_group_barrier): Set it.
9652
9653         * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
9654         skip over "empty" insns.
9655
9656 2004-07-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9657
9658         * tree-inline.c (initialize_inlined_parameters): Pass proper function
9659         context to gimplify_body.
9660         (walk_tree): Don't walk into types twice.
9661         (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
9662
9663         * tree-sra.c (generate_element_init): Remove any useless conversions.
9664
9665         * gimplify.c (gimplify_conversion): Remove stripping useless
9666         conversions from here.
9667         (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
9668         (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
9669         Unshare before substituting PLACEHOLDER_EXPR.
9670         (gimplify_modify_expr_to_memset): Likewise.
9671         Pass address of TO to memset, not TO itself.
9672         (gimplify_init_constructor): Make copy of OBJECT so we have it each
9673         time we make an expression (to match a PLACEHOLDER_EXPR).
9674
9675         * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
9676         VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
9677         * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
9678         * tree-ssa-dom.c (local_fold): Likewise.
9679
9680         * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
9681         * langhooks.h (strct lang_hooks): New field type_max_size.
9682         * function.c (assign_temp): Call it.
9683
9684 2004-07-03  Steven Bosscher  <stevenb@suse.de>
9685
9686         * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
9687         * config/sh/sh.md: Convert the SH1 pipeline description to
9688         a DFA model.
9689
9690 2004-07-02  Zack Weinberg  <zack@codesourcery.com>
9691
9692         * c-decl.c (struct c_binding): Remove contour field; add
9693         depth, invisible, nested fields.
9694         (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
9695         (B_IN_EXTERNAL_SCOPE): New convenience macros.
9696         (bind): Add invisible and nested arguments. Initialize
9697         new fields of struct c_binding; adjust loop scanning for
9698         insertion point.
9699         (free_binding_and_advance): Clear structure with memset.
9700         (pop_scope): Adjust to match.  Set DECL_CONTEXT on everything
9701         in file scope, even if it's in external scope too.
9702         (pushdecl): Adjust to match.  Create invisible file-scope
9703         declarations for block-scope forward declarations of static functions.
9704         (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
9705         (undeclared_variable, lookup_label, declare_label, define_label)
9706         (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
9707         (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
9708         (store_parm_decls_oldstyle): Adjust to match.
9709         (diagnose_mismatched_decls): Correct handling of linkage clashes.
9710         (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
9711
9712         * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
9713         (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
9714
9715 2004-07-02  Richard Henderson  <rth@redhat.com>
9716
9717         * c-decl.c (grokdeclarator): Don't frob current_function_decl
9718         around variable_size.
9719         (set_decl_nonlocal): Remove.
9720         (store_parm_decls): Add stmts for pending sizes.
9721         * calls.c (calls_function, calls_function_1): Remove.
9722         (precompute_arguments): Don't call it.
9723         * cfgexpand.c (set_save_expr_context): Remove.
9724         (tree_expand_cfg): Don't call it.
9725         * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
9726         (dwarf2out_finish): Likewise.
9727         * expr.c (emit_block_move): Adjust addresses to BLKmode.
9728         (store_constructor): Don't pre-evaluate SAVE_EXPR.
9729         (safe_from_p): Don't queue SAVE_EXPRs.
9730         (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
9731         or build plain VAR_DECLs.
9732         * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
9733         (fold): Likewise.
9734         (fold_checksum_tree): Don't special-case SAVE_EXPR.
9735         * function.c (free_after_compilation): Don't clear x_save_expr_regs.
9736         (put_var_into_stack): Don't handle SAVE_EXPR.
9737         (gen_mem_addressof): Likewise.
9738         * function.h (struct function): Remove x_save_expr_regs.
9739         (save_expr_regs): Remove.
9740         * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
9741         * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
9742         * stor-layout.c (variable_size): Don't set it.
9743         (force_type_save_exprs, force_type_save_exprs_1): Remove.
9744         * tree-inline.c (remap_save_expr): Remove fn argument.  Update
9745         all callers.  Don't set SAVE_EXPR_CONTEXT.
9746         * tree-inline.h (remap_save_expr): Update decl.
9747         * tree.c (save_expr): Update build size.
9748         (first_rtl_op): Don't handle SAVE_EXPR.
9749         (unsave_expr_1, contains_placeholder_p): Likewise.
9750         (decl_function_context): Likewise.
9751         * tree.def (SAVE_EXPR): Remove args 1 and 2.
9752         * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
9753         (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
9754
9755 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
9756
9757         * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
9758         doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
9759         doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
9760         doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
9761         some first-person references and patronizing comments.  Based on
9762         printed manual.
9763         * doc/invoke.texi: Don't reference fortran@gnu.org.
9764         * doc/trouble.texi (Warning when a non-void function value is
9765         ignored): Rewrite.  From Russ Allbery and Chris Devers.
9766
9767 2004-07-02  Daniel Berlin  <dberlin@dberlin.org)
9768
9769         * tree-ssa-pre.c (bitmap_set_t): New.
9770         (bb_value_sets): avail_out is now a bitmap_set_t.
9771         (bitmap_find_leader): New function.
9772         (bitmap_value_insert_into_set): Ditto.
9773         (bitmap_set_copy): Ditto.
9774         (bitmap_value_replace_in_set): Ditto.
9775         (bitmap_set_contains_value): Ditto.
9776         (bitmap_set_new): Ditto.
9777         (bitmap_set_pool): New pool.
9778         (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
9779         (insert_aux): Ditto.
9780         (add_to_sets): Ditto.
9781         (compute_avail): Ditto
9782         (eliminate): Ditto.
9783         (init_pre): Ditto.
9784         (fini_pre): Ditto.
9785         (execute_pre): Ditto.
9786
9787 2004-07-02  Roger Sayle  <roger@eyesopen.com>
9788
9789         * config/rs6000/rs6000.c (struct processor_costs): New structure
9790         used to hold instruction latencies/sizes for processor types.
9791         (rs6000_cost): New global variable pointing to current CPU's costs.
9792         (rs6000_override_options): Initialize rs6000_cost to point to the
9793         appropriate cost table based upon rs6000_cpu and optimize_size.
9794         (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
9795         timings inline.
9796
9797 2004-07-02  Richard Henderson  <rth@redhat.com>
9798
9799         * expmed.c (make_tree): Don't use SET_DECL_RTL.
9800
9801 2004-07-02  Steven Bosscher  <stevenb@suse.de>
9802
9803         * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
9804
9805 2004-07-01  Richard Henderson  <rth@redhat.com>
9806
9807         * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
9808         (alpha_gp_save_rtx): Use assign_stack_local instead of
9809         gen_mem_addressof.
9810
9811 2004-07-01  Richard Henderson  <rth@redhat.com>
9812
9813         * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
9814         (alpha_rtx_cost_data): Update to match.
9815         (alpha_rtx_cost_size): New.
9816         (alpha_rtx_costs): Honor optimize_size.
9817
9818 2004-07-01  Richard Henderson  <rth@redhat.com>
9819
9820         * gimple-low.c (lower_function_body): Don't reset_block_changes here.
9821         * cfgexpand.c (tree_expand_cfg): Do it here.
9822         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
9823         * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
9824         * config/mips/mips.c (mips_output_mi_thunk): And here.
9825         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
9826         * config/sh/sh.c (sh_output_mi_thunk): And here.
9827         * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
9828
9829 2004-07-01  Richard Henderson  <rth@redhat.com>
9830
9831         * tree.def (RTL_EXPR): Remove.
9832         * c-typeck.c (lvalue_p): Don't handle it.
9833         * expr.c (safe_from_p): Likewise.
9834         (expand_expr_real_1): Likewise.
9835         * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
9836         (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
9837         * gengtype.c (adjust_field_tree_exp): Likewise.
9838         * stmt.c (warn_if_unused_value): Likewise.
9839         * tree-gimple.c (recalculate_side_effects): Likewise.
9840         * tree-pretty-print.c (dump_generic_node): Likewise.
9841         * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
9842         (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
9843         * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
9844
9845         * stmt.c (struct stmt_status): Remove x_last_expr_type,
9846         x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
9847         (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
9848         (expand_expr_stmt): Merge with expand_expr_stmt_value.  Remove
9849         all the bits that tracked last_expr.
9850         (expand_end_bindings): Don't track last_expr.
9851         (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
9852         (clear_last_expr): Remove.
9853         (expand_asm): Don't call it.
9854         (expand_asm_operands, expand_end_cond): Likewise.
9855         (expand_naked_return, expand_null_return_1): Likewise.
9856         * c-typeck.c (c_begin_compound_stmt): Likewise.
9857         * cfgexpand.c (expand_block): Use expand_expr_stmt.
9858         * expr.c (expand_expr_real_1): Likewise.
9859         * tree.h: Update prototypes.
9860
9861         * function.h (struct sequence_stack): Remove sequence_rtl_expr.
9862         (struct emit_status): Remove sequence_rtl_expr.
9863         (struct function): Remove x_rtl_expr_chain.
9864         (seq_rtl_expr, rtl_expr_chain): Remove.
9865         * function.c (struct temp_slot): Remove rtl_expr.
9866         (assign_stack_temp_for_type): Don't set it.
9867         (free_temp_slots, pop_temp_slots): Don't check it.
9868         (free_after_compilation): Don't clear x_rtl_expr_chain.
9869         (fixup_var_refs): Don't search it.
9870         (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
9871         * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
9872         or seq_rtl_expr.
9873         (push_topmost_sequence): Likewise.
9874         (end_sequence, init_emit): Likewise.
9875         (start_sequence_for_rtl_expr): Remove.
9876         * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
9877         * rtl.h (preserve_rtl_expr_result): Remove.
9878
9879 2004-07-02  Kazu Hirata  <kazu@cs.umass.edu>
9880
9881         * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
9882         tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
9883         typos.
9884
9885 2004-07-02  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
9886
9887         * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
9888         (STANDARD_STARTFILE_PREFIX_2): Define.
9889         (standard_startfile_prefix_1): Initialize to
9890         STANDARD_STARTFILE_PREFIX_1.
9891         (standard_startfile_prefix_2): Initialize to
9892         STANDARD_STARTFILE_PREFIX_2.
9893         * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
9894         (STANDARD_STARTFILE_PREFIX_1): Define.
9895         (STANDARD_STARTFILE_PREFIX_2): Define.
9896         * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
9897         (STANDARD_STARTFILE_PREFIX_2): Document.
9898
9899 2004-07-01  Richard Henderson  <rth@redhat.com>
9900
9901         * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
9902         in order to disable scalarization.  Instead set a flag and wait
9903         for a candidate decl.
9904
9905 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
9906
9907         * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
9908         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
9909         Use terminology "testsuite" and "enumerated".
9910
9911 2004-07-01  Richard Henderson  <rth@redhat.com>
9912
9913         * dwarf2out.c (reg_save): Use INVALID_REGNUM.
9914         (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
9915         (initial_return_save): Likewise.
9916         (flush_queued_reg_saves): Remap register numbers.
9917         (dwarf2out_return_reg): Likewise.
9918
9919 2004-07-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9920
9921         * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
9922
9923         * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
9924         access functions for lower bound and element size and only output
9925         if lower bound nonzero or element size not same as that of type.
9926         (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
9927
9928 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
9929
9930         * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
9931
9932 2004-07-01  Per Bothner  <per@bothner.com>
9933
9934         * final.c (final):  Fix typo reported by Aaron W. LaFramboise.
9935
9936 2004-07-01  Jakub Jelinek  <jakub@redhat.com>
9937
9938         * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
9939         bitfields as well.  STRIP_NOPS from src operand and PLUS_EXPR's
9940         first operand.  Don't optimize if the bitfield is volatile.
9941
9942 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
9943
9944         * c-pretty-print.c (pp_c_postfix_expression): Handle
9945         floating-point comparison operators.
9946         (pp_c_expression): Pass floating-point comparison
9947         operators to pp_c_postfix_expression.
9948
9949 2004-07-01  Roger Sayle  <roger@eyesopen.com>
9950
9951         * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
9952         rtx_cost instead of "had_mult" to determine whether the transformed
9953         expression is cheaper than the original.
9954
9955 2004-07-01  Jerry Quinn  <jlquinn@optonline.net>
9956
9957         * alias.c (get_alias_set, canon_rtx, get_addr,
9958         nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
9959         Use MEM_P.
9960         * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
9961         expand_builtin): Likewise.
9962         * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
9963         Likewise.
9964         * combine.c (can_combine_p, combinable_i3pat, try_combine,
9965         find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
9966         rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
9967         record_dead_and_set_regs_1, get_last_value_validate,
9968         mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
9969         * cse.c (check_dependence, canon_hash, equiv_constant,
9970         gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
9971         cse_around_loop, cse_check_loop_start, cse_set_around_loop,
9972         count_reg_usage): Likewise.
9973         * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
9974         cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
9975         cselib_record_sets): Likewise.
9976         * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
9977         dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
9978         * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
9979         * df.c (df_uses_record): Likewise.
9980         * dojump (do_jump): Likewise.
9981         * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
9982         loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
9983         decl_start_label): Likewise.
9984         * emit-rtl.c (gen_complex_constant_part, gen_highpart,
9985         operand_subword, change_address_1, make_safe_from): Likewise.
9986         * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
9987         stabilize, force_not_mem): Likewise.
9988         * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
9989         expand_mult_const, expand_divmod, emit_store_flag): Likewise.
9990         * expr.c (convert_move, convert_modes, emit_block_move,
9991         emit_group_load, emit_group_store, clear_storage, emit_move_insn,
9992         emit_move_insn_1, expand_assignment, store_expr,
9993         store_constructor_field, store_constructor, store_field,
9994         force_operand, safe_from_p, expand_expr_real_1, expand_increment):
9995         Likewise.
9996         * final.c (cleanup_subreg_operands, alter_subreg,
9997         get_mem_expr_from_op): Likewise.
9998         * flow.c (notice_stack_pointer_modification_1,
9999         init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
10000         Likewise.
10001         * function.c (mark_temp_addr_taken, preserve_temp_slots,
10002         preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
10003         optimize_bit_field, flush_addressof, purge_addressof_1,
10004         instantiate_decl, instantiate_virtual_regs_1, assign_parms,
10005         setjmp_protect, setjmp_protect_args, fix_lexical_addr,
10006         keep_stack_depressed): Likewise.
10007         * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
10008         noce_process_if_block, find_memory): Likewise.
10009         * integrate.c (subst_constants, allocate_initial_values): Likewise.
10010         * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
10011         update_equiv_regs): Likewise.
10012         * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
10013         maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
10014         * optabs.c (expand_abs, emit_unop_insn): Likewise.
10015         * passes.c (rest_of_handle_final): Likewise.
10016         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
10017         move2add_note_store): Likewise.
10018         * ra-build.c (detect_remat_webs): Likewise.
10019         * ra-debug.c (dump_static_insn_cost): Likewise.
10020         * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
10021         * recog.c (validate_change, apply_change_group, cancel_changes,
10022         validate_replace_rtx_1, general_operand, register_operand,
10023         nonmemory_operand, push_operand, pop_operand, memory_operand,
10024         indirect_operand, asm_operand_ok, offsettable_memref_p,
10025         offsettable_nonstrict_memref_p, constrain_operands,
10026         store_data_bypass_p): Likewise.
10027         * reg-stack.c (subst_stack_regs_pat): Likewise.
10028         * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
10029         copy_cost, reg_scan_mark_refs): Likewise.
10030         * regmove.c (optimize_reg_copy_3, stack_memref_p,
10031         combine_stack_adjustments_for_block): Likewise.
10032         * regrename.c (copyprop_hardreg_forward_1): Likewise.
10033         * reload.c (can_reload_into, push_reload, decompose, immune_p,
10034         find_reloads, find_reloads_address, find_reloads_address_1,
10035         reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
10036         find_equiv_reg): Likewise.
10037         * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
10038         reload_as_needed, choose_reload_regs, emit_input_reload_insns,
10039         do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
10040         delete_address_reloads): Likewise.
10041         * resource.c (mark_referenced_resources): Likewise.
10042         * rtlanal.c (get_jump_table_offset, count_occurrences,
10043         reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
10044         reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
10045         num_sign_bit_copies1): Likewise.
10046         * rtlhooks.c (gen_lowpart_general): Likewise.
10047         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
10048         * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
10049         sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
10050         sdbout_global_decl): Likewise.
10051         * simplify-rtx.c (simplify_subreg): Likewise.
10052         * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
10053         expand_anon_union_decl, expand_end_case_type): Likewise.
10054         * unroll.c (calculate_giv_inc): Likewise.
10055         * var-tracking.c (stack_adjust_offset_pre_post,
10056         bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
10057         add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
10058         vt_add_function_parameters): Likewise.
10059         * varasm.c (make_var_volatile, notice_global_symbol,
10060         assemble_external, decode_addr_const, mark_weak,
10061         default_encode_section_info): Likewise.
10062
10063 2004-07-01  Steven Bosscher  <stevenb@suse.de>
10064
10065         * stmt.c (check_seenlabel): Remove.
10066         (pushcase, pushcase_range, expand_end_case_type): Don't call it.
10067
10068 2004-07-01  Richard Henderson  <rth@redhat.com>
10069
10070         * function.h (struct function): Remove x_function_call_count.
10071         (function_call_count): Remove.
10072         * calls.c (expand_call): Don't set it.
10073         * integrate.c (copy_rtx_and_substitute): Likewise.
10074
10075         * function.h (struct function): Remove x_cleanup_label.
10076         (cleanup_label): Remove.
10077         * stmt.c (expand_value_return): Don't use it.
10078         * function.c (free_after_compilation): Don't set it.
10079         (expand_function_start): Likewise.  Remove parms_have_cleanups arg.
10080         * cfgexpand.c (tree_expand_cfg): Update call.
10081         * tree.h (expand_function_start): Update decl.
10082
10083 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
10084
10085         PR c/1027
10086         * c-lang.c (c_initialize_diagnostics): Move from here ...
10087         * c-objc-common.c: ... to here.  Include "c-pretty-print.h".
10088         (c_tree_printer): Use pretty-printer to format %T.
10089         * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
10090         before '*' if not C++.
10091         (pp_c_direct_abstract_declarator): Don't try to print array upper
10092         bound for flexible array members.
10093         * c-tree.h: Include "diagnostic.h".
10094         (c_initialize_diagnostics): Declare.
10095         * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
10096         * c-format.c (format_type_warning): New function.  Improve
10097         diagnostics for incorrect format argument types.
10098         (check_format_types): Use it.  Add two parameters.  Use the
10099         TYPE_MAIN_VARIANT of wanted_type.
10100         (check_format_info_main): Pass new parameters to
10101         check_format_types.
10102         (struct format_wanted_type): Update comment.
10103
10104 2004-07-01  Nick Clifton  <nickc@redhat.com>
10105
10106         * target.h (struct gcc_target): Add new field to struct cxx:
10107         import_export_class.
10108         * target-def.h (TARGET_CXX): Initialise the new field.
10109         (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
10110         the new field.
10111         * doc/tm.texi: Document the new target hook.
10112
10113 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
10114
10115         * builtins.c (fold_builtin_classify): Fix typo.
10116
10117 2004-07-01  Richard Henderson  <rth@redhat.com>
10118
10119         * function.c (identify_blocks, identify_blocks_1): Remove.
10120         * function.h (identify_blocks): Remove.
10121         * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
10122
10123 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
10124
10125         * builtins.c (fold_builtin_classify): New.
10126         (fold_builtin_unordered_cmp): Fix commentary.
10127         (fold_builtin): Use it.
10128         * builtins.def: Define builtins for isnan,
10129         isnanf, isnanl, finite, finitef, finitel,
10130         isinf, isinff, isinfl.
10131
10132 2004-07-01  Richard Henderson  <rth@redhat.com>
10133
10134         * function.h (struct function): Remove dont_emit_block_notes.
10135         * gimple-low.c (lower_function_body): Don't set it.
10136         * cfgexpand.c (expand_block): Don't check it.
10137         * cfglayout.c (insn_locators_initialize): Likewise.
10138         * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
10139         * passes.c (rest_of_compilation): Likewise.
10140         * stmt.c (expand_start_bindings_and_block): Likewise.
10141         (expand_end_bindings): Likewise.
10142
10143 2004-07-01  Richard Henderson  <rth@redhat.com>
10144
10145         * cgraph.h (cgraph_build_static_cdtor): Declare.
10146         * cgraphunit.c (cgraph_build_static_cdtor): New.
10147         * c-objc-common.c (build_cdtor): Use it.
10148         * coverage.c (create_coverage): Likewise.
10149         * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
10150         * optabs.c (init_optabs): Don't set gcov_init_libfunc.
10151
10152 See ChangeLog.11 for earlier changes.