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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |sparc64-*-*
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-04-23
                 CC|                            |ebotcazou at gcc dot gnu.org
      Known to work|                            |4.5.4
   Target Milestone|---                         |4.7.4
            Summary|gcc 4.8.3/sparc64           |[4.7/4.8/4.9/4.10
                   |miscompiles firefox         |regression] miscompilation
                   |javascript interpreter      |of firefox javascript
                   |                            |interpreter
     Ever confirmed|0                           |1
      Known to fail|                            |4.10.0, 4.7.4, 4.8.3, 4.9.0

--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
I can reproduce the bug on Solaris with the following testcase:

extern void abort ();

static void __attribute__((noinline))
set (unsigned long *l)
{
  *l = 31;
}

int main (void)
{
  unsigned long l;
  int i;

  set (&l);
  i = (int) l;
  l = (unsigned long)(unsigned int)(2 << i);
  if (l != 0)
    abort ();
  return 0;
}

Reply via email to