* [Bug target/17451] ICE at insn-output.c:1495 with -O1
2004-09-13 2:49 [Bug target/17451] New: ICE at insn-output.c:1495 with -O1 bernie at develer dot com
@ 2004-09-13 2:51 ` bernie at develer dot com
2004-09-18 17:41 ` [Bug target/17451] [3.4 Regression] " belyshev at lubercy dot com
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: bernie at develer dot com @ 2004-09-13 2:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bernie at develer dot com 2004-09-13 02:51 -------
Created an attachment (id=7117)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7117&action=view)
testcase
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17451
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/17451] [3.4 Regression] ICE at insn-output.c:1495 with -O1
2004-09-13 2:49 [Bug target/17451] New: ICE at insn-output.c:1495 with -O1 bernie at develer dot com
2004-09-13 2:51 ` [Bug target/17451] " bernie at develer dot com
@ 2004-09-18 17:41 ` belyshev at lubercy dot com
2004-09-18 18:51 ` giovannibajo at libero dot it
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: belyshev at lubercy dot com @ 2004-09-18 17:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From belyshev at lubercy dot com 2004-09-18 17:41 -------
// small testcase. Note: this code is valid, so changing keyword.
int foo (int b)
{
int i;
char c[2];
for (i = 0; i < 1; i ++);
c[0] += 2;
return b / c[0] < 0;
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
GCC target triplet|i386-redhat-linux |i*86-*-*
Keywords|ice-on-invalid-code |ice-on-valid-code
Known to fail| |3.4.1 3.4.3
Known to work| |3.3.5
Last reconfirmed|0000-00-00 00:00:00 |2004-09-18 17:41:31
date| |
Summary|ICE at insn-output.c:1495 |[3.4 Regression] ICE at
|with -O1 |insn-output.c:1495 with -O1
Target Milestone|--- |3.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17451
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/17451] [3.4 Regression] ICE at insn-output.c:1495 with -O1
2004-09-13 2:49 [Bug target/17451] New: ICE at insn-output.c:1495 with -O1 bernie at develer dot com
2004-09-13 2:51 ` [Bug target/17451] " bernie at develer dot com
2004-09-18 17:41 ` [Bug target/17451] [3.4 Regression] " belyshev at lubercy dot com
@ 2004-09-18 18:51 ` giovannibajo at libero dot it
2004-09-19 22:20 ` bernie at develer dot com
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: giovannibajo at libero dot it @ 2004-09-18 18:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-09-18 18:51 -------
I cannot reproduce this with GCC 3.4.0 (i686-cygwin), nor 4.0.0 (i686-linux).
--
What |Removed |Added
----------------------------------------------------------------------------
Known to work|3.3.5 |3.3.5 3.4.0 4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17451
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/17451] [3.4 Regression] ICE at insn-output.c:1495 with -O1
2004-09-13 2:49 [Bug target/17451] New: ICE at insn-output.c:1495 with -O1 bernie at develer dot com
` (2 preceding siblings ...)
2004-09-18 18:51 ` giovannibajo at libero dot it
@ 2004-09-19 22:20 ` bernie at develer dot com
2004-09-20 0:27 ` bernie at develer dot com
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: bernie at develer dot com @ 2004-09-19 22:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bernie at develer dot com 2004-09-19 22:20 -------
The simplified testcase ICEs only at -O1, not at -O3.
The original testcase didn't work with anything above -O1.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17451
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/17451] [3.4 Regression] ICE at insn-output.c:1495 with -O1
2004-09-13 2:49 [Bug target/17451] New: ICE at insn-output.c:1495 with -O1 bernie at develer dot com
` (3 preceding siblings ...)
2004-09-19 22:20 ` bernie at develer dot com
@ 2004-09-20 0:27 ` bernie at develer dot com
2004-09-20 5:53 ` belyshev at lubercy dot com
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: bernie at develer dot com @ 2004-09-20 0:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bernie at develer dot com 2004-09-20 00:27 -------
Both testcases do indeed work with 3.4.3 from CVS.
It may be one of those intermittent middle-end bugs
that keep reappearing as other parts of the compiler
change, but we don't know for sure.
For now, we may assume the problem has already been
properly fixed and close this bug.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Known to fail|3.4.1 3.4.3 |3.4.1
Known to work|3.3.5 3.4.0 4.0.0 |3.3.5 3.4.0 3.4.3 4.0.0
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17451
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/17451] [3.4 Regression] ICE at insn-output.c:1495 with -O1
2004-09-13 2:49 [Bug target/17451] New: ICE at insn-output.c:1495 with -O1 bernie at develer dot com
` (4 preceding siblings ...)
2004-09-20 0:27 ` bernie at develer dot com
@ 2004-09-20 5:53 ` belyshev at lubercy dot com
2004-09-20 7:47 ` bernie at develer dot com
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: belyshev at lubercy dot com @ 2004-09-20 5:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From belyshev at lubercy dot com 2004-09-20 05:53 -------
No, this bug is not fixed. There was no changes in 3.4 CVS since last time I
checked. Both testcases still failing with current 3.4 CVS.
Note this ICE does _not_ appear with -mtune=i686, pentium2 or pentium3.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Known to fail|3.4.1 |3.4.1 3.4.3
Known to work|3.3.5 3.4.0 3.4.3 4.0.0 |3.3.5 3.4.0 4.0.0
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17451
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/17451] [3.4 Regression] ICE at insn-output.c:1495 with -O1
2004-09-13 2:49 [Bug target/17451] New: ICE at insn-output.c:1495 with -O1 bernie at develer dot com
` (5 preceding siblings ...)
2004-09-20 5:53 ` belyshev at lubercy dot com
@ 2004-09-20 7:47 ` bernie at develer dot com
2004-09-20 13:32 ` belyshev at lubercy dot com
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: bernie at develer dot com @ 2004-09-20 7:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bernie at develer dot com 2004-09-20 07:47 -------
Weird. Here (i686-pc-linux-gnu) I see different results:
$ /usr/local/src/gcc/i386-linux-3.4-install/bin/gcc -v
Reading specs from
/usr/local/src/gcc/i386-linux-3.4-install/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
Configured with: ../gcc-3.4/configure
--prefix=/usr/local/src/gcc/i386-linux-3.4-install --enable-languages=all
--enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit
--disable-gdbtk --enable-sim --enable-multi-ice --enable-libgcj-multifile
Thread model: posix
gcc version 3.4.3 20040919 (prerelease)
$ /usr/local/src/gcc/i386-linux-3.4-install/bin/gcc -O1 -c foo.c
(OK)
$ /usr/bin/gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.1/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.1 20040831 (Red Hat 3.4.1-10)
$ /usr/bin/gcc -c -O foo.c
foo.c: In function `foo':
foo.c:10: internal compiler error: in output_151, at insn-output.c:1495
How did you exactly configure your compiler?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17451
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/17451] [3.4 Regression] ICE at insn-output.c:1495 with -O1
2004-09-13 2:49 [Bug target/17451] New: ICE at insn-output.c:1495 with -O1 bernie at develer dot com
` (6 preceding siblings ...)
2004-09-20 7:47 ` bernie at develer dot com
@ 2004-09-20 13:32 ` belyshev at lubercy dot com
2004-09-20 14:44 ` bernie at develer dot com
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: belyshev at lubercy dot com @ 2004-09-20 13:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From belyshev at lubercy dot com 2004-09-20 13:32 -------
(In reply to comment #7)
Hi Bernardo,
>/usr/local/src/gcc/i386-linux-3.4-install/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
I see you configured gcc with target 'i686-pc-linux-gnu', this means -mtune=i686
by default. So, this is why your compiler works fine (see my note in comment #6).
> How did you exactly configure your compiler?
./configure --enable-languages=c --with-arch=athlon-xp
I am seeing ICE with these -mtune values: i386, i486, i586, k6, athlon, k8, c3,
winchip
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17451
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/17451] [3.4 Regression] ICE at insn-output.c:1495 with -O1
2004-09-13 2:49 [Bug target/17451] New: ICE at insn-output.c:1495 with -O1 bernie at develer dot com
` (7 preceding siblings ...)
2004-09-20 13:32 ` belyshev at lubercy dot com
@ 2004-09-20 14:44 ` bernie at develer dot com
2004-10-16 0:08 ` rth at gcc dot gnu dot org
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: bernie at develer dot com @ 2004-09-20 14:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bernie at develer dot com 2004-09-20 14:44 -------
(In reply to comment #8)
> Hi Bernardo,
> >/usr/local/src/gcc/i386-linux-3.4-install/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
>
> I see you configured gcc with target 'i686-pc-linux-gnu', this means
-mtune=i686 by default. So, this is why your compiler works fine
> (see my note in comment #6).
You're right.
> I am seeing ICE with these -mtune values: i386, i486, i586, k6, athlon, k8,
c3, winchip
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2004-09-18 17:41:31 |2004-09-20 14:44:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17451
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/17451] [3.4 Regression] ICE at insn-output.c:1495 with -O1
2004-09-13 2:49 [Bug target/17451] New: ICE at insn-output.c:1495 with -O1 bernie at develer dot com
` (8 preceding siblings ...)
2004-09-20 14:44 ` bernie at develer dot com
@ 2004-10-16 0:08 ` rth at gcc dot gnu dot org
2004-10-16 0:44 ` bernie at develer dot com
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-10-16 0:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rth at gcc dot gnu dot org 2004-10-16 00:08 -------
I can't reproduce this today. Can anyone else?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17451
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/17451] [3.4 Regression] ICE at insn-output.c:1495 with -O1
2004-09-13 2:49 [Bug target/17451] New: ICE at insn-output.c:1495 with -O1 bernie at develer dot com
` (9 preceding siblings ...)
2004-10-16 0:08 ` rth at gcc dot gnu dot org
@ 2004-10-16 0:44 ` bernie at develer dot com
2004-10-16 0:50 ` belyshev at lubercy dot com
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: bernie at develer dot com @ 2004-10-16 0:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bernie at develer dot com 2004-10-16 00:44 -------
I can still see it with a recent snapshot from RawHide:
gcc version 3.4.2 20041006 (Red Hat 3.4.2-5)
So unless it has been accidentally fixed during the last
10 days, the bug is still in 3.4-branch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17451
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/17451] [3.4 Regression] ICE at insn-output.c:1495 with -O1
2004-09-13 2:49 [Bug target/17451] New: ICE at insn-output.c:1495 with -O1 bernie at develer dot com
` (10 preceding siblings ...)
2004-10-16 0:44 ` bernie at develer dot com
@ 2004-10-16 0:50 ` belyshev at lubercy dot com
2004-11-01 0:44 ` mmitchel at gcc dot gnu dot org
2004-12-06 15:58 ` belyshev at lubercy dot com
13 siblings, 0 replies; 15+ messages in thread
From: belyshev at lubercy dot com @ 2004-10-16 0:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From belyshev at lubercy dot com 2004-10-16 00:50 -------
Still ICEs on today's 3.4 branch. (Note comment #8).
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2004-09-20 14:44:04 |2004-10-16 00:50:13
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17451
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/17451] [3.4 Regression] ICE at insn-output.c:1495 with -O1
2004-09-13 2:49 [Bug target/17451] New: ICE at insn-output.c:1495 with -O1 bernie at develer dot com
` (11 preceding siblings ...)
2004-10-16 0:50 ` belyshev at lubercy dot com
@ 2004-11-01 0:44 ` mmitchel at gcc dot gnu dot org
2004-12-06 15:58 ` belyshev at lubercy dot com
13 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-11-01 0:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-11-01 00:44 -------
Postponed until GCC 3.4.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.3 |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17451
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/17451] [3.4 Regression] ICE at insn-output.c:1495 with -O1
2004-09-13 2:49 [Bug target/17451] New: ICE at insn-output.c:1495 with -O1 bernie at develer dot com
` (12 preceding siblings ...)
2004-11-01 0:44 ` mmitchel at gcc dot gnu dot org
@ 2004-12-06 15:58 ` belyshev at lubercy dot com
13 siblings, 0 replies; 15+ messages in thread
From: belyshev at lubercy dot com @ 2004-12-06 15:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From belyshev at lubercy dot com 2004-12-06 15:58 -------
Was fixed by this patch:
2004-10-18 Jakub Jelinek <jakub@redhat.com>
* config/i386/i386.md (addqi_1_slp): Test for incdec_operand
operand 1 instead of 2
--
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Known to fail|3.4.1 3.4.3 |3.4.1 3.4.2
Known to work|3.3.5 3.4.0 4.0.0 |3.3.5 3.4.0 3.4.3 4.0.0
Resolution| |FIXED
Target Milestone|3.4.4 |3.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17451
^ permalink raw reply [flat|nested] 15+ messages in thread