This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/2222] option enable-target-optspace disables _GNU_SOURCE
- From: "oliver.metz at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 3 Jun 2011 09:33:48 +0000
- Subject: [Bug other/2222] option enable-target-optspace disables _GNU_SOURCE
- Auto-submitted: auto-generated
- References: <bug-2222-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2222
Oliver Metz <oliver.metz at gmx dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |oliver.metz at gmx dot de
--- Comment #6 from Oliver Metz <oliver.metz at gmx dot de> 2011-06-03 09:32:44 UTC ---
Thanks Ian for your help.
This bug is still valid for gcc-4.6.0.
When --enable-target-optspace is set config/mt-ospace is included and
overwrites the configured CFLAGS_FOR_TARGET variable.
config/mt-ospace:
# Build libraries optimizing for space, not speed.
CFLAGS_FOR_TARGET = -g -Os
CXXFLAGS_FOR_TARGET = -g -Os
So it's not possible to optimize the target libs for the target (e.g.
-march=4kc -msoft-float).