public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33540]  New: internal compiler error
@ 2007-09-24  0:43 ebuddington at wesleyan dot edu
  2007-09-24  0:52 ` [Bug middle-end/33540] " ebuddington at wesleyan dot edu
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: ebuddington at wesleyan dot edu @ 2007-09-24  0:43 UTC (permalink / raw)
  To: gcc-bugs

The error-producing command line is

g++ -Wall -O3 -march=native -c videospeed.cc

videospeed.cc: In function 'int main(int, char**)':
videospeed.cc:275: internal compiler error: in expand_simple_binop, at
optabs.c:1158


Adding -save-temps gives a new warning "SSE instruction set disabled, using 387
arithmetics", and the compile succeeds. Also, changing to -march=i386 or
-march=i686 avoids the problem.

I will attach the g++ -E output, which does trigger the error.


-- 
           Summary: internal compiler error
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ebuddington at wesleyan dot edu
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33540


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/33540] internal compiler error
  2007-09-24  0:43 [Bug c++/33540] New: internal compiler error ebuddington at wesleyan dot edu
@ 2007-09-24  0:52 ` ebuddington at wesleyan dot edu
  2007-09-24  2:13 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ebuddington at wesleyan dot edu @ 2007-09-24  0:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from ebuddington at wesleyan dot edu  2007-09-24 00:52 -------
Created an attachment (id=14247)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14247&action=view)
error-producing test case

test case: rename to test.cc, and 'g++ -Wall -O3 -march=native -c test.cc'


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33540


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/33540] internal compiler error
  2007-09-24  0:43 [Bug c++/33540] New: internal compiler error ebuddington at wesleyan dot edu
  2007-09-24  0:52 ` [Bug middle-end/33540] " ebuddington at wesleyan dot edu
@ 2007-09-24  2:13 ` pinskia at gcc dot gnu dot org
  2007-09-24  2:40 ` ebuddington at wesleyan dot edu
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-09-24  2:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-09-24 02:12 -------
Can you provide the -v output?  This is needed if you use -march=native.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33540


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/33540] internal compiler error
  2007-09-24  0:43 [Bug c++/33540] New: internal compiler error ebuddington at wesleyan dot edu
  2007-09-24  0:52 ` [Bug middle-end/33540] " ebuddington at wesleyan dot edu
  2007-09-24  2:13 ` pinskia at gcc dot gnu dot org
@ 2007-09-24  2:40 ` ebuddington at wesleyan dot edu
  2007-09-24  8:36 ` rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ebuddington at wesleyan dot edu @ 2007-09-24  2:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from ebuddington at wesleyan dot edu  2007-09-24 02:39 -------
bash-2.05b$ gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.2.1/configure --prefix=/packages/gcc/4.2.1/any
--exec-prefix=/packages/gcc/4.2.1/i386
Thread model: posix
gcc version 4.2.1


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33540


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/33540] internal compiler error
  2007-09-24  0:43 [Bug c++/33540] New: internal compiler error ebuddington at wesleyan dot edu
                   ` (2 preceding siblings ...)
  2007-09-24  2:40 ` ebuddington at wesleyan dot edu
@ 2007-09-24  8:36 ` rguenth at gcc dot gnu dot org
  2007-09-24 11:25 ` ebuddington at wesleyan dot edu
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-09-24  8:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2007-09-24 08:36 -------
-v output when compiling, that is,

g++ -Wall -O3 -march=native -c videospeed.cc -v


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33540


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/33540] internal compiler error
  2007-09-24  0:43 [Bug c++/33540] New: internal compiler error ebuddington at wesleyan dot edu
                   ` (3 preceding siblings ...)
  2007-09-24  8:36 ` rguenth at gcc dot gnu dot org
@ 2007-09-24 11:25 ` ebuddington at wesleyan dot edu
  2007-12-27 18:49 ` [Bug middle-end/33540] ICE with vectors in expand_simple_binop at optabs.c reichelt at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ebuddington at wesleyan dot edu @ 2007-09-24 11:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from ebuddington at wesleyan dot edu  2007-09-24 11:24 -------
Created an attachment (id=14249)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14249&action=view)
output of 'g++ -Wall -O3 -march=native -v -c test.cc'


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33540


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/33540] ICE with vectors in expand_simple_binop at optabs.c
  2007-09-24  0:43 [Bug c++/33540] New: internal compiler error ebuddington at wesleyan dot edu
                   ` (4 preceding siblings ...)
  2007-09-24 11:25 ` ebuddington at wesleyan dot edu
@ 2007-12-27 18:49 ` reichelt at gcc dot gnu dot org
  2008-02-01 17:00 ` [Bug middle-end/33540] [4.2 regression] " jsm28 at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-12-27 18:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from reichelt at gcc dot gnu dot org  2007-12-27 18:48 -------
Confirmed. Reduced testcase that crashes on i686-pc-linux-gnu when compiled
with "-msse -O" (as C or C++ code):

======================================================
typedef int v4i __attribute__((vector_size(16)));

void foo(v4i* p, v4i v)
{
  int i;
  for (i=0; i < 4; ++i)
    *p += v;
}
======================================================

bug.c: In function 'foo':
bug.c:8: internal compiler error: in expand_simple_binop, at optabs.c:1157
Please submit a full bug report, [etc.]

The bug appeared in GCC 4.2.0 and disappeared on mainline between
2007-09-14 and 2007-10-13.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-valid-code, monitored
      Known to fail|                            |4.2.0 4.2.1 4.2.2
      Known to work|                            |4.1.2 4.3.0
   Last reconfirmed|0000-00-00 00:00:00         |2007-12-27 18:48:49
               date|                            |
            Summary|ICE in expand_simple_binop  |ICE with vectors in
                   |at optabs.c                 |expand_simple_binop at
                   |                            |optabs.c
   Target Milestone|---                         |4.2.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33540


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/33540] [4.2 regression] ICE with vectors in expand_simple_binop at optabs.c
  2007-09-24  0:43 [Bug c++/33540] New: internal compiler error ebuddington at wesleyan dot edu
                   ` (5 preceding siblings ...)
  2007-12-27 18:49 ` [Bug middle-end/33540] ICE with vectors in expand_simple_binop at optabs.c reichelt at gcc dot gnu dot org
@ 2008-02-01 17:00 ` jsm28 at gcc dot gnu dot org
  2008-05-19 20:47 ` jsm28 at gcc dot gnu dot org
  2009-03-30 22:27 ` jsm28 at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-02-01 17:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jsm28 at gcc dot gnu dot org  2008-02-01 16:54 -------
4.2.3 is being released now, changing milestones of open bugs to 4.2.4.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.2.3                       |4.2.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33540


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/33540] [4.2 regression] ICE with vectors in expand_simple_binop at optabs.c
  2007-09-24  0:43 [Bug c++/33540] New: internal compiler error ebuddington at wesleyan dot edu
                   ` (6 preceding siblings ...)
  2008-02-01 17:00 ` [Bug middle-end/33540] [4.2 regression] " jsm28 at gcc dot gnu dot org
@ 2008-05-19 20:47 ` jsm28 at gcc dot gnu dot org
  2009-03-30 22:27 ` jsm28 at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-05-19 20:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jsm28 at gcc dot gnu dot org  2008-05-19 20:23 -------
4.2.4 is being released, changing milestones to 4.2.5.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.2.4                       |4.2.5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33540


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/33540] [4.2 regression] ICE with vectors in expand_simple_binop at optabs.c
  2007-09-24  0:43 [Bug c++/33540] New: internal compiler error ebuddington at wesleyan dot edu
                   ` (7 preceding siblings ...)
  2008-05-19 20:47 ` jsm28 at gcc dot gnu dot org
@ 2009-03-30 22:27 ` jsm28 at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-30 22:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jsm28 at gcc dot gnu dot org  2009-03-30 22:27 -------
Closing 4.2 branch, fixed in 4.3.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
      Known to fail|4.2.0 4.2.1 4.2.2           |4.2.0 4.2.1 4.2.2 4.2.5
         Resolution|                            |FIXED
   Target Milestone|4.2.5                       |4.3.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33540


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-03-30 22:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-24  0:43 [Bug c++/33540] New: internal compiler error ebuddington at wesleyan dot edu
2007-09-24  0:52 ` [Bug middle-end/33540] " ebuddington at wesleyan dot edu
2007-09-24  2:13 ` pinskia at gcc dot gnu dot org
2007-09-24  2:40 ` ebuddington at wesleyan dot edu
2007-09-24  8:36 ` rguenth at gcc dot gnu dot org
2007-09-24 11:25 ` ebuddington at wesleyan dot edu
2007-12-27 18:49 ` [Bug middle-end/33540] ICE with vectors in expand_simple_binop at optabs.c reichelt at gcc dot gnu dot org
2008-02-01 17:00 ` [Bug middle-end/33540] [4.2 regression] " jsm28 at gcc dot gnu dot org
2008-05-19 20:47 ` jsm28 at gcc dot gnu dot org
2009-03-30 22:27 ` jsm28 at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).