Bug 23747 - ICE with -O2, -O3 execute/builtins/memcpy-chk.c
Summary: ICE with -O2, -O3 execute/builtins/memcpy-chk.c
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.1.0
: P2 normal
Target Milestone: 4.0.2
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2005-09-06 05:25 UTC by inaoka.kazuhiro
Modified: 2005-09-07 13:23 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux-gnu
Target: m32r-unknown-linux-gnu
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description inaoka.kazuhiro 2005-09-06 05:25:18 UTC
Configured with: /home4/src/gcc/org/gcc/configure --target=m32r-linux-gnu
--prefix=/usr/local/m32r-linux --srcdir=/home4/src/gcc/org/gcc
--with-headers=/home4/src/glibc-next//include --enable-checking
--enable-languages=c,c++
Thread model: posix
gcc version 4.1.0 20050906 (experimental)
/home4/src/gcc/org/build.linux-local/gcc/xgcc  version 4.1.0 20050906 (experimental)

Running
/home4/src/gcc/org/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp ...
FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation,  -O2
FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation,  -O3
-fomit-frame-pointer
FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation,  -O3 -g

Executing on host: /home4/src/gcc/org/build.linux-local/gcc/xgcc
-B/home4/src/gcc/org/build.linux-local/gcc/
/home4/src/gcc/org/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/memcpy-chk.c
/home4/src/gcc/org/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/memcpy-chk-lib.c
/home4/src/gcc/org/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/lib/main.c 
-w  -O2  -fno-show-column  -lm   -o
/home4/src/gcc/org/build.linux-local/gcc/testsuite/memcpy-chk.x2    (timeout = 300)
/home4/src/gcc/org/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/memcpy-chk.c:
In function 'test6':
/home4/src/gcc/org/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/memcpy-chk.c:463:
internal compiler error: in schedule_insns, at sched-rgn.c:2605
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
compiler exited with status 1
output is:
/home4/src/gcc/org/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/memcpy-chk.c:
In function 'test6':
/home4/src/gcc/org/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/memcpy-chk.c:463:
internal compiler error: in schedule_insns, at sched-rgn.c:2605
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Comment 1 GCC Commits 2005-09-07 11:58:01 UTC
Subject: Bug 23747

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	nickc@gcc.gnu.org	2005-09-07 11:57:47

Modified files:
	gcc            : ChangeLog 
	gcc/config/m32r: m32r.md 

Log message:
	PR target/23747
	* config/m32r.md (movmemsi_internal): Canonicalize order of operands in
	PLUS component of template.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9914&r2=2.9915
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/m32r/m32r.md.diff?cvsroot=gcc&r1=1.56&r2=1.57

Comment 2 GCC Commits 2005-09-07 12:05:23 UTC
Subject: Bug 23747

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	nickc@gcc.gnu.org	2005-09-07 12:04:42

Modified files:
	gcc            : ChangeLog 
	gcc/config/m32r: m32r.md 

Log message:
	PR target/23747
	* config/m32r.md (movmemsi_internal): Canonicalize order of operands in
	PLUS component of template.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.417&r2=2.7592.2.418
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/m32r/m32r.md.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.50.10.1&r2=1.50.10.2

Comment 3 Andrew Pinski 2005-09-07 13:23:58 UTC
Fixed.