https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61848
Andrew Pinski pinskia at gcc dot gnu.org changed:
What|Removed |Added
CC||jgreenhalgh at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61848
--- Comment #4 from Andrew Pinski pinskia at gcc dot gnu.org ---
I think we are merging the decls incorrectly. We are only merging the section
name one way and both.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61848
Andrew Pinski pinskia at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |ASSIGNED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61848
--- Comment #6 from Andrew Pinski pinskia at gcc dot gnu.org ---
Created attachment 33156
-- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33156action=edit
Patch which I am testing
Patch to the C front-end which merges the section name both
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61848
Andrew Pinski pinskia at gcc dot gnu.org changed:
What|Removed |Added
Keywords||wrong-code
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61848
--- Comment #2 from Andrew Pinski pinskia at gcc dot gnu.org ---
Most likely caused by:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=738a6bdaaa22a526fae65016127c229d99f377b4
There is this comment in c-decl.c:
/* Copy the assembler name.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61848
--- Comment #3 from Andrew Pinski pinskia at gcc dot gnu.org ---
The documentation does not say it has to be only in the declaration:
section (section-name)
Normally, the compiler places the code it generates in the text section.
Sometimes,