OSDN Git Service

* config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-08-26  Bob Wilson  <bob.wilson@acm.org>
2
3         * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
4         (xtensa_expand_block_move): Update comment.
5         (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
6
7 2004-08026  Richard Earnshaw  <rearnsha@arm.com>
8
9         PR target/13506
10         * toplev.c (crash_signal): If we crashed while emitting
11         a user asm, then die more gracefully.
12
13 2004-08-26  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
14
15         PR target/17119.
16         * config/m32r.c (gen_compare): Use reg_or_int16_operand when
17         checking for a valid constant, regardless of sign.
18
19 2004-08-25  Richard Henderson  <rth@redhat.com>
20
21         PR target/16974
22         * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
23         if the constant satisfies add_operand.
24
25 2004-08-25  Richard Henderson  <rth@redhat.com>
26  
27         PR debug/10695
28         * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
29         (alpha_expand_prologue): Handle >32-bit frames.  Generate proper
30         unwind info for >16-bit frames.
31
32 2004-08-25  Richard B. Kreckel  <richard.kreckel@framatome-anp.com>
33
34         PR target/17171
35         * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
36
37 2004-08-25  Richard Henderson  <rth@redhat.com>
38
39         * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
40         (TARGET_CANNOT_FORCE_CONST_MEM): New.
41
42 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
43
44         * doc/tree-ssa.texi: Document new operand iterator.
45
46 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
47
48         PR target/16480
49         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
50         on "(mem (symbol_ref ..))" rtl.  Look at LO_SUM base regs as well
51         as PLUS base regs.
52
53 2005-08-28  Paul Brook  <paul@codesourcery.com>
54
55         * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
56         -mfpu=vfp -march=armv5t
57         * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
58
59 2004-08-25  Richard Henderson  <rth@redhat.com>
60
61         * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
62         * target.h (struct gcc_target): Add scalar_mode_supported_p.
63         * targhooks.c (default_scalar_mode_supported_p): New.
64         * targhooks.h (default_scalar_mode_supported_p): Declare.
65         * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
66
67         * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
68         before attempting to create types.  Tidy.
69         * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
70
71         * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
72         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
73
74 2004-08-25  Richard Henderson  <rth@redhat.com>
75
76         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
77         set REAL_MODE_FORMAT for TFmode.
78
79 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
80
81         * c-decl.c (grokparm): New function.
82         * c-tree.h (grokparm): New prototype.
83
84 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
85
86         * tree-ssa-operands.h (struct ssa_operand_iterator_d): New.  SSA operand
87         iterator controlling structure.
88         (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
89         SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
90         SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New.  Operand
91         iterator flags.
92         (FOR_EACH_SSA_TREE_OPERAND): New.  Iterate over operands as trees.
93         (FOR_EACH_SSA_USE_OPERAND): New.  Iterate over operands as uses.
94         (FOR_EACH_SSA_DEF_OPERAND): New.  Iterate over operands as defs.
95         (FOR_EACH_SSA_MAYDEF_OPERAND): New.  Iterate over V_MAY_DEFs.
96         * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New. 
97         Empty operand pointers.
98         * tree-flow-inline.h (op_iter_done): New.  Return true if finished.
99         (op_iter_next_use): New.  Return next use_operand_p.
100         (op_iter_next_def): New.  Return next def_operand_p.
101         (op_iter_next_tree): New.  Return next operands as a tree.
102         (op_iter_init): New.  Initialize an iterator structure.
103         (op_iter_init_use): New.  Initialize structure and get the first use.
104         (op_iter_init_def): New.  Initialize structure and get the first def.
105         (op_iter_init_tree): New.  Initialize structure and get the first tree.
106         (op_iter_next_maydef): New.  Return next V_MAY_DEF operands.
107         (op_iter_init_maydef): New.  Initialize structure and get the first 
108         V_MAY_DEF operands.
109         * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
110         * tree-dfa.c (compute_immediate_uses_for_stmt, 
111         redirect_immediate_uses): Use new operand iterator.
112         (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
113         (mark_new_vars_to_rename): Use new operand iterator.  Count virtual
114         operands instead of using *_disappeared_p routines.
115         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
116         ssa_rewrite_stmt): Use new operand iterator.
117         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
118         rewrite_trees): Use new operand iterator.
119         * tree-pretty-print.c (dump_vops): Use new operand iterator.
120         * tree-sra.c (mark_all_v_defs): Use new operand iterator.
121         * tree-ssa-alias.c (compute_points_to_and_addr_escape, 
122         dump_points_to_info): Use new operand iterator.
123         * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize, 
124         replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new 
125         operand iterator.
126         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary, 
127         propagate_necessity): Use new operand iterator.
128         * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
129         (register_definitions_for_stmt): Use new operand iterator.  Take stmt as
130         a parameter instead of a stmt_ann_t.
131         * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
132         build_tree_conflict_graph): Use new operand iterator.
133         * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
134         rewrite_mem_refs): Use new operand iterator.
135         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt, 
136         check_loop_closed_ssa_use): Use new operand iterator.
137         * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
138         * tree-ssanames.c (release_defs): Use new operand iterator.
139         * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
140
141 2004-08-25  Adam Nemet  <anemet@lnxw.com>
142
143         * tlink.c (initial_cwd): New variable.
144         (tlink_init): Initialize it.
145         (recompile_files): Use tlink_execute() instead of system().  Don't
146         duplicate verbose output of collect_execute.  Restore initial_cwd.
147         Update comment before the function.
148
149 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
150
151         * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
152         accept) a cast from one Objective-C pointer type to another.
153
154 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
155
156         * doc/install.texi: Document that libstdc++-v3 requires
157         now automake 1.9.1.
158
159 2004-08-25  Caroline Tice  <ctice@apple.com>
160
161         * bb-reorder.c (partition_hot_cold_basic_blocks):  Add more details
162         to comments at start of function.
163         * cfgbuild.c (make_edges):  Add more details to hot/cold partitioning
164         comment.
165         * cfgcleanup.c (try_simplify_condjump, try_forward_edges, 
166         merge_blocks_move_predecessor_nojumps, 
167         merge_blocks_move_successor_nojumps, merge_blocks_move, 
168         try_crossjump_to_edge, try_crossjump_bb): Likewise.
169         * cfglayout.c (fixup_reorder_chain): Likewise.
170         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
171         cfg_layout_can_merge_blocks_p):  Likewise.
172         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
173         * passes.c (rest_of_compilation): Update comments for calling 
174         optimization that partitions hot/cold basic blocks.
175         * doc/invoke.texi:  Update documentation of 
176         freorder-blocks-and-partition flag.
177         
178 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
179
180         * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
181         (*mov*_on_*): Adjust accordingly.  Add an explicit MOVECC: prefix.
182
183 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
184
185         * config/mips/mips.md (any_shift): New code macro.
186         (optab, insn): New code attributes.
187         ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
188         Use the standard rather than internal patterns for the MIPS16
189         double-shift optimization.
190         (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
191         Redefine using :GPR and any_shift.
192         (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
193         to cover all three shifts.
194         (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
195         Redefine using any_shift.  Use :GPR and any_shift to combine splitters.
196         (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
197
198 2004-08-24  Geoffrey Keating  <geoffk@apple.com>
199
200         * gimplify.c (lookup_tmp_var): Separate temporaries when not
201         optimizing.
202
203 2004-08-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
204
205         PR libstdc++/17005 (fix for HP-UX 11.11)
206         * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
207         (hppa*-*-hpux*): Consolidate hppa1.0-*-* code.  Rework handling of
208         tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.  
209         * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
210         * config/pa/pa-hpux.h (TARGET_HPUX): Define.
211         (LINK_SPEC): Handle march=1.0 option.
212         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
213         and _XOPEN_SOURCE_EXTENDED for UNIX 95.
214         (SUBTARGET_OPTIONS): New define.
215         (LINK_SPEC): Handle march=1.0 option.
216         (STARTFILE_SPEC): New define.
217         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
218         and _XOPEN_SOURCE_EXTENDED for UNIX 95.  Additionally, predefine
219         _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
220         (SUBTARGET_OPTIONS): New define.
221         (LINK_SPEC): Handle march=1.0 option.
222         (STARTFILE_SPEC): New define.
223         * config/pa/pa.c (override_options): Add code to process -munix= option.
224         * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
225         (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
226         defines.
227         (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
228         (SUBTARGET_OPTIONS): Provide default define.
229         * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
230         STANDARD_STARTFILE_PREFIX_2): New defines.
231         (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
232         (ENDFILE_SPEC): Use %O.
233         * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
234         Mention issue caused by changing namespace and runtime to UNIX 95/98.
235         * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
236         Document -munix=std option.
237
238 2004-08-25  Steven Bosscher  <stevenb@suse.de>
239
240         * cse.c (cse_around_loop, cse_check_loop_start,
241         cse_set_around_loop): Remove.
242         (cse_basic_block): Remove the around_loop argument.
243         (cse_end_of_basic_block): Remove the after_loop argument.
244         (cse_main): Likewise.
245         * rtl.h (cse_main): Update prototype.
246         * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
247         rest_of_handle_gcse): Update cse_main calls.
248
249 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
250
251         * tree.h  (build_int_cst): New, sign extended constant.
252         (build_int_cstu): New, zero extended constant.
253         (build_int_cst_wide): Renamed from build_int_cst.
254         * tree.c (build_int_cst, build_int_cstu): New.
255         (build_int_cst_wide): Renamed from build_int_cst.
256         (make_vector_type, build_common_tree_nodes,
257         build_common_tree_nodes_2): Adjust build_int_cst calls.
258         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
259         expand_builtin_strpbrk, expand_builtin_fputs,
260         build_string_literal, expand_builtin_printf,
261         expand_builtin_sprintf, fold_builtin_classify_type,
262         fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
263         fold_builtin_toascii, fold_builtin_isdigit,
264         simplify_builtin_strstr, simplify_builtin_strpbrk,
265         fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
266         * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
267         DEF_ATTR_INT): Likewise.
268         * c-decl.c (complete_array_type, check_bitfield_type_and_width):
269         Likewise.
270         * c-lex.c (interpret_integer, lex_charconst): Likewise.
271         * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
272         * c-pretty-print.c (pp_c_integer_constant): Likewise.
273         * c-typeck.c (really_start_incremental_init, push_init_level,
274         set_nonincremental_init_from_string): Likewise.
275         * calls.c (load_register_parameters): Likewise.
276         convert.c (convert_to_pointer): Likewise.
277         coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
278         build_fn_info_type, build_fn_info_value, build_ctr_info_value,
279         build_gcov_info): Likewise.
280         * except.c (init_eh, assign_filter_values): Likewise.
281         * expmed.c (store_fixed_bit_field, extract_bit_field,
282         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
283         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
284         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
285         * expr.c (convert_move, emit_group_load, emit_group_store,
286         expand_assignment, store_constructor, store_field,
287         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
288         fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
289         invert_truthvalue, optimize_bit_field_compare,
290         decode_field_reference, all_ones_mask_p, constant_boolean_node,
291         fold_div_compare, fold, fold_read_from_constant_string,
292         fold_negate_const, fold_abs_const, fold_not_const, round_up,
293         round_down): Likewise.
294         * function.c (assign_parm_setup_block): Likewise.
295         * stmt.c (shift_return_value, expand_case, estimate_case_costs):
296         Likewise.
297         * stor-layout.c (layout_type, initialize_sizetypes,
298         set_min_and_max_values_for_integral_type): Likewise.
299         * tree-chrec.c (chrec_fold_multiply_poly_poly,
300         reset_evolution_in_loop): Likewise.
301         * tree-chrec.h (build_polynomial_chrec): Likewise.
302         * tree-complex.c (build_replicated_const): Likewise.
303         * tree-eh.c (honor_protect_cleanup_actions,
304         lower_try_finally_onedest, lower_try_finally_copy,
305         lower_try_finally_switch): Likewise.
306         * tree-mudflap.c (mf_build_string, mx_register_decls,
307         mudflap_register_call, mudflap_enqueue_constant): Likewise.
308         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
309         * tree-pretty-print.c (dump_generic_node): Likewise.
310         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
311         Likewise.
312         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
313         * tree-ssa-loop-niter.c (number_of_iterations_cond,
314         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
315         Likewise.
316         * tree-ssa-loop-ivcanon.c (create_canonical_iv,
317         canonicalize_loop_induction_variables): Likewise.
318         * tree-vectorizer.c (vect_create_index_for_array_ref,
319         vect_transform_loop_bound, vect_compute_data_ref_alignment):
320         Likewise.
321
322         * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
323         alpha_gimplify_va_arg_1): Likewise.
324         * config/arm/arm.c (arm_get_cookie_size): Likewise.
325         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
326         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
327         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
328         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
329         mips_gimplify_va_arg_expr): Likewise.
330         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
331         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
332         add_compiler_branch_island): Likewise.
333         * config/s390/s390.c (s390_va_start): Likewise.
334         * config/sh/sh.c (sh_va_start): Likewise.
335         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
336         Likewise.
337         * config/xtensa/xtensa.c (xtensa_va_start,
338         xtensa_gimplify_va_arg_expr): Likewise.
339         
340         * objc/objc-act.c (build_objc_string_object,
341         build_objc_symtab_template, init_def_list, init_objc_symtab,
342         init_module_descriptor, generate_static_references,
343         build_selector_translation_table, get_proto_encoding,
344         build_typed_selector_reference, build_selector_reference,
345         build_next_objc_exception_stuff,
346         build_method_prototype_list_template, generate_descriptor_table,
347         generate_protocols, build_protocol_initializer,
348         build_ivar_list_template, build_method_list_template,
349         build_ivar_list_initializer, generate_ivars_list,
350         generate_dispatch_table, generate_protocol_list,
351         build_category_initializer, build_shared_structure_initializer,
352         generate_shared_structures, handle_impent,
353         generate_objc_image_info): Likewise.
354
355 2004-04-25  Paolo Bonzini  <bonzini@gnu.org>
356
357         * cfglayout.c (duplicate_insn_chain): Remove references to
358         NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
359         * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
360         * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
361         * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
362         and NOTE_INSN_LOOP_CONT.
363         * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
364         * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
365         and NOTE_INSN_LOOP_CONT.
366         * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
367         check_dbra_loop, loop_dump_aux): Remove references to removed notes
368         and fields.
369         * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
370         * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
371         references to removed notes and fields.
372         (subtract_reg_term, ujump_to_loop_cont): Remove.
373
374 2004-08-25  Paolo Bonzini  <bonzini@gnu.org>
375
376         * doc/install.texi: Document that libcpp does not require
377         Automake any longer.  Document that Automake 1.9.1 should
378         work everywhere.
379
380 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
381
382         * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
383         * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
384         DWARF_DEBUGGING_INFO from choice-of-definition chain;
385         restructure using C89 features (#elif, #error).
386         * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
387         * config/sh/sh.h: Remove references to DWARF_DEBUG.
388         * doc/invoke.texi: Remove references to DWARF version 1;
389         clarify why -gdwarf-2<n> doesn't work.
390
391 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
392
393         * basic-block.h (BB_SET_PARTITION): Clear old value first.
394         * cfg.c (clear_bb_flags): Don't clear partition setting.
395         * ifcvt.c (find_if_case_1): Remove ??? comment.
396
397 2004-08-25  Alan Modra  <amodra@bigpond.net.au>
398
399         PR target/17052
400         * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
401         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
402         current_function_stdarg in place of sysv_varargs_p.
403         * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
404         sysv_varargs_p.
405
406 2004-08-24  Richard Henderson  <rth@redhat.com>
407
408         PR target/16298
409         * config/i386/i386.c (legitimate_constant_p): Rework to not accept
410         random codes within CONST.
411
412 2004-08-24  James E Wilson  <wilson@specifixinc.com>
413
414         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
415         -freorder-blocks-and-partition.
416
417 2004-08-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
418
419         PR middle-end/17044
420         * tree-ssa-threadupdate.c (redirection_data): Make static.
421         (thread_block): Use ggc_alloc_cleared to allocate struct
422         redirection_data.  Don't free elements in redirection_data.
423
424 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
425
426         * config/mips/predicates.md (small_data_pattern): Match prefetches.
427
428 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
429
430         PR tree-optimization/17016
431         * tree-ssa-loop-niter.c (number_of_iterations_cond,
432         number_of_iterations_exit): Use POINTER_TYPE_P instead
433         of testing for POINTER_TYPE.
434
435 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
436
437         * tree-ssa-loop-ivcanon.c: New file.
438         * tree-ssa-loop-manip.c (create_iv): New function.
439         * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
440         (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
441         * cfgloop.c (mark_single_exit_loops): New function.
442         (verify_loop_structure): Verify single-exit loops.
443         * cfgloop.h (struct loop): Add single_exit field.
444         (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
445         (mark_single_exit_loops): Declare.
446         (tree_num_loop_insns): Declare.
447         * cfgloopmanip.c (update_single_exits_after_duplication): New function.
448         (duplicate_loop_to_header_edge): Use it.
449         * common.opt (fivcanon): New flag.
450         * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
451         * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
452         (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
453         (bsi_insert_on_edge_immediate): New function.
454         * tree-flow.h (bsi_insert_on_edge_immediate,
455         canonicalize_induction_variables, tree_unroll_loops_completely,
456         create_iv): Declare.
457         * tree-optimize.c (init_tree_optimization_passes): Add
458         pass_iv_canon and pass_complete_unroll.
459         * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
460         * tree-scalar-evolution.c (get_loop_exit_condition,
461         get_exit_conditions_rec, number_of_iterations_in_loop,
462         scev_initialize): Use single_exit information.
463         * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
464         missing assumptions.
465         (loop_niter_by_eval):  Return number of iterations as unsigned
466         int.
467         * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
468         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
469         tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
470         New passes.
471         (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
472         * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
473         the defining statement is ready.
474         * tree-vectorizer.c (vect_create_iv_simple): Removed.
475         (vect_create_index_for_array_ref, vect_transform_loop_bound):
476         Use create_iv.
477         (vect_transform_loop_bound): Use single_exit information.
478         (vect_analyze_loop_form): Cleanup bogus tests.
479         (vectorize_loops): Do not call flow_loop_scan.
480         * tree.h (may_negate_without_overflow_p): Declare.
481         * fold-const.c (may_negate_without_overflow_p): Split out from ...
482         (negate_expr_p): ... this function.
483         (tree_expr_nonzero_p): Handle overflowed constants correctly.
484         * doc/invoke.texi (-fivcanon): Document.
485         * doc/passes.texi: Document canonical induction variable creation.
486
487 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
488
489         * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
490         * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
491         using the mode of the operand to decide between them.
492         * config/mips/mips.md (MOVECC): New mode macro.
493         (ccreg): New mode attribute.
494         (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
495         Redefine using :GPR and :MOVECC.  Use %T and %t for the condition.
496         (mov[sd]icc): Redefine using :GPR.
497
498 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
499
500         * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
501         (mips_prefetch_cookie): New function.
502         * config/mips/mips.c (print_operand_address): Fix handling of
503         ADDRESS_CONST_INT.
504         (mips_emit_prefetch): Delete.
505         (mips_prefetch_cookie): New function.
506         * config/mips/mips.md (prefetch): Turn into a define_insn.  Use a
507         mode of QImode for the address_operand.  Use mips_prefetch_cookie
508         to calculate the first "pref" operand.
509         (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
510         (prefetch_indexed_[sd]i): Redefine using :P.  Use mips_prefetch_cookie.
511
512 2004-08-24  Richard Earnshaw  <rearnsha@arm.com>
513
514         * arm.md: Include predicates.md.
515         * predicates.md: New file.
516         * arm.c (s_register_operand, arm_hard_register_operand)
517         (arm_general_register_operand, f_register_operand, reg_or_int_operand)
518         (arm_immediate_operand, arm_neg_immediate_operand)
519         (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
520         (arm_add_operand, arm_addimm_operand, arm_not_operand)
521         (offsettable_memory_operand, alignable_memory_operand)
522         (arm_reload_memory_operand, arm_float_rhs_operand)
523         (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
524         (index_operand, shiftable_operator, logical_binary_operator)
525         (shift_operator, equality_operator, arm_comparison_operator)
526         (minmax_operator, cc_register, dominant_cc_register)
527         (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
528         (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
529         (const_shift_operand, load_multiple_operation)
530         (store_multiple_operation, multi_register_push, thumb_cmp_operand)
531         (thumb_cmpneg_operand, thumb_cbrch_target_operand)
532         (cirrus_register_operand, cirrus_fp_register)
533         (cirrus_shift_const): Delete, replaced with equivalents in
534         predicates.md.
535         (shift_op): Handle ROTATE.
536         * arm-protos.h: Delete declarations for above.
537         * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
538         * t-arm (MD_INCLUDES): Add predicates.md.
539         (s-preds): Depends on MD_INCLUDES.
540
541 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
542
543         * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
544         * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
545         patterns.  Redefine using :GPR.  Give the match_operator a mode.
546         Use '%2' rather than '%z2' for operand 2.
547
548 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
549
550         * config/mips/mips.md (load_call[sd]i): Redefine using :P.  Add mode
551         attribute.
552
553 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
554
555         * config/mips/mips.md (indirect_jump): Use force_reg.  Adjust names
556         of internal patterns.
557         (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
558         Redefine using :P.
559         (tablejump): Use expand_binop to calculate address.  Adjust names
560         of internal patterns.
561         (tablejump[sd]i): Renamed from tablejump_internal[12].
562         Redefine using :P.
563         (tablejump_mips16[12]): Delete.
564
565 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
566
567         * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
568         (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
569         (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
570         (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
571         (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
572
573 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
574
575         * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
576         (*branch_zero[sd]i): Renamed from branch_zero{,_di}.  Redefine
577         using :GPR.
578         (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
579         (*branch_equality[sd]i): Likewise branch_equality{,_di}.
580         (*branch_equality[sd]i_inverted): Likewise
581         branch_equality{,_di}_inverted.
582         (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
583         Redefine using :GPR.
584
585 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
586
587         * rtl.def: Reorganize, placing all codes used only in machine
588         descriptions at the end.
589
590         * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
591         * gengtype.c: Don't include rtl.h.  Define enum rtx_code and
592         rtx_name, rtx_format arrays by direct reference to rtl.def,
593         first undefining GENERATOR_FILE.  Define enum insn_note and
594         note_insn_name array by direct reference to insn-notes.def.
595         (adjust_field_rtx_def): Remove local definition of rtx_name.
596         Use symbolic names for insn notes.
597         * Makefile.in (gengtype.o): Update dependencies.
598
599 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
600
601         * basic-block.h (struct basic_block_def): Reorder fields to
602         eliminate interior padding.  Remove 'partition' field.
603         (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
604         (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
605         (BB_COPY_PARTITION): New macros.
606         * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
607         Replace all references to the 'partition' field of a basic
608         block with new macros.
609
610         * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
611         * final.c (final_scan_insn): Don't handle it.
612         * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
613         instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
614         * sched-rgn.c (sched_is_disabled_for_current_region_p):
615         Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
616
617 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
618
619         * c-decl.c (c_init_decl_processing): Adjust
620         build_common_tree_nodes call.
621         * expmed.c (const_mult_add_overflow_p): Use
622         build_distinct_type_copy.
623         * stor-layout.c (early_type_list): Remove.
624         (layout_type): Don't append to early_type_list.
625         (initialize_sizetypes): Add signed_p argument.
626         (set_sizetype): Overwrite the stub type nodes directly.
627         * tree.c (copy_node_stat): Clear a type's value cache here ...
628         (build_distinct_type): ... not here.
629         (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
630         * tree.h (initialize_sizetypes): Add signed_p argument.
631         (build_common_tree_nodes): Likewise.
632
633         * objc/objc-act.c (get_static_reference): Use
634         build_variant_type_copy.
635         (get_protocol_reference): Likewise.
636         * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
637
638 2004-08-24  Richard Henderson  <rth@redhat.com>
639             Andrew Pinski  <apinski@apple.com>
640
641         * gimplify.c (gimplify_array_ref_to_plus): Delete.
642         (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
643         for ARRAY_REF.
644
645         * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
646         ARRAY_REF also to get to the STRING_CST.
647
648 2004-08-24  Paul Brook  <paul@codesourcery.com>
649
650         * config/arm/arm.c (arm_override_options): Update error message.
651         * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
652         TARGET_HARD_FLOAT_ABI.
653         (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
654         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
655
656 2004-08-24  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
657
658         PR target/17093
659         * config/m32r.md (movsi_sda): Add SI mode specification to
660         UNSPEC.
661
662 2004-08-24  Nick Clifton  <nickc@redhat.com>
663
664         * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
665         of seth_add3_operand.
666
667 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
668
669         * Makefile.in (PROTO_OBJS): Add errors.o.
670         * protoize.c (fancy_abort): Remove.
671         * mips-tfile.c (fancy_abort): Add parameters.
672
673 2004-08-24  Jonathan Wakely  <redi@gcc.gnu.org>
674
675         * doc/trouble.texi (C++ misunderstandings): Fix example code.
676
677 2004-08-24  Andreas Tobler  <a.tobler@schweiz.ch>
678
679         * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
680         (host-default.o): Add dependency on HOOKS_H.
681         * config/x-linux: Likewise.
682         * config/x-solaris: Likewise.
683         * config/i386/x-mingw32: Likewise.
684         * config/rs6000/x-darwin: Likewise.
685
686 2004-08-23  James E Wilson  <wilson@specifixinc.com>
687
688         * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
689         DEF_REG_NOTE.
690
691 2004-08-23  Mark Mitchell  <mark@codesourcery.com>
692
693         PR c/14492
694         * dwarf2out.c (loc_descriptor_from_tree): Robustify.
695
696 2004-08-23  Diego Novillo  <dnovillo@redhat.com>
697
698         * cfg.c (check_bb_profile): Fix typos.
699         * function.c (assign_parm_is_stack_parm): Likewise.
700         * tree-nested.c: Likewise.
701
702 2004-08-23  Daniel Jacobowitz  <dan@debian.org>
703
704         * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
705         Remove TYPECODE.
706         (ggc_alloc_zone_1): Mark TYPE as unused.  Don't save it in the chunk.
707
708 2004-08-23  Eric Christopher  <echristo@redhat.com>
709
710         * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
711         * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
712         * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
713         * target.h: Ditto.
714         * hooks.h: Include machmode.h.
715         (hook_bool_mode_false): Declare.
716         * hooks.c (hook_bool_mode_false): Define.
717         * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
718         * stor-layout.c (layout_type): Ditto.
719         * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
720         Define to target macro.
721         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
722         * config/arm/arm.c: Ditto. Use.
723         * config/arm/arm.h: Ditto.
724         * config/arm/arm-protos.h: Ditto.
725         * config/i386/i386.c: Ditto.
726         * config/i386/i386.h: Ditto.
727         * config/rs6000/rs6000.c: Ditto.
728         * config/rs6000/rs6000.h: Ditto.
729         * config/sh/sh.c: Ditto.
730         * config/sh/sh.h: Ditto.
731         * config/sh/sh-protos.h: Ditto.
732         * config/sh/sh.md: Use.
733         * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
734         to TARGET_VECTOR_MODE_SUPPORTED_P.
735
736 2004-08-23  Nathan Sidwell  <nathan@codesourcery.com>
737
738         * Makefile.in (BUILD_ERRORS): Set to build-errors.
739         (errors.o): New target for host.
740         (build-errors.o): New target for build.
741         (genobjs): Replace errors.o with build-errors.
742         (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
743         (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
744         (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
745         (fix-header.o): Add errors.h
746         * collect2.c (fancy_abort): Add parameters.
747         * collect2.h (fancy_abort): Don't declare.
748         * errors.h (fancy_abort): Don't declare.
749         * errors.c: Include either bconfig.h or config.h.
750         (fancy_abort): Trim filename.
751         * fix-header.c (v_fatal, fatal): Remove.
752         (progname): Remove definition.
753         (main): Set progname here.
754         * gcc.c (fancy_abort): Add parameters.
755         * gcc.h (fancy_abort): Remove declaration.
756         * gcov.c (fancy_abort): Remove.
757         * rtl.h (fancy_abort): Don't declare.
758         (abort): Don't define.
759         * tree.h (fancy_abort): Don't declare.
760         (abort): Don't define.
761         * system.h (fancy_abort): Declare.
762         (abort): Define to fancy_abort.
763         * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
764
765         * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
766         (usize_type, ubitsizetype): Remove.
767         * stor-layout.c (set_sizetype): Don't initialize usizetype,
768         ubitsizetype.
769         * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
770
771         * tree.h (build_distinct_type_copy): New.
772         (build_type_copy): ... here.  Rename to ...
773         (build_variant_type_copy): ... here.
774         * tree.c (build_qualified_type): Rename build_type_copy call.
775         (build_distinct_type_copy): New, broken out of ...
776         (build_type_copy): ... here.  Rename to ...
777         (build_variant_type_copy): ... here.  Use
778         build_distinct_type_copy.
779         (build_common_tree_nodes_2): Rename build_type_copy call.
780         * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
781         call.
782         (handle_packed_attribute, handle_unused_attribute,
783         handle_transparanet_union_attribute, handle_aligned_attribute,
784         handle_deprecated_attribute): Likewise.
785         * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
786         Likewise.
787         * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
788         * config/rs6000/rs6000.c (rs6000_init_builtins): Use
789         build_distinct_type_copy.
790
791 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
792
793         * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR.  Add mode
794         attribute.
795
796 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
797
798         * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
799         loads and stores.
800         (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
801         formerly unnamed patterns.  Redefine using :P for the address.  Remove
802         explicit length attributes.
803
804 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
805
806         * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
807         New functions.
808         (single_reachable_address): Use them.
809         (schedule_sm): Add dump.
810         (is_call_clobbered_ref): New function.
811         (determine_lsm_reg): Check whether the reference is call clobbered.
812         Only work for gimple_reg_type values.
813
814 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
815
816         * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
817         $31 store insns.  Redefine using :GPR.
818
819 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
820
821         * config/mips/mips.md (P): New mode macro.
822         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
823         (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
824         Add mode attributes.
825
826 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
827
828         * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
829         (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants.  Shuffle
830         later constants to cover the gap.
831         (load, store): New mode attributes.
832         (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
833         Use new unspec constants.
834
835 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
836
837         * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
838         (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise.  Change 32-bit patterns
839         to use register_operand rather than uns_arith_operand as the predicate
840         for operand 1.  Remove redundant MIPS16 force_reg() for operand 1.
841         (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
842         Redefine using :GPR.  Make same predicate change here.  Extend the
843         commutativity of operands 1 and 2 from the SImode version to the
844         DImode one.
845         (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
846         but with no predicate changes.
847         (*nor[sd]i3): Redefine using :GPR.
848
849 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
850
851         * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
852         noreturn functions.
853
854 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
855
856         * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
857         * config/mips/mips.md (abs[sd]i2): Redefine using :GPR.  Only use
858         branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY.  Use "%."
859         rather than "%z2" (with a fake const0_rtx for operand 2).
860         (ffs[sd]i2): Redefine using :GPR.
861         (clz[sd]i2): Likewise.  Use ISA_HAS_CLO_CLZ for the 64-bit case.
862
863 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
864
865         * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
866
867 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
868
869         * config/mips/mips.md (any_extend): New code macro.
870         (u, su): New code attributes.
871         ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
872         ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
873         ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
874         (*{s,u}mul_acc_di): Redefine using any_extend.
875         (*{,u}muls_di, *{s,u}msac_di): Likewise.  Change names of patterns
876         to reflect real insn names.
877         (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
878         with an any_extend template.
879         ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
880         Add '*' to name.
881
882 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
883
884         * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
885         * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
886         (mul[sd]i3_r4000): Redefine using :GPR.
887         (mulsi3_mult3): Don't check TARGET_MAD separately.
888         (muldi3_mult3): Moved after mulsi_mult3.
889
890 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
891
892         * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
893         OBJECT_FORMAT_ELF.  Set MASK_SPLIT_ADDR by default if using GNU ld.
894         * config/mips/mips.h (MASK_GAS): Delete.  Shuffle later masks down.
895         (TARGET_GAS, TARGET_MIPS_AS): Delete.
896         (TARGET_GPWORD): Define to true for n32 on IRIX.
897         (TARGET_SWITCHES): Remove -mmips-as.  Turn -mgas into a no-op.
898         (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
899         (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
900         (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
901         (MDEBUG_ASM_SPEC): Delete, folding into...
902         (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
903         (ASM_SPEC): Inline old GAS_ASM_SPEC.  Use GNU names for ABI switches.
904         (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
905         subtarget_mips_as_asm_spec, mdebug_asm_spec.  Use MULTILIB_ABI_DEFAULT
906         to define asm_abi_default_spec.
907         (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
908         (TARGET_ASM_SELECT_SECTION): Delete.
909         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
910         for non-mips16 code, removing previous workaround for SGI assemblers.
911         (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
912         (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
913         (override_options): Remove !TARGET_GAS and !have_named_sections code.
914         (print_operand): Fold TARGET_GAS conditionals into asm strings.
915         (mips_output_filename): Remove !TARGET_GAS code.  Replace use of
916         ASM_STABS_OP and ASM_STABN_OP.
917         (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
918         (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
919         (mips_output_function_prologue): Remove !TARGET_GAS code.
920         (mips_select_rtx_section): Remove !have_named_sections code.
921         (mips_select_section): Delete.
922         * config/mips/mips.md (trap): Remove !TARGET_GAS check.
923         * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
924         * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
925         (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
926         * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
927         * config/mips/windiss.h (ASM_SPEC): Likewise.
928
929 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
930
931         * read-rtl.c (map_value, mapping, macro_group): New structures.
932         (BELLWETHER_CODE): New macro.
933         (modes, codes, bellwether_codes): New variables.
934         (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
935         (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
936         (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
937         (add_condition_to_rtx, apply_macro_traverse, add_mapping)
938         (add_map_value, initialize_macros): New functions.
939         (def_hash, def_hash_eq_p): Generalize to anything that points to,
940         or starts with, a char * field.
941         (find_macro, read_mapping, check_code_macro): New functions.
942         (read_rtx_1): New, split out from read_rtx.  Handle the new
943         define_{mode,code}_{macro,attr} constructs.  Use find_macro
944         to parse the name of a code or mode.  Use BELLWETHER_CODE to
945         extract the format and to choose a suitable code for rtx_alloc.
946         Modify recursive invocations to use read_rtx_1.
947         (read_rtx): Call initialize_macros.  Apply code and mode macros
948         to the rtx returned by read_rtx_1.  Cache everything after the
949         first macro expansion for subsequent read_rtx calls.
950         * doc/md.texi: Document new .md constructs.
951         * config/mips/mips.md (GPR): New mode macro.
952         (d, si8_di5): New mode attributes.
953         (any_cond): New code macro.
954         (add[sd]i3): Redefine using :GPR.
955         (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
956         (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
957         previously unnamed MIPS16 patterns.
958         (*addsi3_extended): Renamed from addsi3_internal_2.  Fix overly long
959         lines.  Don't match (plus (const_int 0) ...).
960         (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
961         Use a define_split to generate the addition.
962         (sub[sd]i3): Redefine using :GPR.  Turn subsi3 into a define_insn.
963         (subsi3_internal): Delete.
964         (*subsi3_extended): Renamed from subsi3_internal_2.
965         (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
966         (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
967         using an any_cond template.
968
969 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
970
971         * read-rtl.c (read_rtx): Tidy use of format_ptr.
972
973 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
974
975         * read-rtl.c (string_obstack): New file-scope variable.
976         (read_string, read_quoted_string, read_braced_string)
977         (read_escape): Remove obstack parameter and use string_obstack instead.
978         (read_rtx): Remove function-local rtl_obstack and initialize
979         string_obstack instead.  Update call to read_string.
980
981 2004-08-22  Andrew Pinski  <apinski@apple.com>
982
983         PR c/15262
984         * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
985         expression is not constant.
986         (c_finish_return): Do not go through INDIRECT_REF when looking
987         for the inner expression of an ADDR_EXPR for warning about.
988
989 2004-08-22  Richard Henderson  <rth@redhat.com>
990
991         PR 17075
992         * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
993         create new blocks and fall through.
994         (expand_gimple_basic_block): Update to match.
995
996 2004-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
997
998         * reload.c (find_reloads_address): Make return value tri-state.
999         Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
1000         (find_reloads): Assume that reloaded addresses match 'o' or
1001         EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
1002         returned 1 (not -1).  Omit optional reloads for address operands
1003         only if find_reloads_address returned 1 (not -1).
1004
1005         * config/s390/s390.c (legitimize_reload_address): New function.
1006         * config/s390/s390-protos.h (legitimize_reload_address): Declare.
1007         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define.  Call
1008         legitimize_reload_address.
1009
1010 2004-08-22  Richard Hendersion  <rth@redhat.com>
1011
1012         * tree.h (SAVE_EXPR_RESOLVED_P): New.
1013         * gimplify.c (gimplify_save_expr): Use it.
1014         * expr.c (expand_expr_real_1): Likewise.  Also set DECL_IGNORED_P
1015         on the temporary variable.
1016
1017 2004-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
1018
1019         * fold-const.c (rtl_expr_nonnegative_p): Delete.
1020         * tree.h (rtl_expr_nonnegative_p): Remove.
1021
1022 2004-08-22  Steven Bosscher  <stevenb@suse.de>
1023
1024         * config/i386/ppro.md (ppro_complex_insn): Add missing check
1025         for cpu==pentiumpro.
1026
1027         * combine.c (struct reg_stat): Fix comment typo.
1028
1029 2004-08-22  Joseph S. Myers  <jsm@polyomino.org.uk>
1030
1031         * c-tree.h (c_sizeof_nowarn): Remove.
1032
1033 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
1034
1035         * c-decl.c (set_array_declarator_type): Rename to
1036         set_array_declarator_inner.
1037         (build_c_parm, build_attrs_declarator, build_function_declarator):
1038         New functions.
1039         (make_pointer_declarator): Call build_attrs_declarator.
1040         * c-tree.h (set_array_declarator_type): Rename to
1041         set_array_declarator_inner.
1042         (build_c_parm, build_attrs_declarator, build_function_declarator):
1043         New prototypes.
1044         * c-parse.in (after_type_declarator,
1045         parm_declarator_starttypename, parm_declarator_nostarttypename,
1046         notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
1047         firstparm): Use these functions
1048
1049 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
1050
1051         * c-decl.c (build_array_declarator, set_array_declarator_type,
1052         start_decl, grokdeclarator, grokparms): Change boolean parameters
1053         to type bool.
1054         * c-tree.h (build_array_declarator, set_array_declarator_type,
1055         start_decl): Update prototypes.
1056         * c-decl.c, c-parse.in: All callers changed.
1057
1058 2004-08-21  Mike Stump  <mrs@apple.com>
1059
1060         * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
1061         (darwin_fix_and_continue): Likewise.
1062         (darwin_fix_and_continue_switch): Likewise.
1063         * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
1064         (darwin_fix_and_continue): Likewise.
1065         (darwin_fix_and_continue_switch): Likewise.
1066
1067 2004-08-21  Danny Smith  <dannysmith@users.sourceforge.net>
1068
1069         PR  c++/16030
1070         * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
1071         Remove, merging into ...
1072         (gen_stdcall_or_fastcall_suffix): New function, returning tree
1073         rather than const char*, and accepting additional parameter.
1074         Don't add suffix to '*'-prefixed symbols or variadic functions.
1075         (i386_pe_encode_section_info): Adjust for call to new function.
1076         Call change_decl_assembler_name.
1077
1078 2004-08-20  Mike Stump  <mrs@apple.com>
1079
1080         * config/darwin.c (machopic_indirect_data_reference): Mark
1081         stubs as defined.
1082         * config/386/386.c (darwin_local_data_pic): Add.
1083         (legitimate_constant_p): Reorder so that PLUS handling runs
1084         before darwin_local_data_pic to match the ordering in
1085         legitimate_pic_address_disp_p and so that MINUS runs after
1086         darwin_local_data_pic as otherwise the darwin_local_data_pic
1087         logic can be skipped, which would be very bad.
1088         (legitimate_pic_address_disp_p): Move from from here to
1089         darwin_local_data_pic so it can be reused.
1090
1091 2004-08-21  Alan Modra  <amodra@bigpond.net.au>
1092
1093         * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
1094         (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
1095         (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
1096         (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
1097         (RS6000_ABI_NAME): Define as "linux".
1098         (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
1099         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
1100         ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
1101         * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
1102         * config/rs6000/rs6000.c (dot_symbols): New global var.
1103         (rs6000_output_function_entry): New function, modified for
1104         !DOT_SYMBOLS..
1105         (print_operand <case 'z'>): ..extracted from here.
1106         (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
1107         (rs6000_output_function_epilogue): Likewise.
1108         (rs6000_elf_declare_function_name): Likewise.
1109         * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
1110         (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
1111         * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
1112         * configure: Regenerate.
1113         * config.in: Regenerate.
1114
1115 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
1116
1117         * reload.c (find_reloads_address): Fix thinko in previous change.
1118
1119         * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
1120         a CONST_INT.
1121
1122 2004-08-20  Jakub Jelinek  <jakub@redhat.com>
1123
1124         PR rtl-optimization/17099
1125         * combine.c (force_to_mode): Check if inner_mask has any bits set
1126         outside of GET_MODE (x) instead of op_mode.
1127
1128 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
1129
1130         * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
1131         fragment.
1132         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
1133         (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
1134         * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
1135         architecture.
1136         (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
1137         configurations.
1138         * config/arm/t-symbian: New file.
1139
1140 2004-08-20  Andrew Pinski  <apinski@apple.com>
1141
1142         * regrename.c (kill_value_regno): ANSIfy.
1143
1144 2004-08-20  Dale Johannesen  <dalej@apple.com>
1145
1146         * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
1147
1148 2004-08-20  Daniel Jacobowitz  <dan@debian.org>
1149
1150         * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
1151         (kill_value_regno): New function, derived from kill_value.
1152         (kill_value): Update.
1153         (copyprop_hardreg_forward_1): Update call to kill_value_regno.
1154
1155 2004-08-20  Daniel Berlin  <dberlin@dberlin.org>
1156
1157         Fix PR tree-optimization/17111
1158         * tree-ssa-pre.c (create_value_expr_from): Don't change the types
1159         of non-value_handles.
1160         (bitmap_set_contains): All constants are in every set.
1161
1162 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
1163
1164         * fold-const.c (round_up, round_down): Use build_int_cst.
1165         Optimize common case.
1166
1167 2004-08-20  Zack Weinberg  <zack@codesourcery.com>
1168             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1169
1170         * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
1171         one_only_data_section): Rename to som_readonly_data_section,
1172         som_one_only_readonly_data_section and som_one_only_data_section.
1173         * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
1174         NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
1175         conditional defines.
1176         (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
1177         NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
1178         string values.
1179         (pa_select_section): Use renamed section functions.
1180         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
1181         SOM_READONLY_DATA_SECTION_FUNCTION,
1182         SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
1183         SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
1184         Define here ...
1185         * config/pa/som.h: ... not here.
1186         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
1187         ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
1188         ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
1189         ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
1190         (READONLY_DATA_SECTION): Use som_readonly_data_section.
1191
1192 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
1193
1194         * fold-const.c (int_const_binop): Don't generate non-overflowing
1195         size-types specially.
1196         (fold_convert_const): Likewise.
1197
1198         * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
1199         clear cache on copied sizetype.
1200
1201 2004-08-20  Ben Elliston  <bje@au.ibm.com>
1202
1203         * configure.ac: Don't escape apostrophe in --enable-coverage help.
1204         * configure: Regenerate.
1205
1206 2004-08-20  Danny Smith  <dannysmith@users.sourceforge.net>
1207
1208         PR 5620
1209         * gcc.c (struct stat input_stat): Don't define if
1210         HOST_LACKS_INODE_NUMBERS
1211         (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
1212         than stat to determine if temp file is same as input file.
1213         * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
1214         * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
1215
1216 2004-08-20  Richard Sandiford  <rsandifo@redhat.com>
1217
1218         * configure.ac (mips*-*-*): Print an error if not using GAS.
1219         * configure: Regenerated.
1220         * doc/install.texi: Remove irix5 bullet from --with-gnu-as.  Remove
1221         comments about buggy MIPSpro assemblers.
1222         * config.gcc (mips-sgi-irix[56]*): Combine stanzas.  Include elfos.h
1223         before mips.h and iris.h after it.  Use t-iris and t-slibgcc-irix.
1224         Use iris5.h only for IRIX 5 configs.  Use iris6.h and t-iris6 for
1225         IRIX 6 configs.  Define IRIX_USING_GNU_LD if using GNU ld.
1226         * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
1227         (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
1228         (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
1229         (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
1230         (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
1231         of more general IRIX 6 definitions.
1232         (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
1233         (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
1234         (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
1235         (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
1236         (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
1237         (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
1238         (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
1239         (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
1240         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
1241         (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
1242         (LINK_SPEC): Move most of definition to iris.h.
1243         (SUBTARGET_LINK_SPEC): New macro.
1244         (IRIX_STARTFILE_SPEC): Fold into...
1245         (STARTFILE_SPEC): ...here.
1246         (IRIX_ENDFILE_SPEC): Fold into...
1247         (ENDFILE_SPEC): ...here.
1248         * config/mips/iris6.h (TARGET_IRIX5): Remove override.
1249         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
1250         (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
1251         (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
1252         (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
1253         (TARGET_OS_CPP_BUILTINS): Likewise.  Guard IRIX6-specific bits.
1254         (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
1255         (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
1256         (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
1257         (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
1258         (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
1259         (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
1260         (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
1261         (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
1262         (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
1263         (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
1264         (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
1265         (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
1266         (TARGET_IRIX6): Define to 1.
1267         (DRIVER_SELF_SPECS): Define.
1268         (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
1269         (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
1270         (SUBTARGET_LINK_SPEC): New macro.
1271         (IRIX_STARTFILE_SPEC): Fold into...
1272         (STARTFILE_SPEC): ...here.  Remove !mabi=* case.
1273         (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
1274         (LIB_SPEC, LIBGCC_SPEC): Use them.
1275         (LIB_SPEC): Remove !mabi=* case.
1276         (IRIX_ENDFILE_SPEC): Fold into...
1277         (ENDFILE_SPEC): ...here.  Remove !mabi=* case.
1278         * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
1279         * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
1280         (TARGET_IRIX6): New macro.
1281         (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
1282         (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
1283         (LABEL_AFTER_LOC): Delete.
1284         * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
1285         (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
1286         (mips_build_builtin_va_list): Check TARGET_IRIX6.
1287         (override_options): Remove TARGET_SGI_O32_AS-related code.
1288         (irix_output_external_libcall): Make static.
1289         (mips_output_filename): Avoid use of SET_FILE_NUMBER and
1290         LABEL_AFTER_LOC.
1291         (mips_file_start): Tidy guard for ABI sections.  Remove use of
1292         ABICALLS_ASM_OP; use .abicalls instead.
1293         (mips_output_aligned_decl_common, mips_declare_object_name)
1294         (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
1295         (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
1296         .globl foo .text directives.
1297         (irix_asm_named_section_1, irix_asm_named_section)
1298         (irix_section_align_entry, irix_section_align_htab)
1299         (irix_orig_asm_out_file, irix_section_align_entry_eq)
1300         (irix_section_align_entry_hash, irix_asm_output_align)
1301         (irix_file_start, irix_section_align_1, copy_file_data)
1302         (irix_file_end, irix_section_type_flags): Delete.
1303         * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
1304         Use standard section syntax.  Remove protective "jr $31".
1305         (__gcc_fini): Likewise .gcc_fini.
1306         * config/mips/irix-crtn.asm: Adjust sections accordingly.
1307         * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
1308         iris5gas.h.
1309         * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
1310         from t-irix-gld.
1311         (EXTRA_MULTILIB_PARTS): Define.
1312         * config/mips/t-iris6: Remove bogus comment.
1313         (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
1314         * config/mips/iris5gas.h, config/mips/iris5gld.h,
1315         config/mips/iris6gas.h, config/mips/iris6gld.h,
1316         config/mips/t-iris5-as, config/mips/t-iris5-gas
1317         config/mips/t-irix-gld: Delete.
1318         * config/mips/iris.h: New file.
1319         * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
1320
1321 2004-08-20  Richard Earnshaw  <rearnsha@arm.com>
1322
1323         * postreload.c (reload_cse_move2add): Allow any condjump, but check
1324         that the implicit set isn't clobbered in the jump insn.
1325
1326 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
1327
1328         * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
1329         * optabs.c (init_optabs): Don't check it.
1330         * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
1331         * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
1332
1333 2004-08-18  Andreas Krebbel  <krebbel1@de.ibm.com>
1334
1335         * config/s390/s390.md (s390_warn_framesize_string)
1336         (s390_warn_dynamic_string, s390_stack_size_string)
1337         (s390_stack_guard_string): New global string variables.
1338         (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
1339         (s390_stack_guard): New global variables.
1340         (override_options): Added checks for the new options.
1341         (s390_emit_prologue): Emit stack check and trap code and perform
1342         compile time stack size checking.
1343
1344         * config/s390/s390.h (TARGET_OPTIONS): Added new options
1345         "warn-framesize", "warn-dynamicstack", "stack-size" and
1346         "stack-guard".
1347
1348         * doc/invoke.texi: Added documentation for the new options.
1349
1350 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
1351
1352         * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
1353         to eliminate warning.
1354         (linear_search_fdes): Declare p as unsigned.
1355         (binary_search_mixed_encoding_fdes): Likewise.
1356         * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
1357         to eliminate warning.
1358         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
1359         type cast.
1360
1361 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
1362
1363         * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
1364         * config/s390/s390.c (preferred_la_operand_p): Accept two operands
1365         instead of one.  Check for strictly legitimate address.
1366         * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
1367         to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
1368
1369 2004-08-19  Eric Christopher  <echristo@redhat.com>
1370
1371         * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
1372         * langhooks.h (unsave_expr_now): Ditto.
1373         * tree.h (unsave_expr_1): Remove prototype.
1374         (lhd_unsave_expr_now): Rename to unsave_expr_now.
1375         * tree-inline.c (unsave_expr_1): Move here
1376         from tree.c. Make static.
1377         (unsave_expr_now): Rename from lhd_unsave_expr_now.
1378         * tree-sra.c: Fix up for rename.
1379         * tree-ssa-copy.c: Ditto.
1380         * tree-eh.c: Ditto.
1381         * tree.c (unsave_expr_1): Move to tree-inline.c.
1382
1383 2004-08-19  Caroline Tice  <ctice@apple.com>
1384
1385         * config/i386/cygming.h (switch_to_section):  Fix typo (change
1386         in_unlikely_text_section to in_unlikely_executed_text).
1387
1388 2004-08-19  Daniel Berlin  <dberlin@dberlin.org>
1389
1390         * vec.h (VEC_lower_bound): New macro.
1391
1392 2004-08-19  Richard Sandiford  <rsandifo@redhat.com>
1393
1394         PR target/16446
1395         * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
1396         (mips_arg_info): Update accordingly.  Remove common treatment of fpr_p;
1397         treat each ABI separately.  Deal with n32/n64 complex float arguments.
1398         (function_arg): Add associated complex handling here.
1399
1400 2004-08-19  Richard Henderson  <rth@redhat.com>
1401
1402         * config/arm/arm.c (arm_gen_load_multiple): Use
1403         adjust_automodify_address.  Take base memory and offset instead
1404         of unchanging/struct/scalar bits.
1405         (arm_gen_store_multiple): Likewise.
1406         (arm_gen_movmemqi): Use adjust_automodify_address.
1407         * config/arm/arm-protos.h: Update decls.
1408         * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
1409         (store_multiple): Similarly.
1410
1411 2004-08-19  J"orn Rennecke <joern.rennecke@superh.com>
1412
1413         * regclass.c (globalize_reg): Update call_really_used_regs.
1414
1415 2004-08-19  Nathan Sidwell  <nathan@codesourcery.com>
1416
1417         * doc/invoke.texi (integer-share-limit): Document.
1418
1419         * tree.h (TYPE_CACHED_VALUES_P): New.
1420         (TYPE_CACHED_VALUES): New.
1421         (TYPE_ORIG_SIZE_TYPE): Adjust.
1422         * tree.def (INTEGER_CST): Update documentation.
1423         * tree.c: Inlcude params.h.
1424         (build_int_cst): Cache small values.
1425         (build_type_copy): Do not copy the value cache.
1426         * c-common.c (c_common_nodes_and_builtins): Add comment, remove
1427         unneeded zeroing.
1428         * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
1429         * expmed.c (const_mult_add_overflow_p): Clear type copy's value
1430         cache.
1431         * fold-const.c (force_fit_type): Copy value when setting
1432         overflows.
1433         (int_const_binop): Likewise.
1434         * stor-layout.c: Include params.h
1435         (set_sizetype): Create values cache.
1436         (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
1437         * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
1438         * params.h (INTEGER_SHARE_LIMIT): New.
1439         * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
1440
1441 2004-08-19  Paolo Bonzini  <bonzini@gnu.org>
1442
1443         * gimplify.c (gimplify_minimax_expr): Remove.
1444         (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
1445
1446 2004-08-19  Dorit Naishlos  <dorit@il.ibm.com>
1447
1448         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
1449         STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
1450
1451 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
1452
1453         * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
1454
1455 2004-08-18  Andrew Pinski  <apinski@apple.com>
1456
1457         * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
1458
1459 2004-08-18  Mark Mitchell  <mark@codesourcery.com>
1460
1461         * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
1462         (__aeabi_ul2f): Likewise.
1463
1464 2004-08-18  Richard Henderson  <rth@redhat.com>
1465
1466         * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
1467         move to rtl completely.
1468         (struct meminsnbuf, xtensa_emit_block_move): Remove.
1469         (xtensa_find_mode_for_size): Remove.
1470         * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
1471         * config/xtensa/xtensa.md (movmemsi_internal): Remove.
1472
1473 2004-08-18  Richard Henderson  <rth@redhat.com>
1474
1475         * config/mcore/mcore.c (mode_from_align): Remove DImode.
1476         (block_move_sequence): Rewrite to use adjust_address.
1477         (mcore_expand_block_move): Cleanup logic.  Accept only operands.
1478         Return boolean indicating success/failure.
1479         * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
1480         * config/mcore/mcore.md (movmemsi): Update to match.
1481
1482 2004-08-18  Mike Stump  <mrs@apple.com>
1483
1484         * doc/invoke.texi (-mfix-and-continue): Add support for
1485         fast turn around debugging.
1486         (-ffix-and-continue): Likewise.
1487         (-mindirect-data): Likewise.
1488         (-findirect-data): Likewise.
1489         * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
1490         (indirect_data): Likewise.
1491         (machopic_data_defined_p): Likewise.
1492         (machopic_output_indirection): Likewise.
1493         (darwin_encode_section_info): Likewise.
1494         (darwin_fix_and_continue): Likewise.
1495         (darwin_fix_and_continue_switch): Likewise.
1496         * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
1497         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
1498         (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
1499         (SUBTARGET_OPTIONS): Likewise.
1500         (darwin_fix_and_continue): Likewise.
1501         (darwin_fix_and_continue_switch): Likewise.
1502         (TARGET_FIX_AND_CONTINUE): Likewise.
1503         * config/rs6000.c (rs6000_emit_prologue): Likewise.
1504
1505 2004-08-19  Steven Bosscher  <stevenb@suse.de>
1506
1507         * basic-block.h (struct edge_def): Remove crossing_edge.
1508         (EDGE_CROSSING): New define.
1509         (EDGE_ALL_FLAGS): Update.
1510         * bb-reorder.c (find_traces_1_round, better_edge_p,
1511         find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
1512         find_jump_block, fix_crossing_conditional_branches,
1513         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
1514         Replace all occurences of crossing_edge with an edge flag check
1515         or set/reset.
1516         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
1517         try_crossjump_bb): Likewise.
1518         * cfglayout.c (fixup_reorder_chain): Likewise.
1519         * cfgrtl.c (force_nonfallthru_and_redirect,
1520         commit_one_edge_insertion): Likewise.
1521
1522         * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
1523         * tree-flow.h (compute_dominance_frontiers): Move prototype...
1524         * basic-block.h:  ...here.
1525         * tree-cfg.c (compute_dominance_frontiers_1,
1526         compute_dominance_frontiers): Move from here...
1527         * cfganal.c: ...to here.  Include timevar.h.
1528
1529 2004-08-18  James E Wilson  <wilson@specifixinc.com>
1530
1531         * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
1532         * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
1533
1534         * config/mips/mips.md (type): Add frdiv.
1535         (divsf3+1, divsf3+2): Change type to frdiv.
1536         * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
1537         ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
1538
1539         * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
1540         * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
1541         * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
1542         * config/mips/5000.md (r5k_fdiv_single): Likewise.
1543         * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
1544         * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
1545         * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
1546         * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
1547         * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
1548         * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
1549         Likewise.
1550         * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
1551
1552 2004-08-18  Robert Bowdidge <bowdidge@apple.com>
1553
1554         * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
1555         get regression tester working again.
1556
1557 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
1558
1559         * insn-notes.def, reg-notes.def: New files.
1560         * rtl.h: Use them to define enum insn_note and enum reg_note.
1561         * rtl.c: Use them to define note_insn_name and reg_note_name.
1562         * Makefile.in (RTL_BASE_H): Update.
1563
1564         * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
1565         renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
1566
1567 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
1568
1569         * arm.c (arm_size_rtx_costs): New function.
1570         (arm_override_options): Use it if optimizing for space.
1571
1572 2004-08-18  Richard Henderson  <rth@redhat.com>
1573
1574         * emit-rtl.c (gen_const_mem): New.
1575         * rtl.h (gen_const_mem): Declare.
1576         * expr.c (do_tablejump): Use it.
1577         * varasm.c (force_const_mem): Likewise.
1578         * config/darwin.c (machopic_indirect_data_reference): Likewise.
1579         (machopic_legitimize_pic_address): Likewise.
1580         * config/arm/arm.c (legitimize_pic_address): Likewise.
1581         * config/i386/i386.c (legitimize_pic_address): Likewise.
1582         (legitimize_tls_address): Likewise.
1583         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
1584         * config/ia64/ia64.md (load_fptr): Likewise.
1585         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
1586         * config/pa/pa.c (legitimize_pic_address): Likewise.
1587         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
1588         (rs6000_emit_move): Likewise.
1589         * config/s390/s390.c (legitimize_pic_address): Likewise.
1590         (legitimize_tls_address): Likewise.
1591         * config/s390/s390.md (casesi): Likewise.
1592         * config/sh/sh.c (sh_reorg): Likewise.
1593         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
1594         * config/v850/v850.md (casesi): Likewise.
1595
1596         * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
1597         * config/sh/sh.c (prepare_move_operands): Remove incorrect
1598         use of MEM_READONLY_P.
1599
1600 2004-08-18  Steven Bosscher  <stevenb@suse.de>
1601
1602         * Makefile.in (OBJS-common): Add postreload-gcse.c.
1603         Add new postreload-gcse.o.
1604         * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
1605         (lookup_as_function, insert, rehash_using_reg, use_related_value,
1606         equiv_constant): Use SAFE_HASH instead of safe_hash.
1607         (exp_equiv_p): Export.  Add for_gcse argument when comparing
1608         for GCSE.
1609         (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
1610         find_comparison_args, fold_rtx, cse_insn): Update callers.
1611         (hash_rtx): New function derived from old canon_hash and bits
1612         from gcse.c hash_expr_1.
1613         (canon_hash_string): Rename to hash_rtx_string.
1614         (canon_hash, safe_hash): Make static inline.  Call hash_rtx.
1615         * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
1616         (cselib_lookup): Update this caller.
1617         * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
1618         Make static.
1619         (hash_expr): Call hash_rtx.
1620         (ldst_entry): Likewise.
1621         (expr_equiv_p): Call exp_equiv_p.
1622         (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
1623         reg_used_on_edge, reg_set_between_after_reload_p,
1624         reg_used_between_after_reload_p, get_avail_load_store_reg,
1625         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
1626         get_bb_avail_insn, hash_scan_set_after_reload,
1627         compute_hash_table_after_reload,
1628         eliminate_partially_redundant_loads, gcse_after_reload,
1629         get_bb_avail_insn, gcse_after_reload_main): Remove.
1630         * postreload-gcse.c: New file, reincarnating most of the above.
1631         * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
1632         (gcse_after_reload_main): Update prototype.
1633         * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
1634         * passes.c (rest_of_handle_gcse2): Use it.
1635
1636 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
1637
1638         * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
1639         (pass_loop_done): Likewise.
1640
1641 2004-08-18  Andrew Pinski  <apinski@apple.com>
1642
1643         * config/rs6000/darwin.md: Delete the altivec patterns which are
1644         handled differently now.
1645         (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
1646         (macho_correct_pic_di): Likewise.
1647         (call_indirect_nonlocal_darwin64): Likewise.
1648         Delete the save world/saveFP/saveVec patterns.
1649
1650         Revert the reversion of: 2004-08-16  Stan Shebs  <shebs@apple.com>
1651         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
1652         * config/rs6000/rs6000.md: Include darwin.md.
1653         (builtin_setjmp_receiver): Add DImode case.
1654         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
1655         Darwin bits.
1656
1657 2004-08-18  Matt Austern  <austern@apple.com>
1658
1659         Dead code stripping
1660         * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
1661         * darwin.c (darwin_file_end): Mark file as potentially strippable.
1662
1663 2004-08-18  Richard Henderson  <rth@redhat.com>
1664
1665         * alias.c (readonly_fields_p): Remove.
1666         (objects_must_conflict_p): Don't call it.
1667         * tree.h (readonly_fields_p): Remove.
1668         * langhooks.h (struct lang_hooks): Remove honor_readonly.
1669         * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
1670
1671 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
1672
1673         * tree-dfa.c (add_referenced_var): Only global variables are
1674         call-clobbered.
1675         * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
1676         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
1677         all pointers dereferenced if the statement dereferences them.
1678         (create_name_tags): Do not create memory tags for pointers
1679         that have PT_ANYTHING set.
1680         Also check if PT_VARS is not empty before creating a name tag.
1681         (compute_flow_sensitive_aliasing): Don't mark call-clobbered
1682         variables that share the same alias set with a pointer that
1683         may point anywhere.
1684         (add_may_alias): Add FIXME comment to remove clobbering
1685         aliased variables and tags.
1686         (replace_may_alias): Likewise.
1687         (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
1688         (merge_pointed_to_info): If the original variable has not
1689         points-to information, call set_pt_anything.
1690         (add_pointed_to_var): Do not prevent adding a pointed-to
1691         variable if the pointers is PT_ANYTHING.
1692         If the variable is a global, set PT_GLOBAL_MEM.
1693         (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
1694         pointer type only come in PTR+OFFSET flavours.
1695         Always call merge_pointed_to_info on PHI arguments that are
1696         SSA_NAMEs.
1697         (get_nmt_for): Mark call-clobbered tags whose pointer points
1698         to global memory.
1699         * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
1700         values.
1701         (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
1702         FLAGS.
1703         (add_stmt_operand): Abort if the caller tried to add a killing
1704         definition for a memory tag.
1705         * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
1706         unnecessary checks.
1707
1708 2004-08-18  J"orn Rennecke <joern.rennecke@superh.com>
1709
1710         * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
1711         from call_used_regs.  Update call_really_used_regs.
1712         (CALL_REALLY_USED_REGISTERS): Define.
1713         * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
1714         Replace call_used_regs with call_really_used_regs.
1715         (calc_live_regs, sh_media_register_for_return): Likewise.
1716         (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
1717         * sh.md (return_media): Likewise.
1718
1719 2004-08-18  Andrew Pinski  <apinski@apple.com>
1720
1721         * config/darwin.c (machopic_legitimize_pic_address): Only set
1722         MEM_READONLY_P in the non TARGET_TOC case.
1723
1724 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
1725
1726         * rtl.def (NIL): Delete.
1727         * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
1728         Tighten the syntax a little.
1729
1730         * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
1731         * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
1732         * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
1733         * config/i386/predicates.md, config/m32r/m32r.h
1734         * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
1735         * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
1736         * config/sparc/sparc.h, doc/tm.texi:
1737         Replace all occurrences of NIL with UNKNOWN.
1738
1739 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
1740
1741         * dojump.c (do_jump <unordered_bcc>): Do not recursively call
1742         self with a TRUTH_ORIF_EXPR; generate the appropriate jump
1743         sequence inline.  Move drop_through_label code into this
1744         block, being the only place it is used.  Adjust comments.
1745
1746 2004-08-18  Fariborz Jahanian <fjahanian@apple.com>
1747
1748         * config/rs6000/altivec.md: Add new patterns for calls to
1749         save_world/rest_world functions.
1750
1751         * config/rs6000/rs6000-protos.h: (save_world_operation,
1752         restore_world_operation) new declarations.
1753
1754         * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
1755         field added.
1756         (rs6000_stack_info): Set world_save_p field.
1757         (save_world_operation): New function.
1758         (restore_world_operation): New function.
1759         (compute_save_world_info): New function.
1760         (rs6000_stack_info): Call compute_save_world_info.
1761         (rs6000_emit_prologue): Check for world_save_p and generate
1762         pattern to call save_world for saving all non-volatile and
1763         special registers.
1764         (rs6000_emit_epilogue): Check for world_save_p and generate
1765         pattern to call rest_world to restore saved registers.
1766
1767         config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
1768         FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
1769         (rs6000_reg_names): New entries added for save_world_operation and
1770         restore_world_operation.
1771
1772 2004-08-18  Caroline Tice  <ctice@apple.com>
1773
1774         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
1775         "-freorder-blocks-and-partition" to the flags used in second
1776         stage of profiledbootstrap.
1777         * bb-reorder.c (push_to_next_round_p): Add new variable,
1778         next_round_is_last; set and use variable to make sure, when
1779         partitioning, that the last trace construction round consists
1780         of all (and only) cold basic blocks.
1781         (rotate_loop): Don't copy blocks that end in a section
1782         crossing jump.
1783         (copy_bb): Correctly initialize "partition" of duplicated bb.
1784         (add_unlikely_executed_notes): Add a comment.
1785         (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
1786         to make sure, if function contains hot blocks, that the
1787         successors of ENTRY_BLOCK_PTR are hot; also, only look for
1788         crossing edges if the architecture supports named sections.
1789         (mark_bb_for_unlikely_executed_section): Modify to always
1790         insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
1791         the basic block note insn.
1792         (fix_crossing_unconditional_branches): Remove extra space.
1793         (fix_edges_for_rarely_executed_code): Modify to only do
1794         partitioning work if the architecture supports named sections.
1795         (reorder_basic_blocks): Modify to only add
1796         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
1797         supports named sections.
1798         * c-common.c (handle_section_attribute): Initialize new global
1799         variable, user_defined_section_attribute, to true if user has
1800         specified one.
1801         * cfgcleanup.c (try_forward_edges): Modify to not attempt to
1802         forward edges that cross section boundaries.
1803         * cfglayout.c (fixup_reorder_chain): Modify to only fix up
1804         partitioning information if the architecture supports named
1805         sections.
1806         * cfgrtl.c (target.h): Add statement to include this.
1807         (rtl_split_block): Make sure newly created bb gets correct
1808         partition.
1809         (try_redirect_by_replacing_jump): Make sure redirection isn't
1810         attempting to cross section boundaries.
1811         (force_nonfallthru_and_redirect): Only do partition fix up if
1812         architecture supports named sections.
1813         (rtl_split_edge): Make sure newly created bb ends up in
1814         correct partition.
1815         (commit_one_edge_insertion): Remove code that incorrectly
1816         updated basic block partition; Make sure partition fix up only
1817         happens if architecture supports named sections and it's not
1818         already done.
1819         (rtl_verify_flow_info_1): Fix if-condition on test/error
1820         condition that fallthru edges are not allowed to cross section
1821         boundaries.
1822         * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
1823         * final.c (final_scan_insn): Remove redundant test from if-statement;
1824         change calls to text_section into calls to function_section; add code
1825         to only to partitioning fix up if architecture supports named
1826         sections.
1827         * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
1828         partition.
1829         (if_convert): Add targetm.have_named_sections to test.
1830         * output.h (unlikely_section_label): Extern declaration for new global
1831         variable.
1832         (unlikely_text_section_name): Likewise.
1833         * opts.c (decode_options): If both partitioning and DWARF debugging
1834         are turned on, issue a warning that this doesn't work, and change
1835         partitiong to basic block reordering (without hot/cold partitions).
1836         * passes.c (rest_of_handle_final): Re-set new global variable,
1837         user_defined_section_attribute, to false.
1838         (rest_of_compilation): Change options for calling partitioning
1839         function: Don't call if the user defined the section attribute, and
1840         don't call if DECL_ONE_ONLY is true for the current function.
1841         * predict.c (choose_function_section): Return immediately if we
1842         are doing hot/cold partitioning (i.e. let the basic block partitioning
1843         determine where the function belongs).
1844         * reg-stack.c (emit_swap_insn): Add condition to step over
1845         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
1846         * toplev.c (user_defined_section_attribute): New global variable.
1847         * toplev.h (user_defined_section_attribute): Extern declaration
1848         for new global variable.
1849         * varasm.c (unlikely_section_label): New global variable.
1850         (unlikely_text_section_name): New global variable.
1851         (unlikely_text_section): Add code to initialize
1852         unlikely_text_section_name if necessary; modify to use
1853         unlikely_text_section_name and unlikely_section_label; also to use
1854         named_section properly.
1855         (in_unlikely_text_section):  Modify to work correctly with
1856         named_section and to use unlikely_text_section_name.
1857         (named_section):  Add code to work properly with cold section.
1858         (function_section): Clean up if-statement.
1859         * config/darwin.c (darwin_asm_named_section): Return to original
1860         code, removing use of SECTION_FORMAT_STRING.
1861         * config/arm/pe.h (switch_to_section):  Add case for
1862         in_unlikely_executed_text to switch statement.
1863         * config/i386/cygming.h (switch_to_section): Likewise.
1864         * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
1865         (SECTION_FORMAT_STRING): Likewise.
1866         * config/mcore/mcore.h (switch_to_section): Likewise.
1867         * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
1868         (SECTION_FORMAT_STRING): Remove.
1869
1870 2004-08-18  Roger Sayle  <roger@eyesopen.com>
1871
1872         * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
1873         -ffixed-reg safe, by preserving the meanings of zero and one.
1874         (CALL_USED_REGISTERS): Likewise.
1875         (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
1876
1877 2004-08-18  Kaz Kojima  <kkojima@gcc.gnu.org>
1878
1879         * config/sh/sh.c (split_branches): Check the result of
1880         next_active_insn.
1881         (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
1882         Call rtl_register_cfg_hooks.
1883
1884 2004-08-18  Richard Henderson  <rth@redhat.com>
1885
1886         * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
1887         * alias.c (true_dependence): Update to match new semantics.
1888         (canon_true_dependence, write_dependence_p): Likewise.
1889         (anti_dependence, output_dependence): Update write_dependence_p args.
1890         (unchanging_anti_dependence): Remove.
1891         * calls.c (purge_mem_unchanging_flag): Remove.
1892         (fixup_tail_calls): Don't call it.
1893         (expand_call): Don't add unchanging memory to function usage.
1894         * expr.c (emit_block_move_via_libcall): Likewise.
1895         (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
1896         (get_subtarget): Don't use RTX_UNCHANGING_P.
1897         (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
1898         (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
1899         * combine.c (get_last_value_validate): Use MEM_READONLY_P.
1900         * cse.c (insert): Don't use RTX_UNCHANGING_P.
1901         (cse_insn, canon_hash): Use MEM_READONLY_P.
1902         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
1903         instead of RTX_UNCHANGING_P.
1904         * explow.c (maybe_set_unchanging): Remove.
1905         * expr.h (maybe_set_unchanging): Remove.
1906         * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
1907         * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
1908         (assign_parm_setup_reg, expand_function_start): Likewise.
1909         * integrate.c (copy_rtx_and_substitute): Likewise.
1910         * ra-rewrite.c (emit_colors): Likewise.
1911         * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
1912         (fixup_match_1): Likewise.
1913         * reload1.c (reload, alter_reg): Likewise.
1914         * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
1915         not RTX_UNCHANGING_P.
1916         (equiv_init_varies_p): Likewise.
1917         * loop-invariant.c (check_maybe_invariant): Likewise.
1918         * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
1919         * loop.c (note_addr_stored): Likewise.
1920         (prescan_loop): Likewise. Don't check function usage for clobbered
1921         unchanging memory.
1922         * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
1923         not RTX_UNCHANGING_P.
1924         (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
1925         * varasm.c (force_const_mem): Likewise.
1926         * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
1927         * web.c (entry_register): Likewise.
1928         * tree-gimple.h (get_base_address): Move decl ...
1929         * tree.h: ... here.
1930         * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
1931
1932         * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
1933         called via for_each_rtx.  Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
1934         (alpha_set_memflags): Update to match.
1935
1936         * config/darwin.c (machopic_indirect_data_reference): Set
1937         MEM_READONLY_P instead of RTX_UNCHANGING_P.
1938         (machopic_indirect_call_target): Likewise.
1939         (machopic_legitimize_pic_address): Likewise.
1940         * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
1941         arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
1942         * config/arm/arm.md (load_multiple, store_multiple): Likewise.
1943         * config/frv/frv.md (symGOT2reg): Likewise.
1944         * config/i386/i386.c (legitimize_pic_address,
1945         legitimize_tls_address, ix86_split_to_parts): Likewise.
1946         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
1947         * config/ia64/ia64.md (load_fptr): Likewise.
1948         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
1949         * config/m68k/m68k.c (legitimize_pic_address): Likewise.
1950         * config/mcore/mcore.c (block_move_sequence): Likewise.
1951         * config/mn10300/mn10300.md (symGOT2reg): Likewise.
1952         * config/pa/pa.c (legitimize_pic_address): Likewise.
1953         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
1954         (rs6000_emit_move): Likewise.
1955         * config/s390/s390.c (legitimize_pic_address): Likewise.
1956         (legitimize_tls_address): Likewise.
1957         * config/s390/s390.md (casesi): Likewise.
1958         * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
1959         * config/sh/sh.md (symGOT2reg): Likewise.
1960         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
1961         * config/v850/v850.md (casesi): Likewise.
1962
1963         * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
1964         * config/iq2000/iq2000.c (save_restore_insns): Likewise.
1965         * config/mips/mips.c (mips_restore_gp): Likewise.
1966         (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
1967         * config/sh/sh.c (sh_reorg): Likewise.
1968
1969 2004-08-18  Richard Henderson  <rth@redhat.com>
1970
1971         * tree.h (struct tree_decl): Add gimple_formal_temp.
1972         (DECL_GIMPLE_FORMAL_TEMP_P): New.
1973         * gimplify.c (pop_gimplify_context): Clear it.
1974         (lookup_tmp_var): Set it, if is_formal.
1975         (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
1976         Use is_gimple_val for VECTOR.  Simplify return value.
1977         (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
1978         (gimplify_expr): Likewise.
1979         * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
1980         is_gimple_tmp_rhs for clarity.  Update all callers.
1981         (is_gimple_reg_rhs): Simplify logic.
1982         (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
1983         clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
1984         (is_gimple_formal_tmp_reg): Similarly.
1985         * tree-gimple.h: Update decls.
1986         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
1987         DECL_IGNORED_P, not DECL_ARTIFICIAL.  Tidy formatting.
1988         * tree-ssa-live.c (var_union, type_var_init): Likewise.
1989
1990 2004-08-18  Paolo Bonzini  <bonzini@gnu.org>
1991
1992         * c4x.c (legitimize_operands): Remove calls to
1993         preserve_subexpressions_p.
1994
1995 2004-08-18  David Edelsohn  <edelsohn@gnu.org>
1996
1997         * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
1998         * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
1999
2000 2004-08-18  Ziemowit Laski  <zlaski@apple.com>
2001
2002         * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
2003         Objective-C++ extensions.
2004         * gengtype.c (get_file_basename): Match entire subdirectory name
2005         ('cp', 'objc', 'objcp') rather than just its suffix.
2006         (get_base_file_bitmap): Allow for files to belong to more than one
2007         language.
2008         (get_output_file_with_visibility): Treat objc/objc-act.h as a header
2009         used by more than one front-end.
2010
2011 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
2012
2013         * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
2014         avoid use of preserve_subexpressions_p.
2015
2016 2004-08-17  Richard Henderson  <rth@redhat.com>
2017
2018         PR 17051
2019         * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
2020
2021 2004-08-17  DJ Delorie  <dj@redhat.com>
2022
2023         * doc/extend.texi: Document new xstormy16 attribute.
2024
2025         * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
2026         (xstormy16_splittable_below100_or_register): New.
2027         (combine_bnp): New.
2028         (xstormy16_reorg): New.
2029         (TARGET_MACHINE_DEPENDENT_REORG): Define.
2030
2031         * config/stormy16/stormy16.md (movqi_internal): Make name public.
2032         (movhi_internal): Likewise.
2033         (cbhranchhi): Likewise.
2034         (cbhranchhi_neg): Likewise.
2035         (andhi3): Only allow splittable below100 operands.
2036         (iorhi3): Likewise.
2037         (peephole2): New and/zero_extend->and peephole.
2038         (peephole2): New load/ior/save->set1 peephole.
2039         (peephole2): New load/and/save->clr1 peephole.
2040         (bclrx, bclrx2, bclr7, bclr15): New.
2041         (bsetx, bsetx2, bset7, bset15): New.
2042
2043         * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
2044         liberal about acceptable 'B' masks.
2045
2046         * config/stormy16/stormy16-protos.h
2047         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
2048         xstormy16_below100_operand, xstormy16_below100_or_register,
2049         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
2050         (PREDICATE_CODES): Add new predicates.
2051
2052         * config/stormy16/stormy16.c
2053         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
2054         xstormy16_below100_operand, xstormy16_below100_or_register,
2055         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
2056         (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
2057         (xstormy16_legitimate_address_p): Allow below100 symbols.
2058         (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
2059         (xstormy16_expand_move): Leave below100 operands as-is.
2060         (xstormy16_encode_section_info): Encode below100 symbols.
2061         (xstormy16_strip_name_encoding): New.
2062         (xstormy16_print_operand): Print 'b' as shift mask.
2063         (xstormy16_attribute_table): Add below100 attributes.
2064         (xstormy16_handle_below100_attribute): New.
2065
2066         * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
2067         (XSTORMY16_SECTION_FUNCTION): New.
2068         (EXTRA_SECTION_FUNCTIONS): Define using the above.
2069         (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
2070         (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
2071         (ASM_OUTPUT_LABELREF): Define.
2072
2073         * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
2074         (movhi_internal): Add below100 support.
2075         (andhi3): Add below100 support.
2076         (iorhi3): Add below100 support.
2077         (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
2078
2079 2004-08-17  James E Wilson  <wilson@specifixinc.com>
2080
2081         * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
2082         of VOIDmode for comparison code mode.
2083         * config/mips/mips.md: For conditional move patterns, use mode of
2084         first compare operand for comparison mode, instead of VOIDmode.
2085
2086         * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
2087         normal and -ffast-math code.
2088
2089 2004-08-17  Mark Mitchell  <mark@codesourcery.com>
2090
2091         PR c++/15871
2092         * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
2093
2094 2004-08-17  Robert Bowdidge  <bowdidge@apple.com>
2095
2096         * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
2097
2098 2004-08-17  Andreas Tobler  <a.tobler@schweiz.ch>
2099
2100         * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
2101         for non Darwin targets.
2102         (*call_value_nonlocal_darwin64): Likewise.
2103
2104 2004-08-17  Fariborz Jahanian <fjahanian@apple.com>
2105
2106         * config/rs6000/rs6000.c (rs6000_function_value): Check for
2107         altivec mode for altivec return register.
2108
2109 2004-08-17  David Edelsohn  <edelsohn@gnu.org>
2110
2111         Revert 2004-08-16  Stan Shebs  <shebs@apple.com>
2112         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
2113         * config/rs6000/rs6000.md: Include darwin.md.
2114         (builtin_setjmp_receiver): Add DImode case.
2115         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
2116         Darwin bits.
2117
2118 2004-08-17  Dorit Naishlos  <dorit@il.ibm.com>
2119
2120         * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
2121         trees.
2122         * tree-vectorizer.h: New File: Same.
2123         * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
2124         * common.opt (ftree-vectorize): New flag to enable vectorization.
2125         * timevar.def (TV_TREE_VECTORIZATION): New dump file for
2126         vectorization pass.
2127         * tree-data-ref.h (init_data_ref): Additional argument.
2128         (array_base_name_differ_p): Moved to tree-data-ref.c.
2129         * tree-data-ref.c (array_base_name_differ_p): Revised.
2130         (initialize_data_dependence_relation): Call array_base_name_differ_p
2131         with an extra argument.
2132         (analyze_all_data_dependences): Same.
2133         (init_data_ref): Additional argument is_read to set DR_IS_READ.
2134         * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
2135         file.
2136         * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
2137         * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
2138         * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
2139         vectorization pass.
2140         * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
2141         (tree_ssa_loop_done): Call scev_finalize.
2142         (tree_vectorize): Define the new vectorization pass.
2143         * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
2144         size of the vector they support (until support for multiple vector
2145         sizes is added to the vectorizer).
2146         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
2147         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
2148         * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
2149         documentation.
2150
2151 2004-08-17  Nathan Sidwell  <nathan@codesourcery.com>
2152
2153         * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
2154         usage.
2155         (generate_protocol_list, handle_impent): Likewise.
2156
2157 2004-08-17  Roger Sayle  <roger@eyesopen.com>
2158
2159         * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
2160         ensure that call_used_regs is a superset of both fixed_regs and
2161         call_really_used_regs.
2162
2163 2004-08-17  Daniel Bornstein  <danfuzz@milk.com>
2164
2165         PR target/17019
2166         * arm.md (addsi3_cbranch_scratch): Correct case labels.
2167
2168 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
2169
2170         PR middle-end/17036
2171         * fold-const.c (fold): Check for integer operand when
2172         folding (A >> N) & 1 ? (1 << N) : 0.  Fix from Andrew
2173         Pinski  <pinskia@physics.uc.edu>.
2174
2175 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
2176
2177         * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
2178         No need to check if in a cross configuration.
2179         * configure: Regenerate.
2180
2181         * calls.c (precompute_register_parameters):
2182         Inline preserve_subexpressions_p ().
2183         * expmed.c (expand_mult_const, emit_store_flag): Likewise.
2184         * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
2185         Likewise.
2186         * expr.c (get_subtarget): Likewise.
2187         * rtl.h (preserve_subexpressions_p): Remove.
2188         * stmt.c (preserve_subexpressions_p): Remove.
2189
2190         * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
2191         TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
2192         Abort on gimplified cases.
2193
2194 2004-08-16  James E Wilson  <wilson@specifixinc.com>
2195
2196         * tree.h (VECTOR_FLOAT_TYPE_P): New.
2197         (FLOAT_TYPE_P): Use it.
2198         * c-typeck.c (build_binary_op): After convert calls, check for
2199         check for ERROR_MARK operands.
2200
2201 2004-08-16  Zack Weinberg  <zack@codesourcery.com>
2202
2203         * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
2204         (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
2205         (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
2206         (genobjs static pattern rule): Remove %.c dependency.
2207         ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
2208         Rename rules; delete commands; fix dependencies.
2209         (mostlyclean): Do not delete temporary source copies.
2210         * configure.ac: Delete all references to BUILD_PREFIX and
2211         BUILD_PREFIX_1.
2212         * configure: Regenerate.
2213
2214         * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
2215         Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
2216         basic-block.h #ifdef GENERATOR_FILE.  Surround some more code
2217         with #ifndef GENERATOR_FILE so that nothing from those headers
2218         is used.
2219
2220         * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
2221
2222 2004-08-16  Adam Nemet  <anemet@lnxw.com>
2223
2224         * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
2225
2226 2004-08-16  Andrew Pinski  <apinski@apple.com>
2227
2228         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
2229         extraneous semicolon.
2230
2231 2004-08-16  Devang Patel  <dpatel@apple.com>
2232
2233         * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
2234         * print-tree.c (print_node): Print DECL_PRESERVE_P.
2235         * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
2236         (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
2237         * target.h (struct gcc_target): New member, mark_decl_preserved.
2238         * hooks.c (hook_void_charptr): Rename to ...
2239         (hook_void_constcharptr): ... new name.
2240         * hooks.h (hook_void_charptr): Rename to ..
2241         (hook_void_constcharptr): ... new name.
2242         * tree.h (DECL_PRESERVE_P): New #define.
2243         (struct tree_decl): New member, preserve_flag.
2244         * varasm.c (assemble_start_function): Mark decl preserved.
2245         (assemble_variable): Same.
2246         * darwin.c (darwin_mark_decl_preserved): New function.
2247         * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
2248         * darwin-protos.h (darwin_mark_decl_preserved): New decl.
2249         * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
2250
2251 2004-08-16  Joseph S. Myers  <jsm@polyomino.org.uk>
2252
2253         * c-decl.c (grokdeclarator): Allow for function definition where
2254         innermost declarator has attributes.
2255
2256 2004-08-16  Fariborz Jahanian <fjahanian@apple.com>
2257
2258         * except.c (get_exception_filter, build_post_landing_pads,
2259         dw2_build_landing_pads): Use target-specific mode for 'filter'.
2260         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
2261         * target.h (eh_return_filter_mode): New field added.
2262         * targhooks.c (default_eh_return_filter_mode): Defined.
2263         * targhooks.h (default_eh_return_filter_mode): Declared.
2264         * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
2265
2266 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
2267
2268         * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
2269         ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
2270         * configure: Regenerate.
2271
2272 2004-08-16  Stan Shebs  <shebs@apple.com>
2273
2274         Basic support for 64-bit Darwin.
2275         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
2276         (machopic_legitimize_pic_address): Similarly, plus use Pmode
2277         instead of SImode.
2278         * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
2279         (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
2280         (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
2281         (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
2282         (PROCESSOR_DEFAULT64): Define.
2283         * config/rs6000/darwin.md: New file, patterns specific to 64-bit
2284         Darwin.
2285         * config/rs6000/rs6000.md: Include darwin.md.
2286         (builtin_setjmp_receiver): Add DImode case.
2287         * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
2288         Darwin.
2289         (TARGET_ASM_ALIGNED_DI_OP): Ditto.
2290         (rs6000_emit_move): Add DImode case to Darwin bits.
2291         (machopic_output_stub): Use .quad if 64-bit.
2292         * invoke.texi: Document -m32 and -m64.
2293
2294 2004-08-16  Janis Johnson  <janis187@us.ibm.com>
2295
2296         * doc/extend.texi (AltiVec builtins): Document additional differences
2297         from the Motorola AltiVec PIM.
2298
2299 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
2300
2301         * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
2302         * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
2303         (struct tree_common): Update public_flag documentation.
2304
2305 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
2306
2307         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
2308         Check for artificial variables, not is_gimple_tmp_var.
2309         * tree-ssa-live.c (var_union): Likewise.
2310
2311 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
2312
2313         * calls.c (load_register_parameters): Remove spurious FIXME token.
2314
2315 2004-08-15  Ziemowit Laski  <zlaski@apple.com>
2316
2317         * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
2318         (c-lang.o): Depend on c-objc-common.h.
2319         (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
2320         c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
2321         * c-lang.c: Include c-objc-common.h.
2322         (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
2323         LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
2324         LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
2325         LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
2326         LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
2327         LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
2328         LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
2329         LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
2330         LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
2331         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
2332         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
2333         LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
2334         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
2335         LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
2336         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
2337         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
2338         LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
2339         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
2340         LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
2341         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
2342         LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
2343         LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
2344         LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
2345         LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
2346         Move to c-objc-common.h.
2347         * c-objc-common.c: Include c-objc-common.h.
2348         * c-objc-common.h: New file.
2349
2350 2004-08-15  Andreas Tobler  <a.tobler@schweiz.ch>
2351             Andrew Pinski  <pinskia@physics.uc.edu>
2352
2353         PR target/14931
2354         * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
2355         style.
2356
2357 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
2358
2359         * tree.h (build_int_cst): New.
2360         (build_int_2): Remove.
2361         * tree.c (build_int_2): Remove.
2362         (build_int_cst): New.
2363         (make_vector_type, build_common_tree_nodes,
2364         build_common_tree_nodes_2): Use build_int_cst.
2365         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
2366         expand_builtin_strpbrk, expand_builtin_fputs,
2367         build_string_literal, expand_builtin_printf,
2368         expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
2369         fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
2370         fold_builtin_isdigit, simplify_builtin_strstr,
2371         simplify_builtin_strpbrk, fold_builtin_fputs,
2372         simplify_builtin_sprintf): Use build_int_cst.
2373         * c-common.c (start_fname_decls, fix_string_type,
2374         c_common_nodes_and_builtins, c_init_attributes,
2375         shorten_compare): Likewise.
2376         * c-decl.c (complete_array_type,
2377         check_bitfield_type_and_width): Likewise.
2378         * c-lex.c (interpret_integer, lex_charconst): Likewise.
2379         * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
2380         * c-pretty-print.c (pp_c_integer_constant): Likewise.
2381         * c-typeck.c (really_start_incremental_init, push_init_level,
2382         set_nonincremental_init_from_string): Likewise.
2383         * calls.c (load_register_parameters): Likewise.
2384         * convert.c (convert_to_pointer): Likewise.
2385         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
2386         build_fn_info_type, build_ctr_info_value, build_gcov_info):
2387         Likewise.
2388         * except.c (init_eh, assign_filter_values, assign_filter_values):
2389         Likewise.
2390         * expmed.c (store_fixed_bit_field, extract_bit_field,
2391         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
2392         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
2393         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
2394         * expr.c (convert_move, emit_group_load, emit_group_store,
2395         expand_assignment, store_constructor, store_field,
2396         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
2397         * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
2398         invert_truthvalue, optimize_bit_field_compare,
2399         decode_field_reference, all_ones_mask_p, constant_boolean_node,
2400         fold_div_compare, fold, fold_read_from_constant_string,
2401         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
2402         * function.c (assign_parm_setup_block): Likewise.
2403         * stmt.c (shift_return_value, expand_end_case_type,
2404         estimate_case_costs): Likewise.
2405         * stor-layout.c (layout_type, initialize_sizetypes,
2406         set_min_and_max_values_for_integral_type): Likewise.
2407         * tree-chrec.c (chrec_fold_multiply_poly_poly,
2408         reset_evolution_in_loop): Likewise.
2409         * tree-chrec.h (build_polynomial_chrec): Likewise.
2410         * tree-complex.c (build_replicated_const): Likewise.
2411         * tree-eh.c (honor_protect_cleanup_actions,
2412         lower_try_finally_onedest, lower_try_finally_copy,
2413         lower_try_finally_switch): Likewise.
2414         * tree-mudflap.c (mf_build_string, mx_register_decls,
2415         mudflap_register_call, mudflap_enqueue_constant): Likewise.
2416         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
2417         * tree-pretty-print.c (dump_generic_node): Likewise.
2418         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
2419         Likewise.
2420         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
2421         * tree-ssa-loop-niter.c (number_of_iterations_cond,
2422         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
2423         Likewise.
2424
2425         * config/alpha/alpha.c (alpha_initialize_trampoline,
2426         alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
2427         * config/arm/arm.c (arm_get_cookie_size): Likewise.
2428         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
2429         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
2430         * config/i860/i860.c (i860_va_start): Likewise.
2431         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
2432         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
2433         mips_gimplify_va_arg_expr): Likewise.
2434         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
2435         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
2436         add_compiler_branch_island): Likewise.
2437         * config/s390/s390.c (s390_va_start): Likewise.
2438         * config/sh/sh.c (sh_va_start): Likewise.
2439         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
2440         Likewise.
2441         * config/xtensa/xtensa.c (xtensa_va_start,
2442         xtensa_gimplify_va_arg_expr): Likewise.
2443
2444         * objc/objc-act.c (build_objc_string_object,
2445         build_objc_symtab_template, init_def_list, init_objc_symtab,
2446         init_module_descriptor, generate_static_references,
2447         build_selector_translation_table, get_proto_encoding,
2448         build_typed_selector_reference, build_selector_reference,
2449         build_next_objc_exception_stuff,
2450         build_method_prototype_list_template, generate_descriptor_table,
2451         generate_protocols, build_protocol_initializer,
2452         build_ivar_list_template, build_method_list_template,
2453         build_ivar_list_initializer, generate_ivars_list,
2454         generate_dispatch_table, generate_protocol_list,
2455         build_category_initializer, build_shared_structure_initializer,
2456         generate_shared_structures, handle_impent,
2457         generate_objc_image_info): Use build_int_cst.
2458
2459 2004-08-15  Ben Elliston  <bje@au.ibm.com>
2460
2461         * vec.h: Comment improvements.
2462
2463 2004-08-14  Roger Sayle  <roger@eyesopen.com>
2464
2465         * c-common.c (shorten_compare, pointer_int_sum,
2466         c_common_truthvalue_conversion, boolean_increment): Replace calls
2467         to build with calls to buildN.
2468         * c-decl.c (complete_array_type, grokdeclarator): Likewise.
2469         * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
2470         gimplify_switch_stmt): Likewise.
2471         * c-typeck.c (default_function_array_conversion,
2472         build_component_ref, build_array_ref, build_function_call,
2473         pointer_diff, build_unary_op, build_conditional_expr,
2474         build_compound_expr, build_modify_expr, c_finish_goto_label,
2475         c_finish_goto_ptr, c_finish_return, c_finish_loop,
2476         c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
2477         build_binary_op): Likewise.
2478
2479 2004-08-15  Steven Bosscher  <stevenb@suse.de>
2480
2481         * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
2482
2483 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2484
2485         * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
2486         curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
2487         * fixinc/fixincl.x: Rebuilt.
2488
2489 2004-08-14  Richard Sandiford  <rsandifo@redhat.com>
2490
2491         * config/mips/mips-protos.h (mips_symbolic_constant_p)
2492         (mips_atomic_symbolic_constant_p, mips_stack_address_p)
2493         (mips_small_data_pattern_p): Declare.
2494         * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
2495         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
2496         * config/mips/mips.c (mips_symbolic_constant_p): Make global.
2497         (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
2498         (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
2499         (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
2500         (reg_or_const_float_1_operand, hilo_operand, extend_operator)
2501         (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
2502         (pc_or_label_operand, call_insn_operand, move_operand)
2503         (consttable_operand, symbolic_operand, general_symbolic_operand)
2504         (global_got_operand, local_got_operand, stack_operand)
2505         (fp_register_operand, lo_operand, fcc_register_operand): Delete.
2506         (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
2507         (mips_small_data_pattern_p): Replace previous small_data_pattern
2508         predicate.  Turn into a bool () (rtx) function.
2509         * config/mips/predicates.md: New file.
2510         * config/mips/mips.md: Include it.  Use the target-independent
2511         comparison_operator instead of cmp_op.  Rename trap_cmp_op to
2512         trap_comparison_operator and equality_op to equality_operator.
2513         Replace uses of small_int with the equivalent const_arith_operand.
2514         Rename reg_or_const_float_1_operand to reg_or_1_operand.  Rename
2515         const_float_1_operand to const_1_operand.  Rename fcc_register_operand
2516         to fcc_reload_operand.
2517         * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
2518
2519 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2520
2521         PR libstdc++/17005 partial fix.
2522         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
2523         except when generating ANSI/C89 code.
2524
2525 2004-08-14  Nathan Sidwell  <nathan@codesourcery.com>
2526
2527         * c-common.c (shorten_compare): Use force_fit_type directly.
2528
2529 2004-08-14  Gerald Pfeifer  <gerald@pfeifer.com>
2530             Dimitri Papadopoulos-Orfanos  <papadopo@shfj.cea.fr>
2531             Dave Korn  <dk@artimi.com>
2532
2533         * doc/install.texi (Building): Avoid duplicate reference to GNU
2534         make requirement.
2535         (*-*-solaris2*): Do not recommend GNU make any longer.  Simplify.
2536
2537 2004-08-14  Richard Henderson  <rth@redhat.com>
2538
2539         * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
2540         * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
2541
2542 2004-08-13  Richard Henderson  <rth@redhat.com>
2543
2544         * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
2545         for constant_call_address_operand.
2546         (call_value_pop_1, call_value_1): Likewise.
2547         (sibcall_value_1, call_value_1_rex64): Likewise.
2548
2549 2004-08-13  James E Wilson  <wilson@specifixinc.com>
2550
2551         * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
2552         Correct mode from SFmode to DFmode.
2553
2554 2004-08-13  Ziemowit Laski  <zlaski@apple.com>
2555
2556         * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
2557         __cstring_object and __image_info sections with the no_dead_strip
2558         attribute.
2559
2560 2004-08-13  Roger Sayle  <roger@eyesopen.com>
2561             David Billinghurst  <David.Billinghurst@riotinto.com>
2562
2563         PR libgfortran/15930
2564         * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
2565         * fixinc/fixincl.x: Regenerate.
2566         * fixinc/tests/base/internal/math_core.h: New file.
2567
2568 2004-08-13  Richard Henderson  <rth@redhat.com>
2569
2570         * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
2571         (dbxout_function_end): Remove ifdefs for it.
2572         (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
2573
2574 2004-08-13  Richard Henderson  <rth@redhat.com>
2575
2576         * Makefile.in (insn-preds.o): Depend on TREE_H.
2577         * genpreds.c (write_insn_preds_c): Include tree.h.
2578         * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
2579         reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
2580         const48_operand, and_operand, or_operand, mode_width_operand,
2581         mode_mask_operand, mul8_operand, const0_operand,
2582         hard_fp_register_operand, hard_int_register_operand,
2583         reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
2584         samegp_function_operand, direct_call_operand, small_symbolic_operand,
2585         global_symbolic_operand, call_operand, symbolic_operand,
2586         dtp16_symbolic_operand, dtp32_symbolic_operand,
2587         gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
2588         gottp_symbolic_operand, alpha_comparison_operator,
2589         alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
2590         signed_comparison_operator, alpha_fp_comparison_operator,
2591         divmod_operator, fix_operator, aligned_memory_operand,
2592         unaligned_memory_operand, reg_or_unaligned_mem_operand,
2593         any_memory_operand, reg_not_elim_operand, normal_memory_operand,
2594         reg_no_subreg_operand, addition_operation): Move to predicates.md.
2595         (reg_or_const_int_operand): Remove.  Replace all users with
2596         reg_or_cint_operand.
2597         (tls_symbolic_operand_1): Export.  Don't check mode or for CONST.
2598         (resolve_reload_operand): Split out of aligned_memory_operand.
2599         * config/alpha/alpha-protos.h: Update for exports.
2600         * config/alpha/alpha.h (PREDICATE_CODES): Remove.
2601         * config/alpha/alpha.md: Include predicates.md.
2602         * config/alpha/predicates.md: New file.
2603
2604 2004-08-13  Richard Sandiford  <rsandifo@redhat.com>
2605
2606         * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
2607         fields with a pointer to the instruction definition.
2608         (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
2609         (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
2610         (write_attr_case, write_const_num_delay_slots): Update accordingly.
2611         (write_attr_case, write_const_num_delay_slots): Write the name of
2612         an insn next to its case statement.
2613         * genoutput.c (data): Add a filename field.
2614         (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
2615         (output_insn_data): Print the location of each insn definition.
2616         * genrecog.c (write_action): Print the name of an insn above
2617         the statement that returns its code.
2618
2619 2004-08-12  Andrew Pinski  <pinskia@physics.uc.edu>
2620
2621         * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
2622         * config/libgloss.h: Likewise.
2623         * config/arm/arm.c (arm_gen_load_multiple): Likewise.
2624         * c4x/c4x-modes.def: Likewise.
2625         * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
2626         (c4x_rptb_nop_p): Likewise.
2627         (c4x_rptb_valid_p): Likewise.
2628         (c4x_rptb_insert): Likewise.
2629         (c4x_address_conflict): Likewise.
2630         * config/c4x/c4x.md: Likewise.
2631         * config/frv/frv.md: Likewise.
2632         * config/i386/athlon.md: Likewise.
2633         * config/i386/i386.md: Likewise.
2634         * config/i386/predicates.md: Likewise.
2635         * config/ia64/ia64.c: Likewise.
2636         * config/ia64/itanium1.md: Likewise.
2637         * config/ia64/itanium2.md: Likewise.
2638         * config/iq2000/iq2000.md: Likewise.
2639         * config/mcore/mcore.c: Likewise.
2640         * config/mips/mips.c: Likewise.
2641         * config/mips/r3900.h: Likewise.
2642         * config/mips/sb1.md: Likewise.
2643         * config/pa/milli64.S: Likewise.
2644         * config/pa/pa.c: Likewise.
2645         * config/pa/pa.h: Likewise.
2646         * config/rs6000/8540.md: Likewise.
2647
2648 2004-08-13  Daniel Berlin  <dberlin@dberlin.org>
2649
2650         * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
2651
2652 2004-08-13  J"orn Rennecke <joern.rennecke@superh.com>
2653
2654         * sh.md (cbranch define_delay) Use cond_delay_slot for
2655         non-anulled condition too.
2656
2657 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
2658
2659         * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
2660         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
2661         any_parallel_operand, lmw_operation, stmw_operation,
2662         mfcr_operation, mtcrf_operation.  Remove PARALLEL from any_operand.
2663         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
2664         any_parallel_operand.
2665         (return_and_restore_fpregs_{si,di}): Same.
2666
2667 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
2668
2669         * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
2670         if pred->singleton != PARALLEL, issue a warning and pretend it was.
2671         Also issue a warning for any predicate we don't know about.
2672
2673 2004-08-12  Richard Henderson  <rth@redhat.com>
2674
2675         * config/i386/i386.c (internal_label_prefix): Export.
2676         (internal_label_prefix_len, struct ix86_address,
2677         ix86_decompose_address, maybe_get_pool_constant,
2678         ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
2679         memory_address_length): Export.
2680         (any_fp_register_operand, fp_register_operand,
2681         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
2682         x86_64_general_operand, x86_64_szext_general_operand,
2683         x86_64_nonmemory_operand, x86_64_movabs_operand,
2684         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
2685         x86_64_zext_immediate_operand, const_int_1_31_operand,
2686         symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
2687         tls_symbolic_operand, global_dynamic_symbolic_operand,
2688         local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
2689         local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
2690         constant_call_address_operand, const0_operand, const1_operand,
2691         const248_operand, const_0_to_3_operand, const_0_to_7_operand,
2692         const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
2693         shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
2694         general_no_elim_operand, nonmemory_no_elim_operand,
2695         index_register_operand, q_regs_operand, flags_reg_operand,
2696         non_q_regs_operand, zero_extended_scalar_load_operand,
2697         vector_move_operand, no_seg_address_operand, sse_comparison_operator,
2698         ix86_comparison_operator, ix86_carry_flag_operator,
2699         fcmov_comparison_operator, promotable_binary_operator,
2700         cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
2701         mult_operator, div_operator, arith_or_logical_operator,
2702         memory_displacement_operand, cmpsi_operand, long_memory_operand,
2703         aligned_operand): Move to predicates.md as define_predicates.
2704         (tls_symbolic_operand_1): Remove.
2705         (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
2706         (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
2707         (legitimize_address): Merge tls_symbolic_operand contents.
2708         (ix86_expand_move): Likewise.
2709         * config/i386/i386-protos.h: Update for exports.
2710         * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
2711         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
2712         * config/i386/i386.md: Include predicates.md.
2713         * config/i386/predicates.md: New file.
2714
2715 2004-08-13  Mark Mitchell  <mark@codesourcery.com>
2716
2717         PR c++/16924
2718         * config/i386/winnt.c (i386_pe_mark_dllexport): Set
2719         SYMBOL_REF_DECL.
2720         (i386_pe_mark_dllimport): Likewise.
2721         (i386_pe_encode_section_info): Likewise, when overriding
2722         dllimport attribute.
2723
2724 2004-08-12  Geoffrey Keating  <geoffk@apple.com>
2725
2726         * configure.ac: When testing for flex, nm, ar, and bison, check
2727         that they will actually be built.
2728         * configure: Regenerate.
2729
2730 2004-08-12  Ulrich Weigand  <uweigand@de.ibm.com>
2731
2732         * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
2733         (MOVE_MAX_PIECES): Define.
2734
2735 2004-08-12  Devang patel  <dpatel@apple.com>
2736
2737         * dbxout.c (dbxout_begin_prologue): New function.
2738         (dbx_debug_hooks): Use new begin prologue hook.
2739         (dbxout_function_end): Emit N_ENSYM.
2740         * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
2741
2742 2004-08-12  Janis Johnson  <janis187@us.ibm.com>
2743
2744         * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
2745         argument is float*.
2746
2747         * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
2748         for vec_dss.
2749
2750         * doc/extend.texi (AltiVec builtins): Fix description for recent
2751         changes.  Update operation list to match current support.
2752
2753 2004-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
2754
2755         * config/s390/s390.c (struct s390_frame_layout): New struct as element
2756         of struct machine_function.
2757         (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
2758         changed all uses.
2759         (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
2760         changed all uses.
2761         (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
2762         (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
2763         (s390_frame_area, s390_register_info): New functions.
2764         (s390_optimize_prolog): Renamed to s390_optimize_prologue.  Added check
2765         for base register.
2766         (s390_return_addr_rtx, s390_return_address_offset)
2767         (s390_va_start, s390_gimplify_va_arg)
2768         (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
2769         layouts.
2770         (s390_frame_info): Functionality partly moved to s390_register_info.
2771         Made adaptions for new stack layout.
2772         (save_gprs, restore_gprs): Changed meaning of second parameter and
2773         adapted all callers.
2774
2775         * config/s390/s390.h (s390_backchain_string): New global variable.
2776         (MASK_BACKCHAIN): Removed definition.
2777         (TARGET_BACKCHAIN): Changed check.
2778         (TARGET_KERNEL_BACKCHAIN): New macro.
2779         (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
2780         (TARGET_OPTIONS): Added "backchain", "no-backchain" and
2781         "kernel-backchain".
2782         (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
2783
2784         * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
2785         as condition.  Adjusted for new stack layout.
2786
2787         * doc/invoke.texi: Added documentation for new option
2788         "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
2789         "-mno-backchain".
2790
2791 2004-08-12  Paul Brook  <paul@codesourcery.com>
2792
2793         * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
2794         (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
2795
2796 2004-08-12  David Daney  <ddaney@avtrex.com>
2797
2798         * java/gcj.texi:  Add subsection on signal usage.
2799
2800 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
2801
2802         * expr.c (move_by_pieces): Set alignment for move to minimum of
2803         MOVE_MAX_PIECES mode alignment and the largest non-slow mode
2804         alignment, but not less than the original alignment.
2805         (move_by_pieces_ninsns): Same.
2806         (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
2807         (store_by_pieces_1): Same.
2808
2809 2004-08-12  Diego Novillo  <dnovillo@redhat.com>
2810
2811         PR tree-optimization/16867
2812         * tree.c (is_global_var): New function.
2813         (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
2814         Call is_global_var.
2815         * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
2816         Update all users.
2817         (is_global_var): Declare.
2818         * tree-dfa.c (dump_variable): Display global and addressable
2819         attributes.
2820         (add_referenced_var): Clarify documentation when marking
2821         variables call-clobbered.
2822         * tree-flow-inline.h (is_call_clobbered): Call is_global_var
2823         instead of needs_to_live_in_memory.
2824         (mark_call_clobbered): If the variable is a tag, mark it
2825         DECL_EXTERNAL.
2826         * tree-gimple.c (is_gimple_reg): Don't check for
2827         TREE_ADDRESSABLE.
2828         (is_gimple_non_addressable): Likewise.
2829         * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
2830         needs to be marked call-clobbered.
2831         (setup_pointers_and_addressables): Call is_global_var instead
2832         of needs_to_live_in_memory.
2833         * tree-ssa-dce.c (need_to_preserve_store): Remove.
2834         Update all users with is_global_var.
2835         (mark_stmt_if_obviously_necessary): Fix processing of aliased
2836         stores.  Don't check the virtual definitions.  Rather, check
2837         whether the store is going into global memory.
2838         (find_obviously_necessary_stmts): Get the symbol from the PHI
2839         result.
2840         * tree-ssa-operands.c (get_call_expr_operands): Do not add
2841         clobbering may-defs if the call does not have side effects.
2842
2843 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
2844
2845         PR c++/16276
2846         * output.h (default_function_rodata_section,
2847         default_no_function_rodata_section): New prototypes.
2848         * target.h (struct gcc_target): Add asm_out.function_rodata_section.
2849         * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
2850         (TARGET_ASM_OUT): Add it.
2851         * varasm.c (default_function_rodata_section,
2852         default_no_function_rodata_section): New functions.
2853         * final.c (final_scan_insn): Call
2854         targetm.asm_out.function_rodata_section instead of
2855         readonly_data_section.
2856         * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
2857         * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
2858         * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
2859         * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
2860         Likewise.
2861         * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
2862         * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
2863         Likewise.
2864         * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
2865         Likewise.
2866         * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
2867         * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
2868         * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
2869
2870 2004-08-12  Paul Brook  <paul@codesourcery.com>
2871
2872         * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
2873         frame info.
2874         * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
2875         DWARF2_UNWIND_INFO.
2876
2877 2004-08-12  Ben Elliston  <bje@au.ibm.com>
2878
2879         PR target/16286
2880         * config/rs6000/altivec.h: Change vector to __vector throughout.
2881         (Except for the `vector' macro itself).
2882
2883 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
2884
2885         * genpreds.c: Add capability to generate predicate bodies as
2886         well as function prototypes.  Write function prototypes for
2887         the generic predicates too.
2888         (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
2889         (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
2890         (write_match_code, write_predicate_expr, write_one_predicate_function)
2891         (parse_option): New functions.
2892         (output_predicate_decls): Delete.
2893         (main): Read the machine description, process DEFINE_PREDICATE or
2894         DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
2895         as appropriate.
2896
2897         * genrecog.c (struct decision_test): Replace index with
2898         struct pred_data pointer.
2899         (next_index): Remove, unused.
2900         (pred_table, preds, special_mode_pred_table): Delete.
2901         (compute_predicate_codes, process_define_predicate): New functions.
2902         (validate_pattern, add_to_sequence, write_switch): Update for
2903         new data structures.
2904         (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
2905         Check both error_count and have_error.
2906
2907         * gensupport.c (in_fname, first_predicate): New globals.
2908         (define_pred_queue, define_pred_tail): New RTL-pattern queue.
2909         (predicate_table, last_predicate, old_pred_table)
2910         (old_special_pred_table): New statics.
2911         (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
2912         (add_predicate, init_predicate_table): New functions.
2913         (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
2914         (init_md_reader_args_cb): Use the global in_fname.  No need to zero
2915         it or max_include_len.  Call init_predicate_table.
2916         (read_rtx): Run the predicate queue after the attribute queue
2917         but before all the others.
2918         * gensupport.h (in_fname, struct pred_data, first_predicate)
2919         (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
2920         * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
2921         (DEFINE_SPECIAL_PREDICATE): New RTL codes.
2922         * dummy-conditions.c: Don't include bconfig.h, system.h,
2923         coretypes.h, tm.h, or system.h.  Do include stddef.h.
2924         Duplicate declaration of struct c_test from gensupport.h.
2925
2926         * Makefile.in (OBJS-common): Add insn-preds.o.
2927         (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
2928         (insn-preds.c, insn-preds.o): New rules.
2929         (s-preds): Also generate insn-preds.c.
2930         (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
2931         Update dependencies.
2932         (print-rtl.o, print-rtl1.o): Correct dependencies.
2933
2934         * recog.h: Delete prototypes of predicate functions.
2935
2936         * doc/md.texi (Predicates): New section with complete
2937         documentation of operand/operator predicates.  Remove some
2938         incomplete documentation of predicates from other places.
2939         * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
2940         PREDICATE_CODES; indicate that both are deprecated in favor
2941         of define_predicate/define_special_predicate.
2942
2943         * config/ia64/ia64.c: All predicate function definitions moved
2944         to ia64.md, except
2945         (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
2946         (ia64_expand_load_address, ia64_expand_move):
2947         Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
2948
2949         * config/ia64/ia64.md: All predicates now defined here.
2950         (symbolic_operand): Is now a special predicate.
2951
2952         * config/ia64/ia64.h: Declare ia64_section_threshold.
2953         (PREDICATE_CODES): Delete.
2954
2955 2004-08-12  Richard Henderson  <rth@redhat.com>
2956
2957         * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
2958         * c-semantics.c (add_stmt): Set it.
2959         * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
2960         before instantiating a variable sized type.
2961
2962 2004-08-12  Richard Henderson  <rth@redhat.com>
2963
2964         * stor-layout.c (round_up, round_down): Move ...
2965         * fold-const.c (round_up, round_down): ... here.  Use
2966         multiple_of_p to avoid any arithmetic at all.
2967
2968 2004-08-12  Richard Henderson  <rth@redhat.com>
2969
2970         * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
2971         (gimplify_init_ctor_preeval_1): New.
2972         (gimplify_init_ctor_preeval): New.
2973         (gimplify_init_ctor_eval): New.
2974         (gimplify_init_constructor): Use them.  Always gimplify the LHS
2975         object first.
2976
2977 2004-08-12  Ziemowit Laski  <zlaski@apple.com>
2978
2979         (This patch is part of merge of objc-improvements-branch
2980         into mainline.)
2981
2982         * doc/frontends.texi: Mention Objective-C++ in addition to
2983         Objective-C.
2984         * doc/install.texi: Add 'obj-c++' to list of configurable
2985         languages.
2986         * doc/invoke.texi: Rename Objective-C option headings to
2987         indicate they also apply to Objective-C++.  List file
2988         extensions for Objective-C++ sources.  Mention that
2989         ObjC and ObjC++ compilations may also use C and C++ options,
2990         respectively.  Point users to doc/standards.texi for
2991         further info on ObjC and ObjC++.
2992         * doc/sourcebuild.texi: Mention the objcp/ directory and
2993         the Objective-C++ sources it contains.
2994         * doc/standards.texi: Update link to Apple ObjC site;
2995         add link to gcc readings.html WWW doc.
2996
2997 2004-08-12  Alan Modra  <amodra@bigpond.net.au>
2998
2999         * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
3000         and 2004-07-14 changes.
3001
3002 2004-08-12  Paul Brook  <paul@codesourcery.com>
3003
3004         * doc/invoke.texi: Fix typo.
3005
3006 2004-08-11 Devang Patel  <dpatel@apple.com>
3007
3008         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
3009         and -no_dead_strip_inits_and_terms.
3010         (LINK_SPEC): Same.
3011         * doc/invoke.texi (Darwin Options): Document -dead_strip and
3012         -no_dead_strip_inits_and_terms.
3013
3014 2004-08-11  Paul Brook  <paul@codesourcery.com>
3015
3016         * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
3017         (arm_load_pic_register): ... to this.
3018         * config/arm/arm.c (arm_finalize_pic): Rename ...
3019         (arm_load_pic_register): ... to this.  Always output insns at the
3020         current location.  Load via low reg in thumb mode.
3021         (arm_expand_prologue): Call arm_load_pic_register.
3022         (thumb_expand_prologue): Ditto.
3023         * config/arm/arm.h (FINALIZE_PIC): Remove.
3024         * config/arm/arm.md (builtin_setjmp_receiver): Call
3025         arm_load_pic_register.
3026
3027 2004-08-11  Paul Brook  <paul@codesourcery.com>
3028
3029         * arm.c (thumb_force_lr_save): Add prototype.
3030         (thumb_compute_save_reg_mask): New function.
3031         (thumb_find_work_register): New function.
3032         (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
3033         (thumb_unexpanded_epilogue): Ditto.  Remove redundant code.
3034         Don't clobber r3 when removing pretend args.
3035         (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
3036         (thumb_output_function_prologue): Use new functions.
3037         (thumb_set_return_address): Use thumb_compute_save_reg_mask.
3038         * arm.h (THUMB_REG_PUSHED_P): Remove.
3039
3040 2004-08-11  James E Wilson  <wilson@specifixinc.com>
3041
3042         PR rtl-optimization/16490
3043         * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
3044         global_live_at_end for new basic block if already set for other blocks.
3045
3046 2004-08-11 David Edelsohn  <edelsohn@gnu.org>
3047
3048         * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
3049
3050         * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
3051         (mfcr rlwinm rlwinm patterns): Set length to 12.
3052
3053 2004-08-11  Andrew MacLeod  <amacleod@redhat.com>
3054
3055         * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
3056         get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
3057         (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
3058         (start_ssa_stmt_operands): Delete.
3059         * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
3060         struct stmt_operands_d.
3061         (build_ssa_operands): New extern entry point.
3062         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
3063         building code, replace with create_ssa_artficial_load_stmt().
3064         * tree-ssa-operands.c (struct voperands_d): Delete.
3065         (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
3066         (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
3067         (free_uses, free_defs, free_vuses, free_v_may_defs,
3068         free_v_must_defs): Remove dealloc parameter.
3069         (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
3070         (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
3071         finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
3072         vector comparisons, ssa_name reuse, and allocations here.
3073         (verify_start_operands): Delete.
3074         (finalize_ssa_stmt_operands): Set new operands by calling finalize
3075         routines.
3076         (start_ssa_stmt_operands): Move from tree-flow-inline.h.
3077         (append_def, append_usei): Simplify to simple accumulation.
3078         (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
3079         duplicates and simple accumulation.
3080         (free_ssa_operands): Free vectors in a stmt_operand structure.
3081         (build_ssa_operands): New. Create a new stmt_operand structure from
3082         a stmt and an old set of stmt_operands.
3083         (get_stmt_operands): Simplify and call build_ssa_operands.
3084         (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
3085         get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
3086         add_call_read_ops): Don't pass prev_vops around anymore.
3087         (note_addressable): Return if no stmt annotation.
3088         (copy_virtual_operands): Access v_may_def operands through a struct.
3089         (create_ssa_artficial_load_stmt): New.  Create a load stmt for DOM's
3090         hash tables without treating the stmt as a real stmt.
3091         * tree-ssa-operands.h (struct v_may_def_operand_type): New.  Access
3092         v_may_def def and use through a struct instead of 2 array elements.
3093         (struct v_may_def_optype_d): Use v_may_def_operand_type.
3094         (struct stmt_operands_d): New.  Struct for storing all operand vectors.
3095
3096 2004-08-11  Nick Clifton  <nickc@redhat.com>
3097
3098         * config/arm/arm.c (arm_is_longcall_p): Update comment describing
3099         this funciton's behaviour.  Return true when the current function
3100         has a section attribute and -mlong-calls is in effect.
3101         * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
3102         short-call marker when -mlong-calls is in effect and the function
3103         has a section attribute.
3104
3105 2004-08-10  Zack Weinberg  <zack@codesourcery.com>
3106
3107         * stmt.c (expand_return): If asked to return the RESULT_DECL,
3108         just call expand_value_return on result_rtl.
3109
3110 2004-08-10  Richard Henderson  <rth@redhat.com>
3111
3112         * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
3113         * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
3114         * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
3115         (add_location_or_const_value_attribute): ... not here.  Use
3116         loc_descriptor_from_tree if possible.
3117         (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
3118         Simplify address handling.  Handle DECL_VALUE_EXPR.  Handle register
3119         values specially.
3120         (loc_descriptor_from_tree): New.  Update callers.
3121         * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
3122         * gimplify.c (gimplify_decl_expr): Lower variable sized types to
3123         pointer plus dereference.  Set DECL_VALUE_EXPR.  Set save_stack.
3124         (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
3125         and BUILT_IN_STACK_RESTORE.
3126         (gimplify_expr): Lower DECL_VALUE_EXPR decls.
3127         * stmt.c (expand_stack_alloc): Remove.
3128         * tree-mudflap.c (mx_register_decls): Don't look for
3129         BUILT_IN_STACK_ALLOC.
3130         * tree-nested.c (convert_local_reference): Likewise.
3131         * tree.h (DECL_VALUE_EXPR): New.
3132
3133 2004-08-10  Richard Henderson  <rth@redhat.com>
3134
3135         * stor-layout.c (round_up): Check for 0/1 before dividing.
3136         (round_down): Likewise.
3137
3138         * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
3139
3140 2004-08-09  Mark Mitchell  <mark@codesourcery.com>
3141
3142         * config.gcc (arm*-*-eabi*): New target.
3143         * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
3144         (TARGET_LIB_INT_CMP_BIASED): Likewise.
3145         * expmed.c (expand_divmod): Try a two-valued divmod function as a
3146         last resort.
3147         * gthr.h: Remove bogus tokens at end of #pragma.
3148         * optabs.c (expand_twoval_binop_libfunc): New function.
3149         (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
3150         (prepare_float_lib_cmp): Try reversing the condition.
3151         (debug_optab_libfuncs): New function.
3152         * optabs.h (expand_twoval_binop_libfunc): Declare.
3153         * config/arm/arm.c (arm_init_libfuncs): New function.
3154         (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
3155         (TARGET_INIT_LIBFUNCS): Define it.
3156         * config/arm/arm.h (TARGET_BPABI): New macro.
3157         * config/arm/arm-protos.h
3158         (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
3159         * config/arm/bpabi.S: New file.
3160         * config/arm/bpabi.c: Likewise.
3161         * config/arm/bpabi.h: Likewise.
3162         * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
3163         (__aeabi_drsub): Likewise.
3164         (__aeabi_dsub): Likewise.
3165         (__aeabi_dadd): Likewise.
3166         (__aeabi_ui2d): Likewise.
3167         (__aeabi_i2d): Likewise.
3168         (__aeabi_f2d): Likewise.
3169         (__aeabi_dmul): Likewise.
3170         (__aeabi_ddiv): Likewise.
3171         (__aeabi_cdrcmple): Likewise.
3172         (__aeabi_cdcmpeq): Likewise.
3173         (__aeabi_cdcmple): Likewise.
3174         (__aeabi_dcmpeq): Likewise.
3175         (__aeabi_dcmplt): Likewise.
3176         (__aeabi_dcmple): Likewise.
3177         (__aeabi_dcmpge): Likewise.
3178         (__aeabi_dcmpgt): Likewise.
3179         (__aeabi_dcmpun): Likewise.
3180         (__aeabi_d2iz): Likewise.
3181         (__aeabi_d2uiz): Likewise.
3182         (__aeabi_d2f): Likewise.
3183         * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
3184         (__aeabi_frsub): Likewise.
3185         (__aeabi_fsub): Likewise.
3186         (__aeabi_fadd): Likewise.
3187         (__aeabi_ui2f): Likewise.
3188         (__aeabi_i2f): Likewise.
3189         (__aeabi_fmul): Likewise.
3190         (__aeabi_fdiv): Likewise.
3191         (__aeabi_cfrcmple): Likewise.
3192         (__aeabi_cfcmpeq): Likewise.
3193         (__aeabi_cfcmple): Likewise.
3194         (__aeabi_fcmpeq): Likewise.
3195         (__aeabi_fcmplt): Likewise.
3196         (__aeabi_fcmple): Likewise.
3197         (__aeabi_fcmpge): Likewise.
3198         (__aeabi_fcmpgt): Likewise.
3199         (__aeabi_fcmpun): Likewise.
3200         (__aeabi_f2iz): Likewise.
3201         (__aeabi_f2uiz): Likewise.
3202         * config/arm/lib1funcs.asm (ARM_CALL): New macro.
3203         (__aeabi_uidivmod): New function or alias.
3204         (__aeabi_idivmod): Likewise.
3205         (__aeabi_idiv0): Likewise.
3206         (__aeabi_ldiv0): Likewise.
3207         (__aeabi_llsr): Likewise.
3208         (__aeabi_lasr): Likewise.
3209         (__aeabi_llsl): Likewise.
3210         (bpabi.S): Include it.
3211         * config/arm/libgcc-bpabi.ver: New file.
3212         * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
3213         (LINK_SPEC): Remove.
3214         * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
3215         __aeabi_ulcmp.
3216         * config/arm/t-bpabi: New file.
3217         * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
3218         (TARGET_LIB_INT_CMP_BIASED): Likewise.
3219
3220 2004-08-10  David Edelsohn  <edelsohn@gnu.org>
3221
3222         * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
3223         * config/rs6000/rs6000.md (clrmemsi): New pattern.
3224         * config/rs6000/rs6000.c (expand_block_clear): New function.
3225         (expand_block_move): Convert alignment to bits.  Use SImode and
3226         HImode for unaligned addresses if not STRICT_ALIGNMENT.
3227
3228 2004-08-10  Caroline Tice  <ctice@apple.com>
3229
3230         * varasm.c (unlikely_section_label): New global variable.
3231         (unlikely_text_section_name): New global variable.
3232         (text_section):  Remove alignment statement.
3233         (unlikely_text_section): Remove alignment statement; use
3234         unlikely_section_label rather than hard-coded string.
3235         (assemble_start_function): Initialize unlikely_section_label and
3236         unlikely_text_section_name;  make sure cold section is properly
3237         aligned at start of function; output unlikely_section_label if
3238         appropriate.
3239
3240 2004-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
3241
3242         * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
3243         * config/s390/s390.c (s390_canonicalize_comparison): New function.
3244         * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
3245         * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
3246         "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
3247         ("*tmqi_mem"): Remove SUBREG from pattern.
3248         ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
3249         ("*andsi3_cconly"): Likewise.
3250
3251 2004-08-10  H.J. Lu  <hongjiu.lu@intel.com>
3252
3253         PR target/16909
3254         * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
3255
3256 2004-08-10  Janis Johnson  <janis187@us.ibm.com>
3257
3258         * doc/sourcebuild.texi (compat testing): Document available test
3259         framework commands.  Use the preferred spelling of DejaGnu.
3260
3261 2004-08-10  Daniel Berlin <dberlin@dberlin.org>
3262
3263         * lambda.h: Add matrix type, and prototypes for remainder of
3264         matrix and vector functions.
3265         (lambda_vector_mult_const): New function.
3266         (lambda_vector_negate): Ditto.
3267         (lambda_vector_add): Ditto.
3268         (lambda_vector_add_mc): Ditto.
3269         (lambda_vector_copy): Ditto.
3270         (lambda_vector_zerop): Ditto.
3271         (lambda_vector_equal): Ditto.
3272         (lambda_vector_min_nz): Ditto.
3273         (lambda_vector_first_nz): Ditto.
3274         (lambda_vector_matrix_mult): Ditto.
3275         * lambda-mat.c: New file.
3276         * Makefile.in (lambda-mat.o): New.
3277
3278 2004-08-10  Andrew MacLeod  <amacleod@redhat.com>
3279
3280         * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
3281         after linking stmt into the program.
3282         (bsi_remove): Don't call modify_stmt.
3283         * tree-complex.c (update_complex_assignment,
3284         expand_complex_comparison): Call modify_stmt after changing the stmt.
3285         * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
3286         removing the stmt.
3287         * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
3288         the stmt, and only if needed.
3289         * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
3290         expression.
3291         (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
3292         (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
3293         (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
3294         (eliminate_redundant_computations): Don't pass an annotation. Call
3295         modify_stmt rather than setting the annotation directly.
3296         (record_equivalences_from_stmt): Remove unused local 'j'.
3297         (cprop_operand): Take a stmt rather than an annotation as a parameter.
3298         Call modify_stmt.
3299         (cprop_into_stmt): Pass stmt rather than annotation.
3300         (update_rhs_and_lookup_avail_expr): Call modify_stmt.
3301         * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
3302         modify_stmt.
3303         * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
3304
3305 2004-08-10  Jason Merrill  <jason@redhat.com>
3306
3307         PR middle-end/16948
3308         * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
3309         the RESULT_DECL.
3310
3311 2004-08-10  Geoffrey Keating  <geoffk@apple.com>
3312
3313         * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
3314         hash function.
3315
3316 2004-08-10  Roger Sayle  <roger@eyesopen.com>
3317
3318         * config/mips/mips.md: New reciprocal square root patterns that
3319         match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
3320
3321 2004-08-10  Paul Brook  <paul@codesourcery.com>
3322
3323         * config/arm/arm-protos.h (arm_set_return_address,
3324         thumb_set_return_address): Add prototypes.
3325         * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
3326         * config/arm/arm.c (arm_compute_func_type,
3327         use_return_insn, arm_compute_save_reg0_reg12_mask,
3328         arm_compute_save_reg_mask, arm_output_function_prologue,
3329         arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
3330         current_function_calls_eh_return.
3331         (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
3332         old eh code.
3333         (arm_set_return_address, thumb_set_return_address): New functions.
3334         * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
3335         ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
3336         * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
3337         (epilogue): Use the stackadj register.
3338         (eh_return, arm_eh_return, thumb_eh_return): New pattern.
3339
3340 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
3341
3342         PR target/3144
3343         * expr.c (move_by_pieces_ninsns): Add max_size argument.
3344         (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
3345         (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
3346         (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
3347         but using MOVE_RATIO.
3348         (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
3349         (can_store_by_pieces): Change max_size type to unsigned int.
3350         (store_by_pieces_1): Likewise.  Pass max_size to
3351         m