diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2020-07-26 07:20:24 +0200 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2020-07-26 07:20:24 +0200 |
commit | 2e764ae1d666002b136726e6548481013527197d (patch) | |
tree | b73073eb2609597f124c1ca348192272c6749c07 /libgfortran/configure | |
parent | 2ab2694476c9fc87f0cabf7021af4624eb62c87c (diff) | |
download | gcc-2e764ae1d666002b136726e6548481013527197d.zip gcc-2e764ae1d666002b136726e6548481013527197d.tar.gz gcc-2e764ae1d666002b136726e6548481013527197d.tar.bz2 |
libgfortran: Skip integer-kind=16 check for amdgcn
libgfortran/ChangeLog:
PR target/96306
* configure.ac: Add LIBGOMP_CHECKED_INT_KINDS and
LIBGOMP_CHECKED_REAL_KINDS and use it for to skip
integer kind=16 checks for amdgcn.
* Makefile.am (kinds.h, selected_int_kind.inc,
selected_real_kind.inc): Pass them on.
* mk-kinds-h.sh: Takes to-be-check kinds as argument.
* mk-sik-inc.sh: Likewise.
* mk-srk-inc.sh: Likewise.
* Makefile.in: Regenerate.
* configure: Regenerate.
Diffstat (limited to 'libgfortran/configure')
-rwxr-xr-x | libgfortran/configure | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/libgfortran/configure b/libgfortran/configure index 8546569..99cca96 100755 --- a/libgfortran/configure +++ b/libgfortran/configure @@ -679,6 +679,8 @@ LD FGREP SED SECTION_FLAGS +LIBGOMP_CHECKED_REAL_KINDS +LIBGOMP_CHECKED_INT_KINDS LIBGFOR_MINIMAL_FALSE LIBGFOR_MINIMAL_TRUE LIBGFOR_USE_SYMVER_SUN_FALSE @@ -6208,6 +6210,19 @@ else fi +# Some compiler target support may have limited support for integer +# or floating point numbers – or may want to reduce the libgfortran size +# although they do have the support. +LIBGOMP_CHECKED_INT_KINDS="1 2 4 8 16" +LIBGOMP_CHECKED_REAL_KINDS="4 8 10 16" + +if test "x${target_cpu}" = xamdgcn; then + # amdgcn only has limited support for __int128. + LIBGOMP_CHECKED_INT_KINDS="1 2 4 8" +fi + + + # Figure out whether the compiler supports "-ffunction-sections -fdata-sections", # similarly to how libstdc++ does it ac_test_CFLAGS="${CFLAGS+set}" @@ -12724,7 +12739,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12727 "configure" +#line 12742 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12830,7 +12845,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12833 "configure" +#line 12848 "configure" #include "confdefs.h" #if HAVE_DLFCN_H |