Commit Graph

68333 Commits

Author SHA1 Message Date
Gabriel Dos Reis
03a9fcb862 fixlib.c (load_file_data): Use XRESIZVEC in lieu of xrealloc.
* fixlib.c (load_file_data): Use XRESIZVEC in lieu of xrealloc.
        * server.c (load_data): Likewise.
        (run_shell): Use XCNEW (char) in lieu of xcalloc (1, 1).
        * fixincl.c: #include <sys/wait.h>
        (run_compiles): Use XCNEWVEC instead of xcalloc.
        (fix_with_system, start_fixer): Use XNEWVEC instead of xmalloc.
        * fixfixes.c (FIX_PROC_HEAD, main): Likewise.

From-SVN: r99740
2005-05-15 18:28:36 +00:00
Tom Tromey
b4220f64e3 re PR java/21519 (ICE in generate_bytecode_conditional, at java/jcf-write.c:1337)
gcc/java:
	PR java/21519:
	* jcf-write.c (generate_bytecode_insns) <SAVE_EXPR>: Don't call
	NOTE_PUSH.
libjava:
	PR java/21519:
	* testsuite/libjava.compile/pr21519.java: New file.
	* testsuite/libjava.compile/pr21519.no-link: New file.

From-SVN: r99739
2005-05-15 18:28:29 +00:00
Daniel Jacobowitz
dfb2c39a99 * ylwrap: Import from Automake 1.9.5.
From-SVN: r99738
2005-05-15 18:17:10 +00:00
Andreas Jaeger
766643be53 * functions.texi: Regenerated.
From-SVN: r99737
2005-05-15 19:40:00 +02:00
Andreas Jaeger
e15bb31bb6 ChangeLog
From-SVN: r99736
2005-05-15 19:39:35 +02:00
Andreas Jaeger
d842a495a5 Forgotten commit.
From-SVN: r99735
2005-05-15 19:33:14 +02:00
Tom Tromey
55c15dfc9d * stacktrace.cc (getLineNumberForFrame): Use _Jv_GetSafeArg.
From-SVN: r99733
2005-05-15 17:07:20 +00:00
Andreas Jaeger
099ff66cd2 * gcc.c (pfatal_pexecute): Remove unused local function.
From-SVN: r99732
2005-05-15 19:06:19 +02:00
Daniel Berlin
2acf977b18 As discussed on ML, test is no longer useful
From-SVN: r99731
2005-05-15 17:05:52 +00:00
Eli Zaretskii
a37103a431 fopen_unlocked.c: Enclose multi-word data types in @deftypefn in braces.
2005-05-15  Eli Zaretskii  <eliz@gnu.org>

	* fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
	braces.

From-SVN: r99729
2005-05-15 18:36:40 +02:00
Eli Zaretskii
2b8366517d pexecute.txh: Enclose multi-word data types in @deftypefn in braces.
2005-05-15  Eli Zaretskii  <eliz@gnu.org>

	* pexecute.txh: Enclose multi-word data types in @deftypefn in
	braces.  Minor wording fixes.  Use --- for em-dash.  Use
	@enumerate in enumerated lists.

From-SVN: r99728
2005-05-15 18:35:44 +02:00
Andreas Jaeger
7672ae2082 eoshift1.m4: Initialize variables to avoid warnings.
* m4/eoshift1.m4: Initialize variables to avoid warnings.
	* m4/eoshift3.m4: Initialize variables to avoid warnings.
	* generated/eoshift1_4.c, generated/eoshift1_8.c,
	generated/eoshift3_4.c, generated/eoshift3_8.c: Regenerated.

	* intrinsics/spread_generic.c (spread): Initialize variables to
	avoid warnings.

	* intrinsics/eoshift0.c (eoshift0): Initialize variables to avoid
	warnings.
	* intrinsics/eoshift2.c (eoshift2): Initialize variables to avoid
	warnings.

	* io/list_read.c (nml_get_obj_data): Initialize variables to avoid
	warnings.

From-SVN: r99726
2005-05-15 17:50:09 +02:00
Andreas Jaeger
7d3cdba142 * aclocal.m4: Regenerated.
From-SVN: r99724
2005-05-15 17:38:21 +02:00
Andreas Jaeger
e606fb399e pack_generic.c (pack): Remove unneeded calculation.
* intrinsics/pack_generic.c (pack): Remove unneeded calculation.

	* m4/matmull.m4 (matmul_): Remove unneeded calculations, fix
	pointer cast to avoid warning.
	* generated/matmul_l4.c: Regenerated.
	* generated/matmul_l8.c: Regenerated.

	* Makefile.am: Remove AM_CFLAGS here.
	* configure.ac: Define AM_CFLAGS and AM_FCFLAGS so that warnings
	are set.  Set additionally -Wstrict-prototypes for CFLAGS.
	* Makefile.in: Regenerated
	* configure: Regenerated.

From-SVN: r99723
2005-05-15 17:37:18 +02:00
Andreas Jaeger
6b0215364d system_clock.c (system_clock_4, [...]): Add missing returns, reformat a bit.
* intrinsics/system_clock.c (system_clock_4, system_clock_8): Add
	missing returns, reformat a bit.

	* io/write.c (nml_write_obj): Use %d again - and cast to int,
	st_sprintf does not handle %ld.

From-SVN: r99722
2005-05-15 17:33:12 +02:00
Andreas Jaeger
944e86ee09 unit.c (is_internal_unit): Add void as parameter list.
* io/unit.c (is_internal_unit): Add void as parameter list.

	* io/transfer.c: Move prototype declarations before the functions.

From-SVN: r99721
2005-05-15 15:25:19 +02:00
Andreas Jaeger
420aa7b82c Remove extra whitespace.
From-SVN: r99720
2005-05-15 14:49:45 +02:00
Andreas Jaeger
4b6903ec2f normalize.c (almostone_r4, [...]): Fix parameter list.
* runtime/normalize.c (almostone_r4, almostone_r8): Fix parameter
	list.

	* intrinsics/random.c (KISS_DEFAULT_SEED): Remove extra semicolon.

	* io/transfer.c: Do not use empty initializers for global objects.
	Add missing initializers.

	* io/lock.c: Do not use empty initializers for global objects.

	* io/close.c: Add missing initializers.

	* runtime/environ.c: Add missing initializers. Do not use empty
	initializers for global object.
	(init_string): Mark argument as unused.

	* runtime/main.c (cleanup): Fix parameter list.

	* io/io.h: Fix parameter lists.

	* m4/transpose.m4, m4/matmul.m4: Fix pointer cast to avoid
	warning.

	* generated/transpose_c4.c, generated/transpose_c8.c,
	generated/transpose_i4.c, generated/transpose_i8.c,
	generated/matmul_c4.c, generated/matmul_c8.c,
	generated/matmul_i4.c, generated/matmul_i8.c,
	generated/matmul_r4.c, generated/matmul_r8.c: Regenerated.

	* io/write.c (nml_write_obj): Fix 64-bit problem.

	* io/list_read.c (nml_get_obj_data): Add missing braces around
	initializer to avoid warnings.

	* intrinsics/etime.c (etime_sub): Remove unused variable.

From-SVN: r99719
2005-05-15 14:44:42 +02:00
Andreas Jaeger
deeab82073 chdir.c, [...]: Include <string.h> for prototypes.
* intrinsics/chdir.c, intrinsics/getlog.c, intrinsics/link.c,
	intrinsics/symlnk.c, intrinsics/perror.c: Include <string.h> for
	prototypes.

	* runtime/string.c (compare0): Remove unused variable.
	* io/unit.c (init_units): Remove unused variables.
	* intrinsics/getcwd.c (getcwd_i4_sub): Remove unused variable.
	* intrinsics/unlink.c (unlink_i4_sub): Remove unused variable.
	* intrinsics/stat.c (stat_i4_sub, fstat_i8_sub, fstat_i4_sub,
	stat_i8_sub): Remove unused variable.

From-SVN: r99716
2005-05-15 10:25:52 +02:00
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