[Bug target/57341] [4.8/4.9 Regression] wrong code on x86_64-linux at -O3 in 32-bit mode

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 21 06:46:00 GMT 2013


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-05-21
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |4.8.1
            Summary|wrong code on x86_64-linux  |[4.8/4.9 Regression] wrong
                   |at -O3 in 32-bit mode       |code on x86_64-linux at -O3
                   |                            |in 32-bit mode
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r188667 .  -m32 -O3 -msse is needed.

int a, d;
int *b = &a, **c;
int
main ()
{
  int e;
  {
    int f[4];
    for (d = 0; d < 4; d++)
      f[d] = 1;
    e = f[1];
  }
  int *g[28] = { };
  *b = e;
  c = &g[0];
  if (a != 1)
    __builtin_abort ();
  return 0;
}



More information about the Gcc-bugs mailing list