This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/15421] -O2 (and above) optimize away used variables resulting in 'undefined reference'


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]