Commit Graph

68314 Commits

Author SHA1 Message Date
Richard Sandiford 64fbae219b * opth-gen.awk: Remove excess indentation.
From-SVN: r99715
2005-05-15 08:16:01 +00:00
Richard Sandiford b167666c7f * optc-gen.awk: Remove excess indentation.
From-SVN: r99714
2005-05-15 08:10:10 +00:00
Feng Wang b078dfbf39 [multiple changes]
2005-05-15  Feng Wang <fengwang@nudt.edu.cn>
        Jerry DeLisle <jvdelisle@verizon.net>

        PR fortran/17432
        * trans-stmt.c (gfc_trans_label_assign): fix pointer type, to
        resolve ICE on assign of format label.
        * trans-io.c (set_string): add fold-convert to properly
        handle assigned format label in write.

2005-05-15  Jerry DeLisle <jvdelisle@verizon.net>

        PR fortran/17432
        * gfortran.dg/assign_4.f: New test.

From-SVN: r99711
2005-05-15 02:45:29 +00:00
Kaz Kojima 652ad06233 sh.c (sh_output_mi_thunk): Check cfun->cfg instead of basic_block_info.
* config/sh/sh.c (sh_output_mi_thunk): Check cfun->cfg instead
	of basic_block_info.  Call init_flow and find_basic_blocks
	before dbr_schedule if needed.

From-SVN: r99710
2005-05-15 02:02:58 +00:00
GCC Administrator 84c53dddc9 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r99708.2
2005-05-15 00:16:42 +00:00
Kazu Hirata 5de2df7bd4 re PR tree-optimization/21563 (A trivial VRP opportunity missed)
gcc/
	PR tree-optimization/21563
	* tree-vrp.c (compare_value): Return boolean_false_node when
	SSA_NAME in "if (SSA_NAME == CST)" is strictly smaller than or
	strictly larger than CST.

testsuite/
	PR tree-optimization/21563
	* gcc.dg/tree-ssa/pr21563.c: New.

From-SVN: r99705
2005-05-14 20:32:59 +00:00
Kazu Hirata 92df92cdda tree-optimize.c (init_tree_optimization_passes): Move pass_cd_dce in place of the last pass_dce.
* tree-optimize.c (init_tree_optimization_passes): Move
	pass_cd_dce in place of the last pass_dce.

From-SVN: r99704
2005-05-14 20:22:58 +00:00
Nathan Sidwell 90285d8d96 vax.c: (print_operand_address) Use gcc_unreachable() and gcc_assert().
* config/vax/vax.c: (print_operand_address) Use gcc_unreachable() and
	gcc_assert().
	(rev_cond_name) Likewise.
	(vax_float_literal) Likewise.
	* config/vax/vax.md: Likewise.

Co-Authored-By: Jan-Benedict Glaw <jbglaw@lug-owl.de>

From-SVN: r99703
2005-05-14 18:08:20 +00:00
Jan-Benedict Glaw 0f8def688d vax.md: define_constant VAXens AP...
* config/vax/vax.md: define_constant VAXens AP, FP, SP and PC
	registers and use them (specifically the stack pointer).
	* config/vax/vax.h: Use above defines right here.

From-SVN: r99702
2005-05-14 17:55:33 +00:00
Jan-Benedict Glaw d001241c89 vax.c: (override_options) Remove 'register' keyword.
* config/vax/vax.c: (override_options) Remove 'register' keyword.
	(split_quadword_operands) Likewise. (rev_cond_name) Likewise.
	(vax_float_literal) Likewise. (vax_rtx_costs) Remove trailing
	whitespace.
	* config/vax/vax.h: Remove 'register' keyword. Misc. whitespace fixes,
	mostly removal of trailing spaces...
	* config/vax/vax-modes.def: Remove trailing whitespace.

From-SVN: r99701
2005-05-14 17:50:00 +00:00
Jan-Benedict Glaw 0b55eafa7e * config/vax/elf.h: Update whitespace.
From-SVN: r99700
2005-05-14 17:38:46 +00:00
Richard Guenther 6033ae2aeb revert: fold-const.c (fold_indirect_ref_1): Avoid removing NOP_EXPRs with type qualifiers like const.
2005-05-14  Richard Guenther  <rguenth@gcc.gnu.org>

 	Revert
 	2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
 	* fold-const.c (fold_indirect_ref_1): Avoid removing
 	NOP_EXPRs with type qualifiers like const.

From-SVN: r99699
2005-05-14 15:42:01 +00:00
Jan Hubicka a8b3ba8b05 Patch by Richard Henderson:
* tree-eh.c (tree_can_throw_internal, tree_can_throw_external):
	Handle RESX expressions properly.

From-SVN: r99698
2005-05-14 14:32:39 +00:00
Jan Hubicka a78b491f29 tree-eh.c (record_stmt_eh_region): Use add_stmt_to_eh_region.
* tree-eh.c (record_stmt_eh_region): Use add_stmt_to_eh_region.
	(add_stmt_to_eh_region_fn): Nest into CALL_EXPR.
	(remove_stmt_from_eh_region_fn): Likewise.

From-SVN: r99697
2005-05-14 14:27:09 +00:00
Jan Hubicka aa313ed486 tree-cfg.c (execute_warn_function_return): Break out noreturn warning too..
* tree-cfg.c (execute_warn_function_return): Break out noreturn
	warning too..
	(execute_warn_function_noreturn): ... here.
	(pass_warn_function_noreturn): New pass.
	* tree-pass.h (pass_warn_function_noreturn): Declare
	* tree-optimize.c (init_tree_optimization_passes): Move return
	warnings early and add noreturn warnings at place of previous
	return warnings.

From-SVN: r99696
2005-05-14 14:24:49 +00:00
Kazu Hirata 7af893cb9f tree-ssa-live.c (tpa_init, [...]): Use VEC instead of VARRAY.
* tree-ssa-live.c (tpa_init, tpa_delete, tpa_compact,
	root_var_init, type_var_init): Use VEC instead of VARRAY.
	* tree-ssa-live.h (tree_partition_associator_d): Change the
	type of trees to VEC(tree,heap)*.
	(tpa_tree): Use VEC instead of VARRAY.

From-SVN: r99695
2005-05-14 13:05:37 +00:00
Richard Guenther 03b0db0a4e fold-const.c (div_if_zero_remainder): New function.
2005-05-14  Richard Guenther  <rguenth@gcc.gnu.org>

	* fold-const.c (div_if_zero_remainder): New function.
	(try_move_mult_to_index): Use it.

	* g++.dg/tree-ssa/tmmti-2.C: New testcase.

From-SVN: r99694
2005-05-14 12:53:20 +00:00
Kazu Hirata 59ebc70406 tree-eh.c (leh_tf_state): Change the type of dest_array to VEC(tree,heap)*.
* tree-eh.c (leh_tf_state): Change the type of dest_array to
	VEC(tree,heap)*.
	(maybe_record_in_goto_queue, lower_try_finally_onedest,
	lower_try_finally_copy, lower_try_finally_switch,
	lower_try_finally): Use VEC instead of VARRAY.

From-SVN: r99693
2005-05-14 03:25:44 +00:00
Hans-Peter Nilsson 8238307080 cris.h (Node: Register Classes): Remove obsoleted comment regarding defined register classes.
* config/cris/cris.h (Node: Register Classes): Remove obsoleted
	comment regarding defined register classes.
	(LEGITIMIZE_RELOAD_ADDRESS): Do not define.

From-SVN: r99692
2005-05-14 02:33:25 +00:00
Kazu Hirata c80a9eb50f tree-optimize.c (init_tree_optimization_passes): Move pass_merge_phi before the first pass_dominator.
* tree-optimize.c (init_tree_optimization_passes): Move
	pass_merge_phi before the first pass_dominator.

From-SVN: r99691
2005-05-14 00:46:12 +00:00
Bryce McKinlay c8c03f8479 re PR libgcj/21557 (Hash synchronization: Thread.interrupt() can make _Jv_MonitorEnter hang)
2005-05-13  Bryce McKinlay  <mckinlay@redhat.com>

	PR libgcj/21557
	* java/lang/natObject.cc (_Jv_MonitorEnter): Save and clear thread
	interrupt status flag if _Jv_CondWait is interrupted.

From-SVN: r99687
2005-05-14 01:42:46 +01:00
GCC Administrator 77d0a09d7f Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r99684.2
2005-05-14 00:16:34 +00:00
Richard Earnshaw 49755603e1 arm.h (INITIALIZE_TRAMPOLINE): Make the call to __clear_cache unconditional.
* arm.h (INITIALIZE_TRAMPOLINE): Make the call to __clear_cache
	unconditional.

From-SVN: r99680
2005-05-13 21:56:58 +00:00
Josh Conner 4f5dfed0dc arm.c (arm_size_return_regs): New.
2005-05-13  Josh Conner  <jconner@apple.com>

	* config/arm/arm.c (arm_size_return_regs): New.
	(thumb_unexpanded_epilogue): replace in-line calculation
	of return registers with call to arm_size_return_regs.
	(use_return_insn): Include test of which registers are
	being used to hold return values, to accommodate
	vector return values.

From-SVN: r99679
2005-05-13 21:13:17 +00:00
Tom Tromey 9c309ac9a4 SystemClassLoader.java (init): Handle empty element in path.
* gnu/gcj/runtime/SystemClassLoader.java (init): Handle empty
	element in path.

From-SVN: r99676
2005-05-13 20:20:56 +00:00
Aldy Hernandez c2dba4ab40 sysv4.opt (mlittle): Handle.
* config/rs6000/sysv4.opt (mlittle): Handle.

	* config/rs6000/rs6000.c (rs6000_handle_option): Set
	target_flags_explicit when appropriate.

From-SVN: r99675
2005-05-13 19:52:39 +00:00
J"orn Rennecke 326a31e951 re PR middle-end/20714 (emit_no_conflict_block does invalid reordering)
PR middle-end/20714:
	* optabs.c (no_conflict_data): New struct.
	(no_conflict_move_test): New function.
	(emit_no_conflict_block): Use it.

From-SVN: r99674
2005-05-13 19:22:57 +01:00
Adam Nemet 223dcf1c00 invoke.texi (Debugging Options): Option -fdump-translation-unit only works with C++ now.
* doc/invoke.texi (Debugging Options): Option
	-fdump-translation-unit only works with C++ now.

From-SVN: r99673
2005-05-13 17:51:16 +00:00
Julian Brown 967bfd2c59 20041218-2.c: Add __attribute__((packed)).
* gcc.c-torture/execute/20041218-2.c: Add __attribute__((packed)).
	* gcc.dg/intmax_t-1.c: Disable on *arm*-*-*elf*.

From-SVN: r99672
2005-05-13 17:34:45 +00:00
Hans-Peter Nilsson 52c9ce2ea2 Correct mixup in last entry
From-SVN: r99670
2005-05-13 17:09:56 +00:00
Hans-Peter Nilsson b6c341293e Replace calls to abort in CRIS port.
* config/cris/cris.h (CRIS_ASSERT): New macro.
	* config/cris/cris.md ("*movsi_internal"): Use CRIS_ASSERT and
	internal_error instead of abort.
	("movsi"): Ditto.  Unquote preparation statement section.
	* config/cris/cris.c (ASSERT_PLT_UNSPEC): Define in terms of
	CRIS_ASSERT.
	("call", "call_value"): Ditto, but use gcc_assert where
	appropriate.  Tweak comments.
	(cris_op_str): Call internal_error, not abort.
	(cris_print_operand): Tweak "abort" reference to "die" in comment.
	(cris_initial_elimination_offset): Call gcc_unreachable, not abort.
	(cris_notice_update_cc): Call internal_error, not abort.
	(cris_expand_return, cris_expand_prologue, cris_gen_movem_load)
	(cris_emit_movem_store, cris_asm_output_symbol_ref)
	(cris_output_addr_const_extra): Use CRIS_ASSERT, don't call abort.
	(cris_symbol, cris_got_symbol): Use CRIS_ASSERT instead of
	ENABLE_CHECKING-guarded abort call.
	(cris_split_movdx): Use CRIS_ASSERT instead of abort with test.
	Use internal_error at end of test-chain.

From-SVN: r99669
2005-05-13 17:08:29 +00:00
J"orn Rennecke 2d6c85d314 re PR rtl-optimization/20769 (bt-load.c doesn't take nonlocal gotos into account.)
PR rtl-optimization/20769:
	* bt-load.c (compute_defs_uses_and_gen): Check for the blockage
	pattern emitted by expand_nl_goto_receiver.

	PR middle-end/20793:
	* integrate.c (allocate_initial_values): Update register liveness
	information.

From-SVN: r99668
2005-05-13 17:56:11 +01:00
Josh Conner 30e5a19843 * arm.c (arm_return_in_memory): Add handling for vector return types.
From-SVN: r99666
2005-05-13 16:44:16 +00:00
David Ung ee218a9203 mips.h (processor_type): Add new PROCESSOR_4KP name.
* config/mips/mips.h (processor_type): Add new PROCESSOR_4KP
name.
* config/mips/mips.c: Add 4km alias.
* config/mips/mips.md: Add 4kp to cpu attrib and include 4k.md.
* config/mips/4k.md: New file, add 4Kc/4Kp DFA pipeline
description.

From-SVN: r99664
2005-05-13 15:24:35 +00:00
Magnus Fromreide 894b1dff50 1.cc: Use initialization instead of copying as the string is used only once.
2005-05-13  Magnus Fromreide  <magfr@lysator.liu.se>

	* testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Use
	initialization instead of copying as the string is used only once.
	* testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
	* testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
	* testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc: Likewise.

From-SVN: r99663
2005-05-13 15:24:30 +00:00
David Ung 771aaa92ab * MAINTAINERS (Write After Approval): Add self.
From-SVN: r99662
2005-05-13 15:21:49 +00:00
Paul Brook cafa34aa46 trans-stmt.c (gfc_trans_forall_1): Fix comment typo.
2005-05-13  Paul Brook  <paul@codesourcery.com>

	* trans-stmt.c (gfc_trans_forall_1): Fix comment typo.

From-SVN: r99660
2005-05-13 14:34:29 +00:00
Jan Hubicka 9da5888429 c-decl.c (finish_function): Suppress "control reaches end of non-void function" when...
* c-decl.c (finish_function): Suppress "control reaches end of
	non-void function" when "no return statement in function
	returning non-void" is issued.

From-SVN: r99659
2005-05-13 14:00:55 +00:00
Jan Hubicka 81cfbbc23c builtins-43.c: Use gimple dump instead of generic.
* gcc.dg/builtins-43.c: Use gimple dump instead of generic.
	* gcc.dg/fold-xor-?.c: Likewise.
	* gcc.dg/pr15784-?.c: Likewise.
	* gcc.dg/pr20922-?.c: Likewise.
	* gcc.dg/tree-ssa/20050128-1.c: Likewise.
	* gcc.dg/tree-ssa/pr17598.c: Likewise.
	* gcc.dg/tree-ssa/pr20470.c: Likewise.

	* tree-inline.c (copy_body_r): Simplify substituted ADDR_EXPRs.
	* tree-optimize.c (pass_gimple): Kill.
	(init_tree_optimization_passes): Kill pass_gimple.
	* tree-cfg.c (build_tree_cfg): Do verify_stmts to check that we are gimple.
	* tree-dump.c (dump_files): Rename .generic to .gimple.*

From-SVN: r99658
2005-05-13 13:57:19 +00:00
Joern Rennecke 618656ff89 re PR rtl-optimization/20756 (Clobbers of deleted insns are processed, but left out)
PR rtl-optimization/20756:
	* basic-block.h (PROP_DEAD_INSN): Define.
	* flow.c (propagate_one_insn): Set during mark_set_regs call
	for a dead insn.
	(mark_set_1): Emit a clobber when we are about to delete a dead insn
	that kills a live register.

From-SVN: r99657
2005-05-13 14:34:17 +01:00
Ulrich Weigand d197b9e0f0 Fix last ChangeLog entry.
From-SVN: r99656
2005-05-13 12:27:10 +00:00
J"orn Rennecke 86d9571b8c re PR rtl-optimization/20756 (Clobbers of deleted insns are processed, but left out)
PR rtl-optimization/20756:
	* basic-block.h (PROP_DEAD_INSN): Define.
	* flow.c (propagate_one_insn): Set during mark_set_regs call
	for a dead insn.
	(mark_set_1): Emit a clobber when we are about to delete a dead insn
	that kills a live register.

From-SVN: r99655
2005-05-13 13:25:28 +01:00
Adrian Straetling a1aed70656 s390.md: ("DBL"): New mode attribute.
2005-05-13  Adrian Straetling  <straetling@de.ibm.com>

	* config/s390.md: ("DBL"): New mode attribute.
	("*movmem_long_64", "*movmem_long_31"): Merge to "*movmem_long".
	("*clrmem_long_64", "*clrmem_long_31"): Merge to "*clrmem_long".
	("*cmpmem_long_64", "*cmpmem_long_31"): Merge to "*cmpmem_long".

From-SVN: r99654
2005-05-13 12:21:01 +00:00
Richard Guenther f5c9a09777 c-format.c (check_format_arg): Handle string literals of the form &"string"[offset].
2005-05-14  Richard Guenther  <rguenth@gcc.gnu.org>

	* c-format.c (check_format_arg): Handle string literals of
	the form &"string"[offset].

	* g++.dg/warn/format4.C: New testcase.

From-SVN: r99652
2005-05-13 09:48:12 +00:00
Nick Clifton 0e687cb4f1 Update the address and telephone number of the FSF organization
From-SVN: r99650
2005-05-13 08:03:47 +00:00
Benjamin Kosnik 96aea9eb07 create_testsuite_files: Fix.
2005-05-12  Benjamin Kosnik  <bkoz@redhat.com>

	* scripts/create_testsuite_files: Fix.

From-SVN: r99648
2005-05-13 03:46:26 +00:00
Kazu Hirata 9db9ab7e32 3000.md, [...]: Update copyright.
* config/mips/3000.md, config/mips/4000.md,
	config/mips/4100.md, config/mips/4300.md, config/mips/4600.md,
	config/mips/5000.md, config/mips/7000.md, config/mips/9000.md,
	config/mips/generic.md, config/pdp11/pdp11.md,
	config/sh/crt1.asm, config/sh/lib1funcs.asm,
	config/sh/sh-modes.def, config/sh/sh-protos.h,
	config/sh/shmedia.md, config/sh/ushmedia.h: Update copyright.

From-SVN: r99647
2005-05-13 03:19:57 +00:00
Bryce McKinlay f5ea88a3c8 [multiple changes]
2005-05-12  Bryce McKinlay  <mckinlay@redhat.com>

	* include/jvm.h (gcj::verifyClasses): Declare.
	* link.cc (gcj::verbose_class_flag): Moved.
	* prims.cc (gcj::verifyClasses): Define here.
	(gcj::verbose_class_flag): Move definition here.
	(_Jv_Linker::wait_for_state): Don't call verify_class
	if gcj::verifyClasses is not set.
	* gij.cc (main): Set gcj::verifyClasses when '-noverify' is given.

2005-05-12  Aaron Luchko  <aluchko@redhat.com>

	* gij.cc (main): Recognize '-verify', '-noverify', and
	'-verifyremote'

2005-05-12  Aaron Luchko <aluchko@redhat.com>

        * gcj.texi: Add '-verify', '-noverify', and '-verifyremote'.

From-SVN: r99646
2005-05-13 02:02:39 +01:00
Kaz Kojima 87255f602f numeric_limits.cc (dg-options): Add -mieee to options on sh*-*-*.
* testsuite/18_support/numeric_limits.cc (dg-options): Add
	-mieee to options on sh*-*-*.

From-SVN: r99643
2005-05-13 00:23:28 +00:00
Kaz Kojima 760ceba9ed * configure.host: Set IEEESPEC to -mieee for sh*-*-*.
From-SVN: r99642
2005-05-13 00:21:01 +00:00