volatile int causes inline assembly build failure
Bug #675347 reported by
Michael Hope
This bug affects 5 people
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Linaro GCC |
Fix Released
|
Medium
|
Andrew Stubbs | ||
| Linaro GCC Tracking |
Fix Released
|
Undecided
|
Andrew Stubbs | ||
| gcc-4.5 (Ubuntu) |
Fix Released
|
High
|
Canonical Foundations Team | ||
| Natty |
Fix Released
|
High
|
Canonical Foundations Team | ||
| gcc-4.6 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
| Natty |
Invalid
|
Undecided
|
Unassigned | ||
Bug Description
The attached code builds under 2010.10 but fails under 2010.11 with the following errors:
atomic.cc: In function 'int foo(QBasicAtomi
Removing the 'volatile' from volatile int _q_value causes the problem to go away.
Related branches
lp:~ams-codesourcery/gcc-linaro/lp675347-4.6
- Andrew Stubbs (community): Approve
- Linaro Toolchain Builder: Approve
-
Diff: 35 lines (+15/-2)2 files modifiedChangeLog.linaro (+10/-0)
gcc/expr.c (+5/-2)
lp:~ams-codesourcery/gcc-linaro/lp675347
- Andrew Stubbs (community): Approve
- Linaro Toolchain Builder: Approve
-
Diff: 35 lines (+15/-2)2 files modifiedChangeLog.linaro (+10/-0)
gcc/expr.c (+5/-2)
| Changed in gcc-linaro: | |
| assignee: | nobody → Julian Brown (julian-codesourcery) |
| tags: | added: patch |
| tags: | removed: patch |
| Changed in gcc-linaro: | |
| status: | New → Confirmed |
| Changed in gcc-linaro: | |
| status: | Confirmed → In Progress |
| Changed in gcc-4.5 (Ubuntu Natty): | |
| assignee: | nobody → Canonical Foundations Team (canonical-foundations) |
| Changed in gcc-linaro: | |
| milestone: | 4.5-2011.01-0 → 4.5-2011.02-0 |
| Changed in gcc-4.5 (Ubuntu Natty): | |
| milestone: | natty-alpha-3 → ubuntu-11.04-beta-1 |
| Changed in gcc-linaro: | |
| assignee: | Julian Brown (julian-codesourcery) → Andrew Stubbs (ams-codesourcery) |
| Changed in gcc-4.5 (Ubuntu Natty): | |
| milestone: | ubuntu-11.04-beta-1 → none |
| Changed in gcc-linaro: | |
| status: | Fix Committed → Fix Released |
| Changed in gcc-linaro-tracking: | |
| status: | Fix Committed → Fix Released |
To post a comment you must log in.
A more complete log:
michaelh@ pavo1:~ /linaro/ bugs$ ~/toolchains/ gcc-linaro- 4.5-2010. 11-0-armv7l- maverick- cbuild14- pavo3/bin/ g++ -O2 -Wall -save-temps -mfpu=neon -c atomic.cc cInt&)' :
atomic.cc: In function 'int foo(QBasicAtomi
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