diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-09-14 07:15:53 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-09-14 07:15:53 -0700 |
commit | 7464eef7a1c742ae24500d2813967780c25f5787 (patch) | |
tree | a0a05a2c47b91e7fe49ee4863ddc25d34163bdcb /configure | |
parent | 6e354e1c2d5d64d18f527d52db75e344a9223d95 (diff) | |
download | txr-7464eef7a1c742ae24500d2813967780c25f5787.tar.gz txr-7464eef7a1c742ae24500d2813967780c25f5787.tar.bz2 txr-7464eef7a1c742ae24500d2813967780c25f5787.zip |
nan-boxing: use GCC pragmas to disable aliasing warnings.
* arith.c (flo): The line of code which triggers the
aliasing diagnostic is wrapped with GNU-C-specific
pramgas that disable the diagnostic just for that line.
* lib.h (c_f): Likewise.
* configure: Drop the test which adds -Wno-strict-aliasing
to the DIAG_FLAGS;
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -1603,24 +1603,6 @@ if [ -n "$nan_boxing" ] ; then fi fi -if [ -n "$nan_boxing" ] ; then - printf "Checking how to disable strict aliasing warnings ... " - - cat > conftest.c <<! -int main(void) -{ - return 0; -} -! - - if conftest EXTRA_FLAGS=-Wno-strict-aliasing ; then - printf -- "-Wno-strict-aliasing\n" - diag_flags="$diag_flags -Wno-strict-aliasing" - else - printf "unknown\n" - fi -fi - printf "Checking for intmax_t ... " cat > conftest.c <<! #include <inttypes.h> |