Commit Graph

70237 Commits

Author SHA1 Message Date
Volker Reichelt
bf2f7328ff re PR c++/19498 (ICE on invalid reference in template parameter)
PR c++/19498
	* pt.c (tsubst_decl) <case TEMPLATE_DECL>: Return ERROR_MARK_NODE
	if substitution of template args did not succeed.

	* g++.dg/template/instantiate7.C: New test.

From-SVN: r102818
2005-08-06 22:22:47 +00:00
Michael Matz
8402b3e18a * method.c (use_thunk): Call init_insn_lengths.
From-SVN: r102817
2005-08-06 21:25:09 +00:00
Michael Matz
3e0a6ca6ae genattrtab.c (write_attr_get, [...]): Use insn_code member only if only one insn is associated with the value.
* genattrtab.c (write_attr_get, write_attr_case): Use insn_code
	member only if only one insn is associated with the value.

From-SVN: r102816
2005-08-06 21:11:54 +00:00
Francois-Xavier Coudert
9da375252f * primary.c (match_hollerith_constant): Fix typo.
From-SVN: r102814
2005-08-06 19:18:45 +00:00
James A. Morrison
b53b1b04f5 re PR treelang/23072 (multiple runs of treelang testsuite does not work...)
2005-08-06  James A. Morrison  <phython@gcc.gnu.org>

        PR treelang/23072
        * Make-lang.in: Remove old testing cruft.

From-SVN: r102813
2005-08-06 18:25:31 +00:00
Francois-Xavier Coudert
2c4a108eec * io/unix.c: Add O_RDWR to open() call.
From-SVN: r102811
2005-08-06 15:38:49 +00:00
Nick Clifton
2f806f3b9b config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100): New define.
(ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
config/stormy16/stormy16.c (xstormy16_below100_symbol): Check symbol flags
    instead of symbol name mangling.
  (xstormy16_asm_output_aligned_common): Likewise.  Also simplify code since
    the bss100_section cass is the only case where the below100 code will be
    triggered.
  (xstormy16_encode_section_info): Encode below100 attribute using the
    SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling the name.
  (xstormy16_strip_name_encoding): Delete - this function is no longer needed.
  (TARGET_STRIP_NAME_ENCODING): Undefine.
config/stormy16/stormy16-protos.h: Delete prototype for
    xstormy16_strip_name_encoding.

From-SVN: r102810
2005-08-06 13:50:42 +00:00
Kazu Hirata
a4d0554781 Makefile.in, [...]: Fix comment/doc typos.
* Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
	config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
	tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
	config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
	config/alpha/predicates.md, config/arc/arc.h,
	config/arm/arm.h, config/arm/ieee754-df.S,
	config/arm/ieee754-sf.S, config/bfin/bfin.c,
	config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
	config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
	config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
	config/m68hc11/m68hc11.h, config/mips/mips.c,
	config/mips/mips.h, config/mips/openbsd.h,
	config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
	config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
	config/rs6000/rs6000.c, config/rs6000/rs6000.h,
	config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
	config/sparc/linux.h, config/sparc/linux64.h,
	config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
	doc/extend.texi, doc/gcov.texi, doc/install.texi,
	doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
	typos.  Follow spelling conventions.

From-SVN: r102809
2005-08-06 13:26:35 +00:00
Kazu Hirata
49de9e7395 decl.c, [...]: Fix comment/doc typos.
* decl.c, dump-parse-tree.c, gfortran.texi, intrinsic.texi,
	invoke.texi, resolve.c, trans-array.c, trans-array.h,
	trans-common.c, trans-expr.c, trans-io.c, trans.h: Fix
	comment/doc typos.  Follow spelling conventions.

From-SVN: r102806
2005-08-06 12:56:19 +00:00
Joseph Myers
591baeb020 re PR c/23113 (The -Wunused (value computed is not used) option missed an important case)
PR c/23113
	* stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
	Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
	specially.  Check for side effects only for COND_EXPR.
	* c-typeck.c (c_finish_stmt_expr): Mark statement expression
	return with TREE_NO_WARNING.

testsuite:
	* gcc.dg/Wunused-value-1.c: New test.

From-SVN: r102805
2005-08-06 12:31:49 +01:00
Richard Sandiford
f7a064b514 re PR rtl-optimization/23233 (Loop optimisation ICE for subreg addresses)
PR rtl-optimization/23233
	* loop.c (combine_movables): Require the modes to be the same.
	(move_movables): Remove handling of cases where the replacement
	had a different mode to the original.

From-SVN: r102804
2005-08-06 11:05:48 +00:00
Jakub Jelinek
a8006d0933 re PR fortran/18833 (ICE 'missing spec' on integer/char equivalence)
PR fortran/18833
	PR fortran/20850
	* primary.c (match_varspec): If equiv_flag, don't look at sym's
	attributes, call gfc_match_array_ref up to twice and don't do any
	substring or component processing.
	* resolve.c (resolve_equivalence): Transform REF_ARRAY into
	REF_SUBSTRING or nothing if needed.  Check that substrings
	don't have zero length.

	* gfortran.dg/equiv_1.f90: New test.
	* gfortran.dg/equiv_2.f90: New test.
	* gfortran.fortran-torture/execute/equiv_2.f90: New test.
	* gfortran.fortran-torture/execute/equiv_3.f90: New test.
	* gfortran.fortran-torture/execute/equiv_4.f90: New test.

From-SVN: r102801
2005-08-06 12:00:53 +02:00
James A. Morrison
b17775aba4 re PR tree-optimization/23128 (VRP fails for unsigned values)
2005-08-05  James A. Morrison  <phython@gcc.gnu.org>

        PR tree-optimization/23128
        * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
        subtraction wrap, and set TREE_OVERFLOW if they do.

From-SVN: r102800
2005-08-06 05:35:31 +00:00
James A. Morrison
099f36ab8c re PR debug/22514 (ICE in force_decl_die with invalid code after error)
2005-08-05  James A. Morrison  <phython@gcc.gnu.org>

        PR c++/22514
        * name-lookup.c (cp_emit_debug_info_for_using): Do nothing if
        sorrycount or errorcount are nonzero.

From-SVN: r102799
2005-08-06 05:18:09 +00:00
GCC Administrator
a6a09784ee Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r102792.2
2005-08-06 00:16:13 +00:00
Richard Henderson
bb1ecfe8a9 re PR middle-end/21728 (Nonlocal goto from an unused nested function)
PR 21728
        * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
        FORCED_LABEL labels.

From-SVN: r102786
2005-08-05 16:01:54 -07:00
Mark Mitchell
0e44ef6254 Correct PR#
From-SVN: r102785
2005-08-05 21:02:57 +00:00
Mark Mitchell
d8654d1a75 re PR c++/19063 (ICE on invalid template parameter)
* name-lookup.c (pushtag): Remove accidental commit from:
	2004-12-21  Mark Mitchell  <mark@codesourcery.com>
	PR c++/19063
	* decl.c (grokdeclarator): Return error_mark_node, not
	void_type_node, to indicate errors.
	* parser.c (cp_parser_template_parameter_list): Robustify.
	(cp_parser_template_parameter): Likewise.

From-SVN: r102784
2005-08-05 21:01:47 +00:00
Thomas Koenig
eed61baa40 trans-expr.c (gfc_build_builtin_function_decls): Mark stop_numeric and stop_string as non-returning.
2005-08-05  Thomas Koenig  <Thomas.Koenig@online.de>

        * trans-expr.c  (gfc_build_builtin_function_decls):  Mark
        stop_numeric and stop_string as non-returning.

From-SVN: r102782
2005-08-05 20:37:07 +00:00
J"orn Rennecke
50aa8e71b7 re PR middle-end/23135 (find_reloads_toplev -> find_reloads_subreg_address uses wrong reload type)
PR middle-end/23135
	* reload.c (find_reloads_subreg_address): Pass down TYPE
	unchanged.  Change all callers except find_reloads_toplev.

From-SVN: r102772
2005-08-05 17:06:35 +01:00
Joern Rennecke
ceb0feb330 intmax_t-1.c: Extend dg-error to cover sh*-*-elf targets.
* gcc.dg/intmax_t-1.c: Extend dg-error to cover sh*-*-elf targets.

	* gcc.dg/tree-ssa/loop-1.c: For sh*-*-*, look for function calls
	instead of constant loads / pool entries.

From-SVN: r102769
2005-08-05 16:53:04 +01:00
Joern Rennecke
00e0b74757 intmax_t-1.c: Extend dg-error to cover sh*-*-elf targets.
* gcc.dg/intmax_t-1.c: Extend dg-error to cover sh*-*-elf targets.

	* gcc.dg/tree-ssa/loop-1.c: FOr sh*-*-*, look for function calls
	instead of constant loads / pool entries.

From-SVN: r102768
2005-08-05 16:51:39 +01:00
David Edelsohn
4c84c58eb9 builtin-wctype-1.c: Use __WINT_TYPE__ for TEST_TO_WCTYPE.
* gcc.dg/torture/builtin-wctype-1.c: Use __WINT_TYPE__ for
        TEST_TO_WCTYPE.

From-SVN: r102767
2005-08-05 11:22:43 -04:00
Joern Rennecke
688ac5b416 * gcc.dg/intmax_t-1.c: Extend dg-error to cover sh*-*-elf targets.
From-SVN: r102766
2005-08-05 16:07:00 +01:00
Michael Matz
b01896ccb0 genattrtab.c (current_alternative_string): Remove.
* genattrtab.c (current_alternative_string): Remove.
        (SIMPLIFY_ALTERNATIVE): Ditto.
        (attr_alt_bit_p): Ditto.
        (alternative_name): Make const char *.
        (evaluate_eq_attr): Remove use of above things.
        (simplify_test_exp): Ditto.
        (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
        (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').

From-SVN: r102765
2005-08-05 09:42:06 +00:00
James E Wilson
3f94bdecbc Fix problem pointed out by Gunther Nikl on gcc list.
* config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
(LINK_SPEC): Delete useless %{Wl,*:%*} item.

From-SVN: r102762
2005-08-04 20:20:12 -07:00
Richard Henderson
460f84ed3d re PR middle-end/21529 (code size regression (+40%) with -Os from GCC-3.4.3 to 4.1)
PR 21529
        * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
        * params.h (SRA_MAX_STRUCTURE_COUNT): New.
        * tree-sra.c (decide_block_copy): Use it.  Disable element copy
        if we'd have to instantiate too many members.

From-SVN: r102761
2005-08-04 19:42:06 -07:00
GCC Administrator
ea78022d68 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r102753.2
2005-08-05 00:16:15 +00:00
Richard Henderson
5a910e43f5 re PR middle-end/21291 (can't find a register in class 'GENERAL_REGS' while reloading 'asm')
PR 21291
        * tree-outof-ssa.c (coalesce_asm_operands): New.
        (coalesce_ssa_name): Use it.  Split out ...
        (coalesce_phi_operands, coalesce_result_decls): ... these.

From-SVN: r102751
2005-08-04 16:37:00 -07:00
Paul Brook
27c370005e read-rtl.c (read_quoted_string): Break if EOF.
2005-08-04  Paul Brook  <paul@codesourcery.com>

	* read-rtl.c (read_quoted_string): Break if EOF.

From-SVN: r102749
2005-08-04 23:31:00 +00:00
Danny Smith
004e09a35a builtin-wctype-1.c: Use __WCHAR_TYPE__ and __WINT_TYPE__ in generated prototypes if possible.
* gcc.dg/torture/builtin-wctype-1.c: Use __WCHAR_TYPE__ and
	__WINT_TYPE__ in generated prototypes if possible.

From-SVN: r102747
2005-08-04 21:01:50 +00:00
Paul Thomas
9427924ef8 transfer.c (data_transfer_init): Truncate file in sequential WRITE when last_record == 0, rather than current_record.
2005-08-04 Paul Thomas  <pault@gcc.gnu.org>

	* transfer.c (data_transfer_init): Truncate file in
	sequential WRITE when last_record == 0, rather than
	current_record.  Cures problem on RH9.

From-SVN: r102746
2005-08-04 20:26:29 +00:00
David Edelsohn
6d62ac142c Add Ian to function.c ChangeLog entry.
From-SVN: r102745
2005-08-04 16:14:15 -04:00
Andrew Pinski
5808968ee6 tree.h (fold_build1): Change to macro and call fold_build1_stat.
2005-08-04  Andrew Pinski  <pinskia@physics.uc.edu>

        * tree.h (fold_build1): Change to macro and call fold_build1_stat.
        (fold_build2): Likewise.
        (fold_build3): Likewise.
        (fold_build1_stat): New function prototype.
        (fold_build2_stat): Likewise.
        (fold_build3_stat): Likewise.
        * fold-const.c (fold_build1): Rename to ..
        (fold_build1_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
        through to build1_stat.
        (fold_build2): Rename to ..
        (fold_build2_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
        through to build2_stat.
        (fold_build3): Rename to ..
        (fold_build3_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
        through to build3_stat.

From-SVN: r102743
2005-08-04 11:55:15 -07:00
David Edelsohn
d70eadf7ba function.c (assign_stack_local_1): Do not correct stack slot address if allocation size is smaller than mode size.
* function.c (assign_stack_local_1): Do not correct stack slot
        address if allocation size is smaller than mode size.

From-SVN: r102742
2005-08-04 14:36:26 -04:00
Diego Novillo
c4f548b8c5 re PR tree-optimization/22037 (internal compiler error: verify_ssa failed)
PR 22037
	* tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
	(tree_merge_blocks): Propagate anything allowed by
	may_propagate_copy.
	Clarify documentation.
	* passes.c (execute_todo): If cleanup_tree_cfg invalidated the
	SSA form, schedule an update if necessary.

testsuite/ChangeLog

	PR 22037
	* g++.dg/tree-ssa/pr22037.C:

From-SVN: r102740
2005-08-04 14:16:41 -04:00
Richard Henderson
9ef524bac2 update-cunroll.c: Fix mistakes in scan-tree-dump-times directive.
* gcc.dg/tree-ssa/update-cunroll.c: Fix mistakes in
        scan-tree-dump-times directive.

From-SVN: r102739
2005-08-04 10:53:51 -07:00
Gerald Pfeifer
2b7c327301 install.texi (Binaries): Remove broken link to Sinix/Reliant Unix binaries.
* doc/install.texi (Binaries): Remove broken link to
	Sinix/Reliant Unix binaries.

From-SVN: r102734
2005-08-04 09:48:21 +00:00
Paul Woegerer
d3f663ff80 * config/crx/crx.h: Inhibit -lm to be linked per default.
From-SVN: r102733
2005-08-04 09:28:23 +00:00
Richard Henderson
b755446cef re PR middle-end/23221 (-fstack-protector does not protect tail call functions)
PR 23221
        * function.c (stack_protect_epilogue): Export.
        * tree.h (stack_protect_epilogue): Declare.
        * calls.c (expand_call): Call it.

From-SVN: r102731
2005-08-03 20:57:41 -07:00
Paul Brook
a4f5cd4441 trans-expr.c (gfc_conv_expr, [...]): Update comments.
2005-08-04  Paul Brook  <paul@codesourcery.com>

	* trans-expr.c (gfc_conv_expr, gfc_conv_expr_type): Update comments.
	(gfc_conv_expr_lhs): Fix assertion.
	(gfc_conv_expr_val): Merge post block.  Set se.expr to new value.
	* trans.h: Move and update comments.

From-SVN: r102729
2005-08-04 03:06:12 +00:00
GCC Administrator
cb941178f5 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r102722.2
2005-08-04 00:16:14 +00:00
Eric Christopher
7904f95fd9 gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
2005-08-03  Eric Christopher  <echristo@apple.com>

        * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
        * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
        spec.

From-SVN: r102719
2005-08-03 23:35:06 +00:00
Geoffrey Keating
0646b0597b configure.ac: Don't use GCC_NO_EXECUTABLES or clear GLIBCXX_IS_NATIVE on Darwin crosses.
* configure.ac: Don't use GCC_NO_EXECUTABLES or clear
	GLIBCXX_IS_NATIVE on Darwin crosses.
	* acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't skip configuring
	the testsuite just because there's no symbol versioning.
	* configure: Regenerate.

From-SVN: r102718
2005-08-03 23:17:06 +00:00
Jan Hubicka
d783b2a2dc profile.c (branch_prob): Split edges with goto locus on them to get proper line counts.
* profile.c (branch_prob): Split edges with goto locus on them
	to get proper line counts.
	* tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.

	* gcov-1.C: Fix switch counts.
	* gcov-4b.c: Likewise.

From-SVN: r102717
2005-08-03 22:10:54 +00:00
Paul Brook
5336645054 function.c (assign_parms): Round current_function_args_size to PARM_BOUNDARY, not STACK_BOUNDARY.
2005-08-03  Paul Brook  <paul@codesourcery.com>

	* function.c (assign_parms): Round current_function_args_size
	to PARM_BOUNDARY, not STACK_BOUNDARY.

From-SVN: r102713
2005-08-03 21:50:13 +00:00
Jeff Law
0667b04051 * g++.dg/tree-ssa/pr14814.C: xfail test for &this count.
From-SVN: r102712
2005-08-03 15:15:11 -06:00
Geoffrey Keating
e81d37df02 * config/i386/i386.c (x86_elf_aligned_common)
(x86_output_aligned_bss): Don't try to use symbols that aren't defined.

From-SVN: r102711
2005-08-03 21:13:12 +00:00
Geoffrey Keating
e010344025 acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Print status messages.
* acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Print
	status messages.
	(GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Likewise.
	(GLIBCXX_CHECK_POLL): Likewise.
	(GLIBCXX_CHECK_WRITEV): Likewise.
	(GLIBCXX_CHECK_INT64_T): Likewise.
	(GLIBCXX_CHECK_LFS): Likewise.
	* configure: Regenerate.

From-SVN: r102710
2005-08-03 21:03:29 +00:00
Francois-Xavier Coudert
06b23b9287 libgfortran.h: When isfinite is not provided by the system...
* libgfortran.h: When isfinite is not provided by the system,
	define it as a macro, so that it can accept any floating point
	type.

From-SVN: r102707
2005-08-03 20:00:00 +00:00