[Bug 675347] Re: volatile int causes inline assembly build failure

Launchpad Bug Tracker 675347 at bugs.launchpad.net
Mon Jul 4 03:28:28 UTC 2011


** Branch linked: lp:debian/gnat-4.6

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-4.5 in Ubuntu.
https://bugs.launchpad.net/bugs/675347

Title:
  volatile int causes inline assembly build failure

Status in Linaro GCC:
  Fix Released
Status in Linaro GCC Tracking:
  Fix Committed
Status in “gcc-4.5” package in Ubuntu:
  Fix Released
Status in “gcc-4.6” package in Ubuntu:
  Fix Released
Status in “gcc-4.5” source package in Natty:
  Fix Released
Status in “gcc-4.6” source package in Natty:
  Invalid

Bug description:
  The attached code builds under 2010.10 but fails under 2010.11 with
  the following errors:

         atomic.cc: In function 'int foo(QBasicAtomicInt&)':
         atomic.cc:24:24: error: output number 2 not directly addressable
         atomic.cc:24:24: warning: use of memory input without lvalue in asm operand 4 is deprecated

  Removing the 'volatile' from volatile int _q_value causes the problem
  to go away.

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc-linaro/+bug/675347/+subscriptions




More information about the foundations-bugs mailing list