68345 Commits

Author SHA1 Message Date
H.J. Lu
21e4385058 re PR target/21551 (ia64 bootstrap failed)
2005-05-15  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/21551
	* config/ia64/ia64.c (ia64_expand_move): Don't add addend twice.

From-SVN: r99760
2005-05-15 19:11:59 -07:00
Daniel Berlin
43da81be39 re PR tree-optimization/21576 (FRE does not eliminate a redundant builtin call.)
2005-05-15  Daniel Berlin  <dberlin@dberlin.org>

	Fix PR tree-optimization/21576

	* tree-ssa-pre.c (expression_node_pool): New pool.
	(comparison_node_pool): Ditto.
	(list_node_pool): Ditto.
	(pool_copy_list): New function.
	(phi_translate): Handle CALL_EXPR.
	(valid_in_set): Ditto.
	(create_expression_by_pieces): Ditto.
	(insert_into_preds_of_block): Ditto.
	(insert_aux): Ditto.
	(compute_avail): Ditto.
	(create_value_expr_from): Handle TREE_LIST and CALL_EXPR.
	(can_value_number_call): New function.
	(find_leader): Update comment.
	(init_pre): Create new pools.
	(fini_pre): Free new pools.
	(pass_pre): Add TODO_update_ssa for the future when we are going
	to need vops.
	* tree-vn.c (expressions_equal_p): Handle TREE_LIST.
	(set_value_handle): Ditto.
	(get_value_handle): Ditto.

From-SVN: r99759
2005-05-16 01:12:07 +00:00
David Billinghurst
cea02b6e7e re PR libstdc++/21526 (libstdc++-v3 testsuite hangs on cygwin)
2005-05-16  David Billinghurst <David.Billinghurst@riotinto.com>

	PR libstdc++/21526
	* lib/target-supports.exp (check_mkfifo_available):
	Return 0 for cygwin as mkfifo support incomplete on platform.
	Fix typos in comments.

From-SVN: r99757
2005-05-16 00:51:38 +00:00
GCC Administrator
687d386c7f Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r99755.2
2005-05-16 00:16:22 +00:00
Mark Mitchell
0fc0b3973d Fix another typo
From-SVN: r99750
2005-05-15 22:51:59 +00:00
Mark Mitchell
e8bcfe5330 Fix typo in previous checkin
From-SVN: r99749
2005-05-15 22:35:39 +00:00
Mark Mitchell
0c0387e757 Fix typo in previous checkin
From-SVN: r99748
2005-05-15 22:33:49 +00:00
Mark Mitchell
5595de0fa4 * lib/compat.exp (compat-execute): Do not use regsub unsafely.
From-SVN: r99747
2005-05-15 22:31:35 +00:00
Tom Tromey
3b523c85c1 * java/lang/String.java (startsWith): Fixed javadoc.
From-SVN: r99746
2005-05-15 21:09:45 +00:00
Gerald Pfeifer
d7f35e4832 jcf-write.c (generate_bytecode_insns): Remove unused variable.
* jcf-write.c (generate_bytecode_insns) <SAVE_EXPR>: Remove
	unused variable.

From-SVN: r99745
2005-05-15 20:03:57 +00:00
Tom Tromey
5dbf7c2a45 reverted erroneous checkin
From-SVN: r99742
2005-05-15 18:31:26 +00:00
Richard Earnshaw
6e60504feb * arm.c (thumb_unexpanded_epilogue): Delete unused variable 'mode'.
From-SVN: r99741
2005-05-15 18:29:32 +00:00
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