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

            Bug ID: 78547
           Summary: [7 Regression] ICE: in loc_cmp, at var-tracking.c:3417
                    with -Os -g -mstringop-strategy=libcall
                    -freorder-blocks-algorithm=simple
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu
             Build: x86_64-pc-linux-gnu

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

Compiler output:
$ x86_64-pc-linux-gnu-gcc -Os -g -mstringop-strategy=libcall
-freorder-blocks-algorithm=simple testcase.c -Wno-psabi
testcase.c: In function 'fn1':
testcase.c:12:1: internal compiler error: in loc_cmp, at var-tracking.c:3417
 }
 ^
0xecc62f loc_cmp
        /repo/gcc-trunk/gcc/var-tracking.c:3417
0xecd0bd onepart_variable_different_p
        /repo/gcc-trunk/gcc/var-tracking.c:4913
0xedfd2f emit_notes_for_differences_1(variable**, hash_table<variable_hasher,
xcallocator>*)
        /repo/gcc-trunk/gcc/var-tracking.c:9084
0xeea048 void hash_table<variable_hasher,
xcallocator>::traverse_noresize<hash_table<variable_hasher, xcallocator>*,
&(emit_notes_for_differences_1(variable**, hash_table<variable_hasher,
xcallocator>*))>(hash_table<variable_hasher, xcallocator>*)
        /repo/gcc-trunk/gcc/hash-table.h:950
0xeea048 void hash_table<variable_hasher,
xcallocator>::traverse<hash_table<variable_hasher, xcallocator>*,
&(emit_notes_for_differences_1(variable**, hash_table<variable_hasher,
xcallocator>*))>(hash_table<variable_hasher, xcallocator>*)
        /repo/gcc-trunk/gcc/hash-table.h:972
0xee6f28 emit_notes_for_differences
        /repo/gcc-trunk/gcc/var-tracking.c:9122
0xee6f28 vt_emit_notes
        /repo/gcc-trunk/gcc/var-tracking.c:9503
0xee84a8 variable_tracking_main_1
        /repo/gcc-trunk/gcc/var-tracking.c:10363
0xee84a8 variable_tracking_main()
        /repo/gcc-trunk/gcc/var-tracking.c:10377
0xee84a8 execute
        /repo/gcc-trunk/gcc/var-tracking.c:10414
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


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


Tested revisions:
trunk r242884 - FAIL
6-branch r242029 - OK

Reply via email to