diff options
author | Michael Meissner <meissner@linux.ibm.com> | 2022-01-05 23:58:52 -0500 |
---|---|---|
committer | Michael Meissner <meissner@linux.ibm.com> | 2022-01-05 23:58:52 -0500 |
commit | edf755a4e268fe57609eef31dd2ceb2177424566 (patch) | |
tree | b9f7f438966ef02ea9504bbd0973006a5b497728 | |
parent | b0fdeaf3ce961114e200b84835216529e51d4cf2 (diff) |
Allow other languages to change long double format.
With Fortran adding support for changing the long double format, this
patch removes the code that only allowed C/C++ to change the long double
format for GLIBC 2.32 and later without a warning.
gcc/
2022-01-05 Michael Meissner <meissner@the-meissners.org>
* config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
checks for only C/C++ front ends before allowing the long double
format to change without a warning.
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index e4843eb0f1c..5f08312cdcb 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -4216,13 +4216,11 @@ rs6000_option_override_internal (bool global_init_p) if (rs6000_ieeequad != TARGET_IEEEQUAD_DEFAULT && TARGET_LONG_DOUBLE_128) { /* Determine if the user can change the default long double type at - compilation time. Only C and C++ support this, and you need GLIBC - 2.32 or newer. Only issue one warning. */ + compilation time. You need GLIBC 2.32 or newer to be able to + change the long double type. Only issue one warning. */ static bool warned_change_long_double; - if (!warned_change_long_double - && (!glibc_supports_ieee_128bit () - || (!lang_GNU_C () && !lang_GNU_CXX ()))) + if (!warned_change_long_double && !glibc_supports_ieee_128bit ()) { warned_change_long_double = true; if (TARGET_IEEEQUAD) |