This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/16551] -O2 (-funit-at-a-time) option fails code generation
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jul 2004 20:28:06 -0000
- Subject: [Bug c/16551] -O2 (-funit-at-a-time) option fails code generation
- References: <20040714201121.16551.rstewart@xvdcorp.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-07-14 20:28 -------
The compiler can't know that you use the static variable in your
inline assembler. Since it is static and assumedly unused, it
completely gets rid of it.
You therefore have to make it as used, using the appropriate attribute
on its definition.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16551