From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4323C3858C2C; Sun, 9 Jul 2023 15:07:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4323C3858C2C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688915272; bh=mCo/qdQl7fHpSYGYTQ1aN1xrL3pp2sjB0j+BqEbSEOU=; h=From:To:Subject:Date:From; b=wnZBG30TVc4H01PT01OVuzHbjRUdsn0/GJtXEobVENlfKwWk/YO+BuWSgkLGUj77I Tq6YyJzEY9MZTFCM9QM1llDYLfGcdMo7em95qZQY40lQrWmzuYIeWAWqOOKPObdzMf mAWveLOPLbkBXjfW62P7cY/lmbDbvavcw2iHpsXc= From: "doko at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110606] New: [10/11/12/13/14] ICE output_operand: '%&' used without any local dynamic TLS references on powerpc64le-linux-gnu Date: Sun, 09 Jul 2023 15:07:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: doko at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110606 Bug ID: 110606 Summary: [10/11/12/13/14] ICE output_operand: '%&' used without any local dynamic TLS references on powerpc64le-linux-gnu Product: gcc Version: 13.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org Target Milestone: --- [forwarded from https://bugs.debian.org/1040444] seen with 10, 11, 12, 13 and trunk, building firefox.=20 $ cat Unified_cpp_gfx_skia17.ii struct SkSTArray { int *begin(); int *end(); }; static void *AllocMemory(); struct IRNode { void *operator new(unsigned long) { return AllocMemory(); } }; struct SwitchCase : IRNode { static void MakeDefault() { new SwitchCase(true, 0); } SwitchCase(bool, int); }; SkSTArray __trans_tmp_3; void inlineStatement() { for (int switchCaseStmt : __trans_tmp_3) SwitchCase::MakeDefault(); } static thread_local int *sMemPool; int set_thread_local_memory_pool_memPool; void detachFromThread() { sMemPool =3D &set_thread_local_memory_pool_memPoo= l; } long AllocMemory_size; void *AllocMemory() { void *__trans_tmp_2; if (sMemPool) { __trans_tmp_2 =3D operator new(AllocMemory_size); return __trans_tmp_2; } void *ptr =3D operator new(AllocMemory_size); return ptr; } $ powerpc64le-linux-gnu-g++-13 -c Unified_cpp_gfx_skia17.ii -fno-exceptions -fno-strict-aliasing -fPIC -O2 during RTL pass: final Unified_cpp_gfx_skia17.ii: In function =E2=80=98void inlineStatement()=E2= =80=99: Unified_cpp_gfx_skia17.ii:17:1: internal compiler error: output_operand: '%= &' used without any local dynamic TLS references 17 | } | ^ 0xa06ff3 output_operand_lossage(char const*, ...) ../../src/gcc/final.cc:3190 0xa07373 output_operand(rtx_def*, int) ../../src/gcc/final.cc:3632 0xa07c5c output_asm_insn(char const*, rtx_def**) ../../src/gcc/final.cc:3557 0xa09517 final_scan_insn_1 ../../src/gcc/final.cc:2841 0xa09a08 final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*) ../../src/gcc/final.cc:2887 0xa09c95 final_1 ../../src/gcc/final.cc:1979 0xa0a4a6 rest_of_handle_final ../../src/gcc/final.cc:4240 0xa0a4a6 execute ../../src/gcc/final.cc:4318 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. Configured with: ../src/configure -v --with-pkgversion=3D'Debian 13.1.0-6' --with-bugurl=3Dfile:///usr/share/doc/gcc-13/README.Bugs --enable-languages=3Dc,ada,c++,go,d,fortran,objc,obj-c++,m2,rust --prefix= =3D/usr --with-gcc-major-version-only --program-suffix=3D-13 --enable-shared --enable-linker-build-id --libexecdir=3D/usr/libexec --without-included-get= text --enable-threads=3Dposix --libdir=3D/usr/lib --enable-nls --with-sysroot=3D/ --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-libstdcxx-time=3Dy= es --with-default-libstdcxx-abi=3Dnew --enable-gnu-unique-object --enable-plug= in --enable-default-pie --with-system-zlib --enable-libphobos-checking=3Drelea= se --without-target-system-zlib --with-libphobos-druntime-only=3Dyes --enable-secureplt --enable-targets=3Dpowerpcle-linux --disable-multilib --enable-multiarch --disable-werror --with-long-double-128 --enable-offload-targets=3Dnvptx-none=3D/build/gcc-13-cross-pG4N37/gcc-13-c= ross-6/gcc/debian/tmp-nvptx/usr --enable-offload-defaulted --enable-checking=3Drelease --build=3Dx86_64-lin= ux-gnu --host=3Dx86_64-linux-gnu --target=3Dpowerpc64le-linux-gnu --program-prefix=3Dpowerpc64le-linux-gnu- --includedir=3D/usr/powerpc64le-linux-gnu/include --with-build-config=3Dbootstrap-lto-lean --enable-link-serialization=3D2=