public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/meissner/heads/work023)] Fix last change.
@ 2020-10-30 22:43 Michael Meissner
0 siblings, 0 replies; only message in thread
From: Michael Meissner @ 2020-10-30 22:43 UTC (permalink / raw)
To: gcc-cvs
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%>");
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-30 22:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-30 22:43 [gcc(refs/users/meissner/heads/work023)] Fix last change Michael Meissner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).