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

            Bug ID: 78694
           Summary: [ARM] ICE with -mthumb -ftls-model=local-exec -O2
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sebastian.hu...@embedded-brains.de
  Target Milestone: ---

Created attachment 40264
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40264&action=edit
Test case

The attached test case generates an ICE during GCC build (libgomp):

/build/git-build/b-gcc-git-arm-rtems4.12/./gcc/xgcc
-B/build/git-build/b-gcc-git-arm-rtems4.12/./gcc/ -mthumb
-ftls-model=local-exec -O2 -S task.i
/home/EB/sebastian_h/archive/gcc-git/libgomp/task.c: In function
'gomp_create_target_task':
/home/EB/sebastian_h/archive/gcc-git/libgomp/task.c:778:1: error: invalid rtl
sharing found in the insn
 }
 ^
(insn 1584 1583 1585 (unspec_volatile [
            (const:SI (unspec:SI [
                        (symbol_ref:SI ("gomp_tls_data") [flags 0xea] <var_decl
0x7f2ddaf7d3f0 gomp_tls_data>)
                        (const_int 4 [0x4])
                    ] UNSPEC_TLS))
        ] VUNSPEC_POOL_4) -1
     (nil))
/home/EB/sebastian_h/archive/gcc-git/libgomp/task.c:778:1: error: shared rtx
(const:SI (unspec:SI [
            (symbol_ref:SI ("gomp_tls_data") [flags 0xea] <var_decl
0x7f2ddaf7d3f0 gomp_tls_data>)
            (const_int 4 [0x4])
        ] UNSPEC_TLS))
/home/EB/sebastian_h/archive/gcc-git/libgomp/task.c:778:1: internal compiler
error: internal consistency failure
0x6852ed verify_rtx_sharing
        /home/EB/sebastian_h/archive/gcc-git/gcc/emit-rtl.c:2751
0x68527a verify_rtx_sharing
        /home/EB/sebastian_h/archive/gcc-git/gcc/emit-rtl.c:2784
0x68564b verify_insn_sharing
        /home/EB/sebastian_h/archive/gcc-git/gcc/emit-rtl.c:2837
0x689d27 verify_rtl_sharing()
        /home/EB/sebastian_h/archive/gcc-git/gcc/emit-rtl.c:2860
0x91872b execute_function_todo
        /home/EB/sebastian_h/archive/gcc-git/gcc/passes.c:1982
0x919105 execute_todo
        /home/EB/sebastian_h/archive/gcc-git/gcc/passes.c:2015
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.

Reply via email to