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

            Bug ID: 94045
           Summary: [i686] Compiler hang with  -O2 -g -m32 -march=i686
                    -mtune=generic
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: manisandro at gmail dot com
  Target Milestone: ---

The following preprocessed source

$ wget https://smani.fedorapeople.org/tmp/test.ii

compiled with

$ gcc -O2 -g -m32 -march=i686 -mtune=generic -c test.ii -o test.o

results in GCC hanging, eating 100% of CPU core.

Only reproducible on i686 (real world case is [1]).

Using gcc-10.0.1-0.8.fc33.x86_64

$ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/10/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap
--enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared
--enable-threads=posix --enable-checking=release --enable-multilib
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id
--with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin
--enable-initfini-array --with-isl --enable-offload-targets=nvptx-none
--without-cuda-driver --enable-gnu-indirect-function --enable-cet
--with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 10.0.1 20200216 (Red Hat 10.0.1-0.8) (GCC


[1] https://koji.fedoraproject.org/koji/taskinfo?taskID=42199321

Reply via email to