1 2005-04-08 Mike Stump <mrs@apple.com>
3 * config/darwin.c (indirect_data): Fix typo in strncmp logic.
5 2005-04-08 Kazu Hirata <kazu@cs.umass.edu>
7 * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove.
9 * function.c (push_function_context_to): Don't set
11 * function.h (function): Remove contains_functions.
12 (current_function_contains_functions): Remove.
14 * function.h (function): Remove instrument_entry_exit.
15 (current_function_instrument_entry_exit): Remove.
17 * function.h (nonlocal_labels): Remove.
19 * tree.h (STRIP_MAIN_TYPE_NOPS): Remove.
21 * genattrtab.c (attr_desc): Remove negative_ok and unsigned_p.
22 (check_attr_value, write_attr_get, write_expr_attr_cache,
23 find_attr, make_internal_attr): Don't reference negative_ok or
25 * genattrtab.h (ATTR_NEGATIVE_OK, ATTR_UNSIGNED,
26 ATTR_FUNC_UNITS, ATTR_BLOCKAGE): Remove.
27 (ATTR_STATIC): Adjust the value.
29 * c-common.h (C_ARTIFICIAL_STRING_P): Remove.
31 2005-04-08 Ulrich Weigand <uweigand@de.ibm.com>
33 * config/s390/tpf.h (ASM_SPEC): Define.
35 2005-04-08 Kazu Hirata <kazu@cs.umass.edu>
37 * tree-flow.h: Remove the prototype for
38 redirect_immediate_uses.
39 (TDFA_USE_OPS, TDFA_USE_VOPS): Remove.
41 2005-04-08 Richard Earnshaw <richard.earnshaw@arm.com>
43 * arm.c (arm_const_double_by_parts): New function.
44 * arm-protos.h (arm_const_double_by_parts): Add prototype.
45 * arm.md (define_split for 64-bit constants): Add another one.
47 2005-04-08 Andrew MacLeod <amacleod@redhat.com>
49 * tree-ssa-operands.c (correct_use_link): Remove linear scan.
51 2005-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
53 * system.h: Revert last change.
55 2005-04-08 Richard Sandiford <rsandifo@redhat.com>
57 * config/xtensa/xtensa.h (target_flags, MASK_NO_FUSED_MADD)
58 (MASK_CONST16, TARGET_NO_FUSED_MADD, TARGET_CONST16)
59 (TARGET_SWITCHES): Delete.
60 * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
61 * config/xtensa/xtensa.md (muladdsf3, mulsubsf3): Check
62 TARGET_FUSED_MADD instead of !TARGET_NO_FUSED_MADD.
63 * config/xtensa/xtensa.opt: New file.
65 2005-04-08 Ben Elliston <bje@au.ibm.com>
67 * config/fp-bit.c: Include L_mul_tf in #endif comment.
68 * config/fp-bit.h: Tidy comments.
70 2005-04-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
72 * system.h: Poison PARAMS.
74 2005-04-07 Richard Sandiford <rsandifo@redhat.com>
76 * config/vax/vax.h (target_flags, MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
77 (MASK_G_FLOAT, TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT)
78 (TARGET_SWITCHES): Delete.
79 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
80 * config/vax/vax.opt: New file.
82 2005-04-07 Daniel Berlin <dberlin@dberlin.org>
84 * tree-ssa-dse.c (dse_optimize_stmt): Fix incorrect comment.
86 2005-04-07 Ian Lance Taylor <ian@airs.com>
88 * config/iq2000/iq2000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Don't
90 * config/mips/mips.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
91 * config/sparc/sparc.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE):
94 2005-04-07 Kazu Hirata <kazu@cs.umass.edu>
96 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Consider
97 all immediate uses in PHI nodes.
99 2005-04-07 Richard Earnshaw <richard.earnshaw@arm.com>
101 * arm.c (arm_const_double_inline_cost): Handle any constant by
102 using gen_lowpart and gen_highpart_mode.
103 (note_invalid_constants): All constants in an RTX with a constraint
104 that permits memory are now pushed to the constant pool.
105 (output_move_double): Delete code to handle reg to reg and
106 constant to reg moves.
107 (const_double_needs_minipool, output_mov_immediate): Delete.
108 * arm.h (EXTRA_CONSTRAINT_STR_ARM): All 'D' variants now handle
109 CONST_INT and CONST_VECTOR.
110 * arm.md (ANY64): New mode macro.
111 (arm_movdi): Split reg-reg and const-reg moves. Simplify constraints.
112 (movdf_soft_insn): Split reg-reg and const-reg moves.
113 (split patterns for 64-bit constant and register moves): New.
114 * cirrus.md (cirrus_arm_movdi): Split reg-reg and const-reg moves.
115 (cirrus_movdf_hard_insn): Likewise.
116 * fpa.md (movdf_fpa): Likewise.
117 * iwmmxt.md (iwmmxt_arm_movdi): Likewise.
118 (movv8qi_internal, movv4hi_internal, movv2si_internal): Fix
120 (movv2si_internal_2): Likewise.
121 * vfp.md (arm_movdi_vfp): Split reg-reg and const-reg moves.
122 (movdf_vfp): Likewise.
123 * arm-protos.h (output_mov_immediate): Delete prototype.
125 2005-04-07 Joseph S. Myers <joseph@codesourcery.com>
128 * simplify-rtx.c (simplify_unary_operation_1): Check
129 SUBREG_PROMOTED_UNSIGNED_P (op) > 0 for zero-extension.
131 2005-04-06 James E Wilson <wilson@specifixinc.com>
134 * cgraphunit.c (record_call_1, case FDESC_EXPR): Handle same as
137 2004-04-06 Richard Sandiford <rsandifo@redhat.com>
139 * coverage.h (GCOV_TYPE_NODE): Delete.
140 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref)
141 (build_ctr_info_type): Use get_gcov_type () instead of GCOV_TYPE_NODE.
142 * tree-profile.c (tree_gen_edge_profiler, tree_gen_interval_profiler)
143 (tree_gen_pow2_profiler, tree_gen_one_value_profiler): Likewise.
144 * value-prof.c (tree_divmod_fixed_value_transform): Delete.
146 2004-04-06 Richard Sandiford <rsandifo@redhat.com>
149 * Makefile.in (gcc.pot): Remove options.c dependency.
150 * optc-gen.awk: Don't quote help strings with N_().
152 2005-04-06 James A. Morrison <phython@gcc.gnu.org>
154 * c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if
155 the function returns a pointer type.
157 2005-04-06 Daniel Berlin <dberlin@dberlin.org>
159 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): New
160 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): New
161 * doc/invoke.texi: Documnet salias-max-implicit-fields.
162 * tree-ssa-alias.c (struct used_part): Add implicit_uses and
163 explicit_uses members.
164 (get_or_create_used_part_for): Initialize new fields.
165 (fieldoff_compare): New function.
166 (create_overlap_variables_for): Count number of fields, use
167 heuristic to determine whether to create subvars for vars with
169 Sort the field list by offset and avoid creating duplicate SFT's.
171 2005-04-06 Richard Sandiford <rsandifo@redhat.com>
173 * c.opt (-F): Remove trailing whitespace from help string.
174 (-finput-charset): Use a tab to separate the switch name and help
176 * common.opt (-fsched-stalled-insns, -fsched-stalled-insns-dep)
177 (-ftree-vectorizer-verbose): Likewise.
179 2005-04-06 Kazu Hirata <kazu@cs.umass.edu>
181 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Look at
182 a PHI argument where a use occurs instead of all PHI arguments.
184 2005-04-06 Joseph S. Myers <joseph@codesourcery.com>
186 * c-decl.c (finish_decl): Apply pending #pragma weak regardless of
189 2005-04-06 Kazu Hirata <kazu@cs.umass.edu>
191 * cse.c, tree-flow-inline.h, tree-flow.h, tree-ssa-operands.c,
192 tree-ssa-sink.c, tree.h, config/bfin/bfin.c,
193 config/bfin/bfin.h: Fix comment typos.
195 2005-04-06 Ranjit Mathew <rmathew@hotmail.com>
197 * doc/install.texi: Update the URL for Jacks.
198 * doc/sourcebuild.texi: Likewise.
200 2005-04-06 Eric Botcazou <ebotcazou@libertysurf.fr>
203 * config/sparc/sparc.c (legitimate_address_p): Remove 'imm2'.
204 Revert 2004-10-08 patch. Reject TFmode LO_SUM in 32-bit mode.
206 2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
208 * Makefile.in (LIBGCC2_CFLAGS): Revert -pipe change.
210 2005-04-06 Richard Sandiford <rsandifo@redhat.com>
212 * config/v850/v850-protos.h (override_options): Delete.
213 * config/v850/v850.h (target_flags, MASK_GHS, MASK_LONG_CALLS, MASK_EP)
214 (MASK_PROLOG_FUNCTION, MASK_DEBUG, MASK_V850, MASK_V850E)
215 (MASK_SMALL_SLD, MASK_BIG_SWITCH, MASK_NO_APP_REGS, MASK_DISABLE_CALLT)
216 (MASK_STRICT_ALIGN, MASK_US_BIT_SET, MASK_US_MASK_SET, TARGET_GHS)
217 (TARGET_LONG_CALLS, TARGET_EP, TARGET_PROLOG_FUNCTION, TARGET_V850)
218 (TARGET_BIG_SWITCH, TARGET_DEBUG, TARGET_V850E, TARGET_US_BIT_SET)
219 (TARGET_SMALL_SLD, TARGET_DISABLE_CALLT, TARGET_NO_APP_REGS)
220 (TARGET_STRICT_ALIGN, TARGET_SWITCHES, TARGET_OPTIONS)
221 (OVERRIDE_OPTIONS): Delete.
222 (MASK_CPU): Redefine as MASK_V850 | MASK_V850E.
223 (small_memory_info): Remove the value field.
224 (CONDITIONAL_REGISTER_USAGE): Check !TARGET_APP_REGS rather than
226 * config/v850/v850.c (small_memory): Remove the value field.
227 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
228 (override_options): Delete.
229 (v850_handle_memory_option, v850_handle_option): New functions.
230 * config/v850/v850.opt: New file.
232 2005-04-06 Geoffrey Keating <geoffk@apple.com>
234 * config.host: Add a section for generic hosts, and a subsection
235 for Darwin. Add a case for x86-darwin. Update ppc-darwin case.
236 * config/host-darwin.c: New, split out of config/rs6000/host-darwin.c.
237 * config/host-darwin.h: New.
238 * config/x-darwin: New.
239 * config/i386/host-i386-darwin.c: New.
240 * config/i386/x-darwin: New.
241 * config/rs6000/host-darwin.c: Include host-darwin.h.
242 (darwin_rs6000_gt_pch_get_address): Move to config/host-darwin.c.
243 (darwin_rs6000_gt_pch_use_address): Likewise.
244 * config/rs6000/x-darwin: Change name of .o built, update
245 dependencies for changes to rs6000/host-darwin.c.
247 2005-04-06 Ralf Corsepius <ralf.corsepius@rtems.org>
250 * config/c4x/c4x.h (ASM_PROG, LD_PROG): Remove.
252 2005-04-06 Dorit Naishlos <dorit@il.ibm.com>
254 * tree-vect-analyze.c (vect_analyze_loop_form): Call
255 split_loop_exit_edge instead of loop_split_edge_with.
257 2005-04-06 Paolo Bonzini <bonzini@gnu.org>
259 * config/rs6000/altivec.md (UNSPEC_VSLW, UNSPEC_SUBS,
260 UNSPEC_SET_VSCR): New constants, used throughout.
262 (altivec_vspltisb, altivec_vsplitish, altivec_vsplitisw):
264 (altivec_vspltis<VI_char>): ... this pattern, using
265 a QImode const_int_operand for the immediate.
266 (abs<mode>2, absv4sf2, altivec_abss_<mode>): Rewrite as
269 2005-04-06 Ralf Corsepius <ralf.corsepius@rtems.org>
272 * config/avr/t-avr (AR_FOR_TARGET,RANLIB_FOR_TARGET): Remove.
274 2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
276 * Makefile.in (LIBGCC2_CFLAGS): Compile with -pipe.
278 2005-04-06 Ben Elliston <bje@au.ibm.com>
280 * gcc.c: Correct comment about DEFAULT_SWITCH_TAKES_ARG and
281 DEFAULT_WORD_SWITCH_TAKES_ARG which incorrectly reported these
282 macros as living in "this file" and not gcc.h.
284 2005-04-06 Ben Elliston <bje@au.ibm.com>
286 * doc/invoke.texi (Optimize Options): Mention -ftree-lrs, not
287 -ftree-live_range_split. Perhaps renamed at some point?
289 2005-04-06 Zdenek Dvorak <dvorakz@suse.cz>
292 * tree-ssa-loop-ivopts.c (generic_type_for): New function.
293 (add_candidate_1): Use generic_type_for instead of unsigned_type_for.
295 2005-04-06 Zdenek Dvorak <dvorakz@suse.cz>
297 * tree-flow.h (number_of_iterations_cond): Declaration removed.
298 * tree-ssa-loop-niter.c (number_of_iterations_cond): Made static.
299 (number_of_iterations_special): New function.
300 (number_of_iterations_exit): Use number_of_iterations_special.
301 Use simplify_using_outer_evolutions only at -O3.
302 (number_of_iterations_cond, tree_simplify_using_condition,
303 simplify_using_initial_conditions, loop_niter_by_eval,
304 compare_trees, can_count_iv_in_wider_type_bound,
305 simplify_using_outer_evolutions): Use fold_build.
307 2005-04-05 Thomas Fitzsimmons <fitzsim@redhat.com>
309 * doc/install.texi (Configuration): Document --with-java-home.
311 2005-04-05 Richard Henderson <rth@redhat.com>
315 * config/i386/i386.c (print_operand): Handle vector zeros.
316 (ix86_split_to_parts): Handle CONST_VECTOR.
317 (ix86_hard_regno_mode_ok): Allow MMX modes in general regs.
318 (ix86_modes_tieable_p): Use ix86_hard_regno_mode_ok to decide
319 what modes to tie for MMX and SSE registers.
320 * config/i386/i386.h (MMX_REG_MODE_P): Remove.
321 * config/i386/i386.md: Extend move 0 -> xor peephole to apply
322 to vector modes as well.
323 * config/i386/predicates.md (const0_operand): Handle VOIDmode
324 properly as an input mode.
326 2005-04-05 Andrew MacLeod <amacleod@redhat.com>
328 * tree-ssa-operands.c (verify_abort): Use %p for pointers.
330 2005-04-05 Andrew MacLeod <amacleod@redhat.com>
332 * tree-pretty-print.c (dump_generic_node): Use %p for pointer.
334 2005-04-05 Jakub Jelinek <jakub@redhat.com>
336 * config/i386/i386.c (init_cumulative_args): For -m32 -mfpmath=sse
337 and local functions, set sse_nregs to 8 and float_in_sse.
338 (function_arg_advance, function_arg): If float_in_sse, pass
339 SFmode and DFmode arguments in SSE registers.
340 * config/i386/i386.h (CUMULATIVE_ARGS): Add float_in_sse field.
342 * config/i386/i386.c (ix86_value_regno): Only optimize local functions
345 2005-04-05 Paolo Bonzini <bonzini@gnu.org>
347 * config/i386/i386-protos.h (ix86_function_value): Accept two
348 arguments, like the target macro.
349 * config/i386/i386.h (FUNCTION_VALUE): Pass both arguments.
350 * config/i386/i386.c (ix86_function_value): Accept the second
351 argument of the target macro.
352 (ix86_function_ok_for_sibcall): Pass a function pointer to
354 (ix86_function_value, ix86_libcall_value) [!TARGET_64BIT]: Adjust
355 call to ix86_value_regno).
356 (ix86_value_regno): Add support for returning floating point values
359 2005-04-05 Jakub Jelinek <jakub@redhat.com>
361 PR tree-optimization/20076
362 * tree-inline.c (inline_forbidden_p_1): Prevent inlining functions
363 that call __builtin_return or __builtin_apply_args.
365 2005-04-05 Andrew MacLeod <amacleod@redhat.com>
367 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use update_stmt.
368 Use immediate use iterator.
369 (stmt_is_bumper_for_loop): Use immediate use iterator.
370 * predict.c (strip_builtin_expect): Use update_stmt.
371 * tree-cfg.c (update_modified_stmts): New. Call update_stmt_if_modified
372 on all elements of a STATEMENT_LIST.
373 (bsi_insert_before, bsi_insert_after): Call update_modified_stmts.
374 (bsi_remove): Remove imm_use links and mark the stmt as modified.
375 (bsi_replace): Mark stmt as modified and the update it.
376 * tree-complex.c (update_complex_assignment): Call mark_stmt_modified.
377 (expand_complex_libcal): Call update_stmt.
378 (expand_complex_comparison): Call mark_stmt_modified.
379 (expand_complex_operations_1): Call update_stmt_if_modified.
380 (expand_vector_operations_1): Call mark_stmt_modified.
381 * tree-dfa.c (compute_immediate_uses, free_df_for_stmt, free_df,
382 compute_immediate_uses_for_phi, compute_immediate_uses_for_stmt,
383 add_immediate_use, redirect_immediate_use,
384 redirect_immediate_uses, dump_immediate_uses, debug_immediate_uses,
385 dump_immediate_uses_for, debug_immediate_uses_for): Delete.
386 (mark_new_vars_to_rename): Call update_stmt.
387 * tree-dump.c (dump_option_value_in): Add "stmtaddr".
388 * tree-flow-inline.h (modify_stmt): Rename to mark_stmt_modified.
390 (unmodify_stmt): Delete.
391 (update_stmt): New. Force an update of a stmt.
392 (update_stmt_if_modified): update a stmt if it is out of date.
393 (get_stmt_operands): Verify stmt is NOT modified.
394 (stmt_modified_p): Update comment.
395 (delink_imm_use): Remove a use node from its immuse list.
396 (link_imm_use_to_list): Link a use node to a specific list.
397 (link_imm_use): Link a node to the correct list.
398 (set_ssa_use_from_ptr): Set a use node to a specific value, and insert
399 it in the correct list, if appropriate.
400 (link_imm_use_stmt): Link a use node, and set the stmt pointer.
401 (relink_imm_use): Link a use node in place of another node in a list.
402 (relink_imm_use_stmt): LInk a node in place of another node, and set
404 (end_safe_imm_use_traverse): New. Terminate a safe immuse iterator.
405 (end_safe_imm_use_p): New. Check for the end of a safe immuse iterator.
406 (first_safe_imm_use): New. Initialize a safe immuse iterator.
407 (next_safe_imm_use): New. Proceed to next safe immuse iterator value.
408 (end_readonly_imm_use_p): New. Check for end of a fast immuse iterator.
409 (first_readonly_imm_use): New. Initialize a fast immuse iterator.
410 (next_readonly_imm_use): New. Get the next fast immuse iterator value.
411 (has_zero_uses): New. Return true if there are no uses of a var.
412 (has_single_use): New. Return true if there is only a single use of a
414 (single_imm_use): New. Return the simgle immediate use.
415 (num_imm_uses): New. Return the number of immediate uses.
416 (get_v_must_def_ops): Use is now a pointer.
417 (use_operand_p, get_v_may_def_op_ptr, get_vuse_op_ptr,
418 get_v_must_def_kill_ptr, get_phi_arg_def_ptr): Return the address of
420 (get_immediate_uses, num_immediate_uses, immediate_use): Delete.
421 (delink_stmt_imm_use): Delink all immuses from a stmt.
422 (phi_arg_index_from_use): New. Return a phi arg index for a use.
423 * tree-flow.h (struct dataflow_d): Delete.
424 (immediate_use_iterator_d): New. Immediate use iterator struct.
425 (FOR_EACH_IMM_USE_FAST): New. Macro for read only immuse iteration.
426 (FOR_EACH_IMM_USE_SAFE): New. Macro for write-safe immuse iteration.
427 (BREAK_FROM_SAFE_IMM_USE): New. Macro for earlyu exit from write-safe
429 (struct stmt_ann_d): Remove dataflow_t from struct.
430 * tree-if-conv.c (tree_if_conversion). Don't call free_df.
431 (if_convertible_phi_p): Use FAST immuse iterator.
432 (if_convertible_loop_p): Don't call compute_immediate_uses.
433 (replace_phi_with_cond_modify_expr): Call update_stmt.
434 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites): Call
435 update_stmt_if_modified.
436 (rewrite_all_into_ssa): Initialize ssa operands.
437 * tree-loop-linear.c (linear_transform_loops): Don't call free_df or
438 compute_immediate_uses.
439 * tree-optimize.c (execute_todo): Call verify_ssa whenever the
440 ssa_property is available.
441 (execute_one_pass): Change parameters passed to execute_todo.
442 * tree-outof-ssa.c (rewrite_trees): Don't call modify_stmt.
443 (remove_ssa_form): Call fini_ssa_operands.
444 (insert_backedge_copies): Delete call to modify_stmt.
445 * tree-phinodes.c (make_phi_node): Initialize use nodes.
446 (release_phi_node): Delink any use nodes before releasing.
447 (resize_phi_node): Relink any use nodes.
448 (remove_phi_arg_num): Delink the use node.
449 (remove_phi_node): Release the ssa_name AFTER releasing the phi node.
450 (remove_all_phi_nodes_for): Release phi node first.
451 * tree-pretty-print.c (dump_generic_node): Print stmt address.
452 * tree-sra.c (mark_all_v_defs): Call update_stmt_if_modified.
453 (scalarize_use, scalarize_copy): Call update_stmt.
454 * tree-ssa-alias.c (compute_may_aliases): Update all modified stmts.
455 (compute_points_to_and_addr_escape): Call mark_stmt_modified.
456 * tree-ssa-cpp.c (need_imm_uses_for): Delete.
457 (ccp_initialize): Remove call to compute_immediate_uses.
458 (substitute_and_fold, execute_fold_all_builtins): Call update_stmt.
459 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update all modified
461 (simplify_cond_and_lookup_avail_expr): Call mark_stmt_modified.
462 (simplify_switch_and_lookup_avail_expr): Call mark_stmt_modified.
463 (eliminate_redundant_computations): Call mark_stmt_modified.
464 (cprop_operand): Call mark_stmt_modified.
465 (optimize_stmt): Call update_stmt_if_modified and mark_stmt_modified.
466 * tree-ssa-dse.c (fix_phi_uses, fix_stmt_v_may_defs): Delete.
467 (dse_optimize_stmt): Use new immuse interface.
468 (tree_ssa_dse): Remove calls to compute_immediate_uses and free_df.
469 * tree-ssa-forwprop.c (need_imm_uses_for): Delete.
470 (substitute_single_use_vars): Use new immuse interface.
471 (tree_ssa_forward_propagate_single_use_vars): Remove calls to free_df
472 and compute_immediate_uses.
473 * tree-ssa-loop-im.c (single_reachable_address): Use new immuse
475 (rewrite_mem_refs): Call update_stmt.
476 (determine_lsm): Remove call to compute_imm_uses and free_df.
477 * tree-ssa-loop-ivcanon.c (create_canonical_iv): Call update_stmt.
478 (try_unroll_loop_completely): Call update_stmt.
479 * tree-ssa-loop-ivopts.c (rewrite_address_base): Call update_stmt.
480 (rewrite_use_compare): Call update_stmt.
481 (compute_phi_arg_on_exit): Insert each stmt before trying to process.
482 (rewrite_use) : Call update_stmt.
483 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Add arg to call.
484 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Call
486 * tree-ssa-operands.c (NULL_USE_OPERAND_P): Remove declaration.
487 (allocate_use_optype, allocate_vuse_optype): Adjust allocation size.
488 (free_uses, free_vuses, free_v_may_defs, free_v_must_defs): Delink
490 (initialize_vuse_operand): New. Initialize a vuse operand.
491 (initialize_v_may_def_operand): New. Initialize a maydef operand.
492 (initialize_v_must_def_operand): New. Initialize a mustdef operand.
493 (finalize_ssa_defs): Use stmt parameter.
494 (correct_use_link): Ensure a use node is in the correct list, and has
495 the correct stmt pointer.
496 (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_vuses,
497 finalize_ssa_v_must_defs): Also initialize use nodes.
498 (finalize_ssa_stmt_operands): Pass extra stmt operands.
499 (build_ssa_operands): Seperate parsing from final operand construction.
500 (parse_ssa_operands): New. Parse entry point for operand building.
501 (swap_tree_operands): New. Swap 2 tree operands.
502 (update_stmt_operands): Ranamed from get_stmt_operands. Always builds
504 (get_expr_operands): Call swap_tree_operands when needed.
505 (copy_virtual_operands): Use initialize routines for virtual use ops.
506 (create_ssa_artficial_load_stmt): Add extra stmt parameter.
507 (verify_abort): New. Issue imm_use error.
508 (verify_imm_links): New Verify imm_use links for a var.
509 (dump_immediate_uses_for): New. Dump imm_uses for a var to file.
510 (dump_immediate_uses): New. Dump imm_uses for all vars to file.
511 (debug_immediate_uses): New. Dump imm_uses for all vars to stderr.
512 (debug_immediate_uses_for): New. Dump imm_uses for a var to stderr.
513 * tree-ssa-operands.h (struct use_operand_ptr): Delete.
514 (NULL_USE_OPERAND_P) Define.
515 (use_optype_d, v_def_use_operand_type, vuse_optype_d): Add immediate
517 (struct vuse_operand_type): New struct.
518 (SET_USE): Call set_ssa_use_from_ptr.
520 (PHI_ARG_INDEX_FROM_USE): Define.
521 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Set the phi
522 argument via SET_USE, not PHI_ARG_DEF_TREE.
523 * tree-ssa-pre.c (eliminate): Call update_stmt.
524 * tree-ssa-propagate.c (cfg_blocks_get): Use imm_use iterators. Don't
526 * tree-ssa-sink.c (all_immediate_uses_same_place): Use imm_use iterator.
527 (nearest_common_dominator_of_uses): Use imm_use iterator.
528 (statement_sink_location): Use imm_use iterator and interface.
529 (execute_sink_code): Don't call compute_immediate_uses or free-df.
530 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis): Use
531 PHI_ARG_DEF, not PHI_ARG_DEF_TREE.
532 * tree-ssa.c (verify_use, verify_phi_args): Verify some imm_use info.
533 (verify_ssa): Ensure no stmt is marked modify after optimization pass
534 if new parameter is true.
535 (init_tree_ssa): Don't initialize operand cache here.
536 (delete_tree_ssa): Don't destroy operand cache here.
537 (propagate_into_addr): Pass in a use pointer, return true if anything
539 (replace_immediate_uses): Use imm_use iterator, call update_stmt.
540 (check_phi_redundancy): Use imm_use iterator.
541 (kill_redundant_phi_nodes): Don't call compute_immediate_uses or
543 * tree-ssanames.c (make_ssa_name): Initialize imm_use node.
544 (release_ssa_name): Delink node and all elements in its imm_use list.
545 * tree-tailcall.c (adjust_return_value): Call update_stmt.
546 * tree-vect-analyze.c (vect_stmt_relevant_p): Use imm_use iterator.
547 * tree-vectorizer.c (need_imm_uses_for): Delete.
548 (vectorize_loops): Dont call compute_immediate_uses or free_df.
549 * tree.h (struct ssa_imm_use_d): Define.
550 (SSA_NAME_IMM_USE_NODE): Define.
551 (struct tree_ssa_name): Add imm_use node.
553 (PHI_ARG_IMM_USE_NODE): Define.
554 (struct phi_arg_d): Add imm_use node.
555 (struct tree_phi_node): Remove struct dataflow_d element.
556 (TDF_STMTADDR): Define.
558 2005-04-05 Dale Johannesen <dalej@apple.com>
560 * doc/invoke.texi (Optimization Options): Remove
561 duplicate -fcse-follow-jumps. Add -fweb.
562 (-ftree-lim): Fix spelling (-ftree-loop-im, invariants).
563 (-fivcanon): Fix spelling (-ftree-loop-ivcanon).
565 2005-04-05 Per Bothner <per@bothner.com>
567 * tree-ssa.c (execute_early_warn_uninitialized): Pass context node
568 to talk_tree as 'data' parameter, rather than EXPR_LOCUS.
569 (warn_uninit): Get EXPR_LOCUS from context now instead.
570 This fixes a USE_MAPPED_LOCATION testsuite failure.
572 * tree-ssa.c (warn_uninitialized_var): Remove useless local.
574 2005-04-05 Per Bothner <per@bothner.com>
576 * c-decl.c (finish_function): If USE_MAPPED_LOCATION set the location
577 of the artification 'return 0' in main() to BUILTINS_LOCATION.
578 * tree-cfg.c (remove_bb): Check that location isn't BUILTINS_LOCATION
581 2004-04-05 Devang Patel <dpatel@apple.com>
583 * config/rs600/altivec.md (altivec_vsr<VI_char>): Rename to ..
584 (lhsr<mode>3): ... new name.
585 (altivec_vsra<VI_char>): Rename to ..
586 (ashr<mode>3): ... new name.
587 * config/rs6000/rs6000.c (builtin_description): Rename shift
590 2004-04-05 Paolo Bonzini <bonzini@gnu.org>
592 * combine.c (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Use
593 gen_lowpart_for_combine.
594 * cse.c (gen_lowpart_if_possible): Move...
595 * rtlhooks.c (gen_lowpart_if_possible): ... here. Also try
597 (gen_lowpart_no_emit_general): Use it.
599 2005-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
601 * config/sparc/sparc.c (TARGET_ASM_FILE_END): Undefine before
604 2005-04-05 Paolo Bonzini <bonzini@gnu.org>
606 * system.h: Fix typo.
608 2005-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
610 * config/bfin/bfin-modes.def: New file.
611 * config/bfin/bfin-protos.h: New file.
612 * config/bfin/bfin.c: New file.
613 * config/bfin/bfin.h: New file.
614 * config/bfin/bfin.md: New file.
615 * config/bfin/bfin.opt: New file.
616 * config/bfin/crti.s: New file.
617 * config/bfin/crtn.s: New file.
618 * config/bfin/elf.h: New file.
619 * config/bfin/lib1funcs.asm: New file.
620 * config/bfin/predicates.md: New file.
621 * config/bfin/t-bfin: New file.
622 * config/bfin/t-bfin-elf: New file.
623 * doc/extend.texi (exception_handler, kspisusp, nesting, nmi_handler):
624 Document new attributes.
625 (interrupt, interrupt_handler, saveall): Update documentation for
627 * doc/install.texi (Specific): Add entry for the Blackfin.
628 * doc/invoke.texi (Blackfin Options): New section.
629 * doc/md.texi (Blackfin family): New section to document constraints.
630 * config.gcc: Add bfin*-* and bfin*-elf configurations.
632 2005-04-05 Olivier Hainque <hainque@adacore.com>
634 * config/mips/iris6.h (DWARF_FRAME_RETURN_COLUMN): Redefine to
635 match what the system unwinder expects.
636 * config/mips/mips.c (mips_frame_set): If we're saving the return
637 address register and the dwarf return address column number differs
638 from the hard register number, adjust the note reg to refer to the
641 2004-04-05 Richard Sandiford <rsandifo@redhat.com>
643 * config/mn10300/mn10300-protos.h (mn10300_override_options): Declare.
644 * config/mn10300/mn10300.h (target_flags, TARGET_MULT_BUG)
645 (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
646 (processor_type): New enum.
647 (mn10300_processor): New variable.
648 (TARGET_AM33, TARGET_AM33_2): Redefine in terms of mn10300_processor.
649 (PROCESSOR_DEFAULT, OVERRIDE_OPTIONS): New macros.
650 * config/mn10300/linux.h (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
651 (PROCESSOR_DEFAULT): New macro.
652 * config/mn10300/mn10300.c (mn10300_processor): New variable.
653 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
654 (mn10300_handle_option, mn10300_override_options): New functions.
655 * config/mn10300/mn10300.opt: New file.
657 2005-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
658 Sebastian Pop <sebastian.pop@cri.ensmp.fr>
660 PR tree-optimization/19903
661 * tree-chrec.c (chrec_convert): Return chrec_dont_know for constants
662 that don't fit in their type after conversion.
664 2005-04-05 Uros Bizjak <uros@kss-loka.si>
667 * config/i386/i386.md (frndintxf2_floor, frndintxf2_ceil)
668 (frndintxf2_trunc, frndintxf2_mask_pm): Add FLAGS_REG clobber.
669 Allocate local stack slots here. Set ix86_optimize_mode_switching.
670 flag here. Implement using define_insn_and_split.
671 (frndintxf2_floor_i387, frndintxf2_ceil_i387, frndintxf2_trunc_i387)
672 (frndintxf2_mask_pm_i387): New insn patterns.
673 (floorsf2, floordf2, floorxf2): Remove local stack slot allocations.
674 Do not set ix86_optimize_mode_switching flag.
675 (ceilsf2, ceildf2, ceilxf2): Same.
676 (btruncsf2, btruncdf2, btruncxf2): Same.
677 (nearbyintsf2, nearbyintdf2, nearbyintxf2): Same.
679 2005-04-05 Ian Lance Taylor <ian@airs.com>
682 * config/i386/cygming.h (ASM_OUTPUT_EXTERNAL): Pass DECL to
683 i386_pe_record_external_function.
684 (i386_pe_record_external_function): Update declaration.
685 * config/i386/winnt.c (struct extern_list): Add decl field.
686 (i386_pe_record_external_function): Add decl parameter.
687 (i386_pe_file_end): Check TREE_ASM_WRITTEN on decl, not
689 * config/i386/i386-protos.h (i386_pe_record_external_function):
692 2005-04-05 Kazu Hirata <kazu@cs.umass.edu>
694 * config/m68k/m68k-protos.h: Add a prototype for
695 valid_dbcc_comparison_p_2.
696 * config/m68k/m68k.c (not_sp_operand, symbolic_operand,
697 extend_operator, const_uint32_operand, const_sint32_operand,
698 general_src_operand, nonimmediate_src_operand,
699 memory_src_operand, post_inc_operand, pre_dec_operand,
700 pcrel_address): Move to predicates to predicates.md.
701 * config/m68k/m68k.h (PREDICATE_CODES): Remove.
702 * config/m68k/m68k.md: Include predicates.md.
703 * config/m68k/predicates.md: New.
705 2005-04-04 Roger Sayle <roger@eyesopen.com>
707 * config/i386/i386.md (*truncdfsf2_i387_1): New pattern.
709 * fold-const.c (maybe_lvalue_p): Delete orphaned comment.
711 2005-04-04 Ian Lance Taylor <ian@airs.com>
713 * c-typeck.c (struct c_switch): Rename switch_stmt field to
715 (c_start_case): Build SWITCH_EXPR, not SWITCH_STMT.
716 (do_case): Use SWITCH_COND rather than SWITCH_STMT_COND.
717 (c_finish_case): Use SWITCH_BODY rather than SWITCH_STMT_BODY.
718 Call c_do_switch_expr_warnings rather than c_do_switch_warnings.
719 * c-common.c (c_do_switch_warnings_1): New static function broken
720 out of c_do_switch_warnings.
721 (c_do_switch_warnings): Call c_do_switch_warnings_1.
722 (c_do_switch_expr_warnings): New function.
723 * c-common.h (c_do_switch_expr_warnings): Declare.
725 2005-04-04 David Edelsohn <edelsohn@gnu.org>
726 Daniel Jacobowitz <dan@codesourcery.com>
728 * tree-eh.c (tree_could_trap_p): Allow non-constant floating point
730 * rtlanal.c (may_trap_p): Same.
732 2005-04-04 Dale Johannesen <dalej@apple.com>
734 * ChangeLog: remove reference to ChangeLog.12.
736 2005-04-05 Hans-Peter Nilsson <hp@axis.com>
738 CRIS epilogue as RTL.
739 * config/cris/cris.md: Change all 0 in unspec 0 to
741 (CRIS_UNSPEC_PLT, CRIS_UNSPEC_FRAME_DEALLOC): New constants.
742 ("*cris_load_multiple", "cris_frame_deallocated_barrier"): New
744 ("return"): Change to define_expand. Call cris_expand_return for
746 ("*return_expanded"): New pattern.
747 ("epilogue"): New define_expand.
748 * config/cris/cris.h (PREDICATE_CODES): Add
749 cris_load_multiple_op.
750 * config/cris/cris.c (ASSERT_PLT_UNSPEC): Correct test for unspec
752 (enum cris_retinsn_type): New.
753 (struct machine_function): New member return_type.
754 (TARGET_ASM_FUNCTION_EPILOGUE): Don't override.
755 (cris_target_asm_function_epilogue): Remove, moving RTLified
757 (cris_expand_epilogue): New function.
758 (cris_reg_saved_in_regsave_area, cris_movem_load_rest_p,
759 (cris_gen_movem_load, cris_load_multiple_op)
760 (cris_return_address_on_stack_for_return, cris_expand_return): New
762 (cris_target_asm_function_prologue)
763 (cris_initial_frame_pointer_offset): Call
764 cris_reg_saved_in_regsave_area instead of complicated expression.
765 Call cris_return_address_on_stack instead of an expression.
766 (cris_print_operand) <case 'o', case 'O'>: New cases.
767 (cris_return_address_on_stack): Change return-type to bool.
768 (cris_simple_epilogue): Ditto. Return false if registers are
770 * config/cris/cris-protos.h (cris_simple_epilogue)
771 (cris_return_address_on_stack): Adjust prototype return type.
772 (cris_gen_movem_load, cris_expand_epilogue, cris_expand_return)
773 (cris_return_address_on_stack_for_return): New prototypes.
775 2005-04-04 Kazu Hirata <kazu@cs.umass.edu>
777 * config/frv/frv.h (PREDICATE_CODES): Add CONST to
778 gpr_or_int12_operand.
780 * config/frv/frv-protos.h: Add a prototype to
781 frv_legitimate_memory_operand and frv_const_unspec_p.
782 (frv_unspec): Move from frv.c.
783 * config/frv/frv.c (frv_unspec): Move to frv-protos.h.
784 (frv_const_unspec_p, frv_legitimate_memory_operand_): Export.
785 (ldd_address_operand, fdpic_fptr_operand, frv_load_operand,
786 gpr_or_fpr_operand, gpr_or_int12_operand,
787 gpr_fpr_or_int12_operand, fpr_or_int6_operand,
788 gpr_or_int10_operand, gpr_or_int_operand, int12_operand,
789 int6_operand, int5_operand, uint5_operand, uint4_operand,
790 uint1_operand, int_2word_operand, uint16_operand,
791 upper_int16_operand, integer_register_operand,
792 gpr_no_subreg_operand, fpr_operand, even_reg_operand,
793 odd_reg_operand, even_gpr_operand, odd_gpr_operand,
794 quad_fpr_operand, even_fpr_operand, odd_fpr_operand,
795 dbl_memory_one_insn_operand, dbl_memory_two_insn_operand,
796 move_destination_operand, movcc_fp_destination_operand,
797 frv_function_symbol_referenced_p, move_source_operand,
798 condexec_dest_operand, condexec_source_operand,
799 reg_or_0_operand, lr_operand, fdpic_operand, got12_operand,
800 const_unspec_operand, gpr_or_memory_operand,
801 gpr_or_memory_operand_with_scratch, fpr_or_memory_operand,
802 icc_operand, fcc_operand, cc_operand, icr_operand,
803 fcr_operand, cr_operand, call_operand, sibcall_operand,
804 symbolic_operand, relational_operator,
805 integer_relational_operator, float_relational_operator,
806 ccr_eqne_operator, minmax_operator,
807 condexec_si_binary_operator, condexec_si_media_operator,
808 condexec_si_divide_operator, condexec_si_unary_operator,
809 condexec_sf_conv_operator, condexec_sf_add_operator,
810 condexec_memory_operand, intop_compare_operator, acc_operand,
811 even_acc_operand, quad_acc_operand, accg_operand: Move to
813 * config/frv/frv.h (PREDICATE_CODES): Remove.
814 * config/frv/frv.md: Include predicates.md.
815 * config/frv/predicates.md: New.
817 2004-04-04 Richard Sandiford <rsandifo@redhat.com>
820 * Makefile.in (tree-ssa-loop-ivopts.o): Depend on langhooks.h.
821 * tree-ssa-loop-ivopts.c: Include langhooks.h.
822 (add_standard_iv_candidates_for_size): New function, extracting code
823 from add_standard_iv_candidates and parameterizing it by type size.
824 (add_standard_iv_candidates): Use add_standard_iv_candidates_for_size.
826 2004-04-04 Richard Sandiford <rsandifo@redhat.com>
828 * system.h (GCOV_SIZE_TYPE): Unposion.
829 * gcov-io.h (GCOV_TYPE_NODE): Delete, replacing with...
830 (GCOV_TYPE_SIZE): ...this new macro.
831 * coverage.h (get_gcov_type, GCOV_TYPE_NODE): Declare.
832 * coverage.c (get_gcov_type, get_gcov_unsigned_t): New functions.
833 (rtl_coverage_counter_ref): Use GCOV_TYPE_SIZE.
834 (build_fn_info_type, build_fn_info_value, build_ctr_info_type)
835 (build_ctr_info_value, build_gcov_info): Use get_gcov_unsigned_t
836 instead of unsigned_intSI_type_node.
837 * rtl-profile.c (rtl_gen_interval_profiler, rtl_gen_pow2_profiler)
838 (rtl_gen_one_value_profiler_no_edge_manipulation)
839 (rtl_gen_const_delta_profiler): Use GCOV_TYPE_SIZE.
840 * value-prof.c: Include coverage.h.
842 2005-04-02 Daniel Berlin <dberlin@dberlin.org>
843 Diego Novillo <dnovillo@redhat.com>
845 Fix PR tree-optimization/20703
846 Fix PR tree-optimization/20725
848 * tree-ssa-pre.c (phi_translate): Handle tcc_comparison.
849 (create_expression_by_pieces): Ditto.
850 (valid_in_set): Ditto. Also handle tcc_declaration.
851 (find_or_generate_expression): Handle comparison class.
852 (insert_into_preds_of_block): Ditto.
854 (create_value_expr_from): Handle comparison class, recursively
855 handle reference nodes.
856 (compute_avail): Handle comparison classes, rewrite a little cleaner.
857 (execute_pre): Fix spacing.
858 (do_fre): Renamed to execute_fre.
860 2005-04-04 Eric Botcazou <ebotcazou@libertysurf.fr>
862 * doc/invoke.texi (SPARC options): Document that
863 -mlittle-endian is not supported on Linux either.
865 2005-04-04 Eric Botcazou <ebotcazou@libertysurf.fr>
869 * config.gcc (Obsolete configurations): Remove
870 sparclite-*-coff*, sparclite-*-elf* and sparc86x-*-elf*.
871 (sparclite-*-coff*): Delete.
872 (sparclite-*-elf*): Likewise.
873 (sparc86x-*-elf*): Likewise.
874 (target_cpu_default) <sparc*-*-*>: Remove sparc86x.
875 * config/sparc/lite.h: Delete.
876 * config/sparc/litecoff.h: Likewise.
877 * config/sparc/liteelf.h: Likewise.
878 * config/sparc/sp86x-elf.h: Likewise.
879 * config/sparc/t-sparclite: Likewise.
880 * config/sparc/t-sp86x: Likewise.
882 2005-04-04 Adrian Straetling <straetling@de.ibm.com>
884 * config/s390/s390-protos.h: (s390_comparison,
885 s390_alc_comparison, s390_slb_comparison, const0_operand,
886 consttable_operand, larl_operand, s_operand,
887 shift_count_operand, bras_sym_operand, load_multiple_operation,
888 store_multiple_operation, s390_plus_operand): Remove prototypes.
889 (s390_legitimate_address_without_index_p): New prototype.
890 * config/s390/s390.c: (SYMBOL_FLAG_ALIGN1, DISP_IN_RANGE): Move
892 (s390_comparison, s390_alc_comparison, s390_slb_comparison,
893 const0_operand, consttable_operand, larl_operand, s_operand,
894 shift_count_operand, bras_sym_operand, load_multiple_operation,
895 store_multiple_operation, s390_plus_operand): Move to
897 (check_mode): Remove.
898 (s390_branch_condition_mask): Remove 'static'. Move prototype to
900 (s390_legitimate_address_without_index_p): New.
901 * config/s390/s390.h (PREDICATE_CODES): Remove.
902 * config/s390/s390.md: Include predicates.md.
903 * config/s390/predicates.md: New.
905 2005-04-04 Eric Botcazou <ebotcazou@libertysurf.fr>
908 * config/sparc/sparc.h (NEED_INDICATE_EXEC_STACK): Define to 0.
909 * config/sparc/linux.h (TARGET_ASM_FILE_END): Delete.
910 (NEED_INDICATE_EXEC_STACK): Define to 1.
911 * config/sparc/linux64.h (TARGET_ASM_FILE_END): Delete.
912 (NEED_INDICATE_EXEC_STACK): Define to 1.
913 * config/sparc/sparc.c (TARGET_ASM_FILE_END): Set to sparc_file_end.
914 (add_pc_to_pic_symbol): Rename into pic_helper_symbol.
915 (add_pc_to_pic_symbol_name): Rename into pic_helper_symbol_name.
916 (pic_helper_emitted_p): New global.
917 (emit_pic_helper): New function extracted from...
918 (load_pic_register): ...here. Add 'delay_pic_helper' parameter.
919 Do not call emit_pic_helper if delay_pic_helper is true.
920 (sparc_expand_prologue): Pass 'false' to load_pic_register.
921 (sparc_output_mi_thunk): Pass 'true' to load_pic_register.
922 (sparc_file_end): New function.
924 2005-04-04 Kazu Hirata <kazu@cs.umass.edu>
926 * config/mcore/mcore-protos.h: Remove the prototypes for
927 mcore_arith_reg_operand, mcore_general_movsrc_operand,
928 mcore_general_movdst_operand, mcore_reload_operand,
929 mcore_arith_J_operand, mcore_arith_K_operand,
930 mcore_arith_K_operand_not_0, mcore_arith_M_operand,
931 mcore_arith_K_S_operand, mcore_arith_imm_operand,
932 mcore_arith_any_imm_operand, mcore_arith_O_operand,
933 mcore_literal_K_operand, mcore_addsub_operand,
934 mcore_compare_operand, mcore_load_multiple_operation,
935 mcore_store_multiple_operation, mcore_call_address_operand.
936 Add a prototype for const_ok_for_mcore.
937 * config/mcore/mcore.c (mcore_call_address_operand,
938 mcore_general_movsrc_operand, mcore_general_movdst_operand,
939 mcore_arith_reg_operand, mcore_reload_operand,
940 mcore_arith_J_operand, mcore_arith_K_operand,
941 mcore_arith_K_operand_not_0, mcore_arith_K_S_operand,
942 mcore_arith_M_operand, mcore_arith_imm_operand,
943 mcore_arith_any_imm_operand, mcore_arith_O_operand,
944 mcore_literal_K_operand, mcore_addsub_operand,
945 mcore_compare_operand, mcore_load_multiple_operation,
946 mcore_store_multiple_operation): Move to predicates.md.
947 (const_ok_for_mcore): Export.
948 * config/mcore/mcore.h (PREDICATE_CODES): Remove.
949 * config/mcore/mcore.md: Include predicates.md.
950 * config/mcore/predicates.md: New.
952 * config/mcore/predicates.md: Fix a comment typo.
954 2005-04-04 Andreas Krebbel <krebbel1@de.ibm.com>
955 Adrian Straetling <straetling@de.ibm.com>
957 * config/s390/2064.md ("z_mul", "z_inf"): New insn reservations.
958 * config/s390/2084.md ("x_mul_hi", "x_mul_sidi", "x_div"): Likewise.
959 * config/s390/s390.md ("imulhi", "imulsi", "imuldi"): Added to "type"
961 ("imul"): Removed from "type" attribute.
962 ("*muldi3_sign", "muldi3"): Changed type to imuldi.
963 ("mulsi3/1", "mulsi3/3", "mulsi/4", "mulsidi3", "umulsidi3"):
964 Changed type to imulsi.
965 ("*mulsi3_sign", "mulsi3/2"): Changed type to imulhi.
967 2005-04-04 Richard Sandiford <rsandifo@redhat.com>
969 * config/mcore/mcore.h (target_flags, HARDLIT_BIT, ALIGN8_BIT, DIV_BIT)
970 (RELAX_IMM_BIT, W_FIELD_BIT, OVERALIGN_FUNC_BIT, CGDATA_BIT)
971 (SLOW_BYTES_BIT, LITTLE_END_BIT, M340_BIT, TARGET_HARDLIT)
972 (TARGET_DIV, TARGET_RELAX_IMM, TARGET_W_FIELD, TARGET_OVERALIGN_FUNC)
973 (TARGET_CG_DATA, TARGET_SLOW_BYTES, TARGET_LITTLE_END, TARGET_M340)
974 (TARGET_SWITCHES, mcore_stack_increment_string)
975 (TARGET_OPTIONS): Delete.
976 (TARGET_DEFAULT, OPTIMIZATION_OPTIONS): Use MASK_* constants rather
977 than *_BIT constants.
978 (TARGET_8ALIGN): #undef old definition before redefining to 1.
979 * config/mcore/mcore.c (mcore_stack_increment_string): Delete.
980 (TARGET_DEFAULT_TARGET_FLAGS): Override default to TARGET_DEFAULT.
981 (mcore_override_options): Delete mcore_stack_increment code.
982 Change use of M340_BIT to MASK_M340.
983 * config/mcore/mcore.opt: New file.
985 2005-04-04 Ian Lance Taylor <ian@airs.com>
987 * config/arm/arm.c (replace_symbols_in_block): Remove static
990 2005-04-04 Kazu Hirata <kazu@cs.umass.edu>
992 * config/fr30/fr30-protos.h: Remove the prototypes for
993 stack_add_operand, add_immediate_operand,
994 high_register_operand, low_register_operand, call_operand,
995 di_operand, and nonimmediate_di_operand.
996 * config/fr30/fr30.c (stack_add_operand,
997 add_immediate_operand, high_register_operand,
998 low_register_operand, call_operand, di_operand,
999 nonimmediate_di_operand): Move to predicates.md.
1000 * config/fr30/fr30.h (PREDICATE_CODES): Remove.
1001 * config/fr30/fr30.md: Include predicates.md.
1002 * config/fr30/predicates.md: New.
1004 * config/mcore/mcore.h (PREDICATE_CODES): Add SYMBOL_REF and
1005 LABEL_REF to mcore_general_movsrc_operand. Add SYMBOL_REF to
1006 mcore_call_address_operand.
1008 * config/sh/sh.h (PREDICATE_CODES): Add CONST to
1009 general_movsrc_operand.
1011 2005-04-04 Alan Modra <amodra@bigpond.net.au>
1013 * passes.c (rest_of_handle_final): NULL unlikely_text_section_name
1016 2005-04-04 Richard Earnshaw <richard.earnshaw@arm.com>
1019 * arm.c (arm_select_cc_mode): Return CC_Zmode when comparing against
1022 2005-04-04 Richard Henderson <rth@redhat.com>
1023 Jakub Jelinek <jakub@redhat.com>
1025 PR rtl-optimization/16104
1026 * fold-const.c (fold_unary): Fix folding of vector conversions.
1028 2005-04-04 Richard Sandiford <rsandifo@redhat.com>
1030 * config.gcc (xstormy16-*-elf): Set extra_options.
1031 * config/stormy16/stormy16.h (target_flags, TARGET_SWITCHES): Delete.
1032 * config/stormy16/stormy16.opt: New file.
1034 2005-04-04 Richard Sandiford <rsandifo@redhat.com>
1036 * config/pdp11/pdp11.h (target_flags, TARGET_SWITCHES, TARGET_DEFAULT)
1037 (TARGET_FPU, TARGET_SOFT_FLOAT, TARGET_AC0, TARGET_NO_AC0, TARGET_45)
1038 (TARGET_BCOPY_BUILTIN, TARGET_INT16, TARGET_INT32, TARGET_FLOAT32)
1039 (TARGET_FLOAT64, TARGET_ABSHI_BUILTIN, TARGET_BRANCH_EXPENSIVE)
1040 (TARGET_BRANCH_CHEAP, TARGET_SPLIT, TARGET_NOSPLIT)
1041 (TARGET_UNIX_ASM): Delete.
1042 (TARGET_40_PLUS): Redefine in terms of TARGET_40 and TARGET_45.
1043 * config/pdp11/2bsd.h (TARGET_UNIX_ASM_DEFAULT): Use MASK_UNIX_ASM.
1044 * config/pdp11/pdp11.c (pdp11_handle_option): New function.
1045 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
1046 * config/pdp11/pdp11.opt: New file.
1048 2005-04-03 Roger Sayle <roger@eyesopen.com>
1049 Alexandre Oliva <aoliva@redhat.com>
1052 * fold-const.c (non_lvalue): Split tests into...
1053 (maybe_lvalue_p): New function.
1054 (fold_cond_expr_with_comparison): Preserve lvalue-ness for the
1055 C++ front-end prior to lowering into gimple form.
1057 2005-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1059 * builtins.def (BUILT_IN_STPNCPY, BUILT_IN_STRCASECMP,
1060 BUILT_IN_STRNCASECMP): New.
1061 * doc/extend.texi: Document stpncpy, strcasecmp, strncasecmp
1064 2005-04-03 Richard Earnshaw <richard.earnshaw@arm.com>
1067 * arm.md (addsi3_compare0_for_combiner): Delete.
1068 (addsi3_compare0_scratch_for_combiner): Delete.
1069 (cmpsi_neg_shiftsi): Delete.
1070 (compare_negsi_si): New pattern.
1071 (cmpsi_negshiftsi_si): New pattern.
1072 (negated_cbranchsi4): Restrict to equality_operator.
1074 * arm.md (movhi_insn_arch4): delete trailing white space from assembler
1077 2005-04-03 Kazu Hirata <kazu@cs.umass.edu>
1079 * cfghooks.c, cfgrtl.c, modulo-sched.c, config/i386/winnt.c:
1082 * doc/install.texi: Fix a typo.
1084 2005-04-03 Steven Bosscher <stevenb@suse.de>
1087 * bb-reorder.c (duplicate_computed_gotos): Do not unfactor
1088 a computed goto if the edge to the computed goto block has
1089 incoming abnormal edges. Clarify how the function works.
1091 2005-04-03 Nathan Sidwell <nathan@codesourcery.com>
1093 * params.c (set_param_value): Use gcc_assert & gcc_unreachable.
1094 * passes.c (open_dump_file, rest_of_handle_final): Likewise.
1095 * postreload-gcse.c (expr_equiv_p, oprs_unchanged_p,
1096 hash_scan_set, reg_set_between_after_reload_p,
1097 reg_used_between_after_reload_p, get_avail_load_store_reg,
1098 eliminate_partially_redundant_load): Likewise.
1099 * postreload.c (reload_cse_simplify_set,
1100 reload_combine_note_use): Likewise.
1101 * predict.c (predict_insn, expected_value_to_br_prob,
1102 propagate_freq, expensive_function_p): Likewise.
1103 * print-rtl.c (print_rtx): Likewise.
1104 * profile.c (instrument_edges, instrument_values,
1105 compute_branch_probabilities, branch_prob, union_groups,
1106 tree_register_profile_hooks, rtl_register_profile_hooks): Likewise.
1107 * protoize.c (in_system_include_dir, file_could_be_converted,
1108 file_normally_convertible, gen_aux_info_file, seek_to_line,
1109 do_cleaning): Likewise.
1110 * tree-ssa-alias.c (collect_points_to_info_r): Likewise.
1111 * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
1112 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
1114 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
1116 * cfg.c (clear_bb_flags): Don't clear BB_DISABLE_SCHEDULE.
1117 * modulo-sched.c (undo_replace_buff_elem): New structure.
1118 (kernel_number_of_cycles, ps_unschedule_node,
1119 undo_generate_reg_moves,free_undo_replace_buff,
1120 undo_permute_partial_schedule, loop_single_full_bb_p,
1121 SIMPLE_SMS_LOOP_P, loop_canon_p, canon_loop,
1122 build_loops_structure, get_sched_window): New.
1123 (generate_reg_moves): Return undo_replace_buff_elem and other
1125 (generate_prolog_epilog): Remove old loop versioning.
1126 (sms_schedule): Use loop information and loop_version.
1127 (sms_schedule_by_order): Split part of it to get_sched_window.
1128 * passes.c (rest_of_handle_sms): call cfg_layout_initialize
1129 cfg_layout_finalize and free_dominance_info before/after SMS.
1131 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
1133 * cfghooks.c (lv_flush_pending_stmts,
1134 cfg_hook_duplicate_loop_to_header_edge, extract_cond_bb_edges,
1135 lv_adjust_loop_header_phi, lv_add_condition_to_bb): New.
1136 * cfghooks.h (cfg_hook_duplicate_loop_to_header_edge,
1137 lv_add_condition_to_bb,
1138 lv_adjust_loop_header_phi, extract_cond_bb_edges,
1139 flush_pending_stmts): New in cfg_hooks structure.
1140 (cfg_hook_duplicate_loop_to_header_edge, lv_flush_pending_stmts,
1141 extract_cond_bb_edges, lv_adjust_loop_header_phi,
1142 lv_add_condition_to_bb): New declarations.
1143 * cfgloop.h (duplicate_loop_to_header_edge): Change return type to
1145 (loop_version): Declare.
1146 * cfgloopmanip.c (cfghooks.h): Include.
1147 (duplicate_loop_to_header_edge): Change return type to bool.
1148 (loop_version, lv_adjust_loop_entry_edge): Move here.
1149 * cfgrtl.c (cfgloop.h): Include.
1150 (rtl_verify_flow_info_1): Fix.
1151 (rtl_lv_add_condition_to_bb, rtl_extract_cond_bb_edges): New.
1152 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add hooks to
1154 * tree-cfg.c (tree_lv_adjust_loop_header_phi,
1155 tree_lv_add_condition_to_bb): New.
1156 (tree_cfg_hooks): Add new hooks to initialization.
1157 * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi,
1158 lv_adjust_loop_entry_edge, tree_ssa_loop_version): Remove.
1160 2005-04-03 Kazu Hirata <kazu@cs.umass.edu>
1162 * config/stormy16/stormy16.h (PREDICATE_CODES): Add SUBREG to
1163 xstormy16_below100_or_register,
1164 xstormy16_splittable_below100_or_register, and
1165 nonimmediate_nonstack_operand.
1167 * config/stormy16/stormy16-protos.h: Remove the prototypes for
1168 xstormy16_ineqsi_operator, equality_operator,
1169 inequality_operator, shift_operator,
1170 xstormy16_below100_operand, xstormy16_below100_or_register,
1171 xstormy16_splittable_below100_or_register,
1172 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand.
1173 * config/stormy16/stormy16.c (xstormy16_ineqsi_operator,
1174 equality_operator, inequality_operator,
1175 xstormy16_below100_operand, xstormy16_below100_or_register,
1176 xstormy16_splittable_below100_or_register,
1177 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand,
1178 nonimmediate_nonstack_operand, shift_operator): Move to
1180 * config/stormy16/stormy16.h (PREDICATE_CODES): Remove.
1181 * config/stormy16/stormy16.md: Include predicates.md.
1182 * config/stormy16/predicates.md: New.
1184 2005-04-02 Kazu Hirata <kazu@cs.umass.edu>
1186 * config/iq2000/iq2000.c (uns_arith_operand, arith_operand,
1187 small_int, large_int, reg_or_0_operand, simple_memory_operand,
1188 equality_op, cmp_op, pc_or_label_operand, call_insn_operand,
1189 move_operand, power_of_2_operand): Move to predicates.md.
1190 * config/iq2000/iq2000.h (SPECIAL_MODE_PREDICATES,
1191 PREDICATE_CODE): Remove.
1192 * config/iq2000/iq2000.md: Include predicates.md.
1193 * config/iq2000/predicates.md: New.
1195 2005-04-02 Richard Sandiford <rsandifo@redhat.com>
1197 * config/m68hc11/m68hc11.h (target_flags, MASK_SHORT)
1198 (MASK_AUTO_INC_DEC, MASK_M6811, MASK_M6812, MASK_M68S12)
1199 (MASK_NO_DIRECT_MODE, MASK_MIN_MAX, MASK_LONG_CALLS)
1200 (TARGET_SHORT, TARGET_M6811, TARGET_M6812, TARGET_M68S12)
1201 (TARGET_AUTO_INC_DEC, TARGET_MIN_MAX, TARGET_NO_DIRECT_MODE)
1202 (TARGET_LONG_CALLS, TARGET_SWITCHES, TARGET_OPTIONS)
1203 (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS, m68hc11_regparm_string)
1204 (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
1205 (TARGET_M68HC11): Delete.
1206 (TARGET_DEFAULT): Change the default setting from MASK_M6811 to 0.
1207 * config/m68hc11/m68hc12.h (TARGET_M68HC12): Delete.
1208 * config/m68hc11/m68hc11.c (m68hc11_regparm_string)
1209 (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
1210 (nb_soft_regs): Delete.
1211 (TARGET_DEFAULT_TARGET_FLAGS): Override default with TARGET_DEFAULT.
1212 (m68hc11_override_options): Remove the code that caters for MASK_M6811
1213 and MASK_M6812 being set simultaneously. Change the code that sets
1214 the default m68hc11_soft_reg_count to use integers instead of strings.
1215 (m68hc11_conditional_register_usage, hard_regno_mode_ok): Use
1216 m68hc11_soft_reg_count (which now has an int type) as the number
1218 * config/m68hc11/m68hc11.opt: New file.
1220 2005-04-02 Kazu Hirata <kazu@cs.umass.edu>
1222 * config/fr30/fr30.h (PREDICATE_CODES): Remove
1223 fp_displacement_operand, sp_displacement_operand.
1225 * config/m68hc11/m68hc11-protos.h: Add a prototype for
1227 Remove the prototypes for tst_operand, cmp_operand,
1228 stack_register_operand, d_register_operand,
1229 hard_addr_reg_operand, splitable_operand,
1230 m68hc11_logical_operator, m68hc11_arith_operator,
1231 m68hc11_non_shift_operator, m68hc11_shift_operator,
1232 m68hc11_unary_operator, m68hc11_eq_compare_operator,
1233 non_push_operand, hard_reg_operand, and
1234 reg_or_some_mem_operand.
1235 * config/m68hc11/m68hc11.c (m68hcc_auto_inc_p): Make it
1237 (tst_operand, cmp_operand, non_push_operand,
1238 splitable_operand, reg_or_some_mem_operand,
1239 stack_register_operand, d_register_operand,
1240 hard_addr_reg_operand, hard_reg_operand,
1241 m68hc11_eq_compare_operator, m68hc11_logical_operator,
1242 m68hc11_arith_operator, m68hc11_non_shift_operator,
1243 m68hc11_shift_operator, m68hc11_unary_operator): Move to
1245 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Remove.
1246 * config/m68hc11/m68hc11.md: Include predicates.md.
1247 * config/m68hc11/predicates.md: New.
1249 2005-04-02 Alexandre Oliva <aoliva@redhat.com>
1252 * dwarf2out.c (add_abstract_origin_attribute): Revert accidental
1253 change checked in along with 2005-03-03's patch for debug/20253.
1254 * tree-inline.c (remap_type): Remap TYPE_STUB_DECL.
1255 (remap_decl): Insert type decl in map earlier.
1257 2005-04-02 Alexandre Oliva <aoliva@redhat.com>
1259 PR tree-optimization/20640
1260 * tree-ssa-dce.c (remove_dead_stmt): Don't redirect edge to
1261 post-dominator if it has phi nodes.
1262 (eliminate_unnecessary_stmts): Remove dead phis in all blocks
1263 before dead statements.
1265 2005-04-02 Alexandre Oliva <aoliva@redhat.com>
1268 * final.c (alter_subreg): Don't call subreg_regno for a non-REG.
1270 2005-04-02 Alexandre Oliva <aoliva@redhat.com>
1272 PR rtl-optimization/20290
1273 * loop.c (for_each_insn_in_loop): Don't assume the loop body runs
1274 in every iteration if the entry point is the exit test.
1276 2005-04-02 Hans-Peter Nilsson <hp@axis.com>
1278 * config/cris/cris.md (attribute "length"): Define.
1280 2005-04-02 Geoffrey Keating <geoffk@apple.com>
1282 * config/rs6000/predicates.md (indexed_or_indirect_operand): New.
1283 (word_offset_memref_operand): New.
1284 * config/rs6000/rs6000-protos.h (word_offset_memref_operand): Delete.
1285 (indexed_or_indirect_operand): Delete.
1286 * config/rs6000/rs6000.c (word_offset_memref_operand): Delete.
1287 (indexed_or_indirect_operand): Delete.
1289 * config/rs6000/t-darwin8: Comment out ppc64 multilib.
1292 * config/rs6000/rs6000.md (fix_truncdfsi2): Make destination
1295 * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Add -pipe.
1296 * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Likewise.
1298 2005-04-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1300 * gcc/config/vax/vax.md: Spellcheck, fix whitespace.
1302 2005-04-01 Ian Lance Taylor <ian@airs.com>
1304 * gcc.c: Don't include <sys/resource.h> or declare getrusage.
1305 (rus, prus): Remove static variables.
1306 (execute): Use pex_run/pex_get_status rather than pexecute/pwait.
1307 (process_command): Permit report_times and use_pipes together.
1309 2005-04-01 Joseph S. Myers <joseph@codesourcery.com>
1311 * c-decl.c (validate_proto_after_old_defn): Look at
1312 TYPE_MAIN_VARIANT of argument types.
1314 2005-04-01 Paul Brook <paul@codesourcery.com>
1316 * config/arm/arm.c (thumb_call_via_label): Include space for SP.
1317 (arm_output_function_epilogue): Allow call_via_SP.
1318 (thumb_call_via_reg, arm_file_end): Ditto.
1319 * config/arm/arm.h (struct machine_function): Include space for SP.
1320 (thumb_call_via_label): Update declaration.
1322 2005-04-01 Ian Lance Taylor <ian@airs.com>
1324 * final.c (final_scan_insn): Revert part of 2005-03-30 patch: when
1325 doing a peephole optimization, once again put any notes in the
1328 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
1330 * bb-reorder.c, fold-const.c, varasm.c: Fix comment typos.
1332 2005-04-01 Nathan Sidwell <nathan@codesourcery.com>
1334 * local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
1335 (block_alloc, find_free_reg): Likewise.
1336 * loop-doloop.c (doloop_modify): Likewise.
1337 * loop-invariant.c (record_use): Likewise.
1338 * loop-iv.c (get_biv_step_1, get_biv_step, iv_analyze,
1339 get_iv_value, canon_condition, eliminate_implied_condition,
1340 eliminate_implied_condition, simplify_using_initial_values,
1341 shorten_into_mode, canonicalize_iv_subregs,
1342 iv_number_of_iterations): Likewise.
1343 * loop-unroll.c (expand_var_during_unrolling): Likewise.
1344 * loop-unswitch.c (compare_and_jump_seq, unswitch_single_loop,
1345 unswitch_loop): Likewise.
1346 * loop.c (INSN_LUID, loop_optimize, rtx_equal_for_loop_p,
1347 move_movables, replace_call_address, find_and_verify_loops,
1348 rtx_equal_for_prefetch_p, fold_rtx_mult_add, loop_iterations,
1349 record_giv, final_giv_value, general_induction_var,
1350 simplify_giv_expr, extension_within_bounds_p, try_copy_prop,
1351 loop_giv_dump): Likewise.
1353 * gcov-io.h (GCOV_CHECK, GCOV_CHECK_READING,
1354 GCOV_CHECK_WRITING): Remove.
1355 (gcov_position, gcov_rewrite): Use gcc_assert.
1356 * gcov-io.c (gcov_open, gcov_write_words, gcov_write_length,
1357 gcov_read_words, gcov_sync, gcov_seek): Use gcc_assert.
1358 * libgcov.c (__gcov_merge_single, __gcov_merge_delta): Use
1361 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
1363 * tree-inline.c: Fix a typo.
1365 2005-04-01 Nathan Sidwell <nathan@codesourcery.com>
1367 * configure.ac (enable-checking): Explicitly set all variables for
1368 collective switch values. Alphabetize variables. Rename
1369 ac_checking_valgrind to ac_valgrind_checking. Allow 'none' as
1371 * doc/install.texi (enable-checking): Update documentation.
1372 * configure: Rebuilt.
1374 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
1376 * tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
1379 2005-04-01 Richard Earnshaw <richard.earnshaw@arm.com>
1381 * arm.c (adjacent_mem_locations): Reject volatile memory refs.
1382 Also reject cases where this pattern will cause load delay stalls
1383 unless optimizing for size and it will produce a shorter sequence.
1384 * arm.md (arith_adjacent_mem): Make better use of ldm addressing
1385 variants to avoid pre-adjusting the base when possible.
1387 2005-04-01 Richard Earnshaw <richard.earnshaw@arm.com>
1389 * arm.md (minmax_arithsi): Reject all eliminable registers, not just
1390 the frame and argument pointers.
1391 (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec): Likewise.
1392 (loadqisi_preinc, loadqisi_predec, strsi_preinc): Likewise.
1393 (strsi_predec, loadsi_preinc, loadsi_predec): Likewise.
1394 (strqi_shiftpreinc, strqi_shiftpredec, loadqi_shiftpreinc): Likewise.
1395 (loadqi_shiftpredec, strsi_shiftpreinc, strsi_shiftpredec): Likewise.
1396 (loadsi_shiftpreinc, loadsi_shiftpredec): Likewise.
1398 2005-04-01 Danny Smith <dannysmith@users.sourceforge.net>
1400 * config/i386/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Define,
1401 with entry for selectany attribute.
1402 * config/i386/i386-protos.h (ix86_handle_selectany_attribute):
1404 * config/i386/winnt.c (ix86_handle_selectany_attribute): Define.
1405 (i386_pe_asm_named_section): Handle sections generated by
1406 selectany attribute.
1407 * doc/extend.texi (selectany): Document attribute.
1409 2005-04-01 Paolo Bonzini <bonzini@gnu.org>
1410 Jan Hubicka <jh@suse.cz>
1412 * config/i386/i386.c (ix86_decompose_address): Look inside SUBREGs
1413 to fix addresses involving EBP and ESP.
1414 (aligned_operand, legitimate_address_p, ix86_address_cost): Be prepared
1415 for SUBREGed registers.
1416 (legitimate_address_p): Accept SUBREGed registers.
1418 2005-04-01 Jakub Jelinek <jakub@redhat.com>
1421 * dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
1422 (dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
1425 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
1427 * doc/contrib.texi, doc/invoke.texi, doc/tm.texi: Fix typos.
1429 2005-04-01 James E Wilson <wilson@specifixinc.com>
1432 * dwarf2out.c (rtl_for_decl_init): New function.
1433 (rtl_for_decl_location): Extracted from here.
1434 (tree_add_const_value_attribute): Call rtl_for_decl_init and
1435 add_const_value_attribute. Delete initializer_constant_valid_p call.
1437 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
1439 * cgraphunit.c, dbxout.c, flow.c, gcse.c, gimplify.c,
1440 lambda-code.c, loop.c, machmode.def, mips-tfile.c,
1441 modulo-sched.c, passes.c, postreload-gcse.c, tree-eh.c,
1442 tree-ssa-ccp.c, varasm.c, config/frv/frv.c, config/frv/frv.h,
1443 config/frv/frv.md, config/i386/i386.c, config/i386/i386.h,
1444 config/i386/i386.md, config/rs6000/predicates.md,
1445 config/rs6000/rs6000.c, config/s390/fixdfdi.h,
1446 config/s390/s390.c, config/stormy16/stormy16.c,
1447 config/stormy16/stormy16.md, config/vax/vax.md: Fix comment
1450 2005-04-01 Joseph S. Myers <joseph@codesourcery.com>
1453 * gimplify.c (gimplify_expr): Create a temporary for lvalue
1454 COND_EXPR and CALL_EXPR.
1456 2005-03-31 Vladimir Makarov <vmakarov@redhat.com>
1459 * genautomata.c (first_cycle_unit_presence): Check all alternative
1460 states for unit presence.
1462 * doc/md.texi: Remove remark about impossibility to query unit
1463 presence in non nondeterministic automaton state.
1465 * config/ia64/ia64.c (get_template): Change order of unit querying.
1467 2005-03-31 Kazu Hirata <kazu@cs.umass.edu>
1469 * tree-ssa-dom.c (cprop_into_successor_phis): Remove an
1472 2005-03-31 Zdenek Dvorak <dvorakz@suse.cz>
1474 * cfgloopanal.c (mark_loop_exit_edges): Clean EDGE_LOOP_EXIT
1475 flag for edges outside any loops.
1477 2005-03-31 Janis Johnson <janis187@us.ibm.com>
1479 * doc/sourcebuild.texi (Test Directives): Describe cleanup-* procs.
1481 2005-03-31 Kazu Hirata <kazu@cs.umass.edu>
1483 * tree-ssa-alias.c: Follow spelling conventions.
1484 * doc/tree-ssa.texi: Fix a typo.
1486 2005-03-31 J"orn Rennecke <joern.rennecke@st.com>
1488 * postreload-gcse.c: Include target.h.
1489 (gcse_after_reload_main): Return early if we cannot modify jumps.
1490 * Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).
1492 2005-03-31 David Edelsohn <edelsohn@gnu.org>
1494 * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
1495 expensive operations.
1497 2005-03-31 Ian Lance Taylor <ian@airs.com>
1499 * collect2.c (lderrout): New variable.
1500 (collect_exit): Dump ldout to stdout. Dump and unlink lderrout,
1501 if it is set, to stderr.
1502 (handler): Unlink lderrout if it is set.
1503 (dump_file): Add "to" parameter. Change all callers.
1504 (main): Initialize lderrout.
1505 (collect_execute): Add errname parameter. Change all callers.
1506 Rename redir parameter to outname. Never pass
1507 PEX_STDERR_TO_STDOUT to pex_run.
1508 * collect2.h (collect_execute, dump_file): Update declarations.
1509 * tlink.c (tlink_execute): Add errname parameter. Change all
1511 (do_tlink): Check lderrout as well as ldout.
1513 2005-03-31 Caroline Tice <ctice@apple.com>
1515 * Makefile.in (varasm.o): Add basic-block.h to list of requirements.
1516 (bb-reorder.o): Add errors.h to list of requirements.
1517 (STAGEFEEDBACK_FLAGS_TO_PASS): Add -freorder-blocks-and-partition to
1518 profiledbootstrap flags.
1519 * bb-reorder.c (errors.h): Add new include.
1520 (struct bbro_basic_block_data_def): Add new field, in_trace.
1521 (add_unlikely_executed_notes): Remove function.
1522 (mark_bb_for_unlikely_executed_section): Remove function.
1523 (insert_section_boundary_note): New function.
1524 (verify_hot_cold_block_grouping): New function.
1525 (push_to_next_round_p): Remove variables and tests that push all
1526 cold blocks to last round.
1527 (find_traces): Remove code that added extra round of trace finding
1528 when doing partitioning.
1529 (find_traces_1_round) : Remove variable last_round; add code to
1530 update new struct field, in_trace; correct trace_length where it was
1531 incorrect before (after call to copy_bb); change code that pushed all
1532 cold blocks to last round. Instead verify that all blocks going into
1533 a trace belong in the same partition.
1534 (connect_traces): Modify to connect the traces in two passes, if the
1535 function contains both hot and cold blocks. The first pass connects
1536 all the traces for blocks in the partition that the first block in
1537 the function belongs to; the second pass connnects all the traces
1538 containing blocks that belong in the other partition.
1539 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
1540 code that automatically put the first block in a function into the
1541 hot partition if the function had any hot blocks.
1542 (fix_crossing_unconditional_branches): Check number of succ edges
1543 before attempting to get one.
1544 (fix_edges_for_rarely_executed_code): Update comment describing
1546 (reorder_basic_blocks): Add code to initialize new field (in_trace);
1547 remove call to add_unlikely_executed_notes; add call to
1548 verify_hot_cold_block_grouping.
1549 (duplicate_computed_gotos): Don't change computed goto if it's a
1551 (partition_hot_cold_basic_blocks): Update function comment.
1552 * cfgcleanup.c (try_simplify_condjump): Remove redundacy from
1554 (try_forward_edges): Likewise.
1555 (merge_blocks_move_predecessor_nojumps): Likewise.
1556 (merge_blocks_move_successor_nojumps): Likewise.
1557 (merge_blocks_move): Likewise.
1558 (try_crossjump_bb): Likewise.
1559 * cfglayout.c (update_unlikely_executed_notes): Remove function.
1560 (fixup_reorder_chain): Remove code for adding UNLIKELY_EXECUTED_CODE
1561 notes to cold bb's; remove call to update_unlikely_executed_notes.
1562 (duplicate_insn_chain): change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
1563 NOTE_INSN_SWITCH_TEXT_SECTIONS.
1564 * cfglayout.h (scan_ahead_for_unlikely_executed_note): Remove
1565 function declaration.
1566 * cfgrtl.c (can_delete_note_p): Remove UNLIKELY_EXECUTED_CODE note
1568 (rtl_can_merge_blocks): Remove redundancy from condition.
1569 (try_redirect_by_replacing_jump): Likewise.
1570 (force_nonfallthru_and_redirect): Remove code for adding
1571 UNLIKELY_EXECUTED_CODE notes to cold bb's.
1572 (commit_one_edge_insertion): Likewise.
1573 (cfg_layout_can_merge_blocks_p): Remove redundancy from condition.
1574 * dbxout.c (FORCE_TEXT): Replace function_section with
1575 current_function_section.
1576 (struct dbx_debug_h): Add do_nothing function for new debug_hooks
1577 function, switch_text_section.
1578 (struct xcoff_debug): Likewise.
1579 (dbxout_function_end): Add code to put out label diffs for both
1580 hot and cold sections.
1581 * debug.c (struct do_nothing_debug_hooks): Add do_nothing function
1582 for new debug_hooks funciton, switch_text_section..
1583 * debug.h (struct gcc_debug_hooks): Add new function to debug_hooks,
1584 switch_text_section.
1585 * dwarf2out.c (struct dw_fde_struct): Add five new fields:
1586 dw_fde_hot_section_label, dw_fde_hot_section_end_label,
1587 dw_fde_unlikely_section_label, dw_fde_unlikely_section_end_label and
1588 dw_fde_switched_sections.
1589 (output_call_frame_info): Add test to see if function switches text
1590 sections in the middle; if so, use appropriate extra hot and cold
1591 section labels to compute size deltas for the hot and cold sections.
1592 (dwarf2out_begin_prologue): Add code to initialize new fields in
1594 (dwarf2out_switch_text_section): New function (invoked through
1595 debug_hook); updates new fields in dw_fde_struct appropriately and
1596 increments separate_line_info_table_in_use.
1597 (dwarf2_debug_hooks): Initialize switch_text_section function to be
1598 dwarf2out_switch_text_section.
1599 (struct var_loc_node): Add new field, section_label.
1600 (output_aranges): Add code to check whether in hot or cold section and
1601 use the appropriate label in calculating deltas.
1602 (output_ranges): Likewise.
1603 (output_line_info): Add code to check which section we're in and
1604 use appropriate hot/cold label.
1605 (add_location_or_constant_value_attribute): Likewise.
1606 (gen_subprogam_die): Modify arange attributes to use correct labels.
1607 (dwarf2out_begin_block): Change call to function_section into call to
1608 current_function_section.
1609 (dwarf2out_end_block): Likewise.
1610 (dwarf2out_source_line): Likewise.
1611 (dwarf2out_var_location): Add code to check whether in hot or cold
1612 section and use the appropriate label.
1613 * except.c (output_function_exception_table): Change call to
1614 function_section into call to current_function_section.
1615 * final.c (profile_function): Likewise.
1616 (scan_ahead_for_unlikely_executed_note): Remove function.
1617 (final_scan_insn): Remove calls to
1618 scan_ahead_for_unlikely_executed_note, and related code for switching
1619 to cold section, except for the single time
1620 NOTE_INSN_SWITCH_TEXT_SECTIONS may be encountered; add calls to
1621 debug_hooks->switch_text_sections; replace appropriate calls to
1622 function_section with calls to current_function_section.
1623 * ifcvt.c (find_if_case_1): Remove redundancy from condition, add
1624 test_bb to condition.
1625 (find_if_case_2): Likewise.
1626 * insn-notes.def: Change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
1627 NOTE_INSN_SWITCH_TEXT_SECTIONS. Update comment appropriately.
1628 * opts.c (decode_options): Change warning about hot/cold partitioning
1629 with exceptionss to inform (so as not to cause bootstrap failures);
1630 remove warning about partitioning with DWARF debug info.
1631 * output.h (current_function_section): Add new function decl.
1632 (insert_section_boundary_note): Likewise.
1633 (enum in_section): Move this declaration here from varasm.c.
1634 (unlikely_section_label): Likewise.
1635 (unlikely_text_section_name): Likewise.
1636 (last_text_section_name): New global variable.
1637 (last_text_section): Likewise.
1638 (hot_section_label): Likewise.
1639 (hot_section_end_label): Likewise.
1640 (cold_section_end_label): Likewise.
1641 * passes.c (rest_of_handle_final): Free unlikely_text_section_name.
1642 * print-rtl.c (print_rtx): Change NOTE_INSN_UNLIKELY_EXECUTED_CODE
1643 to NOTE_INSN_SWITCH_TEXT_SECTIONS.
1644 * reg-stack.c (emit_swap_insn): Remove UNLIKELY_EXECUTED_CODE note
1645 insn from consideration.
1646 * sdbout.c (sdb_debug_hooks): Add do_nothing for new function,
1647 switch_text_section.
1648 * varasm.c (basic-block.h): Add new include.
1649 (unlikely_section_label_printed): Remove global variable.
1650 (unlikely_section_label): Make global variable not be static any more.
1651 (unlikely_text_section_name): Likewise.
1652 (hot_section_end_label): New global variable (not static)
1653 (first_function_block_is_cold): Likewise.
1654 (hot_section_label): Likewise.
1655 (cold_section_end_label): Likewise..
1656 (last_text_section): New global variable, not static.
1657 (last_text_section_name): New global variable, not static.
1658 (initialize_cold_section_name): New function.
1659 (enum in_section): Move declaration to output.h.
1660 (text_section): Update last_text_section.
1661 (unlikely_text_section): Replace code to determine cold section name
1662 with call to initialize_cold_section_name; Add code to update
1663 last_text_section; remove code for printing out label.
1664 (named_section_real): Add code to update last_text_section and
1665 last_text_section_name as appropriate.
1666 (function_section): Change test for 'unlikely' to depend on
1667 first_function_block_is_cold (moved old test to
1668 current_function_section).
1669 (current_function_section): New function.
1670 (assemble_start_function): Move code that frees
1671 unlikely_text_section_name; initialize hot_section_end_label;
1672 print hot and cold section labels at the start of the function;
1673 set first_function_block_is_cold, if appropriate; initialize l
1674 ast_text_section; add call to insert_section_boundary_note.
1675 (assemble_end_function): Add code to write out hot and cold section
1677 *vmsdbgout.c (vmsdbg_debug_hooks): Add do_nothing for new function,
1678 switch_text_section.
1679 * config/darwin.c (machopic_select_section): Replace incorrect
1680 function in base_funs; update reloc for cold sections if necessary.
1681 * config/darwin.h (SECTION_FUNCTION): Add code to update
1682 last_text_section if appropriate.
1683 (text_unlikely_section): Remove.
1684 * config/sparc/sparc.c (sparc_output_deferred_case_vectors): Likewise.
1685 * config/stormy16/stormy16.c (stormy_16_output_addr_vec): Likewise.
1686 * config/xtensa/xtensa.c (override_options): Turn off hot/cold
1687 partitioning for this architecture.
1689 2005-03-31 Olivier Hainque <hainque@adacore.com>
1691 * dwarf2out.c (dwarf2out_frame_finish): Honor DWARF2_FRAME_INFO
1692 defined and non-zero.
1694 2005-03-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
1697 * doc/invoke.texi (-Wsynth): Don't document, as it now is void of
1700 2005-03-31 Alan Modra <amodra@bigpond.net.au>
1703 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Remove inline
1704 label operand. Remove (use (unspec..)). Don't emit a label on
1706 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Don't
1707 generate inline label for load_toc_v4_PIC_1b.
1708 (rs6000_emit_load_toc_table): Likewise.
1710 2005-03-31 Kazu Hirata <kazu@cs.umass.edu>
1712 * config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf,
1713 ns32k-*-netbsdelf*, and ns32k-*-netbsd*.
1715 2005-03-29 Devang Patel <dpatel@apple.com>
1717 * tree-sra.c (decide_block_copy): Disable scalarization of
1720 2005-03-30 Stuart Hastings <stuart@apple.com>
1721 Dale Johannesen <dalej@apple.com>
1723 * Makefile.in (print-tree.o): Depend on tree-iterator.h.
1724 * print-tree.c (print_node): Add case STATEMENT_LIST.
1726 2005-03-31 Alan Modra <amodra@bigpond.net.au>
1728 * config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
1729 (powerpc64-*-linux*): Use it. Rearrange tm_file assignment.
1730 (powerpc-*-linux*): Build a biarch compiler when --enable-targets
1731 is given with "powerpc64*" or "all", or when --with-cpu chooses
1734 2005-03-30 James E. Wilson <wilson@specifixinc.com>
1737 * dwarf2out.c (add_high_low_attributes): New function, extracted from
1738 gen_lexical_block_die.
1739 (gen_lexical_block_die, gen_inlined_subroutine_die): Call it.
1741 2005-03-31 Jan Hubicka <jh@suse.cz>
1743 2004-11-02 Jan Hubicka <jh@suse.cz>
1745 * cgraph.c (cgraph_varpool_node_name): New function.
1746 (dump_cgraph_varpool_node): New function.
1747 (dump_varpool): New function.
1748 * cgraphunit.c (cgraph_optimize): Dump varpool.
1750 2004-10-16 Jan Hubicka <jh@suse.cz>
1752 * cgraph.c (decide_is_variable_needed): New function.
1753 (cgraph_varpool_finalize_decl): Use it.
1754 * cgraphunit.c (cgraph_optimize): Assemble_pending_decls when not doing
1756 * final.c (output_addr_const): Do not call mark_referenced.
1757 * passes.c (rest_of_decl_compilation): ifdef out DECL_RTL_SET_P hack;
1758 always go via cgraph.
1759 * toplev.c (wrapup_global_declarations): Kill non-unit-at-a-time code.
1760 (check_global_declarations): Ifdef out code clearing DECL_RTL.
1761 * tree-optimize.c (execute_inline): Mark functions called.
1762 * i386.c (output_pic_addr_const): Do not call mark_decl_referenced.
1764 2004-10-11 Jan Hubicka <jh@suse.cz>
1766 * cgraph.c (cgraph_varpool_first_unanalyzed_node): New global voriable
1767 (cgraph_varpool_last_needed_node): New static variable.
1768 (enqueue_needed_varpool_node): Break out from ...; add items to the
1769 end of queue; update first pointers.
1770 (cgraph_varpool_mark_needed_node): ... here.
1771 (cgraph_varpool_finalize_decl): Use enqueue_needed_varpool_node.
1772 (cgraph_varpool_assemble_pending_decls): Move to cgraphunit.c
1773 * cgraph.h (cgraph_varpool_node): Add analyzed field.
1774 (cgraph_varpool_first_unanalyzed_node): Declare.
1775 * cgraphunit.c: Include output.h.
1776 (cgraph_varpool_analyze_pending_decls): New function.
1777 (cgraph_varpool_assemble_pending_decls): Move from cgraph.c; bail out
1778 for errors, analyze pending decls.
1779 (cgraph_finalize_compilation_unit): Only analyze decls.
1780 (cgraph_optimize): Assemble the decls after expanding.
1782 2005-03-30 Daniel Berlin <dberlin@dberlin.org>
1784 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure
1785 subvars get marked properly in tags for grouping.
1786 (add_pointed_to_var): Mark only actual pointed to
1787 variables/subvars in addresses needed.
1788 (create_overlap_variables_for): Clear call clobbered on original
1790 * tree-ssa-operands.c (get_asm_expr_operands): Don't let regular
1791 addresable vars with subvars into list.
1792 * tree-ssa.c (verify_ssa_name): Verify original is not used where
1795 2005-03-30 Richard Henderson <rth@redhat.com>
1797 * cgraph.h (struct cgraph_node): Add alias.
1798 * varasm.c (assemble_alias): Set it.
1799 * cgraphunit.c (cgraph_assemble_pending_functions): Check it and
1800 avoid calling cgraph_expand_function.
1802 2005-03-30 Tom Tromey <tromey@redhat.com>
1804 * tree.def (FILE_TYPE): Removed.
1805 * typeclass.h (enum type_class): Removed file_type_class.
1806 * dwarf2out.c (is_base_type): Updated.
1807 (gen_type_die): Likewise.
1808 * dbxout.c (dbxout_type): Updated.
1809 * builtins.c (type_to_class): Updated.
1810 * tree.c (type_contains_placeholder_1): Updated.
1811 * config/sparc/sparc.c (sparc_type_code): Updated.
1812 * config/ia64/ia64.c (hfa_element_mode): Updated.
1813 * expr.c (count_type_elements): Updated.
1814 * stor-layout.c (layout_type): Updated.
1815 * tree-inline.c (remap_type): Updated.
1816 * tree-pretty-print.c (dump_generic_node): Updated.
1818 2005-03-30 Fariborz Jahanian <fjahanian@apple.com>
1820 * builtins.c (expand_builtin_powi): Fix mode of
1821 2nd argument to match int.
1822 * libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
1823 2nd argument type to int.
1824 * libgcc2.c: Change prototype of __powi* functions to use
1827 2005-03-30 Dale Johannesen <dalej@apple.com>
1830 * calls.c (expand_call): Flush pending deferrals before
1833 2005-03-30 Joseph S. Myers <joseph@codesourcery.com>
1837 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR,
1838 C_DECL_UNDEFINABLE_STMT_EXPR, struct c_label_list, struct
1839 c_label_context, label_context_stack): New.
1840 * c-decl.c (define_label): Check for jumps into statement
1841 expressions. Add label to list of defined labels.
1842 (start_function): Push context on label_context_stack.
1843 (finish_function): Pop context from label_context_stack.
1844 * c-typeck.c (label_context_stack): New.
1845 (c_finish_goto_label): Check for jumps into statement
1846 expressions. Add label to list of jumped to labels.
1847 (struct c_switch): Add blocked_stmt_expr.
1848 (c_start_case): Initialize it.
1849 (do_case): Check it.
1850 (c_finish_case): Verify !blocked_stmt_expr.
1851 (c_begin_stmt_expr): Push context on label_context_stack.
1852 Increment blocked_stmt_expr. Mark labels jumped to from outside
1854 (c_finish_stmt_expr): December blocked_stmt_expr. Mark labels
1855 defined in the statement expression and no longer jumpable to.
1856 Mark labels jumped to from just outside the statement expression
1857 as again definable. Pop context from label_context_stack.
1858 * doc/extend.texi (Statement Exprs): Update.
1860 2005-03-30 Joseph S. Myers <joseph@codesourcery.com>
1863 * c-decl.c (start_function): Check for old_decl being
1866 2005-03-30 Ian Lance Taylor <ian@airs.com>
1868 * final.c (final): Remove prescan parameter. Change all callers.
1869 (final_scan_insn): Remove prescan parameter. Change all callers.
1871 2005-03-30 Kazu Hirata <kazu@cs.umass.edu>
1873 * tree-vectorizer.c: Fix comment typos.
1875 2005-03-30 Sebastian Pop <pop@cri.ensmp.fr>
1877 * tree-scalar-evolution.c (instantiate_parameters_1): Return
1878 as soon as a chrec_dont_know is detected.
1880 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
1882 Merge from csl-arm-branch.
1883 2004-02-12 Mark Mitchell <mark@codesourcery.com>
1885 * tlink.c (recompile_files): Do not assume that "rename" can
1886 overwrite an existing file.
1888 2005-03-31 Paolo Bonzini <bonzini@gnu.org>
1890 * gcc/configure.ac (TL_AC_GNU_MAKE_GCC_LIB_PATH): Remove.
1891 * gcc/configure: Regenerate.
1893 2005-03-30 Alan Modra <amodra@bigpond.net.au>
1895 * doc/install.texi: Update binutils requirement for powerpc*-linux.
1897 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
1899 * calls.c (struct arg_data): Update "partial" comment.
1900 (load_register_parameters): Update "nregs" comment.
1902 2005-03-30 Richard Sandiford <rsandifo@redhat.com>
1904 * config/iq2000/iq2000.h (target_flags, MASK_GPOPT, MASK_EMBEDDED_DATA)
1905 (MASK_UNINIT_CONST_IN_RODATA, TARGET_EMBEDDED_DATA, TARGET_SWITCHES)
1906 (TARGET_DEFAULT, TARGET_CPU_DEFAULT, SUBTARGET_TARGET_OPTIONS)
1907 (TARGET_OPTIONS, iq2000_cpu_string, iq2000_arch_string): Delete.
1908 (TARGET_DEBUG_MODE, TARGET_DEBUG_A_MODE, TARGET_DEBUG_B_MODE)
1909 (TARGET_DEBUG_C_MODE, TARGET_DEBUG_D_MODE): Define to 0 rather
1910 than target_flags & 0.
1911 * config/iq2000/iq2000.c (iq2000_cpu_string, iq2000_arch_string)
1912 (iq2000_arch, iq2000_parse_cpu): Delete.
1913 (TARGET_HANDLE_OPTION): Override default.
1914 (iq2000_handle_option): New function.
1915 (override_options): Remove -march= and -mcpu= handling.
1916 * config/iq2000/iq2000.opt: New file.
1918 2005-03-30 Richard Sandiford <rsandifo@redhat.com>
1920 * config/c4x/c4x-protos.h (c4x_rpts_cycles, c4x_cpu_version): Delete.
1921 * config/c4x/c4x.h (SMALL_MEMORY_FLAG, MPYI_FLAG, FAST_FIX_FLAG)
1922 (RPTS_FLAG, C3X_FLAG, TI_FLAG, PARANOID_FLAG, MEMPARM_FLAG, DEVEL_FLAG)
1923 (RPTB_FLAG, BK_FLAG, DB_FLAG, DEBUG_FLAG, HOIST_FLAG)
1924 (LOOP_UNSIGNED_FLAG, FORCE_FLAG, PRESERVE_FLOAT_FLAG)
1925 (PARALLEL_INSN_FLAG, PARALLEL_MPY_FLAG, ALIASES_FLAG, C30_FLAG)
1926 (C31_FLAG, C32_FLAG, C33_FLAG, C40_FLAG, C44_FLAG, TARGET_SWITCHES)
1927 (TARGET_DEFAULT, TARGET_SMALL, TARGET_MPYI, TARGET_FAST_FIX)
1928 (TARGET_RPTS, TARGET_TI, TARGET_PARANOID, TARGET_MEMPARM, TARGET_DEVEL)
1929 (TARGET_RPTB, TARGET_BK, TARGET_DB, TARGET_DEBUG, TARGET_HOIST)
1930 (TARGET_LOOP_UNSIGNED, TARGET_FORCE, TARGET_PRESERVE_FLOAT)
1931 (TARGET_PARALLEL, TARGET_PARALLEL_MPY, TARGET_ALIASES)
1932 (c4x_rpts_cycles_string, c4x_cpu_version_string)
1933 (TARGET_OPTIONS): Delete.
1934 (c4x_rpts_cycles, c4x_cpu_version): Declare.
1935 (TARGET_C3X, TARGET_C30, TARGET_C31, TARGET_C32, TARGET_C33)
1936 (TARGET_C40, TARGET_C44): Redefine in terms of c4x_cpu_version.
1937 * config/c4x/c4x.c (c4x_rpts_cycles_string): Delete.
1938 (c4x_cpu_version_string): Delete.
1939 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
1940 (c4x_handle_option): New function. Map -m3x and -m4x options to the
1941 equivalent -mcpu= option.
1942 (c4x_override_options): Remove -mrpts= and -mcpu= handling from here.
1943 Deal with the extra conditions in the old TARGET_MPYI, TARGET_RPTB,
1944 TARGET_DB, TARGET_PARALLEL and TARGET_PARALLEL_MPY macros by setting
1945 or clearing the appropriate MASK_* bit.
1946 (c4x_file_start): Use c4x_cpu_version.
1947 * config/c4x/c4x.opt: New file.
1949 2005-03-30 Richard Sandiford <rsandifo@redhat.com>
1951 * doc/options.texi: Document the new MaskExists flag.
1952 * opth-gen.awk: Don't output MASK and TARGET macros for Mask(...)
1953 if the option has the MaskExists flag.
1955 2005-03-30 Richard Sandiford <rsandifo@redhat.com>
1957 * opt-functions.awk (flag_set_p, test_flag): New functions.
1958 (switch_flags): Use them.
1959 * opth-gen.awk: Use flag_set_p to check for flags.
1960 * optc-gen.awk: Likewise. Use opt_args to check for Init(...) flags.
1962 2005-03-30 Ian Lance Taylor <ian@airs.com>
1964 * config.host (i[34567]86-*-mingw32*): Don't set
1965 host_can_use_collect2 to no.
1967 2005-03-30 Alan Modra <amodra@bigpond.net.au>
1970 * builtins.c (get_memory_rtx): Expand address exp using EXPAND_NORMAL.
1971 Remove convert_memory_address call duplicating that in memory_address.
1973 2005-03-29 Richard Henderson <rth@redhat.com>
1976 * c-decl.c (c_finish_incomplete_decl): Update complete_array_type call.
1977 (build_compound_literal): Likewise. Propagate decl type into the
1979 (finish_decl): Likewise. Use new return value from complete_array_type
1980 for zero sized arrays.
1981 (complete_array_type): Move ...
1982 * c-common.c (complete_array_type): ... here. Change first argument
1983 to pointer-to-type-node. Consistently use sizetype for the index
1984 except for zero sized arrays. Detect zero sized arrays for pedantic
1985 mode diagnostics. Create a new type node instead of modifying the
1987 * c-tree.h (complete_array_type): Move decl ...
1988 * c-common.h (complete_array_type): ... here.
1990 2005-03-29 Richard Henderson <rth@redhat.com>
1993 * tree-sra.c (generate_element_init_1): Handle RANGE_EXPR.
1995 2005-03-29 Kazu Hirata <kazu@cs.umass.edu>
1997 * builtin-types.def, c-convert.c, c-format.c, ddg.c, debug.c,
1998 debug.h, et-forest.c, et-forest.h, gcov.c, rtl-profile.c,
1999 rtlhooks-def.h, rtlhooks.c, sdbout.c, tree-inline.h,
2000 tree-profile.c, tsystem.h, value-prof.h: Update copyright.
2002 2005-03-29 Eric Christopher <echristo@redhat.com>
2004 * config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
2005 truthvalue conversion removal.
2007 2005-03-29 Ian Lance Taylor <ian@airs.com>
2010 * collect2.c: Never include <vfork.h>.
2011 (VFORK_STRING, vfork): Don't define.
2012 (pid): Remove global variable.
2013 (handler): Call raise instead of kill (getpid(), ...).
2014 (collect_wait): Add pex parameter. Change all callers. Use
2015 pex_get_status rather than pwait.
2016 (do_wait): Add pex parameter. Change all callers.
2017 (collect_execute): Return struct pex_obj * rather than void. Use
2018 pex routines rather than pexecute.
2019 (fork_execute): Get pex_obj from collect_execute, and pass it to
2021 (scan_prog_file): Use pex routines rather than pipe/vfork/exec.
2022 Only declare quit_handler if SIGQUIT is defined.
2023 (scan_libraries): Likewise.
2024 * collect2.h (collect_execute): Update declaration.
2025 (collect_wait): Update declaration.
2026 * tlink.c (tlink_execute): Get pex_obj from collect_execute, and
2027 pass it to collect_wait.
2029 2005-03-29 Joseph S. Myers <joseph@codesourcery.com>
2032 * c-parser.c (c_parser_compound_statement_nostart): Give error
2033 message for EOF instead of just setting parser->error.
2035 2005-03-29 Dorit Naishlos <dorit@il.ibm.com>
2037 * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard): Removed.
2038 (slpeel_update_phi_nodes_for_guard1): New function.
2039 (slpeel_update_phi_nodes_for_guard2): New function.
2040 (slpeel_tree_peel_loop_to_edge): Call above new functions instead
2041 of slpeel_update_phi_nodes_for_guard.
2042 (vectorize_loops): Remove call to loop_closed_rewrite.
2043 * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Remove
2046 2005-03-29 Richard Sandiford <rsandifo@redhat.com>
2048 * config/m32r/little.h (TARGET_ENDIAN_DEFAULT): Delete.
2049 (TARGET_LITTLE_ENDIAN): New macro.
2050 * config/m32r/m32r.h (SUBTARGET_SWITCHES, target_flags)
2051 (TARGET_RELAX_MASK, TARGET_DEBUG_MASK, TARGET_DEBUG)
2052 (TARGET_ALIGN_LOOPS_MASK, TARGET_ALIGN_LOOPS)
2053 (TARGET_LOW_ISSUE_RATE_MASK, TARGET_LOW_ISSUE_RATE)
2054 (TARGET_BRANCH_COST_MASK, TARGET_BRANCH_COST, TARGET_M32RX_MASK)
2055 (TARGET_M32RX, TARGET_M32R2_MASK, TARGET_M32R2, LITTLE_ENDIAN_BIT)
2056 (TARGET_ENDIAN_DEFAULT, SUBTARGET_SWITCHES, TARGET_DEFAULT)
2057 (TARGET_SWITCHES, m32r_model_string, m32r_sdata_string)
2058 (m32r_cache_flush_trap_string, SUBTARGET_OPTIONS)
2059 (TARGET_OPTIONS): Delete.
2060 (M32R_MODEL_DEFAULT, M32R_SDATA_DEFAULT): Turn into enums.
2061 (CACHE_FLUSH_TRAP): Turn into an integer.
2062 (TARGET_LITTLE_ENDIAN): Define to 0 by default.
2063 (INITIALIZE_TRAMPOLINE): Check m32r_cache_trap >= 0 to see if
2064 -mflush-trap is in use.
2065 * config/m32r/m32r.c (m32r_model_string, m32r_sdata_string)
2066 (m32r_cache_flush_trap_string): Delete.
2067 (m32r_model) Initialize to M32R_MODEL_DEFAULT.
2068 (m32r_sdata): Likewise M32R_SDATA_DEFAULT.
2069 (m32r_cache_trap): Likewise CACHE_FLUSH_TRAP.
2070 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
2071 (m32r_handle_option): New function. Move -mflush-trap=, -mflush-func=,
2072 -mmodel= and -msdata= handling from...
2073 (m32r_init): ...here.
2074 * config/m32r/m32r.opt: New file.
2076 2005-03-29 Keith Besaw <kbesaw@us.ibm.com>
2078 * tree-ssanames.c (duplicate_ssa_name_ptr_info): New function.
2079 (duplicate_ssa_name): Call duplicate_ssa_name_ptr_info.
2080 * tree-vect-analyze.c (vect_object_analysis): additional parm
2081 pass back a "struct ptr_info_def *" with the points-to info.
2082 (vect_analyze_data_refs): set the STMT_VINFO_PTR_INFO for the
2083 statement using info returned from vect_object_analysis.
2084 * tree-vect-transform.c (update_vuses_to_preheader): New function.
2085 (vect_create_data_ref_ptr): Remove updates to vars_to_rename
2086 for virtual uses and defs when creating a replacement vector
2087 reference. Call duplicate_ssa_name_ptr_info to define points-to
2088 info for vector pointer replacement using STMT_VINFO_PTR_INFO.
2089 (vectorizable_store): copy_virtual_operands and update
2090 definition statements.
2091 (vectorizable_load): copy_virtual_operands. Remove call to
2092 mark_call_clobbered_vars_to_rename for call to "const" builtin.
2093 * tree-vectorizer.c (vectorize_loops): Remove calls to
2094 rewrite_into_ssa and bitmap_clear (vars_to_rename).
2095 (new_stmt_vec_info): initialize STMT_VINFO_PTR_INFO for stmt.
2096 * tree-vectorizer.h (_stmt_vec_info): add field ptr_info and
2097 define macro STMT_VINFO_PTR_INFO for use in accessing.
2098 * tree.h add export of duplicate_ssa_name_ptr_info.
2099 * rs6000.c (altivec_init_builtins): Declare builtin function
2100 __builtin_altivec_mask_for_load to be "const".
2102 2005-03-29 Jakub Jelinek <jakub@redhat.com>
2105 * cgraph.h (struct cgraph_varpool_node): Add alias field.
2106 * cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
2107 assemble_variable on aliases.
2108 * varasm.c (assemble_alias): Set node->alias.
2109 * toplev.c (wrapup_global_declarations): Don't call
2110 rest_of_decl_compilation on aliases again.
2112 2005-03-29 Paul Brook <paul@codesourcery.com>
2114 * config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
2115 * config/arm/arm.c (arm_dbx_register_number): New function.
2116 * config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.
2118 2005-03-29 Eric Botcazou <ebotcazou@libertysurf.fr>
2121 * varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use
2122 the DECL_NAME, not the DECL_ASSEMBLER_NAME.
2124 2005-03-29 Dale Johannesen <dalej@apple.com>
2126 * Makefile.in (value-prof.o): New dependencies on $(DIAGNOSTIC_H)
2127 $(TREE_H) and $(COVERAGE_H).
2128 * coverage.c (compute_checksum): Use DECL_NAME not DECL_ASSEMBLER_NAME.
2129 * opts.c (common_handle_option): Enable tree-based value transforms.
2130 * toplev.c (process_options): Ditto.
2131 * value-prof.h (struct histogram_value_t): Redefine. "Adjust" below
2132 refers to references to this type.
2133 * tree-flow.h: (struct stmt_ann_d): Add histograms field.
2134 * rtl-profile.c (rtl_gen_interval_profiler): Adjust. Remove checks
2135 for may_be_more, may_be_less.
2136 (rtl_gen_pow2_profiler): Adjust.
2137 (rtl_gen_one_value_profiler_no_edge_manip): Adjust.
2138 (rtl_gen_one_value_profiler): Adjust.
2139 (rtl_gen_const_delta_profiler): Adjust.
2140 * tree-profile.c (tree_gen_interval_profiler): Implement.
2141 (tree_gen_pow2_profiler): Ditto.
2142 (tree_gen_one_value_profiler): Ditto.
2143 (tree_profiling): New.
2144 (pass_tree_profile): Reference it.
2145 * value-prof.c: Include tree-flow.h, tree-flow-inline.h, diagnostic.h,
2147 (insn_divmod_values_to_profile): Rename to
2148 rtl_divmod_values_to_profile. Adjust.
2149 (insn_values_to_profile): Rename to rtl_values_to_profile. Adjust.
2150 (insn_prefetch_values_to_profile): Adjust.
2151 (rtl_value_profile_transformations): Adjust.
2152 (gen_divmod_fixed_value): Rename to rtl_divmod_fixed_value.
2153 (gen_mod_pow2): Rename to rtl_mod_pow2.
2154 (gen_mod_subtract): Rename to rtl_mod_subtract.
2155 (divmod_fixed_value_transform): Rename to
2156 rtl_divmod_fixed_value_transform.
2157 (mod_pow2_value_transform): Rename to rtl_mod_pow2_value_transform.
2158 (mod_subtract_transform): Rename to rtl_mod_subtract_transform.
2159 (rtl_find_values_to_profile): Adjust.
2160 (tree_value_profile_transformations): Implement.
2161 (tree_divmod_values_to_profile): New.
2162 (tree_values_to_profile): New.
2163 (tree_divmod_fixed_value): New.
2164 (tree_mod_pow2): New.
2165 (tree_mod_subtract): New.
2166 (tree_divmod_fixed_value_transform): New.
2167 (tree_mod_pow2_value_transform): New.
2168 (tree_mod_subtract_transform): New.
2169 (tree_find_values_to_profile): Implement.
2170 * profile.c (instrument_values): Free histograms.
2171 (compute_value_histograms): Adjust. Implement tree version.
2173 2005-03-29 Uros Bizjak <uros@kss-loka.si>
2175 * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST> case.
2176 * config/i386/i386.c (output_fix_trunc): Add new round_mode
2177 variable. Output "fldcw" depending on round_mode.
2178 * config/i386/i386.md (UNSPEC_FIST): New.
2179 (fistdi2, fistdi2_with_temp, fist<mode>2, fist<mode>2_with_temp):
2180 New isns patterns to implement lrint and llrint built-ins as x87
2182 (fistdi2, fist<mode>2 splitters): New splitters.
2183 (lrint<mode>2): New expanders.
2185 2005-03-28 Ian Lance Taylor <ian@airs.com>
2187 * config/arc/arc.c (arc_output_function_epilogue): Pass prescan as
2188 0 when calling final_scan_insn.
2190 2005-03-28 Jan Hubicka <jh@suse.cz>
2193 * varasm.c (mark_decl_referenced): Do not mark extern inline functions
2196 * tree-inline.c (estimate_num_insns_1): Use declaration to discover argument
2197 types where possible.
2199 2005-03-26 Per Bothner <per@bothner.com>
2201 Make -f[no-]show-column also control non-cpp diagnostics.
2202 * c.opt (fshow-column): Move option from here ...
2203 * common.opt (fshow-column): ... to here.
2204 * diagnostic.c (diagnostic_build_prefix): Only print column number
2205 if flag_show_column.
2207 2005-03-27 Steven Bosscher <stevenb@suse.de>
2209 * vax-protos.h (vax_output_int_move, vax_output_int_add,
2210 vax_output_conditional_branch): New prototypes.
2211 * vax.c (vax_output_int_move, vax_output_int_add): New functions,
2212 extracted from vax.md mov and add patterns.
2213 (vax_output_conditional_branch): New function to output conditional
2214 branch instructions.
2215 * vax.md: Use mode macros for arithmetic and mov patterns.
2216 Use code macros for the jump patterns.
2218 2005-03-26 Andrew Pinski <pinskia@physics.uc.edu>
2220 * Makefile.in (libbackend.o): Depend on version files;
2221 add custom generation command.
2223 2005-03-26 Andrew Pinski <pinskia@physics.uc.edu>
2226 * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make
2227 sure that we have a REG before getting its REGNO.
2229 2005-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2231 * builtin-types.def (BT_FN_STRING_CONST_STRING_SIZE): New.
2232 * builtins.def (BUILT_IN_STRNDUP): New.
2234 2005-03-25 Pat Haugen <pthaugen@us.ibm.com>
2236 PR tree-optimization/20470
2237 * fold-const.c (fold_cond_expr_with_comparison): Recognize/fold
2240 2005-03-25 Mike Stump <mrs@apple.com>
2242 * config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0
2245 2005-03-25 Geoffrey Keating <geoffk@apple.com>
2247 * config/rs6000/darwin-fallback.c: Don't include <ucontext.h>.
2248 Use our own structure definitions.
2250 * config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
2251 (fix_truncdfsi2): Allow registers or memory as destination.
2252 When TARGET_PPC_GFXOPT, generate simplified pattern.
2253 (fix_truncdfsi2_internal): Use define_insn_and_split.
2254 (fix_truncdfsi2_internal_gfxopt): New.
2255 (fctiwz): Don't confuse register allocation by giving it no choices.
2257 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'Z'.
2258 (EXTRA_MEMORY_CONSTRAINT): Likewise.
2259 * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
2260 * config/rs6000/rs6000-protos.h (indexed_or_indirect_operand): New.
2262 2005-03-25 Kazu Hirata <kazu@cs.umass.edu>
2264 * dominance.c (free_dominance_info): Speed up by freeing et
2265 data structures without maintaining other nodes.
2266 * et-forest.c (et_free_tree_force): New.
2267 * et-forest.h: Add a prototype for et_free_tree_force.
2269 * tree.c (get_set_constructor_bits,
2270 get_set_constructor_bytes): Remove.
2271 * tree.h: Remove the corresponding prototypes.
2273 2005-03-25 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
2276 * vax.c (vax_rtx_costs_1): Merge with vax_rtx_costs.
2277 (vax_rtx_costs): Return false when passed unsupported rtx's. Handle
2278 FLOAT_EXTEND, FLOAT_TRUNCATE and TRUNCATE. Fix costs for POST_INC,
2279 PRE_DEC, NEG and NOT.
2281 2005-03-25 Kazu Hirata <kazu@cs.umass.edu>
2283 * fold-const.c: Convert uses of fold (build (...)) to
2286 2005-03-25 Zdenek Dvorak <dvorakz@suse.cz>
2288 PR rtl-optimization/20249
2289 * cse.c (insert_regs): Do not record equivalence of registers in
2292 2005-03-24 Kazu Hirata <kazu@cs.umass.edu>
2294 * emit-rtl.c (reverse_comparison): Remove.
2295 * rtl.h: Remove the corresponding prototype.
2297 2005-03-24 James E Wilson <wilson@specifixinc.com>
2299 * doc/install.texi (--enable-altivec): Delete docs.
2301 2005-03-24 David Edelsohn <edelsohn@gnu.org>
2303 * config/rs6000/predicates.md (easy_fp_constant): Return 0 for
2304 SFmode and DFmode before reload when
2305 flag_unsafe_math_optimizations not enabled.
2307 2005-03-24 Geoffrey Keating <geoffk@apple.com>
2309 * c.opt (fvisibility-inlines-hidden): Allow for ObjC++.
2311 * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Add
2312 MASK_128BIT_LONG_DOUBLE, MASK_ALIGN_DOUBLE.
2314 2005-03-24 Nathan Sidwell <nathan@codesourcery.com>
2316 * configure.ac (enable-checking): Add 'runtime' option.
2317 * doc/install.texi (enable-checking): Document 'runtime' checking.
2318 * tsystem.h (gcc_assert, gcc_unreachable): Define.
2319 * config.in: Regenerated.
2320 * configure: Regenerated.
2322 2005-03-23 Uros Bizjak <uros@kss-loka.si>
2324 * optabs.h (enum optab_index): Remove OTI_llrint.
2325 (llrint_optab): Remove macro.
2326 * optabs.c (init_optabs): Remove llrint_optab initialization.
2327 * genopinit.c (optabs): Remove llrint_optab implementation.
2328 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LLRINT{,F,L}
2331 2005-03-24 Alexandre Oliva <aoliva@redhat.com>
2333 PR rtl-optimization/20532
2334 * simplify-rtx.c (simplify_binary_operation_1): Protect from
2335 overflow when adding coefficients for PLUS or MINUS.
2336 (simplify_binary_operation_1): Handle CONST_DOUBLE exact power of
2339 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
2341 * langhooks.h (truthvalue_conversion): Remove.
2342 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
2343 LANG_HOOKS_TRUTHVALUE_CONVERSION.
2344 * system.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Poison.
2345 * gimplify.c (gimple_boolify): Don't use truthvalue_conversion.
2346 * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
2348 2005-03-23 Kazu Hirata <kazu@cs.umass.edu>
2350 * params.def: Fix a typo.
2351 * config/mips/mips.c: Follow the spelling convensions.
2352 * doc/invoke.texi: Fix typos.
2354 2005-03-18 Dale Johannese <dalej@apple.com>
2356 * cp/tree.c (cp_tree_equal): Handle SSA_NAME.
2358 2005-03-23 Daniel Berlin <dberlin@dberlin.org>
2360 Fix PR tree-optimization/20601
2362 * tree-ssa-pre.c (insert_aux): Add missing condition to
2365 2005-03-23 Ian Lance Taylor <ian@airs.com>
2367 * final.c (final_scan_insn): Don't remove no-op instructions.
2368 * reload1.c (reload): Remove simple no-op instructions even when
2371 2005-03-23 Dorit Naishlos <dorit@il.ib.com>
2373 PR tree-optimization/20501
2374 * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Debug print
2375 reporting that peeling for alignment is applied moved to...
2376 * (vect_analyze_data_refs_alignment): Here.
2378 2005-03-23 Ian Lance Taylor <ian@airs.com>
2380 * reorg.c (dbr_schedule): Remove #if 0 code to call final.
2382 2005-03-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2384 * config.gcc (alpha*-dec-osf[45]*): Remove target_cpu_default.
2385 Define TARGET_SUPPORT_ARCH except on Tru64 UNIX V4.0A.
2387 2005-03-23 Hans-Peter Nilsson <hp@axis.com>
2389 * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Adjust wording to not
2390 imply that this is called once, independent of asms in code.
2391 Adjust to now being pased output and input lists. Mention helper
2392 function decl_overlaps_hard_reg_set_p.
2393 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Rename from
2394 hook_tree_tree_identity and to take three trees, returning third.
2395 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Adjust the
2397 * stmt.c: include hard-reg-set.h before tree.h.
2398 (decl_overlaps_hard_reg_set_p): New function, broken out from...
2399 (decl_conflicts_with_clobbers_p): Call
2400 decl_overlaps_hard_reg_set_p.
2401 (expand_asm_operands): Pass output and input lists in call to
2402 targetm.md_asm_clobbers.
2403 * target-def.h (TARGET_MD_ASM_CLOBBERS): Define as
2404 hook_tree_tree_tree_tree_3rd_identity.
2405 * target.h (struct gcc_target.md_asm_clobbers): Take three tree
2407 * tree.h [HARD_CONST] (decl_overlaps_hard_reg_set_p): Prototype.
2408 * config/i386/i386.c (ix86_md_asm_clobbers): Adjust to three
2409 parameters, first two unused.
2410 * config/cris/cris.c (cris_md_asm_clobbers): Adjust to added
2411 parameters. Only add MOF to clobbers if there's no 'h' mentioned
2412 in constraint letters and MOF is not mentioned as a asm-declared
2413 register in neither of the input and output lists.
2415 2005-03-23 DJ Delorie <dj@redhat.com>
2417 * optabs.c (expand_binop): Make sure the first subword's result
2420 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
2422 * c-common.c (c_common_truthvalue_conversion): Adjust comment.
2423 Call c_common_truthvalue_conversion rather than
2424 lang_hooks.truthvalue_conversion.
2425 * c-convert.c (convert): Call c_objc_common_truthvalue_conversion.
2426 * c-objc-common.c (c_objc_common_truthvalue_conversion): Move to
2428 * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Change to
2429 c_common_truthvalue_conversion.
2430 * c-parser.c (c_parser_paren_condition, c_parser_for_statement,
2431 c_parser_conditional_expression, c_parser_binary_expression): Call
2432 c_objc_common_truthvalue_conversion.
2433 * c-typeck.c (build_unary_op): Call
2434 c_objc_common_truthvalue_conversion.
2435 (build_conditional_expr): Do not call
2436 lang_hooks.truthvalue_conversion.
2437 (build_binary_op): Call c_common_truthvalue_conversion.
2438 (c_objc_common_truthvalue_conversion): Moved from
2439 c-objc-common.c. Call default_function_array_conversion instead
2440 of default_conversion.
2442 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
2444 * c-common.h (default_conversion): Remove.
2445 (perform_integral_promotions): Add.
2446 * c-tree.h (default_conversion): Add.
2447 * c-typeck.c (perform_integral_promotions): New, split out from
2449 * c-common.c (check_case_value): Use perform_integral_promotions,
2450 not default_conversion.
2451 (c_add_case_label): Don't continue processing case label after
2452 found to be pointer.
2454 2005-03-23 Mark Mitchell <mark@codesourcery.com>
2456 * gcc.c (do_spec_1): Do not add a -L path for a directory in
2457 the prefix list if we have already added a multilib directory
2459 (main): Do not add MD_EXEC_PREFIX to the list of directories to
2462 2005-03-22 Kazu Hirata <kazu@cs.umass.edu>
2464 * reload1.c (indirect_symref_ok, reload_obstack): Make them
2466 * reload.h: Remove the prototype for indirect_symref_ok.
2468 * reload1.c (indirect_symref_ok): Make it global.
2469 * reload.h: Add a prototype for indirect_symref_ok.
2471 2005-03-22 Kaz Kojima <kkojima@gcc.gnu.org>
2473 * config/sh/sh.md (ashlhi3): Rename to *ashlhi3_n and add a new
2476 2005-03-22 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
2478 * tree.h (DECL_IGNORED_P, DECL_IN_SYSTEM_HEADER): Clarify comments.
2480 2005-03-22 Daniel Berlin <dberlin@dberlin.org>
2482 * c-opts.c (c_common_parse_file): Only start/end main source file
2483 if debug hooks says the writer wants it.
2484 * dbxout.c (dbx_debug_hooks): Add start_end_main_source_file
2486 (xcoff_debug_hooks): Ditto.
2487 * debug.c (do_nothing_hooks): Ditto.
2488 * debug.h (gcc_debug_hooks): Ditto.
2489 * dwarf2out.c (dwarf2_debug_hooks): Ditto.
2490 * sdbout.c (sdb_debug_hooks): Ditto.
2491 * vmsdbgout.c (vmsdbg_debug_hooks): Ditto.
2493 2005-03-22 Mark Mitchell <mark@codesourcery.com>
2495 * doc/extend.texi: Deprecate C++ min/max operators.
2497 2005-03-22 Zdenek Dvorak <dvorakz@suse.cz>
2499 * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve
2500 artificial original candidates.
2502 2005-03-22 Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
2503 Jan Hubicka <jh@suse.cz>
2504 Steven Bosscher <stevenb@suse.de>
2506 * cgraphunit.c (cgraph_estimate_size_after_inlining): Compute
2507 call cost based on argument sizes.
2508 (cgraph_mark_inline_edge): Avoid inline unit from shrinking by
2510 * params.def: (max-inline-inssn-single): Set to 450.
2511 (max-inline-insns-auto): Set to 90.
2512 (max-inline-insns-recursive): Set to 450
2513 (max-inline-insns-recursive-auto): Set to 450.
2514 (large-function-insns): Set to 2700.
2515 (inline-call-cost): New parameter.
2516 * tree-inline.c (estimate_move_cost): New function.
2517 (estimate_num_insns_1): Compute move sizes costs by estimate_move_cost
2518 for non-gimple-regs, set cost to 0 for gimple-regs. Compute call size
2520 * tree-inline.h (estimate_move_cost): Declare.
2521 * invoke.texi: (max-inline-inssn-single): Change default to 450.
2522 (max-inline-insns-auto): Change default to 90.
2523 (max-inline-insns-recursive): Change default to 450
2524 (max-inline-insns-recursive-auto): Change default to 450.
2525 (large-function-insns): Change default to 2700.
2526 (inline-call-cost): Document new parameter.
2528 2005-03-22 Richard Sandiford <rsandifo@redhat.com>
2530 * config/i860/i860.h (target_flags, TARGET_XP, TARGET_SWITCHES)
2531 (TARGET_DEFAULT): Delete.
2532 * config/i860/i860.opt: New file.
2534 2005-03-22 Richard Sandiford <rsandifo@redhat.com>
2536 * config/frv/frv-protos.h (frv_branch_cost_string, frv_branch_cost_int)
2537 (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
2538 (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
2539 (frv_sched_lookahead): Delete.
2540 * config/frv/frv.h (MASK_DEFAULT_ALLOC_CC): Move to frv.c.
2541 (target_flags, MASK_GPR_32, MASK_FPR_32, MASK_SOFT_FLOAT)
2542 (MASK_ALLOC_CC, MASK_DWORD, MASK_DOUBLE, MASK_MEDIA, MASK_MULADD)
2543 (MASK_LIBPIC, MASK_ACC_4, MASK_PACK, MASK_LONG_CALLS)
2544 (MASK_ALIGN_LABELS, MASK_LINKED_FP, MASK_BIG_TLS, MASK_DEBUG_ARG)
2545 (MASK_DEBUG_ADDR, MASK_DEBUG_STACK, MASK_DEBUG, MASK_DEBUG_LOC)
2546 (MASK_DEBUG_COND_EXEC, MASK_NO_COND_MOVE, MASK_NO_SCC)
2547 (MASK_NO_COND_EXEC, MASK_NO_VLIW_BRANCH, MASK_NO_MULTI_CE)
2548 (MASK_FDPIC, MASK_INLINE_PLT, MASK_GPREL_RO, MASK_DEFAULT)
2549 (TARGET_GPR_32, TARGET_FPR_32, TARGET_SOFT_FLOAT, TARGET_ALLOC_CC)
2550 (TARGET_DWORD, TARGET_DOUBLE, TARGET_MEDIA, TARGET_MULADD)
2551 (TARGET_LIBPIC, TARGET_ACC_4, TARGET_DEBUG_ARG, TARGET_DEBUG_ADDR)
2552 (TARGET_DEBUG_STACK, TARGET_DEBUG, TARGET_DEBUG_LOC)
2553 (TARGET_DEBUG_COND_EXEC, TARGET_NO_COND_MOVE, TARGET_NO_SCC)
2554 (TARGET_NO_COND_EXEC, TARGET_NO_VLIW_BRANCH, TARGET_NO_MULTI_CE)
2555 (TARGET_NO_NESTED_CE, TARGET_FDPIC, TARGET_INLINE_PLT, TARGET_BIG_TLS)
2556 (TARGET_GPREL_RO, TARGET_PACK, TARGET_LONG_CALLS, TARGET_ALIGN_LABELS)
2557 (TARGET_LINKED_FP, TARGET_GPR_64, TARGET_FPR_64, TARGET_HARD_FLOAT)
2558 (TARGET_FIXED_CC, TARGET_COND_MOVE, TARGET_SCC, TARGET_COND_EXEC)
2559 (TARGET_VLIW_BRANCH, TARGET_MULTI_CE, TARGET_NESTED_CE, TARGET_ACC_8)
2560 (TARGET_SWITCHES, TARGET_OPTIONS, DEFAULT_CONDEXEC_TEMPS)
2561 (DEFAULT_BRANCH_COST, DEFAULT_CONDEXEC_INSNS): Delete.
2562 * config/frv/frv.c (frv_branch_cost_string, frv_branch_cost_int)
2563 (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
2564 (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
2565 (frv_sched_lookahead): Delete.
2566 (MASK_DEFAULT_ALLOC_CC): Moved from frv.h.
2567 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
2568 (frv_handle_option): New function. Move -mcpu= handling from...
2569 (frv_override_options): ...here. Remove handling of other
2571 (frv_ifcvt_modify_tests): Check !TARGET_COND_EXEC instead of
2572 TARGET_NO_COND_EXEC and !TARGET_NESTED_CE to TARGET_NO_NESTED_CE.
2573 (frv_ifcvt_modify_multiple_tests): Likewise !TARGET_MULTI_CE
2574 and TARGET_NO_MULTI_CE.
2575 (frv_for_each_packet): Likewise TARGET_NO_VLIW_BRANCH and
2576 !TARGET_VLIW_BRANCH.
2577 * config/frv/frv.opt: New file.
2579 2005-03-22 Kazu Hirata <kazu@cs.umass.edu>
2581 * fold-const.c (fold_ternary): Take decomposed arguments of
2583 (fold): Update a call to fold_ternary.
2585 * fold-const.c (fold_build1, fold_build2, fold_build3): New.
2586 * tree.h: Add corresponding prototypes.
2588 2005-03-22 Jakub Jelinek <jakub@redhat.com>
2591 * cfglayout.c (reemit_insn_block_notes): Don't put block notes in
2592 between jump table and its label.
2593 * final.c (shorten_branches): Handle notes in between ADDR_VEC
2594 resp. ADDR_DIFF_VEC and the label preceeding it.
2595 (final_scan_insn): Likewise. Ensure ADDR_VEC resp. ADDR_DIFF_VEC
2596 is emitted in the right section.
2598 2005-03-22 Kazu Hirata <kazu@cs.umass.edu>
2600 * fold-const.c (fold_unary, fold_binary): Update comments
2603 2005-03-22 Hans-Peter Nilsson <hp@axis.com>
2605 PR rtl-optimization/20527
2606 * combine.c (can_combine_p) [AUTO_INC_DEC]: When INSN has an
2607 REG_INC note, test that the register also isn't mentioned in PRED
2610 2005-03-22 Ben Elliston <bje@au.ibm.com>
2612 * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype
2615 2005-03-21 Mike Stump <mrs@apple.com>
2617 * varasm.c (default_assemble_visibility): Remove extra ().
2619 2005-03-21 Roger Sayle <roger@eyesopen.com>
2622 * bb-reorder.c (duplicate_computed_gotos): Use can_duplicate_block_p
2623 to determine whether a block can be duplicated, rather than test
2624 whether the block contains noncopyable insns ourselves.
2626 2005-03-21 Kazu Hirata <kazu@cs.umass.edu>
2628 * config/i860/i860.h (PREDICATE_CODES): Remove nonexistent
2631 2005-03-21 Richard Sandiford <rsandifo@redhat.com>
2633 * config/ip2k/ip2k.h (target_flags, TARGET_SWITCHES): Delete.
2635 2005-03-21 Richard Sandiford <rsandifo@redhat.com>
2637 * config/fr30/fr30.h (TARGET_SMALL_MODEL_MASK, TARGET_SMALL_MODEL)
2638 (TARGET_DEFAULT, target_flags, TARGET_SWITCHES): Delete.
2639 * config/fr30/fr30.opt: New file.
2641 2005-03-18 Daniel Berlin <dberlin@dberlin.org>
2643 Fix PR tree-optimization/20542
2645 * tree-flow-inline.h (overlap_subvar): Move to here.
2646 * tree-ssa-operands.c: From here.
2647 * tree-flow.h (overlap_subvar): Declare.
2648 * tree-ssa-alias.c (add_pointed_to_var): Use overlap_subvar here.
2649 * tree-ssa-loop-im.c (is_call_clobbered_ref): Return proper answer
2650 for variables with subvars.
2652 2005-03-21 Mostafa Hagog <mustafa@il.ibm.com>
2655 * ddg.c (create_ddg_dependence): Ignore reg-anti dependency.
2656 * modulo-sched.c (const_iteration_count): Return on NULL
2658 (print_node_sched_params): Return on NULL dump_file.
2659 (generate_reg_moves): Handle reg-anti dependencies and disregard
2660 closing branch when generating register moves.
2661 (sms_schedule): Mark the SMSed block dirty.
2662 * passes.c (rest_of_handle_sms): Call update_life_info for all
2664 * testsuite/gcc.dg/20050321-1.c: New test.
2666 2005-03-21 Bob Wilson <bob.wilson@acm.org>
2668 * config/xtensa/lib1funcs.asm (__mulsi3): Use symbolic name for ACCLO.
2669 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
2670 movqi_internal): Likewise.
2672 2005-03-21 Bob Wilson <bob.wilson@acm.org>
2674 * config/xtensa/xtensa-protos.h: (xtensa_simm7, xtensa_uimm8,
2675 xtensa_uimm8x2, xtensa_uimm8x4, xtensa_ai4const, xtensa_lsi4x4,
2676 xtensa_b4const): Delete prototypes.
2677 (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b, xtensa_b4constu,
2678 xtensa_mask_immediate, xtensa_mem_offset): Update prototypes.
2679 (xtensa_b4const_or_zero, xtensa_const_ok_for_letter_p,
2680 xtensa_extra_constraint): New prototypes.
2681 (add_operand, arith_operand, nonimmed_operand, mem_operand,
2682 mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
2683 lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
2684 move_operand, const_float_1_operand, fpmem_offset_operand,
2685 branch_operator, ubranch_operator, boolean_operator): Delete prototypes.
2686 * config/xtensa/xtensa.c (b4const_or_zero): Rename to ...
2687 (xtensa_b4const_or_zero): ...this. Change return type to bool and
2688 argument type to HOST_WIDE_INT.
2689 (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b,
2690 xtensa_mask_immediate): Likewise.
2691 (xtensa_uimm8, xtensa_uimm8x2, xtensa_uimm8x4, xtensa_b4const):
2692 Likewise. Also make these functions static.
2693 (xtensa_simm7, xtensa_ai4const, xtensa_lsi4x4): Delete.
2694 (xtensa_const_ok_for_letter_p): New.
2695 (add_operand, arith_operand, nonimmed_operand, mem_operand,
2696 mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
2697 lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
2698 move_operand, const_float_1_operand, fpmem_offset_operand,
2699 branch_operator, ubranch_operator, boolean_operator): Move to
2701 (smalloffset_mem_p): Inline code from xtensa_lsi4x4.
2702 (xtensa_mem_offset): Change return type to bool.
2703 (xtensa_extra_constraint): New.
2704 (gen_int_relational): Update type of const_range_p function pointer.
2705 Use xtensa_b4const_or_zero.
2706 * config/xtensa/xtensa.h (CONST_OK_FOR_LETTER_P): Define to
2707 xtensa_const_ok_for_letter_p. Update comments.
2708 (EXTRA_CONSTRAINT): Define to xtensa_extra_constraint.
2709 (PREDICATE_CODES): Delete.
2710 * config/xtensa/xtensa.md: Include predicates.md.
2711 * config/xtensa/predicates.md: New file.
2713 2005-03-21 Kazu Hirata <kazu@cs.umass.edu>
2715 * config/v850/v850-protos.h: Remove the prototypes for
2716 reg_or_int9_operand, reg_or_const_operand,
2717 pattern_is_ok_for_prepare, pattern_is_ok_for_dispose,
2718 reg_or_0_operand, reg_or_int5_operand, call_address_operand,
2719 movsi_source_operand, power_of_two_operand,
2720 not_power_of_two_operand, special_symbolref_operand,
2721 pattern_is_ok_for_prologue, pattern_is_ok_for_epilogue, and
2722 register_is_ok_for_epilogue.
2723 * config/v850/v850.c (reg_or_0_operand, reg_or_int5_operand,
2724 reg_or_int9_operand, reg_or_const_operand,
2725 call_address_operand, special_symbolref_operand,
2726 movsi_source_operand, power_of_two_operand,
2727 not_power_of_two_operand, register_is_ok_for_epilogue,
2728 pattern_is_ok_for_epilogue, pattern_is_ok_for_prologue,
2729 pattern_is_ok_for_dispose, pattern_is_ok_for_prepare): Move to
2731 * config/v850/v850.h (PREDICATE_CODES): Remove.
2732 * config/v850/v850.md: Include predicates.md.
2733 * config/v850/predicates.md: New.
2735 2005-03-21 Zack Weinberg <zack@codesourcery.com>
2737 * Makefile.in (BASEVER, DEVPHASE, DATESTAMP)
2738 (BASEVER_c, DEVPHASE_c, DATESTAMP_c)
2739 (BASEVER_s, DEVPHASE_s, DATESTAMP_s, version): Set with :=.
2740 (itoolsdir, itoolsdatadir): Move definition above new first use.
2741 (install-itoolsdirs): New rule.
2742 (install-mkheaders): Depend on install-itoolsdirs, not
2743 install-include-dir.
2745 2005-03-21 Kazu Hirata <kazu@cs.umass.edu>
2747 * tree-into-ssa.c: Remove obsolete comments.
2749 2005-03-21 Richard Guenther <rguenth@gcc.gnu.org>
2751 * tree-ssa-loop.c (gate_tree_complete_unroll): Run complete
2752 unrolling if -fpeel-loops is specified, too.
2753 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
2754 Remove superfluous check for flag_unroll_loops.
2756 2005-03-21 Uros Bizjak <uros@kss-loka.si>
2758 * optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
2759 (lrint_optab, llrint_optab): Define corresponding macros.
2760 * optabs.c (init_optabs): Initialize lrint_optab and llrint_optab.
2761 * genopinit.c (optabs): Implement lrint_optab using lrintsi2
2762 pattern and llrint_optab using llrintdi2 patterns.
2763 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LRINT{,F,L}
2764 using lrint_optab and BUILT_IN_LLRINT{,F,L} using llrint_optab.
2765 (expand_builtin): Expand BUILT_IN_LRINT{,F,L} and
2766 BUILT_IN_LLRINT{,F,L} using expand_builtin_mathfn if
2767 flag_unsafe_math_optimizations is set.
2769 2005-03-21 Paolo Bonzini <bonzini@gnu.org>
2771 * combine.c (combine_simplify_rtx, simplify_if_then_else,
2772 simplify_logical, if_then_else_cond, known_cond,
2773 simplify_comparison): Adjust calls to reverse_comparison.
2774 Don't use combine_reversed_comparison_code).
2775 (combine_reversed_comparison_code): Remove.
2776 (reversed_comparison): Using reversed_comparison_code, move it...
2777 * jump.c (reversed_comparison): ... here.
2778 * rtl.h (reversed_comparison): Add prototype.
2780 2005-03-21 Kazu Hirata <kazu@cs.umass.edu>
2782 * builtins.c (fold_builtin): Take decomposed arguments of
2784 * fold-const.c (fold_ternary): Update a call to fold_builtin.
2785 * gimplify.c (gimplify_call_expr): Likewise.
2786 * tree-ssa-ccp.c (ccp_fold, ccp_fold_builtin): Likewise.
2787 * tree.h: Update the prototype of fold_builtin.
2789 2005-03-21 Paolo Bonzini <bonzini@gnu.org>
2791 * rtl.h (struct rtx_hooks): Add gen_lowpart_no_emit.
2792 * rtlhooks.c (gen_lowpart_no_emit_general): New.
2793 * rtlhooks-def.h (gen_lowpart_no_emit_general): Declare.
2794 (RTL_HOOKS_GEN_LOWPART_NO_EMIT): New.
2795 * simplify-rtx.c (simplify_binary_operation_1): Use it.
2797 2005-03-21 Kazu Hirata <kazu@cs.umass.edu>
2799 * builtins.c (fold_builtin_1): Take decomposed arguments of
2801 (fold_builtin): Update a call to fold_builtin_1.
2803 2005-03-21 Nathan Sidwell <nathan@codesourcery.com>
2806 * gcov.c (output_lines): Only output function block summary when
2807 outputting branch information.
2808 * doc/gcov.texi: Document format of preamble and additional block
2811 2005-03-21 Richard Sandiford <rsandifo@redhat.com>
2813 * libgcc2.h (LIBGCC2_HAS_SF_MODE): New macro.
2814 (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_TF_MODE, LIBGCC2_HAS_XF_MODE): Make
2815 the defaults false if BITS_PER_UNIT != 8.
2816 (SFtype, SCtype, __fixsfdi, __floatdisf, __fixunssfSI, __fixunssfDI)
2817 (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE rather
2818 than BITS_PER_UNIT != 8.
2819 (L_fixdfdi, L_fixsfdi, L_fixtfdi, L_fixunsdfdi, L_fixunsdfsi)
2820 (L_fixunssfdi, L_fixunssfsi, L_fixunstfdi, L_fixunsxfdi, L_fixunsxfsi)
2821 (L_fixxfdi, L_floatdidf, L_floatdisf, L_floatditf, L_floatdixf): Remove
2823 * libgcc2.c (__fixunssfDI, __fixsfdi, __floatdisf, __fixunssfSI)
2824 (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE.
2826 2005-03-20 Roger Sayle <roger@eyesopen.com>
2829 * fold-const.c (fold_binary): Fix type mismatch between
2830 TRUTH_{AND,OR,XOR}_EXPR nodes an their operands' types.
2831 (fold_binary) <TRUTH_XOR_EXPR>: Avoid calling invert_truthvalue
2832 for non-truth-valued expressions.
2834 * c-common.c (c_common_truthvalue_conversion): Handle ERROR_MARK
2835 and FUNCTION_DECL in the main switch.
2836 <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
2837 TRUTH_XOR_EXPR>: When changing the result type of these tree nodes,
2838 we also need to convert their operands to match.
2839 <TRUTH_NOT_EXPR>: Likewise.
2841 2005-03-21 Joseph S. Myers <joseph@codesourcery.com>
2843 * c-common.c (lvalue_or_else): Replace by lvalue_error; only give
2844 diagnostic without checking whether an lvalue.
2845 * c-common.h (lvalue_p): Remove.
2846 (enum lvalue_use): Update comment.
2847 (lvalue_or_else): Replace by lvalue_error.
2848 * c-typeck.c (lvalue_p): Make static.
2849 (lvalue_or_else): New. Call lvalue_error.
2851 2005-03-21 Alan Modra <amodra@bigpond.net.au>
2853 * config/rs6000/rs6000.c (rs6000_parm_start): New function.
2854 (function_arg_advance): Use rs6000_parm_start.
2855 (function_arg, rs6000_arg_partial_bytes): Likewise.
2857 2005-03-20 Joseph S. Myers <joseph@codesourcery.com>
2859 * c-common.c (check_case_value): Adjust comment about stripping
2861 (handle_vector_size_attribute): Don't strip NON_LVALUE_EXPR.
2862 * c-typeck.c (default_conversion, convert_arguments,
2863 build_modify_expr, convert_for_assignment, store_init_value,
2864 digest_init): Use STRIP_TYPE_NOPS instead of stripping nops
2865 manually. Remove inaccurate comments.
2867 2005-03-20 Roger Sayle <roger@eyesopen.com>
2868 Joseph S. Myers <joseph@codesourcery.com>
2870 * varasm.c (do_assemble_alias): Restore comment describing function.
2871 Annotate the target parameter as potentially unused.
2873 2005-03-20 Marek Michalkiewicz <marekm@amelek.gda.pl>
2876 * config/avr/avr.c (avr_output_function_prologue): Do not use
2877 current_function_name() in a label, use a local label instead.
2879 2005-03-20 David Edelsohn <edelsohn@gnu.org>
2881 * config/rs6000/rs6000.c (rs6000_generate_compare): Test
2882 flag_finite_math_only, not flag_unsafe_math_optimizations.
2884 2005-03-20 Kazu Hirata <kazu@cs.umass.edu>
2886 * builtins.c (fold_builtin_1): Update a call to
2887 targetm.fold_builtin.
2888 * hooks.c (hook_tree_tree_bool_null): Rename to
2889 hook_tree_tree_tree_bool_null. Take one more argument of type
2891 * hooks.h: Update the prototype of hook_tree_tree_bool_null.
2892 * target-def.h (TARGET_FOLD_BUILTIN): Define it as
2893 hook_tree_tree_tree_bool_null.
2894 * target.h (gcc_target): Update the prototype of fold_builtin.
2895 * config/alpha/alpha.c (alpha_fold_builtin): Take decomposed
2896 arguments of CALL_EXPR.
2897 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update. Mention the
2900 2005-03-20 Jan Hubicka <jh@suse.cz>
2902 * cgraph.h (cgraph_node): Add prev_clone pointer.
2903 * cgraph.c (cgraph_remove_node): Remove from doubly linked chain.
2904 (cgraph_clone_node): Produce doubly linked chain.
2906 2005-03-20 Joseph S. Myers <joseph@codesourcery.com>
2908 * c-common.c (handle_aligned_attribute, check_function_sentinel,
2909 get_nonnull_operand, handle_sentinel_attribute,
2910 check_function_arguments_recurse): Do not strip NOPS from
2912 * c-decl.c (check_bitfield_type_and_width, build_enumerator):
2914 * c-format.c (get_constant): Likewise.
2915 * c-parser.c (c_parser_postfix_expression): Likewise.
2916 * c-typeck.c (set_init_index): Likewise.
2917 (convert_arguments): Don't check for NOP_EXPR containing integer
2920 2005-03-20 Kazu Hirata <kazu@cs.umass.edu>
2922 * builtins.c (fold_fixed_mathfn, fold_builtin_trunc,
2923 fold_builtin_floor, fold_builtin_ceil, fold_builtin_lround):
2924 Take decomposed arguments of CALL_EXPR.
2925 (fold_builtin_1): Update calls to the functions mentioned
2928 2005-03-20 Joseph S. Myers <joseph@codesourcery.com>
2930 * c-decl.c (check_bitfield_type_and_width): Require bit-field
2931 width to have integer type.
2932 (build_enumerator): Require enumerator value to have integer type.
2934 2005-03-19 Joseph S. Myers <joseph@codesourcery.com>
2936 * doc/extend.texi (__builtin_inf): Move statement about INFINITY
2939 2005-03-19 Joseph S. Myers <joseph@codesourcery.com>
2941 * c.opt (ansi, std=iso9899:1990, std=iso9899:1999,
2942 std=iso9899:199x): Correct descriptions.
2944 2005-03-19 Joseph S. Myers <joseph@codesourcery.com>
2946 * config.gcc: Consistently use solaris2.1[0-9]* instead of
2949 2005-03-19 Kazu Hirata <kazu@cs.umass.edu>
2951 * builtins.c (fold_builtin_memcpy): Take decomposed arguments
2953 (expand_builtin_memcpy, fold_builtin_1): Update calls to
2954 fold_builtin_memcpy.
2956 * builtins.c (fold_trunc_transparent_mathfn): Take decomposed
2957 arguments of CALL_EXPR.
2958 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil,
2959 fold_builtin_found, fold_builtin_1): Update calls to
2960 fold_trunc_transparent_mathfn.
2962 2005-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2965 * fold-const.c (fold_widened_comparison): Don't optimize casts of
2966 function pointers on targets that require function pointer
2968 (fold_sign_changed_comparison): Likewise.
2970 2005-03-19 Bernd Schmidt <bernd.schmidt@analog.com>
2972 * combine.c (try_combine): When changing the mode of a hard reg, make
2973 sure that doing so is valid.
2975 2005-03-19 Richard Sandiford <rsandifo@redhat.com>
2977 * config/avr/avr.c (avr_init_stack, avr_mcu_name): Make static.
2978 (TARGET_HANDLE_OPTION): Override default.
2979 (avr_handle_option): New function.
2980 * config/avr/avr.h (MASK_ALL_DEBUG, MASK_ORDER_1, MASK_INSN_SIZE_DUMP)
2981 (MASK_ORDER_2, MASK_NO_TABLEJUMP, MASK_INT8, MASK_NO_INTERRUPTS)
2982 (MASK_CALL_PROLOGUES, MASK_TINY_STACK, MASK_SHORT_CALLS)
2983 (TARGET_ORDER_1, TARGET_ORDER_2, TARGET_INT8, TARGET_NO_INTERRUPTS)
2984 (TARGET_INSN_SIZE_DUMP, TARGET_CALL_PROLOGUES, TARGET_TINY_STACK)
2985 (TARGET_NO_TABLEJUMP, TARGET_SHORT_CALLS, TARGET_ALL_DEBUG)
2986 (TARGET_SWITCHES, avr_init_stack, avr_mcu_name)
2987 (TARGET_OPTIONS): Delete.
2988 * config/avr/avr.opt: New file.
2990 2005-03-18 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
2992 * config/m32r/m32r-protos.h: Remove the prototypes for
2993 call_address_operand, symbolic_operand, seth_add3_operand,
2994 cmp_int16_operand, uint16_operand, reg_or_int16_operand,
2995 reg_or_uint16_operand, reg_or_cmp_int16_operand,
2996 two_insn_const_operand, move_src_operand,
2997 move_double_src_operand, move_dest_operand,
2998 eqne_comparison_operator, signed_comparison_operator,
2999 large_insn_p, conditional_move_operand, carry_compare_operand,
3000 m32r_block_immediate_operand, extend_operand,
3001 reg_or_eq_int16_operand, int8_operand, and
3002 reg_or_zero_operand.
3003 * config/m32r/m32r.c (call_address_operand, symbolic_operand,
3004 seth_add3_operand, int8_operand, cmp_int16_operand,
3005 uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
3006 reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
3007 reg_or_zero_operand, two_insn_const_operand, move_src_operand,
3008 move_double_src_operand, move_dest_operand,
3009 eqne_comparison_operator, signed_comparison_operator,
3010 extend_operand, small_insn_p, large_insn_p,
3011 conditional_move_operand, carry_compare_operand,
3012 m32r_block_immediate_operand): Move to predicates.md.
3013 (MAX_MOVE_BYTES): Move to m32r.h.
3014 * config/m32r/m32r.h (PREDICATE_CODES): Remove.
3015 * config/m32r/m32r.md: Include predicates.md.
3016 * config/m32r/predicates.md: New.
3018 2005-03-18 James E Wilson <wilson@specifixinc.com>
3021 * dwarf2out.c (declare_in_namespace): Ignore decls with an abstract
3024 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
3026 * config/mn10300/mn10300-protos.h: Remove the prototypes for
3027 call_address_operand, const_8bit_operand.
3028 * config/mn10300/mn10300.c (call_address_operand,
3029 const_8bit_operand, const_1f_operand): Move to predicates.md.
3030 * config/mn10300/mn10300.h (PREDICATE_CODES): Remove.
3031 * config/mn10300/mn10300.md: Include predicates.md.
3032 * config/mn10300/predicates.md: New.
3034 2005-03-18 Joseph S. Myers <joseph@codesourcery.com>
3036 * c-common.c, c-decl.c, c-format.c, c-typeck.c: Use %D for
3037 declarations in diagnostics and %E for identifiers, not %s.
3039 2005-03-18 Jan Hubicka <jh@suse.cz>
3040 Dale Johannesen <dalej@apple.com>
3042 * basic-block.h (scale_bbs_frequencies_int,
3043 scale_bbs_frequencies_gcov_type): Declare.
3044 * cfg.c (RDIV): New macro.
3045 (update_bb_frequency_for_threading): Fix.
3046 * basic-block.h (scale_bbs_frequencies_int,
3047 scale_bbs_frequencies_gcov_type): New.
3048 * cfgloopmanip.c (scale_bbs_frequencies): Kill.
3049 (scale_loop_frequencies, duplicate_loop_to_header_edge): Use
3050 scale_bbs_frequencies_int.
3051 * tree-ssa-loop-ch.c (copy_loop_headers): Fix profiling info.
3053 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
3055 * config/m32r/m32r-protos.h: Remove the prototypes for
3056 call_address_operand, symbolic_operand, seth_add3_operand,
3057 cmp_int16_operand, uint16_operand, reg_or_int16_operand,
3058 reg_or_uint16_operand, reg_or_cmp_int16_operand,
3059 two_insn_const_operand, move_src_operand,
3060 move_double_src_operand, move_dest_operand,
3061 eqne_comparison_operator, signed_comparison_operator,
3062 large_insn_p, conditional_move_operand, carry_compare_operand,
3063 m32r_block_immediate_operand, extend_operand,
3064 reg_or_eq_int16_operand, int8_operand, and
3065 reg_or_zero_operand.
3066 * config/m32r/m32r.c (call_address_operand, symbolic_operand,
3067 seth_add3_operand, int8_operand, cmp_int16_operand,
3068 uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
3069 reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
3070 reg_or_zero_operand, two_insn_const_operand, move_src_operand,
3071 move_double_src_operand, move_dest_operand,
3072 eqne_comparison_operator, signed_comparison_operator,
3073 extend_operand, small_insn_p, large_insn_p,
3074 conditional_move_operand, carry_compare_operand,
3075 m32r_block_immediate_operand): Move to predicates.md.
3076 (MAX_MOVE_BYTES): Move to m32r.h.
3077 * config/m32r/m32r.h (PREDICATE_CODES): Remove.
3078 * config/m32r/m32r.md: Include predicates.md.
3079 * config/m32r/predicates.md: New.
3081 * config/pa/pa-protos.h: Add prototypes for magic_milli and
3083 * config/pa/pa.c (reg_or_0_operand, call_operand_address,
3084 symbolic_operand, symbolic_memory_operand,
3085 reg_or_0_or_nonsymb_mem_operand, reg_before_reload_operand,
3086 indexed_memory_operand, move_dest_operand, move_src_operand,
3087 prefetch_cc_operand, prefetch_nocc_operand,
3088 reg_or_cint_move_operand, pic_label_operand, fp_reg_operand,
3089 arith_operand, arith11_operand, pre_cint_operand,
3090 post_cint_operan, arith_double_operand, ireg_or_int5_operand,
3091 ireg_operand, int5_operand, uint5_operand, int11_operand,
3092 uint32_operand, arith5_operand, and_operand, ior_operand,
3093 lhs_lshift_operand, lhs_lshift_cint_operand, arith32_operand,
3094 pc_or_label_operand, div_operand, plus_xor_ior_operator,
3095 shadd_operand, movb_comparison_operator,
3096 cmpib_comparison_operator): Move to predicates.md.
3097 (magic_milli, shadd_constant_p): Make it extern.
3098 * config/pa/pa.h (PREDICATE_CODES): Remove.
3099 * config/pa/pa.md: Include predicates.md.
3100 * config/pa/predicates.md: New.
3102 * config/v850/v850.h (PREDICATE_CODES): Remove a nonexistent
3105 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
3107 * hooks.c, hooks.h, intl.c, opts.h, prefix.c, tree-gimple.c,
3108 config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
3109 config/alpha/freebsd.h, config/alpha/linux.h,
3110 config/alpha/netbsd.h, config/alpha/osf5.h,
3111 config/alpha/vms.h, config/arc/arc.c, config/arc/arc.h,
3112 config/h8300/h8300-protos.h, config/h8300/h8300.c,
3113 config/h8300/h8300.h, config/ia64/unwind-ia64.c,
3114 doc/cppopts.texi: Update copyright.
3116 2005-03-18 Jan Hubicka <jh@suse.cz>
3119 * cgraph.c (cgraph_mark_reachable_node): Assert that it is not called
3121 * varasm.c (find_decl_and_mark_needed): Mark needed only when not
3124 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
3126 * tree-into-ssa.c (find_idf): Use VEC_quick_push instead of
3129 2005-03-18 Paolo Bonzini <bonzini@gnu.org>
3131 * combine.c (gen_binary): Remove.
3132 (known_cond, simplify_shift_const, find_split_point,
3133 combine_simplify_rtx, simplify_if_then_else, simplify_set,
3134 simplify_logical, expand_field_assignment, extract_left_shift,
3135 force_to_mode, if_then_else_cond, apply_distributive_law,
3136 simplify_and_const_int, simplify_shift_const, gen_lowpart_for_combine,
3137 simplify_comparison, reversed_comparison): Replace with
3138 simplify_gen_binary, simplify_gen_relational or
3139 distribute_and_simplify_rtx.
3140 (distribute_and_simplify_rtx): New function.
3142 2005-03-18 Alexey Neyman <alex.neyman@auriga.ru>
3143 Paolo Bonzini <gcc.gnu.org>
3145 * calls.c (setjmp_call_p, special_function_p): Update comments
3146 at the head of the functions.
3148 2005-03-18 Jan Hubicka <jh@suse.cz>
3150 * tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
3152 * cgraph.c (cgraph_remove_node): Avoid loop in code deciding whether
3153 function body should be released; do not proactively release function
3154 bodies in non-unit-at-a-time mode.
3156 2005-03-18 Ralf Corsepius <ralf.corsepius@rtems.org>
3158 * config/i386/t-rtems-i386 (MULTILIBS): Remove k6, athlon,
3159 mno-fp-ret-in-387 multilib variants.
3161 2005-03-18 Richard Sandiford <rsandifo@redhat.com>
3163 * common.opt (m): Remove.
3164 * opts.c (handle_option): Pass 'm' options to set_target_switch if
3166 (common_handle_option): Remove OPT_m case.
3168 2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
3170 * builtins.c (fold_builtin_bitop): Take decomposed arguments
3172 (fold_builtin_1): Update a call to fold_builtin_bitop.
3174 * builtins.c (fold_builtin_signbit): Take decomposed arguments
3176 (fold_builtin_1): Update a call to fold_builtin_signbit.
3178 2005-03-17 Dorit Naishlos <dorit@il.ibm.com>
3180 PR tree-optimization/20474
3181 * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Check the
3182 size_type of the relevant pointer. Check for COMPLETE_TYPE_P.
3184 2005-03-17 Kazu Hirata <kazu@cs.umass.edu>
3186 * config/h8300/h8300-protos.h: Remove prototypes for
3187 general_operand_src, general_operand_dst, single_one_operand,
3188 single_zero_operand, call_insn_operand,
3189 two_insn_adds_subs_operand, small_call_insn_operand,
3190 jump_address_operand, bit_operand, bit_memory_operand,
3191 stack_pointer_operand, const_int_gt_2_operand,
3192 const_int_ge_8_operand, const_int_qi_operand,
3193 const_int_hi_operand, incdec_operand, bit_operator,
3194 nshift_operator, eqne_operator, gtle_operator,
3195 gtuleu_operator, iorxor_operator.
3196 Add prototypes for h8sx_shift_type h8sx_classify_shift and
3197 h8300_ldm_stm_parallel.
3198 * config/h8300/h8300.c (h8sx_shift_type,): Move to
3200 (SYMBOL_FLAG_FUNCVEC_FUNCTION, SYMBOL_FLAG_EIGHTBIT_DATA,
3201 SYMBOL_FLAG_TINY_DATA): Move to h8300.h.
3202 (h8300_ldm_stm_parallel): Make it extern.
3203 (h8300_ldm_parallel, h8300_stm_parallel,
3204 h8300_return_parallel, general_operand_src,
3205 general_operand_dst, h8300_dst_operand, h8300_src_operand,
3206 nibble_operand, reg_or_nibble_operand, single_one_operand,
3207 single_zero_operand, call_insn_operand,
3208 two_insn_adds_subs_operand, small_call_insn_operand,
3209 jump_address_operand, bit_operand, bit_memory_operand,
3210 stack_pointer_operand, const_int_gt_2_operand,
3211 const_int_ge_8_operand, const_int_qi_operand,
3212 const_int_hi_operand, incdec_operand, eqne_operator,
3213 gtle_operator, gtuleu_operator, iorxor_operator, bit_operator,
3214 h8sx_binary_memory_operator, h8sx_unary_memory_operator,
3215 h8sx_unary_shift_operator, h8sx_binary_shift_operator,
3216 nshift_operator): Move to predicates.md.
3217 * config/h8300/h8300.h (PREDICATE_CODES): Remove.
3218 * config/h8300/h8300.md: Include predicates.md.
3219 * config/h8300/predicates.md: New.
3221 2005-03-17 Richard Henderson <rth@redhat.com>
3223 * config.gcc (ia64*-*-hpux*): Add extra_options.
3224 * config/ia64/hpux.h (SUBTARGET_SWITCHES): Remove.
3225 (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
3226 * config/ia64/ia64.c (ia64_fixed_range_string): Remove.
3227 (ia64_tls_size_string, ia64_tune_string): Remove.
3228 (ia64_tune): Init to PROCESSOR_ITANIUM2.
3229 (TARGET_DEFAULT_TARGET_FLAGS): New.
3230 (TARGET_HANDLE_OPTION): New.
3231 (ia64_override_options): Move options parsing ...
3232 (ia64_handle_option): ... here. New.
3233 * config/ia64/ia64.h (target_flags, MASK_BIG_ENDIAN, MASK_GNU_AS,
3234 MASK_GNU_LD, MASK_NO_PIC, MASK_VOL_ASM_STOP, MASK_ILP32,
3235 MASK_REG_NAMES, MASK_NO_SDATA, MASK_CONST_GP, MASK_AUTO_PIC,
3236 MASK_INLINE_FLOAT_DIV_LAT, MASK_INLINE_FLOAT_DIV_THR,
3237 MASK_INLINE_INT_DIV_LAT, MASK_INLINE_INT_DIV_THR,
3238 MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR, MASK_DWARF2_ASM,
3239 MASK_EARLY_STOP_BITS, TARGET_BIG_ENDIAN, TARGET_GNU_AS, TARGET_GNU_LD,
3240 TARGET_NO_PIC, TARGET_VOL_ASM_STOP, TARGET_ILP32, TARGET_REG_NAMES,
3241 TARGET_NO_SDATA, TARGET_CONST_GP, TARGET_AUTO_PIC,
3242 TARGET_INLINE_FLOAT_DIV_LAT, TARGET_INLINE_FLOAT_DIV_THR,
3243 TARGET_INLINE_INT_DIV_LAT, TARGET_INLINE_INT_DIV_THR,
3244 TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_INT_DIV, TARGET_INLINE_SQRT_LAT,
3245 TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT, TARGET_DWARF2_ASM,
3246 TARGET_EARLY_STOP_BITS): Remove.
3247 (TARGET_ILP32): Default false.
3248 (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS): Remove.
3249 (enum ia64_inline_type): New.
3250 (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
3251 * config/ia64/ia64.md: Update for new definitions of
3252 TARGET_INLINE_INT_DIV, TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_SQRT.
3253 * config/ia64/ia64.opt: New file.
3254 * config/ia64/ilp32.opt: New file.
3256 2005-03-17 H.J. Lu <hongjiu.lu@intel.com>
3259 * config/ia64/unwind-ia64.c (_Unwind_FindTableEntry): Removed.
3261 2005-03-17 Kazu Hirata <kazu@cs.umass.edu>
3263 * config/h8300/h8300.c (h8300_init_once): Use MASK_H8300S_1
3264 instead of MASK_H8300S.
3265 * config/h8300/h8300.h (target_flags, MASK_H8300S, MASK_MAC,
3266 MASK_INT32, MASK_ADDRESSES, MASK_QUICKCALL, MASK_SLOWBYTE,
3267 MASK_NORMAL_MODE, MASK_RELAX, MASK_H8300H, MASK_ALIGN_300,
3268 MASK_H8300SX, TARGET_INT32, TARGET_ADDRESSES,
3269 TARGET_QUICKCALL, TARGET_SLOWBYTE, TARGET_H8300H,
3270 TARGET_H8300XS, TARGET_NORMAL_MODE, TARGET_ALIGN_300,
3271 TARGET_SWITCHES): Remove.
3272 (TARGET_H8300S): Redefine interms of TARGET_H8300S_1 and
3274 * config/h8300/h8300.opt: New.
3276 * config/alpha/alpha.opt, config/arc/arc.opt,
3277 config/h8300/h8300.opt, config/mips/mips.opt: Add copyright
3280 2005-03-17 Ian Lance Taylor <ian@airs.com>
3284 2005-03-17 Richard Sandiford <rsandifo@redhat.com>
3286 * config/arc/arc.c (arc_cpu_string): Make static. Default to "base"
3287 (arc_text_string, arc_data_string, arc_rodata_string): Make static.
3288 (TARGET_HANDLE_OPTION): Override default.
3289 (arc_handle_option): New function.
3290 (arc_init): Remove code to set arch_cpu_string.
3291 * config/arc/arc.h (target_flags, TARGET_MASK_MANGLE_CPU)
3292 (TARGET_MANGLE_CPU, TARGET_MASK_MANGLE_CPU_LIBGCC)
3293 (TARGET_MANGLE_CPU_LIBGCC, TARGET_MASK_ALIGN_LOOPS, TARGET_ALIGN_LOOPS)
3294 (TARGET_MASK_BIG_ENDIAN, TARGET_BIG_ENDIAN, TARGET_MASK_NO_COND_EXEC)
3295 (TARGET_NO_COND_EXEC, TARGET_SWITCHES, TARGET_DEFAULT)
3296 (SUBTARGET_SWITCHES, arc_cpu_string, arc_text_string, arc_data_string)
3297 (arc_rodata_string, TARGET_OPTIONS): Delete.
3298 * config/arc/arc.opt: New file.
3300 2005-03-17 Richard Henderson <rth@redhat.com>
3302 * doc/extend.texi (Weak Pragmas): New section.
3303 (attribute alias): Clarify that target must be in the same
3306 2005-03-17 Richard Henderson <rth@redhat.com>
3308 * config/alpha/alpha.opt: New file.
3309 * config/alpha/alpha.c (alpha_tune): New. Rename all existing uses
3311 (alpha_cpu_string, alpha_tune_string, alpha_tp_string,
3312 alpha_fprm_string, alpha_fptm_string): Make static.
3313 (alpha_tls_size_string): Remove.
3314 (alpha_handle_option): New.
3315 (override_options): Update for alpha_cpu/alpha_tune split.
3316 (alpha_file_start): Likewise.
3317 (TARGET_DEFAULT_TARGET_FLAGS): New.
3318 (TARGET_HANDLE_OPTION): New.
3319 * config/alpha/alpha.h (alpha_tune): Declare.
3320 (MASK_FP, MASK_FPREGS, TARGET_FPREGS, MASK_GAS, TARGET_GAS,
3321 MASK_IEEE_CONFORMANT, TARGET_IEEE_CONFORMANT, MASK_IEEE, TARGET_IEEE,
3322 MASK_IEEE_WITH_INEXACT, TARGET_IEEE_WITH_INEXACT, MASK_BUILD_CONSTANTS,
3323 TARGET_BUILD_CONSTANTS, MASK_FLOAT_VAX, TARGET_FLOAT_VAX, MASK_BWX,
3324 TARGET_BWX, MASK_MAX, TARGET_MAX, MASK_FIX, TARGET_FIX, MASK_CIX,
3325 TARGET_CIX, MASK_EXPLICIT_RELOCS, TARGET_EXPLICIT_RELOCS,
3326 MASK_SMALL_DATA, TARGET_SMALL_DATA, MASK_TLS_KERNEL, TARGET_TLS_KERNEL,
3327 MASK_SMALL_TEXT, TARGET_SMALL_TEXT, MASK_LONG_DOUBLE_128,
3328 TARGET_LONG_DOUBLE_128, MASK_CPU_EV5, TARGET_CPU_EV5, MASK_CPU_EV6,
3329 TARGET_CPU_EV6, MASK_SUPPORT_ARCH): Remove.
3330 (TARGET_SWITCHES, TARGET_OPTIONS): Remove.
3331 (TARGET_DEFAULT): Remove MASK_FP.
3332 (TARGET_FP): Redefined based on TARGET_SOFT_FP.
3333 (TARGET_SUPPORT_ARCH): Default on if HAVE_AS_EXPLICIT_RELOCS.
3334 (alpha_cpu_string, alpha_tune_string, alpha_fprm_string,
3335 alpha_fptm_string, alpha_tp_string, alpha_mlat_string,
3336 alpha_tls_size_string): Remove.
3337 * config/alpha/alpha.md (prefetch): Use alpha_cpu.
3338 (attribute tune): Rename from attribute cpu.
3339 * config/alpha/ev4.md: Update to match.
3340 * config/alpha/ev5.md, config/alpha/ev6.md: Likewise.
3341 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove MASK_FP.
3342 * config/alpha/linux.h (TARGET_DEFAULT): Likewise.
3343 * config/alpha/netbsd.h (TARGET_DEFAULT): Likewise.
3344 * config/alpha/osf5.h (TARGET_DEFAULT): Likewise.
3345 * config/alpha/vms.h (TARGET_DEFAULT): Likewise.
3347 2005-03-16 James E. Wilson <wilson@specifixinc.com>
3349 * config/ia64/ia64.c (issue_nops_and_insn): Check first_insn attribute,
3350 and return without creating new state if before_nops_num is nonzero.
3351 * config/ia64/ia64.md (first_insn): New attribute.
3352 (alloc): Set it to yes.
3354 2005-03-16 Daniel Berlin <dberlin@dberlin.org>
3356 * tree-vectorizer.c (new_vec_stmt_info): Initialize
3357 STMT_VINFO_SUBVARS to NULL.
3358 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
3360 2005-03-16 Dale Johannesen <dalej@apple.com>
3362 * rtlanal.c (find_first_parameter_load): Rewrite to
3363 return actual first param load or the call if none,
3364 instead of first in block, when not all loads exist.
3366 2005-03-16 Roger Sayle <roger@eyesopen.com>
3368 * optabs.c (expand_copysign_absneg): Make static.
3369 * optabs.h (expand_copysign_absneg): Delete prototype.
3370 * config/rs6000/rs6000.md (copysigntf3): Delete pattern.
3372 2005-03-16 Richard Henderson <rth@redhat.com>
3375 * varasm.c (struct alias_pair): Rename from struct output_def_pair.
3376 (alias_pairs): Rename from output_defs.
3377 (find_decl_and_mark_needed): Split out from assemble_alias.
3378 (do_assemble_alias): New.
3379 (assemble_output_def): Remove.
3380 (finish_aliases_1, finish_aliases_2): New.
3381 (process_pending_assemble_output_defs): Remove.
3382 (assemble_alias): Defer aliases for which we don't yet have a
3383 non-external decl for the target symbol.
3384 * passes.c (rest_of_decl_compilation): Register variables with cgraph.
3385 * cgraphunit.c (cgraph_finalize_compilation_unit): Use finish_aliases_1.
3386 * toplev.c (compile_file): Use finish_aliases_2 instead of
3387 process_pending_assemble_output_defs.
3388 * tree.h (finish_aliases_1, finish_aliases_2): Declare.
3389 (process_pending_assemble_output_defs): Remove.
3391 2005-03-16 Daniel Berlin <dberlin@dberlin.org>
3393 Fix PR tree-optimization/20489
3395 * tree-ssa-alias.c (push_fields_onto_fieldstack): DTRT
3396 for empty structures.
3398 2005-03-16 Daniel Berlin <dberlin@dberlin.org>
3400 Fix PR tree-optimization/20490
3402 * tree-ssa-pre.c (create_expression_by_pieces): Use
3403 force_gimple_operand on result of fold.
3405 2005-03-16 Andrew Pinski <pinskia@physics.uc.edu>
3407 * config/i386/emmintrin.h (_mm_extract_epi16): Correct the number
3408 of closing parenthesis.
3410 2005-03-16 Kazu Hirata <kazu@cs.umass.edu>
3412 * builtins.c (expand_movstr): Update a call to
3413 fold_builtin_strcpy.
3414 (expand_builtin_strncpy): Update a call to
3415 fold_builtin_strncpy.
3416 (fold_builtin_strcpy, fold_builtin_strncpy): Take decomosed
3417 arguments of CALL_EXPR.
3418 (fold_builtin_1): Update calls to fold_builtin_strcpy and
3419 fold_builtin_strncpy.
3420 * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
3421 * tree.h: Update the prototypes of fold_builtin_strcpy and
3422 fold_builtin_strncpy.
3424 2005-03-16 Steven Bosscher <stevenb@suse.de>
3425 Dorit Naishlos <dorit@il.ibm.com>
3427 * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Copy
3428 UNITS_PER_SIMD_WORD to a local variable to avoid a "division by zero"
3431 2005-03-16 Steven Bosscher <stevenb@suse.de>
3433 * tree-inline.c (walk_type_fields, walk_tree,
3434 walk_tree_without_duplicates): Move from here...
3435 * tree.c: ...to here.
3437 2005-03-15 Zack Weinberg <zack@codesourcery.com>
3439 * BASE-VER, DATESTAMP, DEV-PHASE: New files.
3440 * Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
3441 (BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
3442 (BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
3443 (version): Define using $(BASEVER_c).
3444 (Makefile, config.status, build/gcov-iov.o): No longer depends on
3446 (version.o): Depend on version files; add custom generation command.
3447 (prefix.o): Define BASEVER on command line.
3448 (s-iov): Depend on version files; adjust command.
3449 (TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
3451 (gcc-vers.texi): New rule.
3452 (doc/%.info, doc/%.dvi): Add -I . to command line.
3453 (doc/gccinstall.dvi): Likewise.
3454 (PACKAGE): Delete. All uses replaced with "gcc".
3455 * aclocal.m4: Do not include gcc-version.m4.
3456 * configure.ac: Do not invoke TL_AC_GCC_VERSION.
3457 Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
3458 Set is_release based on contents of DEV-PHASE.
3459 Set gcc_version based on contents of BASE-VER.
3460 Define WIN32_REGISTRY_KEY only if the user overrode the default.
3461 * config.in, configure: Regenerate.
3462 * gccbug.in: Determine version of GCC in use at runtime.
3463 * gcov-iov.c: Get version number and development phase from
3464 command line, not by including version.c.
3465 * intl.c: Replace all uses of PACKAGE with "gcc".
3466 * libada-mk.in: Delete unused "gcc_version" variable.
3467 * prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
3468 * version.c: (VERSUFFIX): New hook for redistributors; adjust
3469 commentary to match.
3470 (version_string): Put together from pieces.
3471 * config/alpha/x-vms: Do not use $(gcc_version).
3472 * config/i386/t-nwld: Likewise.
3473 * doc/include/gcc-common.texi: Include gcc-vers.texi for
3474 version-GCC and DEVELOPMENT.
3476 2005-03-15 Roger Sayle <roger@eyesopen.com>
3478 PR tree-optimization/17454
3479 * tree.c (tree_size): Add case for TREE_BINFO.
3480 * fold-const.c (fold_checksum_tree): Only clear the overloaded
3481 field TYPE_CACHED_VALUES if TYPE_CACHED_VALUES_P is set.
3483 2005-03-15 Roger Sayle <roger@eyesopen.com>
3485 * optabs.c (expand_doubleword_mult): Avoid clobbering op0 and
3486 op1 whilst expanding the signed widenening multiply variant.
3488 2005-03-15 Richard Sandiford <rsandifo@redhat.com>
3490 * toplev.c (display_target_options): Avoid unused variable warning if
3491 TARGET_SWITCHES and TARGET_OPTIONS are both undefined.
3492 * config/mips/mips.c (mips_arch_string, mips_tune_string): Make static.
3493 (mips_isa_string, mips_abi_string, mips_fix_vr4130_string): Delete.
3494 (mips_isa): Initialize to MIPS_ABI_DEFAULT.
3495 (mips_isa_info): New variable.
3496 (mips_parse_cpu): Remove the first argument and leave the caller
3498 (TARGET_HANDLE_OPTION): Override default.
3499 (mips_handle_option): New function. Move option validation code from...
3500 (override_options): ...here. Update calls to mips_parse_cpu.
3501 * config/mips/mips.h (mips_arch_string, mips_tune_string)
3502 (mips_isa_string, mips_abi_string, TARGET_OPTIONS)
3503 (SUBTARGET_TARGET_OPTIONS): Delete.
3504 * config/mips/mips.opt (mabi=, march=, mflush-func=, mips)
3505 (mno-flush-func, mtune=): New options.
3507 2005-03-15 Roger Sayle <roger@eyesopen.com>
3508 Richard Henderson <rth@redhat.com>
3510 * real.c (c4x_single_format, c4x_extended_format): Provide values
3511 for signbit_ro for c4x's single and extended floating point formats.
3512 * optabs.c (expand_copysign): Use the floating point format's
3513 signbit_ro for expanding via expand_copysign_absneg, and it's
3514 signbit_rw field for expanding via expand_copysign_bit.
3516 2005-03-15 Dorit Naishlos <dorit@il.ibm.com>
3518 * tree-vectorizer.h (unknown_alignment_for_access_p): Replaced by
3519 known_alignment_for_access_p.
3520 (known_alignment_for_access_p): New.
3521 (do_peeling_for_alignment): Field made int instead of bool and renamed
3522 to peeling_for_alignment.
3523 (LOOP_DO_PEELING_FOR_ALIGNMENT): Renamed to LOOP_PEELING_FOR_ALIGNMENT.
3524 * tree-vect-analyze.c (vect_determine_vectorization_factor): New. This
3525 functionality used to be in vect_analyze_operations.
3526 (vect_analyze_operations): Code to determine vectorization factor was
3527 moved to vect_determine_vectorization_factor.
3528 (vect_enhance_data_refs_alignment): Update to correct alignment when it
3529 is known instead of -1. Set LOOP_PEELING_FOR_ALIGNMENT to peeling
3531 (vect_analyze_loop): Call vect_determine_vectorization_factor (used to
3532 be part of vect_analyze_operations).
3533 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Use fold when
3534 creating the guard condition, as the number of iterations may be
3536 (slpeel_tree_peel_loop_to_edge): Use new name of
3537 LOOP_DO_PEELING_FOR_ALIGNMENT. Set it to 0 instead of false.
3538 * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Handle known
3539 alignment case more efficiently. Use LOOP_PEELING_FOR_ALIGNMENT.
3540 (vect_do_peeling_for_alignment): Use fold.
3541 (vect_transform_loop): Use new name of LOOP_DO_PEELING_FOR_ALIGNMENT.
3543 (vect_update_inits_of_dr): Renamed to
3544 vect_update_init_of_dr.
3545 (vect_update_inits_of_drs): Use new name of vect_update_inits_of_dr.
3546 (vectorizable_store): Fix assertion to use == instead of =.
3548 2005-03-15 Daniel Jacobowitz <dan@codesourcery.com>
3550 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't clear
3551 call_used_regs for wCG registers.
3553 2005-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3555 * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
3556 for non-offsettable memory references to cope with outstanding reload
3557 replacements, take 2.
3559 2005-03-15 Uros Bizjak <uros@kss-loka.si>
3562 * config/i386/i386.h (x86_fisttp): New.
3563 (TARGET_FISTTP): New macro.
3564 * config/i386/i386.c (x86_fisttp): Set for NOCONA.
3565 (output_fix_trunc): Add fisttp parameter. Generate fisttp x87
3566 instruction when fisttp flag is set.
3567 * config/i386/i386-protos.h (output_fix_trunc): Change declaration.
3569 * config/i386/i386.md (type attribute): Add fisttp.
3570 (unit attribute): Set to i387 for fisttp type.
3571 (X87MODEF, X87MODEI, SSEMODEF, SSEMODEI24): New mode macros.
3572 (fix_truncxfdi2, fix_truncxfsi2): Generate fisttp patterns for
3574 (fix_truncdfdi2, fix_truncsfdi2, fix_truncdfsi2, fix_truncsfsi2):
3575 Generate fisttp patterns for TARGET_FISTTP. Implement using mode
3577 (fix_truncxfhi2, fix_truncdfhi2, fix_truncsfhi2): Generate fisttp
3578 patterns for TARGET_FISTTP. Enable patterns for
3579 (TARGET_FISTTP && !TARGET_SSE_MATH). Implement using mode macros.
3580 (fix_trunc<mode>_i387_fisttp_1, fix_trunc<mode>_i387_fisttp,
3581 fix_trunc<mode>_i387_fisttp_with_temp): New instruction patterns to
3582 implement fisttp x87 insn.
3583 (fix_trunc*_i387_fisttp splitters): New patterns.
3584 (*fix_truncdi_i387, *fix_truncsi_i387, *fix_trunchi_i387):
3585 Rename to *fix_trunc<mode>_i387_1. Implement using mode macros.
3586 Disable patterns for TARGET_FISTTP. Add comment about FLAGS_REG
3588 (fix_truncdi_memory, fix_truncdi_nomemory, fix_trunchi_nomemory):
3589 Rename to fix_trunc<mode>_i387 and fix_trunc<mode>_i387_with_temp.
3590 Implement using mode macros. Disable patterns for TARGET_FISTTP.
3591 (fix_truncsi_memory, fix_truncsi_nomemory, fix_trunchi_memory,
3592 fix_trunchi_nomemory): Rename to fix_trunc<mode>_i387 and
3593 fix_trunc<mode>_i387_with_temp. Implement using mode macros.
3594 Disable patterns for TARGET_FISTTP.
3595 (fix_trunc*_i387 splitters): Implement usign mode macros.
3596 (fix_truncdfdi_sse, fix_truncsfdi_sse, fix_truncdfsi_sse,
3597 fix_truncsfsi_sse): Disable for (TARGET_FISTTP && !TARGET_SSE_MATH).
3598 (fix_trunx*_sse peephole2s): Implement using mode macros.
3600 2005-03-15 J"orn Rennecke <joern.rennecke@st.com>
3602 PR rtl-optimization/20291
3603 * combine.c (try_combine): If splitting fails, re-try with
3604 original combined pattern, i.e. before clobber stripping.
3606 2005-03-14 Eric Christopher <echristo@redhat.com>
3608 * config/mips/mips.h (DWARF_CIE_DATA_ALIGNMENT): Change for
3609 STACK_GROWS_DOWNWARD.
3611 2005-03-14 Roger Sayle <roger@eyesopen.com>
3613 * real.h (struct real_format): Split the signbit field into two
3614 two fields, signbit_ro and signbit_rw.
3615 * real.c (ieee_single_format, mips_single_format, ieee_double_format,
3616 mips_double_format, ieee_extended_motorola_format,
3617 ieee_extended_intel_96_format, ieee_extended_intel_96_round_53_format,
3618 ieee_extended_intel_128_format, ibm_extended_format,
3619 mips_extended_format, ieee_quad_format, mips_quad_format,
3620 vax_f_format, vax_d_format, vax_g_format, i370_single_format,
3621 i370_double_format, c4x_single_format, c4x_extended_format,
3622 real_internal_format): Update initializers for new field.
3623 * builtins.c (expand_builtin_signbit): Use signbit_ro field of the
3624 real_format structure.
3625 * optabs.c (expand_absneg_bit, expand_copysign): Use signbit_rw
3626 field of the real_format structure.
3628 2005-03-14 Daniel Berlin <dberlin@dberlin.org>
3630 Fix PR tree-optimization/20458
3632 * tree-flow-inline.h (mark_call_clobbered): Don't fiddle
3633 DECL_EXTERNAL on STRUCT_FIELD tags.
3634 (clear_call_clobbered): Ditto.
3635 * tree-ssa-operands.c (note_addressable): Make sure the original
3636 variable doesn't slip into the addressable list if we have
3638 * tree-tailcall.c (suitable_for_tail_opt_p): Look at STRUCT_FIELD
3641 2005-03-14 Geoffrey Keating <geoffk@apple.com>
3643 * doc/cppopts.texi (-fexec-charset): Add concept index entry.
3644 (-fwide-exec-charset): Likewise.
3645 (-finput-charset): Likewise.
3646 * doc/invoke.texi (Warning Options): Document -Wnormalized=.
3647 * c-opts.c (c_common_handle_option): Handle -Wnormalized=.
3648 * c.opt (Wnormalized): New.
3650 2005-03-14 Devang Patel <dpatel@apple.com>
3652 * doc/invoke.texi: Add reference to Visibility document.
3654 2005-03-14 Richard Sandiford <rsandifo@redhat.com>
3656 * config.gcc (mips*-*-*): Rename MASK_SPLIT_ADDRS to
3657 MASK_SPLIT_ADDRESSES.
3658 * config/mips/mips.h (target_flags, mips_fix_vr4130_string): Delete.
3659 (MASK_INT64, MASK_LONG64, MASK_SPLIT_ADDR, MASK_NO_FUSED_MADD)
3660 (MASK_EXPLICIT_RELOCS, MASK_MEMCPY, MASK_SOFT_FLOAT)
3661 (MASK_FLOAT64, MASK_ABICALLS, MASK_XGOT, MASK_LONG_CALLS)
3662 (MASK_64BIT, MASK_EMBEDDED_DATA, MASK_BIG_ENDIAN)
3663 (MASK_SINGLE_FLOAT, MASK_MAD, MASK_4300_MUL_FIX, MASK_MIPS16)
3664 (MASK_NO_CHECK_ZERO_DIV, MASK_BRANCHLIKELY)
3665 (MASK_UNINIT_CONST_IN_RODATA, MASK_FIX_R4000, MASK_FIX_R4400)
3666 (MASK_FIX_SB1, MASK_FIX_VR4120, MASK_VR4130_ALIGN)
3667 (MASK_FP_EXCEPTIONS, MASK_DIVIDE_BREAKS, MASK_PAIRED_SINGLE)
3668 (MASK_MIPS3D, MASK_SYM32, MASK_DEBUG, MASK_DEBUG_D)
3669 (MASK_MIPS_TFILE, TARGET_INT64, TARGET_LONG64, TARGET_FLOAT64)
3670 (TARGET_64BIT, TARGET_SPLIT_ADDRESSES, TARGET_DEBUG_MODE)
3671 (TARGET_DEBUG_D_MODE, TARGET_MEMCPY, TARGET_ABICALLS)
3672 (TARGET_XGOT, TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT)
3673 (TARGET_LONG_CALLS, TARGET_EMBEDDED_DATA)
3674 (TARGET_UNINIT_CONST_IN_RODATA, TARGET_BIG_ENDIAN)
3675 (TARGET_SINGLE_FLOAT, TARGET_DOUBLE_FLOAT, TARGET_MAD)
3676 (TARGET_FUSED_MADD, TARGET_4300_MUL_FIX, TARGET_CHECK_ZERO_DIV)
3677 (TARGET_DIVIDE_TRAPS, TARGET_BRANCHLIKELY, TARGET_FIX_SB1)
3678 (TARGET_FIX_R4000, TARGET_FIX_R4400, TARGET_FIX_VR4120)
3679 (TARGET_FIX_VR4130, TARGET_VR4130_ALIGN, TARGET_FP_EXCEPTIONS)
3680 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D, TARGET_SYM32)
3681 (TARGET_EXPLICIT_RELOCS): Delete.
3682 (TARGET_SWITCHES, SUBTARGET_TARGET_SWITCHES): Delete.
3683 (TARGET_OPTIONS): Remove entry for -mfix-vr4130.
3684 * config/mips/mips.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
3685 (override_options): Set MASK_LONG64 if -mint64 is given and no
3686 -mlongXX option is. Complain about -mint64 -mlong32.
3687 (override_options, CMP_BUILTINS, mips_bdesc, sb1_desc): Rename
3688 MASK_PAIRED_SINGLE to MASK_PAIRED_SINGLE_FLOAT.
3689 * config/mips/mips.opt: New file.
3691 2005-03-14 Richard Sandiford <rsandifo@redhat.com>
3693 * config.gcc (extra_options): New variable for listing option files.
3694 Add ${cpu_type}/${cpu_type}.opt to it if that file exists.
3695 * configure.ac (extra_opt_files): New AC_SUBST variable.
3696 (tm_file_list, tm_include_list): Include options.h first.
3697 * configure: Regenerate.
3698 * Makefile.in (extra_opt_files, ALL_OPT_FILES): New variables.
3699 (s-options): Use $(ALL_OPT_FILES) instead of $(lang_opt_files)
3700 (s-options-h): New rule.
3701 (options.h): Depend on it.
3702 (TEXI_GCCINT_FILES): Add options.texi.
3703 * hooks.h (hook_bool_size_t_constcharptr_int_true): Declare.
3704 * hooks.c (hook_bool_size_t_constcharptr_int_true): New function.
3705 * target.h (gcc_target): Add default_target_flags and handle_option.
3706 * target-def.h (TARGET_DEFAULT_TARGET_FLAGS)
3707 (TARGET_HANDLE_OPTION): New macros.
3708 (TARGET_INITIALIZER): Include them.
3709 * opt-functions.awk (opt_args, nth_arg): New functions.
3710 (switch_flags): Handle the "Target" flag.
3712 (var_name): Use opt_args and nth_arg.
3713 (var_set, var_ref): Likewise. Handle "Mask" and "InverseMask".
3714 * opth-gen.awk: Declare target_flags. Declare MASK_* and TARGET_*
3715 macros for the "Mask" and "InverseMask" options.
3716 * opts.h (cl_var_cond): New enum.
3717 (cl_option): Replace the "has_set_value" and "set_value" fields with
3718 "var_cond" and "var_value".
3719 (CL_TARGET): New macro.
3720 (option_enabled, print_filtered_help): Declare.
3721 (decode_options): Move definition.
3722 * opts.c (handle_option): Search for the original option before
3723 removing any "no-" prefix. Handle CL_TARGET. Adjust for the new
3724 var_cond and var_value fields. Use targetm.handle_option to handle
3726 (decode_options): Set target_flags to targetm.default_target_flags.
3727 (print_filtered_help): Make global. Handle CL_TARGET.
3728 (option_enabled): New function.
3729 * toplev.c (target_switches): Guard with #ifdef TARGET_SWITCHES.
3730 (display_target_options, set_target_switch, print_switch_values)
3731 (default_pch_valid_p): Guard uses of target_switches with
3732 #ifdef TARGET_SWITCHES. Also...
3733 (display_target_options): Display the CL_TARGET entries in cl_options.
3734 (set_target_option): Don't complain about the "" option when
3735 TARGET_SWITCHES is undefined.
3736 (print_switch_values): Use option_enabled.
3737 (default_pch_valid_p): Check cl_options[] when looking for something
3738 that has changed the value of target_flags.
3739 * c.opt: Remove documentation from top of file.
3740 * doc/gccint.texi: Add an "Options" chapter. Include options.texi.
3741 * doc/sourecebuild.texi: Refer to the new options documentation
3742 instead of c.opt. Document machine-specific .opt files.
3743 * doc/tm.texi (target_flags): Say that this variable is declared
3745 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Document.
3746 (TARGET_SWITCHES, TARGET_OPTIONS): Refer to the option files as
3748 * doc/options.texi: New file.
3750 2005-03-14 Alexandre Oliva <aoliva@redhat.com>
3753 * cse.c (fold_rtx_mem): Don't fold a load from a jumptable into a
3756 2005-03-14 Alexandre Oliva <aoliva@redhat.com>
3759 * gimplify.c (gimplify_cond_expr): Add fallback argument. Use a
3760 temporary variable of pointer type if an lvalues is required.
3761 (gimplify_modify_expr_rhs): Request an rvalue from it.
3762 (gimplify_expr): Pass fallback on.
3764 2005-03-14 Kazu Hirata <kazu@cs.umass.edu>
3766 * cfgbuild.c: Update comments.
3768 2005-03-14 Roger Sayle <roger@eyesopen.com>
3770 PR rtl-optimization/17236
3771 * optabs.c (expand_doubleword_mult): New helper function split out
3772 from expand_binop. Permute the order in which instructions are
3773 emitted to minimize the number of simultaneously live registers.
3774 (expand_binop): Call expand_doubleword_mult to synthesize a double
3775 word multiplication.
3777 2005-03-14 Kazu Hirata <kazu@cs.umass.edu>
3779 * basic-block.h: Update the prototypes of cached_make_edge and
3781 * cfg.c (cached_make_edge): Take edge_cache representing one
3782 row of the adjacency matrix of edges.
3783 * cfgbuild.c (make_label_edge, rtl_make_eh_edge): Likewise.
3784 (make_edges): Initialize edge_cache to represent one row of
3785 the adjacency matrix of edges.
3787 2005-03-14 Zdenek Dvorak <dvorakz@suse.cz>
3789 * tree-ssa-phiopt.c (minmax_replacement, blocks_in_phiopt_order):
3791 (tree_ssa_phiopt): Use blocks_in_phiopt_order and minmax_replacement.
3792 Remove unused removed_phis variable.
3793 (conditional_replacement): Use build1/build2.
3794 (abs_replacement): Use last_and_only_stmt and build1/build2.
3796 2005-03-14 Zdenek Dvorak <dvorakz@suse.cz>
3798 * builtin-attrs.def (ATTR_NOVOPS, ATTR_NOVOPS_LIST,
3799 ATTR_PURE_NOTHROW_NOVOPS_LIST): New.
3800 * builtins.def (ATTR_MATHFN_FPROUNDING): Use NOVOPS.
3801 (BUILT_IN_PREFETCH): Set the NOVOPS attribute.
3802 * c-common.c (handle_novops_attribute): New function.
3803 (c_common_attribute_table): Add "no vops" entry.
3804 * c-decl.c (merge_decls): Copy DECL_IS_NOVOPS.
3805 * calls.c (flags_from_decl_or_type): Set ECF_NOVOPS.
3806 * tree-ssa-operands.c (get_call_expr_operands): Do not
3807 create virtual operands for calls with ECF_NOVOPS flag.
3808 * tree.h (DECL_IS_NOVOPS): New macro.
3809 (struct tree_decl): Add novops_flag.
3810 (ECF_NOVOPS): New constant.
3812 2005-03-14 Uros Bizjak <uros@kss-loka.si>
3815 * config/i386/i386.c (x86_use_himode_fiop): New.
3816 (x86_use_simode_fiop): Rename from x86_use_fiop.
3817 * config/i386/i386.h (x86_use_himode_fiop): Declare.
3818 (TARGET_USE_HIMODE_FIOP): New.
3819 (x86_use_simode_fiop): Rename from x86_use_fiop.
3820 (TARGET_USE_SIMODE_FIOP): Rename from TARGET_USE_FIOP.
3822 * config/i386/i386.md (X87MODEI12): New mode macro define.
3823 (*cmpfp_<mode>): Rename from *cmpfp_si. Use X87MODEI12 mode macro
3824 to implement x87 FP compare with HImode input operands.
3825 (*fp_jcc_8<mode>_387, splitter): Rename from *fp_jcc_8_387.
3826 Use X87MODEI12 mode macro to handle HImode input operands.
3827 (*fop_sf_2<mode>_i387, *fop_sf_3<mode>_i387, *fop_df_2<mode>_i387,
3828 *fop_df_3<mode>_i387, *fop_xf_2<mode>_i387, *fop_xf_3<mode>_i387):
3829 Renamed from *fop_sf_2_i387, *fop_sf_3_i387, *fop_df_2_i387,
3830 *fop_df_3_i387, *fop_xf_2_i387, *fop_xf_3_i387. Use X87MODEI12 mode
3831 macro to implement x87 operators with HImode input operands.
3832 (fop splitters): Use X87MODEI12 mode macro to handle HImode
3835 2005-03-14 Zdenek Dvorak <dvorakz@suse.cz>
3837 * tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
3839 * tree-gimple.c (is_gimple_min_invariant): Consider overflowed
3840 constants invariant.
3842 2005-03-14 Zdenek Dvorak <dvorakz@suse.cz>
3844 * basic-block.h (BB_VISITED): Removed.
3845 * cfganal.c (dfs_enumerate_from): Do not use BB_VISITED flag.
3847 2005-03-14 Falk Hueffner <falk@debian.org>
3850 * config/alpha/alpha.c (alpha_fold_builtin_cmpbge): Fix typo.
3852 2005-03-14 Kazu Hirata <kazu@cs.umass.edu>
3854 * ggc-zone.c: Fix comment typos.
3856 * alloc-pool.c, except.h, ggc-common.c, ggc-zone.c, ggc.h,
3857 stringpool.c, config/mips/mips-protos.h: Update copyright.
3859 2005-03-14 Alan Modra <amodra@bigpond.net.au>
3861 * config/rs6000/rs6000-protos.h: Replace "struct rtx_def *"
3862 throughout with its typedef, "rtx".
3863 * config/rs6000/rs6000.c: Likewise. Formatting fixes.
3864 (rs6000_tls_symbol_ref_1): Remove inline keyword.
3865 * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Formatting. Reorder
3866 regs in comment to match code.
3868 2005-03-14 Kazu Hirata <kazu@cs.umass.edu>
3870 * except.c (check_handled): Make it static.
3871 * except.h: Remove the corresponding prototype.
3873 * function.c (get_func_frame_size): Make it static.
3874 * function.h: Remove the corresponding type.
3876 * regclass.c (reg_class_superclasses, reg_class_subclasses):
3878 * hard-reg-set.h: Remove the corresponding declarations.
3880 * tree-cfg.c (verify_stmts): Check that
3881 bb_for_stmt (stmt) == bb for every PHI node and statement.
3883 2005-03-14 Alan Modra <amodra@bigpond.net.au>
3885 * config.gcc: Remove excess indentation.
3886 (powerpc*-*-*, rs6000-*-*): Accept --with-cpu/tune power5 and 8548.
3888 2005-03-13 Roger Sayle <roger@eyesopen.com>
3891 * tree.c (get_unwidened): Treat CONVERT_EXPR and NOP_EXPR identically.
3892 * fold-const.c (fold_sign_changed_comparison): Likewise.
3893 (fold_binary): Optimize comparisons against widened operands if
3894 the extension is represented by a CONVERT_EXPR, same as a NOP_EXPR.
3896 2005-03-13 Eric Botcazou <ebotcazou@libertysurf.fr>
3898 * config/sparc/sparc.c (struct_value_alias_set): New global variable.
3899 (sparc_override_options): Initialize it.
3900 (sparc_struct_value_rtx): Set it on the MEM to be returned.
3902 2005-03-13 David Edelsohn <edelsohn@gnu.org>
3904 * config/rs6000/predicates.md (mem_or_easy_const_operand): Delete.
3905 (reg_or_none500mem_operand): New predicate.
3906 (zero_reg_mem_operand): New predicate.
3907 * config/rs6000/rs6000.md (extendsfdf2): Change operand1 predicate
3908 to reg_or_none500mem_operand.
3909 (extendsfdf2_fpr): Add MEM alternative.
3910 (extenddftf2_internal): Change operand2 predicate to
3911 zero_reg_mem_operand.
3913 2005-03-13 Daniel Jacobowitz <dan@codesourcery.com>
3915 * ggc-zone.c: Rewritten.
3917 * alloc-pool.c (dump_alloc_pool_statistics): Don't print statistics
3919 * configure.ac: Define GGC_ZONE for --with-gc=zone.
3920 * config.in: Regenerated.
3921 * configure: Regenerated.
3922 * gengtype.c (write_types_process_field, write_func_for_structure):
3923 Pass new argument to gt_pch_note_object.
3924 * ggc-common.c (struct ptr_data): Add TYPE.
3925 (gt_pch_note_object): Take TYPE argument and save it.
3926 (call_count): Update call to ggc_pch_count_object.
3927 (call_alloc): Update call to ggc_pch_alloc_object.
3928 (gt_pch_save): Call ggc_pch_prepare_write after paddng the PCH
3930 * ggc-none.c (rtl_zone, garbage_zone, ggc_alloc_zone_stat): Delete.
3931 * ggc-page.c (rtl_zone, tree_zone, garbage_zone)
3932 (ggc_alloc_zone_stat): Delete.
3933 (ggc_pch_count_object, ggc_pch_alloc_object): Add TYPE argument.
3934 * ggc.h (gt_pch_note_object, ggc_pch_count_object)
3935 (ggc_pch_alloc_object): Update prototypes.
3936 (garbage_zone): Delete.
3937 (tree_zone, rtl_zone, ggc_alloc_zone_stat, ggc_alloc_zone): Move to
3938 GGC_ZONE conditional. Update. Change tree_zone and rtl_zone into
3940 (tree_id_zone): New variable.
3941 (ggc_alloc_cleared_zone): Remove unused.