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

Steve Ellcey <sje at cup dot hp.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |sje at cup dot hp.com
         Resolution|FIXED                       |

--- Comment #33 from Steve Ellcey <sje at cup dot hp.com> 2011-02-09 22:44:20 
UTC ---
I am reopening this bug because I am getting a failure of
gcc.dg/torture/vector-2.c that started when this patch was checked in.  I think
this is
the same test that used to be gcc.c-torture/execute/vector-2.c.

I have a cut down test case that fails (prints 'one') when compiled with -O1
-fno-guess-branch-probability starting at r169782.  The
-fno-guess-branch-probability is needed to generate code that uses auto-inc and
trigger the bug.
This fails on IA64 Linux and HP-UX.  It does not require the -fpic flag.

Let me know if I should open a new bug instead of re-opening this one.

extern int printf(const char *, ...);
extern void exit(int);
struct __attribute__((packed)) B { unsigned short j : 1, k : 11; };
struct B sB;

void testB (void) {
        int i;
        unsigned int mask, v, a, r;
        struct B x;
        sB.k = 750;
        r = 750;
        x.j = sB.j = 0;
        printf("%d %d\n", (int) x.j, (int) sB.j);
        printf("%d %d\n", (int) sB.k, (int) r);
        if (x.j != sB.j || sB.k != r) printf ("one\n");
}
int
main (void)
{
  testB ();
  exit (0);
}

Reply via email to