https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82725
Bug ID: 82725 Summary: [8 Regression] [i386] internal compiler error: in change_address_1, at emit-rtl.c:2162 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: ibuclaw at gdcproject dot org Target Milestone: --- Reduced test, triggered only if compiling with -fPIE and affects multiple front-ends. --- struct string { __SIZE_TYPE__ length; const char *ptr; }; string tempDir() { thread_local string cache; return cache; } --- during RTL pass: split2 file.cc: In function ‘string tempDir()’: file.cc:11:1: internal compiler error: in change_address_1, at emit-rtl.c:2162 } ^ 0x58cddf change_address_1 ../../dev/gcc/emit-rtl.c:2162 0x89d98d adjust_address_1(rtx_def*, machine_mode, long, int, int, int, long) ../../dev/gcc/emit-rtl.c:2300 0xe19010 split_double_mode(machine_mode, rtx_def**, int, rtx_def**, rtx_def**) ../../dev/gcc/config/i386/i386.c:19985 0xe1a72b ix86_split_to_parts ../../dev/gcc/config/i386/i386.c:26573 0xe23056 ix86_split_long_move(rtx_def**) ../../dev/gcc/config/i386/i386.c:26662 0x1009005 gen_split_23(rtx_insn*, rtx_def**) ../../dev/gcc/config/i386/i386.md:2362 0x125d437 split_12 ../../dev/gcc/config/i386/i386.md:1016 0x125f74c split_18 ../../dev/gcc/config/i386/i386.md:6491 0x12690a0 split_insns(rtx_def*, rtx_insn*) ../../dev/gcc/config/i386/i386.md:12747 0x89fb74 try_split(rtx_def*, rtx_insn*, int) ../../dev/gcc/emit-rtl.c:3692 0xad1071 split_insn ../../dev/gcc/recog.c:2882 0xad5da7 split_all_insns() ../../dev/gcc/recog.c:2971 0xad5e68 execute ../../dev/gcc/recog.c:3883 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. --- This has been happening since mid-September at least. $ g++ --version g++ (GCC) 8.0.0 20170918 (experimental) Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.