[gcc(refs/users/meissner/heads/work023)] Fix last change.
Michael Meissner
meissner@gcc.gnu.org
Fri Oct 30 22:43:07 GMT 2020
https://gcc.gnu.org/g:dee25673b313c04565bb512b3e0148a693db8a53
commit dee25673b313c04565bb512b3e0148a693db8a53
Author: Michael Meissner <meissner@linux.ibm.com>
Date: Fri Oct 30 18:42:29 2020 -0400
Fix last change.
gcc/
2020-10-30 Michael Meissner <meissner@linux.ibm.com>
* config/rs6000/rs6000.c (glibc_supports_ieee_128bit): New helper
function.
(rs6000_option_override_internal): Call it.
Diff:
---
gcc/config/rs6000/rs6000.c | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index a59dc919baa..1d7e11a81a6 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -3544,16 +3544,11 @@ rs6000_linux64_override_options ()
static bool
glibc_supports_ieee_128bit (void)
{
-#if defined (OPTION_GLIBC) \
- && defined (TARGET_GLIBC_MAJOR) \
- && defined (TARGET_GLIBC_MINOR)
-
- if (OPTION_GLIBC
- && !BYTES_BIG_ENDIAN
- && DEFAULT_ABI == ABI_ELFv2
+#ifdef OPTION_GLIBC
+ if (OPTION_GLIBC && !BYTES_BIG_ENDIAN
&& ((TARGET_GLIBC_MAJOR * 1000) + TARGET_GLIBC_MINOR) >= 2032)
return true;
-#endif /* GLIBC provided. */
+#endif /* OPTION_GLIBC. */
return false;
}
@@ -4195,6 +4190,7 @@ rs6000_option_override_internal (bool global_init_p)
&& (!glibc_supports_ieee_128bit ()
|| (!lang_GNU_C () && !lang_GNU_CXX ())))
{
+ warned_change_long_double = true;
if (TARGET_IEEEQUAD)
warning (OPT_Wpsabi, "Using IEEE extended precision "
"%<long double%>");
More information about the Gcc-cvs
mailing list