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 c++/53493] [4.7 regression] Compiling with -Os excludes PROGMEM array from generated object file (__attribute__((__progmem__)))


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-05-26 20:30:00 UTC ---
(In reply to comment #5)
> "it has to be the same in each translational unit that it is used"
> 
> That doesn't mean it has to be /deleted/.

It means it can be deleted.  This is not a bug in GCC but rather your source. 
C++ is different from C here.  Simple as that.  If it is deleted it exposes a
ODR violation in your source.


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