https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71045
--- Comment #4 from U.Mutlu <um at mutluit dot com> --- (In reply to Eric Gallager from comment #3) > (In reply to Oleg Endo from comment #2) > > (In reply to Kazumoto Kojima from comment #1) > > > (In reply to Oleg Endo from comment #0) > > > > Kaz, do you know what's going wrong there? Some silent wrong code > > > > related > > > > to fenv maybe? > > > > > > Maybe, though I have no idea for what is going on. > > > You can see that those tests fail on several other targets: > > > > > > powerpc-ibm-aix7.1.0.0 > > > https://gcc.gnu.org/ml/gcc-testresults/2016-05/msg00925.html > > > x86_64-unknown-freebsd9.3 > > > https://gcc.gnu.org/ml/gcc-testresults/2016-05/msg00932.html > > > i386-unknown-freebsd10.3 > > > https://gcc.gnu.org/ml/gcc-testresults/2016-05/msg00919.html > > > > Oh, good to know. Thanks for checking. Probably we can close this PR as > > "invalid" after a while... > > U.Mutlu says it still fails here: > https://gcc.gnu.org/ml/gcc-help/2018-07/msg00179.html Today I discovered that with a gcc that was built normally on x86_64 it does not fail! So, we have 2 cases: gcc built as crosscompiler: pr68264 fails gcc built as non-crosscompiler: pr68264 passes The test command was: cd build-gcc rm -fr *.sum make check-gcc-c RUNTESTFLAGS="-a -v -v dg-torture.exp=pr68264.c" 2>&1 | tee /tmp/test_one.t And here are the compiler settings: 1.) normal build (with suffix "-latest", was built with many optimization flags): Executing on host: /data/sw/src/gcc_dev/my_build_dir_for_gcc/gcc/xgcc -v (timeout = 300) pid is 4079 -4079 waitres is 4079 exp8 0 0 output is Using built-in specs. COLLECT_GCC=/data/sw/src/gcc_dev/my_build_dir_for_gcc/gcc/xgcc COLLECT_LTO_WRAPPER=/usr/local/MY_gcc/gcc-latest_34_base_31__bootstrap0_strip1__binutils-latest1/libexec/gcc/x86_64-linux-gnu/9.0.0/lto-wrapper Target: x86_64-linux-gnu Configured with: ../gcc_trunk/configure -v --prefix=/usr/local/MY_gcc/gcc-latest_34_base_31__bootstrap0_strip1__binutils-latest1 --program-suffix=-latest --build=x86_64-linux-gnu --host=x86_64-linux-gnu --disable-multilib --enable-checking=release --enable-languages=c,c++ --enable-threads=posix --enable-lto --enable-plugin --enable-shared --with-build-config=bootstrap-lto --with-system-zlib --disable-nls --enable-libstdcxx-time=yes --enable-link-mutex --disable-bootstrap CC=gcc-latest GCC=gcc-latest CXX=g++-latest CC_FOR_BUILD=gcc-latest GCC_FOR_BUILD=gcc-latest CXX_FOR_BUILD=g++-latest CC_FOR_TARGET=gcc-latest GCC_FOR_TARGET=gcc-latest CXX_FOR_TARGET=g++-latest 'CXXFLAGS_FOR_BUILD= -fopt-info -pipe -Ofast -DCLS=64 -fpic -floop-nest-optimize --param simultaneous-prefetches=16 -fprefetch-loop-arrays -msse4.2 -mrecip=all -funroll-loops -fdelete-null-pointer-checks --param prefetch-latency=32 -ffast-math -ftree-vectorize -funsafe-math-optimizations -Wall -Wextra -Werror -Wpedantic -pedantic -g0 -DNDEBUG -Wno-pedantic -Wno-error -I/usr/include ' 'CXXFLAGS_FOR_TARGET= -fopt-info -pipe -Ofast -DCLS=64 -fpic -floop-nest-optimize --param simultaneous-prefetches=16 -fprefetch-loop-arrays -msse4.2 -mrecip=all -funroll-loops -fdelete-null-pointer-checks --param prefetch-latency=32 -ffast-math -ftree-vectorize -funsafe-math-optimizations -Wall -Wextra -Werror -Wpedantic -pedantic -g0 -DNDEBUG -Wno-pedantic -Wno-error -I/usr/include ' LDFLAGS=' -fopt-info -pipe -Ofast -DCLS=64 -fpic -floop-nest-optimize --param simultaneous-prefetches=16 -fprefetch-loop-arrays -msse4.2 -mrecip=all -funroll-loops -fdelete-null-pointer-checks --param prefetch-latency=32 -ffast-math -ftree-vectorize -funsafe-math-optimizations -Wall -Wextra -Werror -Wpedantic -pedantic -g0 -DNDEBUG -Wno-pedantic -Wno-error -I/usr/include -flto' --without-target-libbacktrace --disable-vtable-verify --enable-clocale=gnu --enable-default-pie --enable-gnu-unique-object --with-abi=m64 --with-default-libstdcxx-abi=new --with-tune=generic --with-gcc-arch=x86_64 --with-gnu-as --with-gnu-ld --enable-gnu-indirect-function CFLAGS='-fopt-info -pipe -Wall -Wextra -Werror -Wpedantic -pedantic -g0 -DNDEBUG -Ofast -Wno-pedantic -Wno-error -I/usr/include ' CPPFLAGS='-fopt-info -pipe -Wall -Wextra -Werror -Wpedantic -pedantic -g0 -DNDEBUG -Ofast -Wno-pedantic -Wno-error -I/usr/include ' CXXFLAGS='-fopt-info -pipe -Wall -Wextra -Werror -Wpedantic -pedantic -g0 -DNDEBUG -Ofast -Wno-pedantic -Wno-error -I/usr/include ' 'CFLAGS_FOR_BUILD=-fopt-info -pipe -Wall -Wextra -Werror -Wpedantic -pedantic -g0 -DNDEBUG -Ofast -Wno-pedantic -Wno-error -I/usr/include ' 'CFLAGS_FOR_TARGET=-fopt-info -pipe -Wall -Wextra -Werror -Wpedantic -pedantic -g0 -DNDEBUG -Ofast -Wno-pedantic -Wno-error -I/usr/include ' Thread model: posix gcc version 9.0.0 20180701 (experimental) [trunk revision 262287] (GCC) status 0 /data/sw/src/gcc_dev/my_build_dir_for_gcc/gcc/xgcc version 9.0.0 20180701 (experimental) [trunk revision 262287] (GCC) 2.) and the crosscompiler with only few flags/options set: Executing on host: /data/sw/src/cross/my_cross_build/SAV_x86_64-linux/build-gcc/gcc/xgcc -v (timeout = 300) pid is 14071 -14071 waitres is 14071 exp8 0 0 output is Using built-in specs. COLLECT_GCC=/data/sw/src/cross/my_cross_build/SAV_x86_64-linux/build-gcc/gcc/xgcc COLLECT_LTO_WRAPPER=/sw/src/cross/libexec/gcc/x86_64-linux/9.0.0/lto-wrapper Target: x86_64-linux Configured with: ../gcc/configure --prefix=/sw/src/cross --target=x86_64-linux --enable-languages=c,c++ --disable-werror --disable-gdb --disable-bootstrap --disable-multilib Thread model: posix gcc version 9.0.0 20180716 (experimental) [trunk revision 262747] (GCC) status 0 /data/sw/src/cross/my_cross_build/SAV_x86_64-linux/build-gcc/gcc/xgcc version 9.0.0 20180716 (experimental) [trunk revision 262747] (GCC) As said, the pr68264 fails with the crosscompiler. If needed, I can attach also the .sum, .log and output files for both compilers, just let me know.