https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89659
Bug ID: 89659
Summary: [microblaze] unrecognizable insn at floating point
conversion
Product: gcc
Version: 7.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: ra_gcc_bugzilla at hotmail dot com
Target Milestone: ---
Created attachment 45939
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45939&action=edit
The preprocessed source file
Compiling the attached test case results in an unrecognizable insn internal
compiler error. The test case was reduced from the PARSEC Benchmark Suite,
fluidanimate, pthreads.cpp:344. The compiler used is the one shipped with
Vivado 2018.3, running on Windows 10. -O2 is necessary for the error to occur,
but I was not able to identify the exact optimization flag.
$ mb-gcc -v -save-temps -O2 -mhard-float -mxl-float-convert "test_case.c"
Using built-in specs.
COLLECT_GCC=mb-gcc
COLLECT_LTO_WRAPPER=c:/xilinx/sdk/2018.3/gnu/microblaze/nt/bin/../libexec/gcc/microblaze-xilinx-elf/7.3.1/lto-wrapper.exe
Target: microblaze-xilinx-elf
Configured with:
/proj/sdk/gnu/microblaze/builds/HEAD/nightly/2018_11_29/rdi_scripts/../build/nt/ctng_bld/target_build/src/gcc-custom/configure
--build=x86_64-build_unknown-linux-gnu --host=x86_64-host_w64-mingw32
--target=microblaze-xilinx-elf
--prefix=/proj/sdk/gnu/microblaze/builds/HEAD/nightly/2018_11_29/rdi_scripts/../build/nt/ctng_output
--with-local-prefix=/proj/sdk/gnu/microblaze/builds/HEAD/nightly/2018_11_29/rdi_scripts/../build/nt/ctng_output/microblaze-xilinx-elf/sysroot
--disable-libmudflap
--with-sysroot=/proj/sdk/gnu/microblaze/builds/HEAD/nightly/2018_11_29/rdi_scripts/../build/nt/ctng_output/microblaze-xilinx-elf/sysroot
--with-newlib --enable-threads=no --disable-shared
--with-pkgversion='crosstool-NG 1.20.0' --disable-__cxa_atexit
--with-gmp=/proj/sdk/gnu/microblaze/builds/HEAD/nightly/2018_11_29/rdi_scripts/../build/nt/ctng_bld/target_build/microblaze-xilinx-elf/buildtools/complibs-host
--with-mpfr=/proj/sdk/gnu/microblaze/builds/HEAD/nightly/2018_11_29/rdi_scripts/../build/nt/ctng_bld/target_build/microblaze-xilinx-elf/buildtools/complibs-host
--with-mpc=/proj/sdk/gnu/microblaze/builds/HEAD/nightly/2018_11_29/rdi_scripts/../build/nt/ctng_bld/target_build/microblaze-xilinx-elf/buildtools/complibs-host
--with-ppl=no --with-isl=no --with-cloog=no
--with-libelf=/proj/sdk/gnu/microblaze/builds/HEAD/nightly/2018_11_29/rdi_scripts/../build/nt/ctng_bld/target_build/microblaze-xilinx-elf/buildtools/complibs-host
--enable-lto --enable-target-optspace --without-long-double-128
--disable-libgomp --disable-libmudflap --disable-nls --disable-libstdcxx-pch
--enable-languages=c,c++
Thread model: single
gcc version 7.3.1 20180425 (crosstool-NG 1.20.0)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-O2' '-mhard-float'
'-mxl-float-convert'
c:/xilinx/sdk/2018.3/gnu/microblaze/nt/bin/../libexec/gcc/microblaze-xilinx-elf/7.3.1/cc1.exe
-E -quiet -v -iprefix
c:\xilinx\sdk\2018.3\gnu\microblaze\nt\bin\../lib/gcc/microblaze-xilinx-elf/7.3.1/
test_case.c -mhard-float -mxl-float-convert -O2 -fpch-preprocess -o test_case.i
ignoring duplicate directory
"c:/xilinx/sdk/2018.3/gnu/microblaze/nt/lib/gcc/../../lib/gcc/microblaze-xilinx-elf/7.3.1/include"
ignoring nonexistent directory
"/proj/sdk/gnu/microblaze/builds/HEAD/nightly/2018_11_29/rdi_scripts/../build/nt/ctng_output/microblaze-xilinx-elf/sysroot/proj/sdk/gnu/microblaze/builds/HEAD/nightly/2018_11_29/rdi_scripts/../build/nt/ctng_output/lib/gcc/microblaze-xilinx-elf/7.3.1/../../../../include"
ignoring duplicate directory
"c:/xilinx/sdk/2018.3/gnu/microblaze/nt/lib/gcc/../../lib/gcc/microblaze-xilinx-elf/7.3.1/include-fixed"
ignoring duplicate directory
"c:/xilinx/sdk/2018.3/gnu/microblaze/nt/lib/gcc/../../lib/gcc/microblaze-xilinx-elf/7.3.1/../../../../microblaze-xilinx-elf/include"
ignoring nonexistent directory
"/proj/sdk/gnu/microblaze/builds/HEAD/nightly/2018_11_29/rdi_scripts/../build/nt/ctng_output/microblaze-xilinx-elf/sysroot/usr/include"
#include "..." search starts here:
#include <...> search starts here:
c:\xilinx\sdk\2018.3\gnu\microblaze\nt\bin\../lib/gcc/microblaze-xilinx-elf/7.3.1/include
c:\xilinx\sdk\2018.3\gnu\microblaze\nt\bin\../lib/gcc/microblaze-xilinx-elf/7.3.1/include-fixed
c:\xilinx\sdk\2018.3\gnu\microblaze\nt\bin\../lib/gcc/microblaze-xilinx-elf/7.3.1/../../../../microblaze-xilinx-elf/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-O2' '-mhard-float'
'-mxl-float-convert'
c:/xilinx/sdk/2018.3/gnu/microblaze/nt/bin/../libexec/gcc/microblaze-xilinx-elf/7.3.1/cc1.exe
-fpreprocessed test_case.i -quiet -dumpbase test_case.c -m