2020-05-08 13:27:56 +00:00
|
|
|
# This file is generated from configure.ac by Autoconf. DO NOT EDIT!
|
|
|
|
# Local preconfigure fragment for sysdeps/powerpc
|
2013-10-18 21:03:40 +00:00
|
|
|
|
|
|
|
case "$machine" in
|
2016-07-15 23:04:40 +00:00
|
|
|
powerpc64le)
|
2018-03-09 19:59:14 +00:00
|
|
|
base_machine=powerpc machine=powerpc/powerpc64/le
|
2016-07-15 23:04:40 +00:00
|
|
|
;;
|
2014-06-25 17:52:56 +00:00
|
|
|
powerpc64*)
|
2018-03-09 19:59:14 +00:00
|
|
|
base_machine=powerpc machine=powerpc/powerpc64/be
|
2014-06-25 17:52:56 +00:00
|
|
|
;;
|
|
|
|
powerpc*)
|
2019-05-16 17:34:27 +00:00
|
|
|
base_machine=powerpc machine=powerpc/powerpc32
|
Remove --with-fp / --without-fp.
There is a configure option --without-fp that specifies that nofpu
sysdeps directories should be used instead of fpu directories.
For most glibc configurations, this option is of no use: either there
is no valid nofpu variant of that configuration, or there are no fpu
or nofpu sysdeps directories for that processor and so the option does
nothing. For a few configurations, if you are using a soft-float
compiler this option is required, and failing to use it generally
results in compilation errors from inline asm using unavailable
floating-point instructions.
We're moving away from --with-cpu to configuring glibc based on how
the compiler generates code, and it is natural to do so for
--without-fp as well; in most cases the soft-float and hard-float ABIs
are incompatible so you have no hope of building a working glibc with
an inappropriately configured compiler or libgcc.
This patch eliminates --without-fp, replacing it entirely by automatic
configuration based on the compiler. Configurations for which this is
relevant (coldfire / mips / powerpc32 / sh) define a variable
with_fp_cond in their preconfigure fragments (under the same
conditions under which those fragments do anything); this is a
preprocessor conditional which the toplevel configure script then uses
in a test to determine which sysdeps directories to use.
The config.make with-fp variable remains. It's used only by powerpc
(sysdeps/powerpc/powerpc32/Makefile) to add -mhard-float to various
flags variables. For powerpc, -mcpu= options can imply use of
soft-float. That could be an issue if you want to build for
e.g. 476fp, but are using --with-cpu=476 because there isn't a 476fp
sysdeps directory. If in future we eliminate --with-cpu and replace
it entirely by testing the compiler, it would be natural at that point
to eliminate that code as well (as the user should then just use a
compiler defaulting to 476fp and the 476 sysdeps directory would be
used automatically).
Tested for x86_64, and tested with build-many-glibcs.py that installed
shared libraries are unchanged by this patch.
* configure.ac (--with-fp): Remove configure option.
(with_fp_cond): New variable.
(libc_cv_with_fp): New configure test. Use this variable instead
of with_fp.
* configure: Regenerated.
* config.make.in (with-fp): Use @libc_cv_with_fp@.
* manual/install.texi (Configuring and compiling): Remove
--without-fp.
* INSTALL: Regenerated.
* sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
* sysdeps/mips/preconfigure (with_fp_cond): Define.
* sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
* sysdeps/sh/preconfigure (with_fp_cond): Define.
* scripts/build-many-glibcs.py (Context.add_all_configs): Do not
use --without-fp to configure glibc.
2017-12-12 13:56:47 +00:00
|
|
|
with_fp_cond="!defined __NO_FPRS__"
|
2019-05-16 17:34:27 +00:00
|
|
|
case "$host_os" in
|
|
|
|
*gnuspe*)
|
|
|
|
# SPE support was dropped in glibc 2.30.
|
2020-05-08 13:27:56 +00:00
|
|
|
as_fn_error $? "Host system type $host is no longer supported." "$LINENO" 5
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Lets ask the compiler which Power processor we've got, in case the user did
|
|
|
|
# not choose a --with-cpu value. Scan a trivial generated assembly program
|
|
|
|
# and scrape the first
|
|
|
|
# .machine <machine>
|
|
|
|
# or
|
|
|
|
# .ascii "-mcpu=<machine>"
|
|
|
|
# directive which shows up, and try using it.
|
|
|
|
case "${machine}:${submachine}" in
|
|
|
|
*powerpc*:)
|
|
|
|
archcpu=`echo "int foo () { return 0; }" \
|
|
|
|
| $CC $CFLAGS $CPPFLAGS -S -frecord-gcc-switches -xc -o - - \
|
|
|
|
| grep -E "mcpu=|.machine" -m 1 \
|
|
|
|
| sed -e "s/.*machine //" -e "s/.*mcpu=\(.*\)\"/\1/"`
|
|
|
|
# Note if you add patterns here you must ensure that an appropriate
|
|
|
|
# directory exists in sysdeps/powerpc. Likewise, if we find a
|
|
|
|
# cpu, don't let the generic configure append extra compiler options.
|
|
|
|
case "$archcpu" in
|
|
|
|
405fp|440fp|464fp|476fp)
|
|
|
|
submachine=${archcpu%fp}
|
2023-06-29 18:34:16 +00:00
|
|
|
if test ${libc_cv_cc_submachine+y}
|
|
|
|
then :
|
|
|
|
printf %s "(cached) " >&6
|
|
|
|
else $as_nop
|
2020-05-08 13:27:56 +00:00
|
|
|
libc_cv_cc_submachine=""
|
|
|
|
fi
|
|
|
|
|
|
|
|
;;
|
|
|
|
405|440|464|476)
|
|
|
|
submachine=${archcpu}
|
2023-06-29 18:34:16 +00:00
|
|
|
if test ${libc_cv_cc_submachine+y}
|
|
|
|
then :
|
|
|
|
printf %s "(cached) " >&6
|
|
|
|
else $as_nop
|
2020-05-08 13:27:56 +00:00
|
|
|
libc_cv_cc_submachine=""
|
|
|
|
fi
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
2024-03-20 00:08:47 +00:00
|
|
|
a2|970|power[4-9]|power5x|power6+|power10|power11)
|
2020-05-08 13:27:56 +00:00
|
|
|
submachine=${archcpu}
|
2023-06-29 18:34:16 +00:00
|
|
|
if test ${libc_cv_cc_submachine+y}
|
|
|
|
then :
|
|
|
|
printf %s "(cached) " >&6
|
|
|
|
else $as_nop
|
2020-05-08 13:27:56 +00:00
|
|
|
libc_cv_cc_submachine=""
|
|
|
|
fi
|
|
|
|
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
# We couldn't figure it out, assume none
|
2019-05-16 17:34:27 +00:00
|
|
|
;;
|
|
|
|
esac
|
2013-10-18 21:03:40 +00:00
|
|
|
;;
|
|
|
|
esac
|
2023-06-29 18:34:16 +00:00
|
|
|
|