]> code.ossystems Code Review - openembedded-core.git/commit
gcc-configure-common.inc: drop --enable-target-optspace from configure
authorAndre McCurdy <armccurdy@gmail.com>
Mon, 1 Feb 2016 22:01:24 +0000 (14:01 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 2 Feb 2016 14:42:14 +0000 (14:42 +0000)
commit686b266506a1a56fb68ab0f00d658787dd7fe4ce
tree95b2df6351f095ed7b866eee212cabdf23473f46
parent7a1445c55de904115b950c8e50432a9f11f02208
gcc-configure-common.inc: drop --enable-target-optspace from configure

Configuring gcc with --enable-target-optspace (which causes gcc to
append "-g -Os" to the default CFLAGS_FOR_TARGET and so force libgcc
etc target libraries to always be optimised for size) dates back to
the very first commit in oe-core git in 2005 (for gcc 3.4.3).

Configuring gcc with --enable-target-optspace is not done widely
elsewhere (it's not used for Ubuntu or Fedora host gcc, the Linaro
binary toolchain or in Buildroot since early 2015). Sometime around
gcc 4.5.x it caused problems for powerpc and so was disabled for that
architecture:

  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810

This patch removes --enable-target-optspace completely (ie powerpc is
no longer a special case) and allows optimisation of libgcc etc to be
controlled directly by the flags present in TARGET_CFLAGS.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-configure-common.inc
meta/recipes-devtools/gcc/gcc-cross-initial.inc