[Bug middle-end/61848] [4.10 Regression] a previous declaration causes the section attribute to be lost

2014-08-12 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61848 Andrew Pinski changed: What|Removed |Added CC||jgreenhalgh at gcc dot gnu.org --- Comme

[Bug middle-end/61848] [4.10 Regression] a previous declaration causes the section attribute to be lost

2014-07-18 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61848 --- Comment #6 from Andrew Pinski --- Created attachment 33156 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33156&action=edit Patch which I am testing Patch to the C front-end which merges the section name both directions and not just fr

[Bug middle-end/61848] [4.10 Regression] a previous declaration causes the section attribute to be lost

2014-07-18 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61848 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug middle-end/61848] [4.10 Regression] a previous declaration causes the section attribute to be lost

2014-07-18 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61848 --- Comment #4 from Andrew Pinski --- I think we are merging the decls incorrectly. We are only merging the section name one way and both.

[Bug middle-end/61848] [4.10 Regression] a previous declaration causes the section attribute to be lost

2014-07-18 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61848 --- Comment #3 from Andrew Pinski --- 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, however, you need additional s

[Bug middle-end/61848] [4.10 Regression] a previous declaration causes the section attribute to be lost

2014-07-18 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61848 --- Comment #2 from Andrew Pinski --- 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. Currently, it can only

[Bug middle-end/61848] [4.10 Regression] a previous declaration causes the section attribute to be lost

2014-07-18 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61848 Andrew Pinski changed: What|Removed |Added Keywords||wrong-code Target Milestone|---