[Bug middle-end/61848] [5 Regression] a previous declaration causes the section attribute to be lost
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Sep 28 18:14:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61848
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|patch |
URL|https://gcc.gnu.org/ml/gcc- |
|patches/2014-09/msg01146.ht |
|ml |
Assignee|amodra at gcc dot gnu.org |pinskia at gcc dot gnu.org
--- Comment #18 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Andi Kleen from comment #16)
> Can Alan's patch be submitted please?
>
> I always need to apply it now before compiling a kernel.
See deadlocked discussion:
http://thread.gmane.org/gmane.comp.gcc.patches/321758/
Here's a testcase suitable for both C++ and C:
/* { dg-do compile } */
/* { dg-require-effective-target named_sections } */
/* { dg-final { scan-assembler "mysection" } } */
extern char foo;
char foo __attribute__ ((__section__(".mysection")));
More information about the Gcc-bugs
mailing list