aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/configure
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-05-12 12:17:08 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-05-12 17:47:17 +0100
commit6190a74ebee69415b501996821c92f60d892fb81 (patch)
treefd06fb3f2d1b7ef1fee107db0cb1766b15be2b69 /libstdc++-v3/configure
parent1f973c295b699011acd7d5fcb04bd2bf887da16d (diff)
downloadgcc-6190a74ebee69415b501996821c92f60d892fb81.zip
gcc-6190a74ebee69415b501996821c92f60d892fb81.tar.gz
gcc-6190a74ebee69415b501996821c92f60d892fb81.tar.bz2
libstdc++: Fix -Wnonnull warnings during configure
We should not test for nan by passing it a null pointer, as this can trigger -Wnonnull warnings. Also fix an outdated comment about the default -std mode. libstdc++-v3/ChangeLog: * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Use a non-null pointer to check for nan, nanf, and nanl. * configure: Regenerate.
Diffstat (limited to 'libstdc++-v3/configure')
-rwxr-xr-xlibstdc++-v3/configure8
1 files changed, 4 insertions, 4 deletions
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index 99f4927..d4286b6 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -19731,7 +19731,7 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- # Use -std=c++98 because the default (-std=gnu++98) leaves __STRICT_ANSI__
+ # Use -std=c++98 because -std=gnu++98 leaves __STRICT_ANSI__
# undefined and fake C99 facilities may be spuriously enabled.
ac_save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -std=c++98"
@@ -20106,9 +20106,9 @@ typedef double_t my_double_t;
lround(0.0);
lroundf(0.0f);
lroundl(0.0l);
- nan(0);
- nanf(0);
- nanl(0);
+ nan("");
+ nanf("");
+ nanl("");
nearbyint(0.0);
nearbyintf(0.0f);
nearbyintl(0.0l);