[Bug middle-end/54303] -fdata-sections -ffunction-sections and -fmerge-constants do not work well together
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54303 Segher Boessenkool changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #18 from Segher Boessenkool --- This is fixed now.
[Bug middle-end/54303] -fdata-sections -ffunction-sections and -fmerge-constants do not work well together
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54303 --- Comment #17 from Segher Boessenkool segher at gcc dot gnu.org --- Author: segher Date: Thu May 7 15:51:01 2015 New Revision: 222880 URL: https://gcc.gnu.org/viewcvs?rev=222880root=gccview=rev Log: PR middle-end/192 PR middle-end/54303 * varasm.c (function_mergeable_rodata_prefix): New function. (mergeable_string_section): Use it. (mergeable_constant_section): Use it. gcc/testsuite/ * gcc.dg/fdata-sections-2.c: New file. Added: trunk/gcc/testsuite/gcc.dg/fdata-sections-2.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/varasm.c
[Bug middle-end/54303] -fdata-sections -ffunction-sections and -fmerge-constants do not work well together
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54303 --- Comment #16 from Matt Whitlock gcc at mattwhitlock dot name --- Here's a working solution: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=192#c11
[Bug middle-end/54303] -fdata-sections -ffunction-sections and -fmerge-constants do not work well together
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54303 Hans de Goede jwrdegoede at fedoraproject dot org changed: What|Removed |Added CC||jwrdegoede at fedoraproject dot or ||g --- Comment #15 from Hans de Goede jwrdegoede at fedoraproject dot org --- Hi Segher, Great to hear that you're working on this. I just hit this while trying to get the u-boot SPL (bootstrap loader, which must fit in internal SoC SRAM) down in size, so it would be great to see a fix for this. Regards, Hans
[Bug middle-end/54303] -fdata-sections -ffunction-sections and -fmerge-constants do not work well together
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54303 Rafael Avila de Espindola rafael.espindola at gmail dot com changed: What|Removed |Added CC||rafael.espindola at gmail dot com --- Comment #13 from Rafael Avila de Espindola rafael.espindola at gmail dot com --- See also https://sourceware.org/bugzilla/show_bug.cgi?id=17902
[Bug middle-end/54303] -fdata-sections -ffunction-sections and -fmerge-constants do not work well together
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54303 Segher Boessenkool segher at gcc dot gnu.org changed: What|Removed |Added CC||segher at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |segher at gcc dot gnu.org Severity|normal |enhancement --- Comment #14 from Segher Boessenkool segher at gcc dot gnu.org --- Mine.
[Bug middle-end/54303] -fdata-sections -ffunction-sections and -fmerge-constants do not work well together
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54303 Clément Péron peron.clem at gmail dot com changed: What|Removed |Added CC||peron.clem at gmail dot com --- Comment #12 from Clément Péron peron.clem at gmail dot com --- The Bugs is still present in GCC 4.6.4 and 4.8.2. .strX.X try to optimize string constants but when you disable it the var are moved into .rodata instead of .rodata.__function when the -fdata-sections is enabled. I post a question on StackOverflow : http://stackoverflow.com/questions/26100976/var-declare-inside-a-printf-cant-be-garbage-collected-by-gcc?answertab=oldest#tab-top And i sent a message on GCC-Help mailing list : https://gcc.gnu.org/ml/gcc-help/2014-10/msg0.html It's really annoying when you try to optimize the size of the executable. Thanks
[Bug middle-end/54303] -fdata-sections -ffunction-sections and -fmerge-constants do not work well together
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54303 Andrew Haley aph at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2014-10-01 CC||aph at gcc dot gnu.org Ever confirmed|0 |1