https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96513

            Bug ID: 96513
           Summary: building terminated with -O3
           Product: gcc
           Version: 9.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zhenglin.huang at qdreamer dot com
  Target Milestone: ---

gcc -o wtk/core/fft/wtk_fixfft.o -c -O3 -DHAVE_MATH_H -DDEBUG_VAD_DELAY
-DUSE_LINUX -DUSE_STDLIB_MALLOC -DHAVE_STDIO_H -DVAD_MLF_DEBUG -I. -Ipublic/inc
-Itest wtk/core/fft/wtk_fixfft.c

when I compile use above command I got this

during GIMPLE pass: vect
wtk/core/fft/wtk_fixfft.c: In function ‘wtk_fixfft_work.isra.0.constprop’:
wtk/core/fft/wtk_fixfft.c:672:13: internal compiler error: in
vect_get_vec_def_for_operand_1, at tree-vect-stmts.c:1552
  672 | static void wtk_fixfft_work(wtk_fixfft_substate_t *st, wtk_fixcpx_t
*Fout,
      |             ^~~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions.

only -O3 got this error, -O2 is normal. Sorry, I can't submit source code as it
is not my personal code.

gcc -v output

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-10ubuntu2'
--with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr
--with-gcc-major-version-only --program-suffix=-9
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new
--enable-gnu-unique-object --disable-vtable-verify --enable-plugin
--enable-default-pie --with-system-zlib --with-target-system-zlib=auto
--enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686
--with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib
--with-tune=generic --enable-offload-targets=nvptx-none,hsa
--without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)

Reply via email to