[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 pinskia at gcc dot gnu.org changed: What|Removed |Added CC||jgreenhalgh at

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

2014-07-19 Thread pinskia at gcc dot gnu.org
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.

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

2014-07-19 Thread pinskia at gcc dot gnu.org
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

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

2014-07-19 Thread pinskia at gcc dot gnu.org
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

[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 pinskia at gcc dot gnu.org changed: What|Removed |Added Keywords||wrong-code

[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 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.

[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 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,