[Bug ipa/92606] [8/9/10 Regression][avr] invalid merge of symbols in progmem and data sections

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 6 11:16:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92606

--- Comment #10 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #6)
> I wonder if the same applies to
> 
> static const __attribute__((section("foobar"))) float xyz_prog[] = { 123,
> 123, 123 };
> float xyz[] = { 123, 123, 123 };
> 
> or whether the backend "forgets" to set DECL_SECTION_NAME or the like.
> Similarly address-spaces need to be honored (I bet avr would have one -- is
> PROGMEM actually an address-space implementation-wise?)
> 

I've tried this one and it really ends as 2 different symbols in the
corresponding sections.


More information about the Gcc-bugs mailing list