Commit Graph

64231 Commits

Author SHA1 Message Date
Kriang Lerdsuwanakij
c6f9f83bc8 re PR c++/18652 (ICE on invalid redeclaration)
PR c++/18652
	* name-lookup.c (pushtag): Change return type to tree.
	* cp-tree.h (pushtag): Adjust declaration.
	* decl.c (xref_tag, start_enum): Use return value of pushtag.
	* pt.c (push_template_decl_real): Return immediately if
	pushdecl_namespace_level returns error_mark_node.

	* g++.dg/lookup/crash6.C: New test.

From-SVN: r91470
2004-11-29 14:17:33 +00:00
Paolo Carlini
4f70f9d237 18654.cc: Use better names.
2004-11-29  Paolo Carlini  <pcarlini@suse.de>

        * testsuite/21_strings/basic_string/capacity/char/18654.cc: Use
	better names.
        * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc: Same.

From-SVN: r91469
2004-11-29 13:29:54 +00:00
Hans-Peter Nilsson
22bbc492b2 re PR middle-end/18164 (ICE on trivial invalid asm)
PR middle-end/18164
	* gcc.dg/pr18164.c: Add dg-options "".  Correct typo in dg-error.

From-SVN: r91468
2004-11-29 13:27:10 +00:00
Paolo Carlini
d1a7222cce re PR libstdc++/18654 (Shrink-to-fit std::string::reserve() calls can reallocate & copy string contents unnecessarily)
2004-11-29  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/18654
	* include/bits/basic_string.tcc (_Rep::_S_create): When shrinking,
	do not round to pagesize.
	* testsuite/21_strings/basic_string/capacity/char/18654.cc: New.
	* testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc: New.

From-SVN: r91466
2004-11-29 12:59:53 +00:00
Joseph Myers
1cb1fa517f Wnested-externs-1.c, [...]: New tests.
* gcc.dg/Wnested-externs-1.c, gcc.dg/decl-7.c, gcc.dg/decl-8.c,
	gcc.dg/if-empty-1.c, gcc.dg/init-bad-1.c, gcc.dg/init-bad-2.c,
	gcc.dg/init-bad-3.c, gcc.dg/parm-mismatch-1.c: New tests.

From-SVN: r91465
2004-11-29 11:35:34 +00:00
Alan Modra
e13971e036 varasm.c (default_elf_select_section_1): Only pass DECL_P decl to named_section.
* varasm.c (default_elf_select_section_1): Only pass DECL_P decl
	to named_section.

From-SVN: r91464
2004-11-29 21:59:09 +10:30
Nathan Sidwell
d41ca8e68f opts.c (decode_options): Do not set max-inline-insns-rtl.
* opts.c (decode_options): Do not set max-inline-insns-rtl.
	(common_handle_option): Likewise.
	* params.def (PARAM_MAX_INLINE_INSNS_RTL): Remove.
	* params.h (MAX_INLINE_INSNS_RTL): Remove.
	* doc/invoke.texi (max-inline-insns-rtl): Remove.

From-SVN: r91463
2004-11-29 09:33:10 +00:00
Alan Modra
6654de69a7 re PR target/9571 ([PPC] problems with 'const', -msdata=eabi and sections.)
PR target/9571
	* varasm.c (default_elf_select_section_1): Pass decl to named_section.

From-SVN: r91462
2004-11-29 16:54:30 +10:30
Andrew Pinski
6db081f1a8 [multiple changes]
2004-11-18  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/18164
        * gimplify.c (gimplify_asm_expr): If the length of an output operand
        is zero, do not process it, just let it go through.

2004-11-28  Andrew Pinski  <pinskia@physics.uc.edu>

        * gcc.dg/pr18164.c: New test.

From-SVN: r91459
2004-11-28 18:21:28 -08:00
Richard Kenner
47023d1a43 PR/18662, also backported from tree-cleanup-branch.
* tree-ssa-ccp.c (substitute_and_fold): If replaced anything,
	always call maybe_clean_eh_stmt and modify_stmt.

Co-Authored-By: Diego Novillo <dnovillo@redhat.com>

From-SVN: r91451
2004-11-28 20:15:39 -05:00
Richard Kenner
9390c347e9 tree-ssa-operands.c (build_ssa_operands, [...]): Ignore a VIEW_CONVERT_EXPR on LHS when deciding if must or may def.
PR/18664
	* tree-ssa-operands.c (build_ssa_operands, case MODIFY_EXPR):
	Ignore a VIEW_CONVERT_EXPR on LHS when deciding if must or may def.
	* tree-ssa-ccp.c (visit_assignment): If LHS is a VIEW_CONVERT_EXPR,
	add an inverse VIEW_CONVERT_EXPR to const_val.

From-SVN: r91450
2004-11-28 20:08:41 -05:00
Richard Kenner
ab1a8620fc tree-nested.c (check_for_nested_with_variably_modified): New.
* tree-nested.c (check_for_nested_with_variably_modified): New.
	(create_nesting_tree): Call it.

From-SVN: r91449
2004-11-28 20:03:15 -05:00
Richard Kenner
406eab994a tree-ssa-alias.c (compute_points_to_and_addr_escapes): Remove special code for assigning to non-pointer.
* tree-ssa-alias.c (compute_points_to_and_addr_escapes): Remove
	special code for assigning to non-pointer.
	(is_escape_site): If RHS is a conversion between pointer and integer
	types,	this is an escape site.

From-SVN: r91448
2004-11-28 19:59:25 -05:00
Richard Kenner
b16aa8a5d9 gcse.c (insert_store): Error if try to insert store on abnormal edge.
* gcse.c (insert_store): Error if try to insert store on abnormal edge.
	(store_motion): Don't move store if any edge we'd want to move it
	to is abnormal.

From-SVN: r91447
2004-11-28 19:56:58 -05:00
Richard Kenner
45d8710e5e expr.c (expand_expr_real_1, [...]): Properly fold with non-zero lower bound.
* expr.c (expand_expr_real_1, case ARRAY_REF): Properly fold with
	non-zero lower bound.

From-SVN: r91446
2004-11-28 19:52:33 -05:00
Richard Kenner
97f8d136d1 * expr.c (categorize_ctor_elements_1, case STRING_CST): New case.
From-SVN: r91445
2004-11-28 19:49:14 -05:00
Matt Kraai
a2163d83a3 re PR other/17594 (GCC does not error about unknown options which starts with a valid option)
(gcc)

	PR diagnostic/17594
	* opts.c (find_opt): Require that the input match a switch exactly
	or that the switch take a joined option to be interpreted as a
	match for another language.

(gcc/testsuite)

	* gcc.dg/funroll-loops-all.c: New.

From-SVN: r91444
2004-11-29 00:37:54 +00:00
Hans-Peter Nilsson
77109b5069 re PR target/18489 (mmix-knuth-mmixware testsuite failure: g++.dg/rtti/tinfo1.C)
PR target/18489
	* g++.dg/rtti/tinfo1.C: In pattern for label definition ending
	delimeter, match space and TAB as well as ":".

From-SVN: r91443
2004-11-29 00:21:22 +00:00
GCC Administrator
9302338c8c Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91441.2
2004-11-29 00:17:14 +00:00
GCC Administrator
d97aeb4829 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91440.2
2004-11-29 00:17:06 +00:00
Andrew Pinski
09e293df1d timevar.def (TV_TREE_REDPHI): New timevar.
2004-11-28  Andrew Pinski  <pinskia@physics.uc.edu>

        * timevar.def (TV_TREE_REDPHI): New timevar.
        * tree-ssa.c (pass_redundant_phi): Use TV_TREE_REDPHI for the tv id.

From-SVN: r91438
2004-11-28 16:03:40 -08:00
Nathanael Nerode
ba9a70a747 lost ChangeLog entry
From-SVN: r91437
2004-11-28 23:32:00 +00:00
Nathanael Nerode
f9c656237c re PR preprocessor/17651 (Erroneous preprocessor output with -g when generating dependencies)
2004-11-28  Nathanael Nerode  <neroden@gcc.gnu.org>

	PR preprocessor/17651
	* c-opts.c (sanitize_cpp_opts): Make flag_no_output imply
	flag_no_line_commands.
	* c-ppoutput.c (pp_file_change): Remove now-redundant check of
	flag_no_output.

From-SVN: r91436
2004-11-28 23:29:41 +00:00
Hans-Peter Nilsson
a8344e3213 re PR target/18484 (mmix-knuth-mmixware testsuite failure: g++.dg/abi/empty6.C)
PR target/18484
	* g++.dg/abi/empty6.C: Xfail warning for mmix-*-*.

From-SVN: r91434
2004-11-28 23:28:05 +00:00
Theodore A. Roth
97e45d9e69 avr.c (avr_handle_fndecl_attribute): Generate a warning if the function name does not begin with "__vector" and the...
* config/avr/avr.c (avr_handle_fndecl_attribute): Generate a
	warning if the function name does not begin with "__vector" and the
	function has either the 'signal' or 'interrupt' attribute.

From-SVN: r91433
2004-11-28 23:15:59 +00:00
Theodore A. Roth
3592022563 avr.c (avr_mcu_types): Add entries for atmega48...
* config/avr/avr.c (avr_mcu_types): Add entries for atmega48,
	atmega88, atmega168, attiny13, attiny2313, at90can128, atmega165,
	atmega325, atmega3250, atmega645 and atmega6450.
	* config/avr/avr.h (LINK_SPEC): Ditto.
	(LIB_SPEC): Ditto.
	(LIBGCC_SPEC): Ditto.
	(CRT_BINUTILS_SPECS): Ditto.
	* config/avr/t-avr (MULTILIB_MATCHES): Ditto.

From-SVN: r91432
2004-11-28 23:10:28 +00:00
Hans-Peter Nilsson
20db5bc845 re PR target/18348 (mmix-knuth-mmixware testsuite failure: gcc.dg/uninit-H.c)
PR target/18348
	* gcc.dg/uninit-H.c (ASM): For unknown targets, define to "= 0".

From-SVN: r91431
2004-11-28 22:57:38 +00:00
Mark Wielaard
c8387a9379 mauve-libgcj: Disable SpinnerListModel...
* mauve-libgcj: Disable SpinnerListModel, SwingUtilities and
       XMLDecoder tests which currently don't compile.

From-SVN: r91430
2004-11-28 22:41:53 +00:00
Hans-Peter Nilsson
450bc074e9 re PR target/18345 (mmix-knuth-mmixware testsuite failure: gcc.dg/intmax_t-1.c)
PR target/18345
	* gcc.dg/intmax_t-1.c: Add mmix-*-* to dg-error.

From-SVN: r91429
2004-11-28 22:39:05 +00:00
Nathanael Nerode
283038288e re PR preprocessor/17610 (Empty #include statement halts gcc)
(libcpp)
	PR preprocessor/17610
	* directives.c (do_include_common): Error out if an empty filename
	is given for #include (or #include_next or #import).

(gcc)
	PR preprocessor/17610
	* testsuite/gcc.dg/cpp/empty-include.c: New testcase.

From-SVN: r91428
2004-11-28 22:28:13 +00:00
Hans-Peter Nilsson
b20e82291e re PR target/18337 (mmix-knuth-mmixware testsuite failure: gcc.dg/array-quals-1.c)
PR target/18337
	* gcc.dg/array-quals-1.c: Xfail for mmix-*-*.

From-SVN: r91427
2004-11-28 22:14:34 +00:00
Bud Davis
905d47a950 direct_io_2.f90: New test.
2004-11-28  Bud Davis  <bdavis9659@comcast.net>

        * gcc/gcc/gfortran.dg/direct_io_2.f90: New test.

        * gcc/libgfortran/io/unix.c (mmap_alloc_w_a): check for a write
	to a location less than the mapped area.

From-SVN: r91426
2004-11-28 21:14:02 +00:00
Jeff Law
856e49c207 tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New.
* tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New.
        (pass_maybe_create_global_var): New.
        * tree-pass.h (pass_maybe_create_global_var): Declare.
        * tree-optimize.c (init_tree_optimization_passes): Link in
        pass_maybe_create_global_var.

From-SVN: r91425
2004-11-28 14:02:31 -07:00
Hans-Peter Nilsson
ec017547ea re PR target/18334 (mmix-knuth-mmixware testsuite failure: gcc.dg/cpp/assert4.c)
PR target/18334
	* gcc.dg/cpp/assert4.c: Remove mmix assertion tests.

From-SVN: r91424
2004-11-28 20:52:19 +00:00
Richard Kenner
27b892b496 * tree-inline.c (inline_forbidden_p_1, case RECORD_TYPE): Add comment.
From-SVN: r91420
2004-11-28 09:02:56 -05:00
Ulrich Weigand
fbee756399 re PR rtl-optimization/18420 (ICE compiling mesa at -O2)
PR rtl-optimization/18420
	* simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change.

From-SVN: r91419
2004-11-28 13:02:52 +00:00
Steven Bosscher
6e1037da47 Forgot to add my own email address
From-SVN: r91418
2004-11-28 12:02:37 +00:00
Steven Bosscher
05dde071b3 vax.h (CASE_DROPS_THROUGH): Don't define.
* config/vax/vax.h (CASE_DROPS_THROUGH): Don't define.
	* config/vax/vax.md (casesi): Emit a test-and-branch to make sure
	that the case is in range, to make sure the casesi insn is always
	in range and never falls through.
	(casesi1): Add comment to explain why casesi never falls through.
	Remove the unnamed special case casesi pattern.

From-SVN: r91417
2004-11-28 12:01:20 +00:00
Hans-Peter Nilsson
69ffa7aa5a re PR target/18331 (mmix-knuth-mmixware testsuite failure: execute/ieee/fp-cmp-8.c gcc.dg/20040625-1.c)
PR target/18331
	* config/mmix/mmix.md ("*movdicc_real_reversible"): Rename from
	"*movdicc_real".  Only match reversible comparisons.
	("*movdicc_real_nonreversible"): New pattern, split from
	"*movdicc_real".  Match only nonreversible comparisons.  Exclude
	reversed alternatives.
	("*movdfcc_real_reversible", "*movdfcc_real_nonreversible"):
	Similar.

From-SVN: r91416
2004-11-28 09:48:27 +00:00
Richard Henderson
78a27531e0 * gcc.c-torture/execute/20020227-1.x: Remove XFAIL.
From-SVN: r91415
2004-11-28 01:41:33 -08:00
Richard Henderson
7905f79948 ia64.md: Move all define_predicate's ...
* config/ia64/ia64.md: Move all define_predicate's ...
        * config/ia64/predicates.md: ... here.  New file.

From-SVN: r91414
2004-11-28 01:38:43 -08:00
Per Bothner
ca6b99558d jcf-parse.c (set_source_filename): Improvement to Andrew's fix...
* jcf-parse.c (set_source_filename):  Improvement to Andrew's fix:
	Fix fencepost error in 'i', which got executed one too many times.
	Also, fold memcpy into explicit loop, as originally intended.
	Also, free temporary 'buf' which otherwise leaks.

From-SVN: r91411
2004-11-27 22:49:48 -08:00
Per Bothner
ad50046692 expr.c (build_expr_wfl): Only declare last_file and last_filenode local static variables if...
* expr.c (build_expr_wfl): Only declare last_file and last_filenode
	local static variables if not USE_MAPPED_LOCATION.

From-SVN: r91408
2004-11-27 22:44:20 -08:00
Per Bothner
8af4d362c2 re PR bootstrap/18142 ("Unknown pseudo-op: .machine" compiling darwin-crt2.c)
PR bootstrap/18142
	Re-applied following, with two modifications: add a URL for the
	fixed cctools; only exit if $build = $target.

	2004-10-18  Kelley Cook  <kcook@gcc.gnu.org>
	* configure.ac (powerpc-*-darwin*): Require assembler to support
	.machine directive.
	* configure: Regenerate.

From-SVN: r91406
2004-11-27 22:06:26 -08:00
Joseph Myers
c48cb43994 builtin-choose-expr-2.c, [...]: New tests.
* gcc.dg/builtin-choose-expr-2.c, gcc.dg/cast-1.c,
	gcc.dg/cast-2.c, gcc.dg/cast-3.c, gcc.dg/format/opt-1.c,
	gcc.dg/format/opt-2.c, gcc.dg/format/opt-3.c,
	gcc.dg/format/opt-4.c, gcc.dg/format/opt-5.c,
	gcc.dg/format/opt-6.c, gcc.dg/pointer-arith-5.c,
	gcc.dg/pointer-arith-6.c, gcc.dg/pointer-arith-7.c,
	gcc.dg/pointer-arith-8.c: New tests.

From-SVN: r91405
2004-11-28 02:16:57 +00:00
GCC Administrator
69b7944b0d Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91403.2
2004-11-28 00:16:25 +00:00
GCC Administrator
0c1e33969b Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91402.2
2004-11-28 00:16:17 +00:00
Bud Davis
203f344c3d re PR libfortran/18364 (endfile does not truncate file)
2004-11-27  Bud Davis  <bdavis9659@comcast.net>

        PR fortran/18364
        * gfortran.dg/endfile.f90: New test.
        *  io/endfile.c (st_endfile): flush the stream before truncating.

From-SVN: r91400
2004-11-27 23:35:47 +00:00
David Edelsohn
22e54023ca re PR target/16800 (PowerPC - Unnecessary rldicl)
PR target/16800
        * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve accuracy of
        EQ, GTU, and LTU costs.  Add costs for GT, LT, and UNORDERED.
        Distinguish between SImode and DImode CONST_INT.

From-SVN: r91399
2004-11-27 18:00:57 -05:00
Andreas Fischer
7482ad259b re PR target/16343 (invalid code when using -meabi -msdata=eabi)
PR target/16343
	* config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Disallow
	functions, strings and thread-local vars.

Co-Authored-By: Alan Modra <amodra@bigpond.net.au>

From-SVN: r91397
2004-11-28 09:21:43 +10:30