https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100407
H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Ever confirmed|0 |1 Last reconfirmed| |2021-05-04 --- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> --- I tried r12-436 with a cross compiler: [hjl@gnu-cfl-2 gcc]$ ./xgcc -v Using built-in specs. COLLECT_GCC=./xgcc Target: powerpc64-linux Configured with: /export/gnu/import/git/gitlab/x86-gcc/configure --with-demangler-in-ld --target=powerpc64-linux --prefix=/usr/gcc-12.0.0-powerpc64-linux --with-local-prefix=/usr/local --with-system-zlib --disable-libcc1 --disable-libcilkrts --disable-libsanitizer --disable-libmpx --enable-languages=c,c++ Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 20210504 (experimental) (GCC) [hjl@gnu-cfl-2 gcc]$ make check-gcc RUNTESTFLAGS="compile.exp=attr-retain-1.c" rm -rf testsuite/gcc-parallel make[1]: Entering directory '/export/build/gnu/tools-build/gcc-gitlab-cross/build-powerpc64-linux/gcc' (rootme=`${PWDCMD-pwd}`; export rootme; \ srcdir=`cd /export/gnu/import/git/gitlab/x86-gcc/gcc; ${PWDCMD-pwd}` ; export srcdir ; \ if [ -n "" ] \ && [ -n "$GCC_RUNTEST_PARALLELIZE_DIR" ] \ && [ -f testsuite/gcc-parallel/finished ]; then \ rm -rf testsuite/gcc; \ else \ cd testsuite/gcc; \ rm -f tmp-site.exp; \ sed '/set tmpdir/ s|testsuite$|testsuite/gcc|' \ < ../../site.exp > tmp-site.exp; \ /bin/sh ${srcdir}/../move-if-change tmp-site.exp site.exp; \ EXPECT=`if [ -f ${rootme}/../expect/expect ] ; then echo ${rootme}/../expect/expect ; else echo expect ; fi` ; export EXPECT ; \ if [ -f ${rootme}/../expect/expect ] ; then \ TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWDCMD-pwd}` ; \ export TCL_LIBRARY ; \ fi ; \ `if [ -f ${srcdir}/../dejagnu/runtest ] ; then echo ${srcdir}/../dejagnu/runtest ; else echo runtest; fi` --tool gcc compile.exp=attr-retain-1.c; \ if [ -n "$GCC_RUNTEST_PARALLELIZE_DIR" ] ; then \ touch ${rootme}/testsuite/gcc-parallel/finished; \ fi ; \ fi ) WARNING: Couldn't find the global config file. Test run by hjl on Tue May 4 05:16:33 2021 Target is powerpc64-unknown-linux-gnu Host is x86_64-pc-linux-gnu === gcc tests === Schedule of variations: unix Running target unix Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target. Using /usr/share/dejagnu/config/unix.exp as generic interface file for target. Using /export/gnu/import/git/gitlab/x86-gcc/gcc/testsuite/config/default.exp as tool-and-target-specific interface file. WARNING: Assuming target board is the local machine (which is probably wrong). You may need to set your DEJAGNU environment variable. Running /export/gnu/import/git/gitlab/x86-gcc/gcc/testsuite/gcc.c-torture/compile/compile.exp ... === gcc Summary === # of expected passes 30 /export/build/gnu/tools-build/gcc-gitlab-cross/build-powerpc64-linux/gcc/xgcc version 12.0.0 20210504 (experimental) (GCC) make[1]: Leaving directory '/export/build/gnu/tools-build/gcc-gitlab-cross/build-powerpc64-linux/gcc' [hjl@gnu-cfl-2 gcc]$ It works for me.