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