[Bug target/51900] [4.6 Regression] const variable initialization always zero

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 19 11:29:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51900

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2012-01-19
          Component|c                           |target
   Target Milestone|---                         |4.6.3
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-19 11:19:59 UTC ---
This is a valid optimization if you build with -fno-common.  Please make sure
that -fcommon is in effect.



More information about the Gcc-bugs mailing list