This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53493] [4.7 regression] Compiling with -Os excludes PROGMEM array from generated object file (__attribute__((__progmem__)))
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 26 May 2012 20:30:00 +0000
- Subject: [Bug c++/53493] [4.7 regression] Compiling with -Os excludes PROGMEM array from generated object file (__attribute__((__progmem__)))
- Auto-submitted: auto-generated
- References: <bug-53493-4@http.gcc.gnu.org/bugzilla/>
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.