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

            Bug ID: 69888
           Summary: ICE: SIGSEGV in decide_alg (i386.c:26169) due to
                    infinite (?) recursion with -minline-all-stringops
                    -mmemset-strategy=no_stringop:-1:noalign
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: i686-pc-linux-gnu
             Build: x86_64-pc-linux-gnu

Created attachment 37746
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37746&action=edit
reduced testcase

Compiler output:
$ i686-pc-linux-gnu-gcc -march=geode -minline-all-stringops
-mmemset-strategy=no_stringop:-1:noalign testcase.c -wrapper gdb,-q,--args

(gdb) r
Starting program:
/repo/gcc-trunk/binary-trunk-233588-checking-yes-rtl-df-nographite-i686/libexec/gcc/i686-pc-linux-gnu/6.0.0/cc1
-quiet -iprefix
/repo/gcc-trunk/binary-trunk-233588-checking-yes-rtl-df-nographite-i686/bin/../lib/gcc/i686-pc-linux-gnu/6.0.0/
testcase.c -quiet -dumpbase testcase.c -march=geode -minline-all-stringops
-mmemset-strategy=no_stringop:-1:noalign -auxbase testcase -o /tmp/cc5XYtj5.s
testcase.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int]
 foo (v32u16 v32u16_1)
 ^~~
testcase.c: In function 'foo':
testcase.c:2:1: note: The ABI for passing parameters with 32-byte alignment has
changed in GCC 4.6
testcase.c:2:1: warning: AVX vector argument without AVX enabled changes the
ABI [-Wpsabi]

Program received signal SIGSEGV, Segmentation fault.
0x0000000000ecb8bd in decide_alg (count=count@entry=32, expected_size=2048,
min_size=min_size@entry=32, max_size=max_size@entry=32, 
    memset=memset@entry=true, zero_memset=zero_memset@entry=true,
have_as=false, dynamic_check=0x7fffffffc5bc, noalign=0x7fffffffc5bb)
    at /repo/gcc-trunk/gcc/config/i386/i386.c:26034
26034   {
(gdb) bt
#0  0x0000000000ecb8bd in decide_alg (count=count@entry=32, expected_size=2048,
min_size=min_size@entry=32, max_size=max_size@entry=32, 
    memset=memset@entry=true, zero_memset=zero_memset@entry=true,
have_as=false, dynamic_check=0x7fffffffc5bc, noalign=0x7fffffffc5bb)
    at /repo/gcc-trunk/gcc/config/i386/i386.c:26034
#1  0x0000000000ecbcb4 in decide_alg (count=count@entry=32, expected_size=2048,
min_size=min_size@entry=32, max_size=max_size@entry=32, 
    memset=memset@entry=true, zero_memset=zero_memset@entry=true,
have_as=false, dynamic_check=0x7fffffffc5bc, noalign=0x7fffffffc5bb)
    at /repo/gcc-trunk/gcc/config/i386/i386.c:26169
#2  0x0000000000ecbcb4 in decide_alg (count=count@entry=32, expected_size=2048,
min_size=min_size@entry=32, max_size=max_size@entry=32, 
    memset=memset@entry=true, zero_memset=zero_memset@entry=true,
have_as=false, dynamic_check=0x7fffffffc5bc, noalign=0x7fffffffc5bb)
    at /repo/gcc-trunk/gcc/config/i386/i386.c:26169
...

$ i686-pc-linux-gnu-gcc -v                                                      
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-i686/bin/i686-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-233588-checking-yes-rtl-df-nographite-i686/bin/../libexec/gcc/i686-pc-linux-gnu/6.0.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-checking=yes,rtl,df --without-cloog --without-ppl --without-isl
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=i686-pc-linux-gnu --with-ld=/usr/bin/i686-pc-linux-gnu-ld
--with-as=/usr/bin/i686-pc-linux-gnu-as --with-sysroot=/usr/i686-pc-linux-gnu
--disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-233588-checking-yes-rtl-df-nographite-i686
Thread model: posix
gcc version 6.0.0 20160220 (experimental) (GCC)

Reply via email to