public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/29637]  New: [4.0/4.1/4.2/4.3 Regression] Endless recursion in make_vector_type
@ 2006-10-29 20:46 jakub at gcc dot gnu dot org
  2006-10-29 20:47 ` [Bug tree-optimization/29637] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-10-29 20:46 UTC (permalink / raw)
  To: gcc-bugs

PR29092 fix causes a regression:
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-vectorize" } */

typedef struct __attribute__ ((aligned (8)))
{
    short a, b, c, d;
} A;

typedef struct
{
  A a[24];
} B;

static const A b = { 0, 0, 1, -1 };

void
foo (B *x)
{
  int i;
  for (i = 0; i <= 20; i += 4)
    x->a[i] = b;
}

results in endless recursion in make_vector_type.  The RECORD_TYPE type has
attributes, but as any record type TYPE_MAIN_VARIANT of it is itself.


-- 
           Summary: [4.0/4.1/4.2/4.3 Regression] Endless recursion in
                    make_vector_type
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
GCC target triplet: x86_64-linux


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


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

* [Bug tree-optimization/29637] [4.0/4.1/4.2/4.3 Regression] Endless recursion in make_vector_type
  2006-10-29 20:46 [Bug tree-optimization/29637] New: [4.0/4.1/4.2/4.3 Regression] Endless recursion in make_vector_type jakub at gcc dot gnu dot org
@ 2006-10-29 20:47 ` pinskia at gcc dot gnu dot org
  2006-10-29 20:54 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-29 20:47 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
   Target Milestone|---                         |4.0.4


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


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

* [Bug tree-optimization/29637] [4.0/4.1/4.2/4.3 Regression] Endless recursion in make_vector_type
  2006-10-29 20:46 [Bug tree-optimization/29637] New: [4.0/4.1/4.2/4.3 Regression] Endless recursion in make_vector_type jakub at gcc dot gnu dot org
  2006-10-29 20:47 ` [Bug tree-optimization/29637] " pinskia at gcc dot gnu dot org
@ 2006-10-29 20:54 ` pinskia at gcc dot gnu dot org
  2006-10-30  8:02 ` jakub at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-29 20:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-10-29 20:53 -------


*** This bug has been marked as a duplicate of 29638 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

* [Bug tree-optimization/29637] [4.0/4.1/4.2/4.3 Regression] Endless recursion in make_vector_type
  2006-10-29 20:46 [Bug tree-optimization/29637] New: [4.0/4.1/4.2/4.3 Regression] Endless recursion in make_vector_type jakub at gcc dot gnu dot org
  2006-10-29 20:47 ` [Bug tree-optimization/29637] " pinskia at gcc dot gnu dot org
  2006-10-29 20:54 ` pinskia at gcc dot gnu dot org
@ 2006-10-30  8:02 ` jakub at gcc dot gnu dot org
  2006-10-30  8:04 ` jakub 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-10-30  8:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2006-10-30 08:01 -------
Subject: Bug 29637

Author: jakub
Date: Mon Oct 30 08:01:28 2006
New Revision: 118175

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118175
Log:
        PR tree-optimization/29637
        * tree.c (make_vector_type): Don't recurse if TYPE_MAIN_VARIANT
        of the innertype is the innertype itself.

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

Added:
    trunk/gcc/testsuite/gcc.dg/pr29637.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree.c


-- 


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


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

* [Bug tree-optimization/29637] [4.0/4.1/4.2/4.3 Regression] Endless recursion in make_vector_type
  2006-10-29 20:46 [Bug tree-optimization/29637] New: [4.0/4.1/4.2/4.3 Regression] Endless recursion in make_vector_type jakub at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-10-30  8:02 ` jakub at gcc dot gnu dot org
@ 2006-10-30  8:04 ` jakub at gcc dot gnu dot org
  2006-10-30  8:05 ` jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-10-30  8:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2006-10-30 08:04 -------
Subject: Bug 29637

Author: jakub
Date: Mon Oct 30 08:03:50 2006
New Revision: 118176

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118176
Log:
        PR tree-optimization/29637
        * tree.c (make_vector_type): Don't recurse if TYPE_MAIN_VARIANT
        of the innertype is the innertype itself.

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

Added:
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/pr29637.c
Modified:
    branches/gcc-4_2-branch/gcc/ChangeLog
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_2-branch/gcc/tree.c


-- 


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


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

* [Bug tree-optimization/29637] [4.0/4.1/4.2/4.3 Regression] Endless recursion in make_vector_type
  2006-10-29 20:46 [Bug tree-optimization/29637] New: [4.0/4.1/4.2/4.3 Regression] Endless recursion in make_vector_type jakub at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-10-30  8:04 ` jakub at gcc dot gnu dot org
@ 2006-10-30  8:05 ` jakub at gcc dot gnu dot org
  2006-10-30  8:09 ` 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-10-30  8:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2006-10-30 08:05 -------
Subject: Bug 29637

Author: jakub
Date: Mon Oct 30 08:04:58 2006
New Revision: 118177

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118177
Log:
        PR tree-optimization/29637
        * tree.c (make_vector_type): Don't recurse if TYPE_MAIN_VARIANT
        of the innertype is the innertype itself.

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

Added:
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/pr29637.c
Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_1-branch/gcc/tree.c


-- 


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


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

* [Bug tree-optimization/29637] [4.0/4.1/4.2/4.3 Regression] Endless recursion in make_vector_type
  2006-10-29 20:46 [Bug tree-optimization/29637] New: [4.0/4.1/4.2/4.3 Regression] Endless recursion in make_vector_type jakub at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-10-30  8:05 ` jakub at gcc dot gnu dot org
@ 2006-10-30  8:09 ` jakub at gcc dot gnu dot org
  2006-10-30  8:10 ` 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-10-30  8:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2006-10-30 08:08 -------
Subject: Bug 29637

Author: jakub
Date: Mon Oct 30 08:08:41 2006
New Revision: 118178

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118178
Log:
        PR tree-optimization/29637
        * tree.c (make_vector_type): Don't recurse if TYPE_MAIN_VARIANT
        of the innertype is the innertype itself.

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

Added:
    branches/gcc-4_0-branch/gcc/testsuite/gcc.dg/pr29637.c
Modified:
    branches/gcc-4_0-branch/gcc/ChangeLog
    branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_0-branch/gcc/tree.c


-- 


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


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

* [Bug tree-optimization/29637] [4.0/4.1/4.2/4.3 Regression] Endless recursion in make_vector_type
  2006-10-29 20:46 [Bug tree-optimization/29637] New: [4.0/4.1/4.2/4.3 Regression] Endless recursion in make_vector_type jakub at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-10-30  8:09 ` jakub at gcc dot gnu dot org
@ 2006-10-30  8:10 ` jakub at gcc dot gnu dot org
  2006-10-30  8:11 ` jakub at gcc dot gnu dot org
  2006-10-30  8:11 ` jakub at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-10-30  8:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jakub at gcc dot gnu dot org  2006-10-30 08:10 -------
Oops, sorry for the dup.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|DUPLICATE                   |


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


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

* [Bug tree-optimization/29637] [4.0/4.1/4.2/4.3 Regression] Endless recursion in make_vector_type
  2006-10-29 20:46 [Bug tree-optimization/29637] New: [4.0/4.1/4.2/4.3 Regression] Endless recursion in make_vector_type jakub at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-10-30  8:10 ` jakub at gcc dot gnu dot org
@ 2006-10-30  8:11 ` jakub at gcc dot gnu dot org
  2006-10-30  8:11 ` jakub at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-10-30  8:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jakub at gcc dot gnu dot org  2006-10-30 08:10 -------
Fixed now in SVN.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug tree-optimization/29637] [4.0/4.1/4.2/4.3 Regression] Endless recursion in make_vector_type
  2006-10-29 20:46 [Bug tree-optimization/29637] New: [4.0/4.1/4.2/4.3 Regression] Endless recursion in make_vector_type jakub at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-10-30  8:11 ` jakub at gcc dot gnu dot org
@ 2006-10-30  8:11 ` jakub at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-10-30  8:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jakub at gcc dot gnu dot org  2006-10-30 08:11 -------
*** Bug 29638 has been marked as a duplicate of this bug. ***


-- 


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


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

end of thread, other threads:[~2006-10-30  8:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-29 20:46 [Bug tree-optimization/29637] New: [4.0/4.1/4.2/4.3 Regression] Endless recursion in make_vector_type jakub at gcc dot gnu dot org
2006-10-29 20:47 ` [Bug tree-optimization/29637] " pinskia at gcc dot gnu dot org
2006-10-29 20:54 ` pinskia at gcc dot gnu dot org
2006-10-30  8:02 ` jakub at gcc dot gnu dot org
2006-10-30  8:04 ` jakub at gcc dot gnu dot org
2006-10-30  8:05 ` jakub at gcc dot gnu dot org
2006-10-30  8:09 ` jakub at gcc dot gnu dot org
2006-10-30  8:10 ` jakub at gcc dot gnu dot org
2006-10-30  8:11 ` jakub at gcc dot gnu dot org
2006-10-30  8:11 ` jakub 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).