toolchain-funcs.eclass: softfloat detection, bug #666896
authorSergei Trofimovich <slyfox@gentoo.org>
Thu, 27 Sep 2018 21:45:03 +0000 (22:45 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Thu, 27 Sep 2018 22:26:32 +0000 (23:26 +0100)
commit03138227aa0985a708bbb9ecf331baf06f75d5df
tree80dd46605ebcde3ecd4a12a4dfbd7741e64b55e8
parent5ecfd2a4efd762f392273d0604899ec4c0f21a31
toolchain-funcs.eclass: softfloat detection, bug #666896

commit 921cb9c10de4d237924a61a1c27f914dfb479a64
"toolchain-funcs.eclass: Update tc-is-softfloat for new ARM tuples"
changed autodetection of mst 'arm*' targets from from 'no'
to 'yes'.

It is incorrect at least for bare-metal targets that tend
to pass their taget defaults.

Bug #666896 is one example example command:
    # crossdev -s1 \
        --env 'EXTRA_ECONF="--with-multilib-list=rmprofile"' \
        arm-none-eabi

rmprofile one of special cases for gcc as it explicitky does
not myx with any arch-specific options and --with-float=soft
breaks it:

    Error: You cannot use any of --with-arch/cpu/fpu/float/mode
    with --with-multilib-list=rmprofile

The immediate fix is to restore initial autodetection for bare-metal
targets.

Reported-by: Eugene Bright
Closes: https://bugs.gentoo.org/666896
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain-funcs.eclass