public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/29736]  New: [4.0/4.1/4.2/4.3 regression] ICE on duplicate vector attribute
@ 2006-11-05 23:31 reichelt at gcc dot gnu dot org
  2006-11-05 23:31 ` [Bug c/29736] " reichelt at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-11-05 23:31 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE since GCC 4.0.2:

=================================================
int __attribute__((vector_size(8),vector_size(8))) v;

void foo()
{
    v = v + v;
}
=================================================

bug.c: In function 'foo':
bug.c:5: internal compiler error: in same_scalar_type_ignoring_signedness, at
c-common.c:6379
Please submit a full bug report, [etc.]


-- 
           Summary: [4.0/4.1/4.2/4.3 regression] ICE on duplicate vector
                    attribute
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, monitored
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c/29736] [4.0/4.1/4.2/4.3 regression] ICE on duplicate vector attribute
  2006-11-05 23:31 [Bug c/29736] New: [4.0/4.1/4.2/4.3 regression] ICE on duplicate vector attribute reichelt at gcc dot gnu dot org
@ 2006-11-05 23:31 ` reichelt at gcc dot gnu dot org
  2006-11-12 20:40 ` mmitchel at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-11-05 23:31 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.4


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


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

* [Bug c/29736] [4.0/4.1/4.2/4.3 regression] ICE on duplicate vector attribute
  2006-11-05 23:31 [Bug c/29736] New: [4.0/4.1/4.2/4.3 regression] ICE on duplicate vector attribute reichelt at gcc dot gnu dot org
  2006-11-05 23:31 ` [Bug c/29736] " reichelt at gcc dot gnu dot org
@ 2006-11-12 20:40 ` mmitchel at gcc dot gnu dot org
  2006-11-20 10:41 ` jakub at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-11-12 20:40 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug c/29736] [4.0/4.1/4.2/4.3 regression] ICE on duplicate vector attribute
  2006-11-05 23:31 [Bug c/29736] New: [4.0/4.1/4.2/4.3 regression] ICE on duplicate vector attribute reichelt at gcc dot gnu dot org
  2006-11-05 23:31 ` [Bug c/29736] " reichelt at gcc dot gnu dot org
  2006-11-12 20:40 ` mmitchel at gcc dot gnu dot org
@ 2006-11-20 10:41 ` jakub at gcc dot gnu dot org
  2006-11-20 15:13 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-11-20 10:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2006-11-20 10:41 -------
Can't reproduce this with 4.3, 4.2 or 4.1-RH, getting
error: invalid vector type for attribute 'vector_size'
error and no ICE, with both C and C++ FEs.


-- 


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


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

* [Bug c/29736] [4.0/4.1/4.2/4.3 regression] ICE on duplicate vector attribute
  2006-11-05 23:31 [Bug c/29736] New: [4.0/4.1/4.2/4.3 regression] ICE on duplicate vector attribute reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-11-20 10:41 ` jakub at gcc dot gnu dot org
@ 2006-11-20 15:13 ` pinskia at gcc dot gnu dot org
  2006-11-21 15:18 ` jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-20 15:13 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1157 bytes --]



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-11-20 15:13 -------
I can confirm it with both the C and C++ front-ends with yesterday's compiler
"4.3.0 20061119".
GNU C++ version 4.3.0 20061119 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 4.3.0 20061119 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 563e84d5076a762db5ce04df9c794dc0
t.c: In function ‘void foo()’:
t.c:5: internal compiler error: in same_scalar_type_ignoring_signedness, at
c-common.c:6462
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-11-20 15:13:30
               date|                            |


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


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

* [Bug c/29736] [4.0/4.1/4.2/4.3 regression] ICE on duplicate vector attribute
  2006-11-05 23:31 [Bug c/29736] New: [4.0/4.1/4.2/4.3 regression] ICE on duplicate vector attribute reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-11-20 15:13 ` pinskia at gcc dot gnu dot org
@ 2006-11-21 15:18 ` jakub at gcc dot gnu dot org
  2006-11-24 21:23 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-11-21 15:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2006-11-21 15:18 -------
Ah, -m32 does the trick, it doesn't fail on x86_64-linux with -m64 or -m32
-msse2.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-11-20 15:13:30         |2006-11-21 15:18:08
               date|                            |


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


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

* [Bug c/29736] [4.0/4.1/4.2/4.3 regression] ICE on duplicate vector attribute
  2006-11-05 23:31 [Bug c/29736] New: [4.0/4.1/4.2/4.3 regression] ICE on duplicate vector attribute reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-11-21 15:18 ` jakub at gcc dot gnu dot org
@ 2006-11-24 21:23 ` jakub at gcc dot gnu dot org
  2006-11-24 21:24 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-11-24 21:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2006-11-24 21:23 -------
Subject: Bug 29736

Author: jakub
Date: Fri Nov 24 21:23:23 2006
New Revision: 119165

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119165
Log:
        PR c/29736
        * c-common.c (handle_vector_size_attribute): Disallow VECTOR_TYPE
        or UNION_TYPE inner types.

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

Added:
    trunk/gcc/testsuite/gcc.dg/pr29736.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-common.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c/29736] [4.0/4.1/4.2/4.3 regression] ICE on duplicate vector attribute
  2006-11-05 23:31 [Bug c/29736] New: [4.0/4.1/4.2/4.3 regression] ICE on duplicate vector attribute reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-11-24 21:23 ` jakub at gcc dot gnu dot org
@ 2006-11-24 21:24 ` jakub at gcc dot gnu dot org
  2006-11-24 21:27 ` jakub at gcc dot gnu dot org
  2007-02-03 20:54 ` [Bug c/29736] [4.0 " reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-11-24 21:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2006-11-24 21:24 -------
Subject: Bug 29736

Author: jakub
Date: Fri Nov 24 21:24:34 2006
New Revision: 119166

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119166
Log:
        PR c/29736
        * c-common.c (handle_vector_size_attribute): Disallow VECTOR_TYPE
        or UNION_TYPE inner types.

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

Added:
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/pr29736.c
Modified:
    branches/gcc-4_2-branch/gcc/ChangeLog
    branches/gcc-4_2-branch/gcc/c-common.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c/29736] [4.0/4.1/4.2/4.3 regression] ICE on duplicate vector attribute
  2006-11-05 23:31 [Bug c/29736] New: [4.0/4.1/4.2/4.3 regression] ICE on duplicate vector attribute reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-11-24 21:24 ` jakub at gcc dot gnu dot org
@ 2006-11-24 21:27 ` jakub at gcc dot gnu dot org
  2007-02-03 20:54 ` [Bug c/29736] [4.0 " reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-11-24 21:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jakub at gcc dot gnu dot org  2006-11-24 21:26 -------
Subject: Bug 29736

Author: jakub
Date: Fri Nov 24 21:26:44 2006
New Revision: 119167

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119167
Log:
        PR c/29736
        * c-common.c (handle_vector_size_attribute): Disallow VECTOR_TYPE
        or UNION_TYPE inner types.

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

Added:
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/pr29736.c
Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/c-common.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c/29736] [4.0 regression] ICE on duplicate vector attribute
  2006-11-05 23:31 [Bug c/29736] New: [4.0/4.1/4.2/4.3 regression] ICE on duplicate vector attribute reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-11-24 21:27 ` jakub at gcc dot gnu dot org
@ 2007-02-03 20:54 ` reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-02-03 20:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from reichelt at gcc dot gnu dot org  2007-02-03 20:53 -------
Won't be fixed on the 4.0 branch.
Fixed in GCC 4.1.2.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.0.4                       |4.1.2


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


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

end of thread, other threads:[~2007-02-03 20:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-05 23:31 [Bug c/29736] New: [4.0/4.1/4.2/4.3 regression] ICE on duplicate vector attribute reichelt at gcc dot gnu dot org
2006-11-05 23:31 ` [Bug c/29736] " reichelt at gcc dot gnu dot org
2006-11-12 20:40 ` mmitchel at gcc dot gnu dot org
2006-11-20 10:41 ` jakub at gcc dot gnu dot org
2006-11-20 15:13 ` pinskia at gcc dot gnu dot org
2006-11-21 15:18 ` jakub at gcc dot gnu dot org
2006-11-24 21:23 ` jakub at gcc dot gnu dot org
2006-11-24 21:24 ` jakub at gcc dot gnu dot org
2006-11-24 21:27 ` jakub at gcc dot gnu dot org
2007-02-03 20:54 ` [Bug c/29736] [4.0 " reichelt 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).