This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/15421] -O2 (and above) optimize away used variables resulting in 'undefined reference'
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 May 2004 14:49:12 -0000
- Subject: [Bug rtl-optimization/15421] -O2 (and above) optimize away used variables resulting in 'undefined reference'
- References: <20040513144342.15421.dueffert@informatik.hu-berlin.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-13 14:49 -------
This is a dup of bug 14911. Basically the gcc does not know you want to use the variable since it
is not visible to it, either use -fno-unit-at-a-time as a temp work around or mark the variable as used,
see bug 14911 how to do this in a generic way.
*** This bug has been marked as a duplicate of 14911 ***
*** This bug has been marked as a duplicate of 14911 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
GCC host triplet|x86 |
GCC target triplet|x86 |
Known to fail|3.4.0 |
Known to work|3.3.3 |
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15421