This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/51255] Using -fwhole-program breaks code which puts values in .ctors or .init_array
- From: "krisztian.kocsis at optimaster dot eu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 20 Jun 2013 06:56:07 +0000
- Subject: [Bug middle-end/51255] Using -fwhole-program breaks code which puts values in .ctors or .init_array
- Auto-submitted: auto-generated
- References: <bug-51255-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51255
--- Comment #8 from Krisztian Kocsis <krisztian.kocsis at optimaster dot eu> ---
Hi!
In the meanwhile I'v successfully compiled uClibc 0.9.33.2 with LTO.
It required to patch only a few (2-3) lines to mark these sections as used.
We are running this in an embedded ARM926EJ-S based product since february
2013.
The system boot time is decreased by aprox. 10% only by recompiling libc with
LTO so it seems that it worth the job.