------- Comment #1 from rguenth at gcc dot gnu dot org  2010-02-11 16:42 -------
Confirmed.

The following fails to link with -flto

static int foobar __attribute__((used));
extern void abort (void);
int main()
{
  int res;
  asm("movl foobar(%%rip), %0" : "=g" (res));
  if (res != 0)
    abort ();
  return 0;
}


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |lto, wrong-code
   Last reconfirmed|0000-00-00 00:00:00         |2010-02-11 16:42:09
               date|                            |


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

Reply via email to