From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1C7033858D3C; Wed, 22 Feb 2023 09:41:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1C7033858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677058866; bh=6OXhl0uTzfcbu/jhLTUfvF8z/bNqR+Q22NhVK4Z2V2g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=yYY3bNadlTu/R8zbI4CebMVNOJiI4LiuBUBbk00QvB1TUFdya8H4bvRq1jvQiWWRf 3pzH937f0r/jGlA1I9s9xmNKpyNecV7qAUlreF+sjzBZZ5lh+9zXTQThC4+0rz6KQk eLNNd8vauZ+lLgIize6nwtdYBzyXMs8ZzIy0qRQs= From: "slyfox at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/108854] tbb-2021.8.0 fails on i686-linux (32-bit), internal compiler error: in expand_expr_real_1, at expr.c:10281 Date: Wed, 22 Feb 2023 09:40:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 11.3.0 X-Bugzilla-Keywords: ice-on-valid-code, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at gcc dot gnu.org X-Bugzilla-Status: WAITING 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: cc attachments.created Message-ID: In-Reply-To: References: 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=3D108854 Sergei Trofimovich changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |slyfox at gcc dot gnu.org --- Comment #8 from Sergei Trofimovich --- Created attachment 54505 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54505&action=3Dedit bug.cpp.xz I reproduced it locally as well. Extracted preprocessed file as bug.cpp.xz = (not yet reduced). To crash: g++ -O3 -Wall -Wextra -Werror -Wfatal-errors -Wno-error=3Dstringop-overflow -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor -mrtm -mwaitpkg -std=3Dc++11 -c bug.cpp -fPIC -fstack-protector-strong --param ssp-buffer-s= ize=3D4 -fno-strict-overflow during RTL pass: expand In file included from /nix/store/c4xm3qfkw2npn4vyiyx2pkp95rb27ig8-gcc-12.2.0/include/c++/12.2.0/a= tomic:41, from /home/slyfox/nsn/source/src/tbb/../../include/tbb/../oneapi/tbb/flow_graph.= h:20, from /home/slyfox/nsn/source/src/tbb/../../include/tbb/flow_graph.h:17, from /home/slyfox/nsn/source/test/tbb/test_eh_flow_graph.cpp:25: /nix/store/c4xm3qfkw2npn4vyiyx2pkp95rb27ig8-gcc-12.2.0/include/c++/12.2.0/b= its/atomic_base.h: In member function 'bool tbb::detail::d1::input_node >::_ZThn16_N3tbb6detail2d110input_nodeISt5tupleIJiiEEE18register_successorE= RNS1_8receiverIS4_EE.artificial_thunk.0(successor_type&)': /nix/store/c4xm3qfkw2npn4vyiyx2pkp95rb27ig8-gcc-12.2.0/include/c++/12.2.0/b= its/atomic_base.h:506:36: internal compiler error: in expand_expr_real_1, at expr.cc:10586 506 | return __atomic_exchange_n(&_M_i, __i, int(__m)); | ^~~~~ 0x9764c81 diagnostic_impl(rich_location*, diagnostic_metadata const*, int, = char const*, char**, diagnostic_t) ???:0 0x976527c internal_error(char const*, ...) ???:0 0x832b252 fancy_abort(char const*, int, char const*) ???:0 0x82f641b expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) [clone .cold] ???:0 0x86d5b33 expand_operands(tree_node*, tree_node*, rtx_def*, rtx_def**, rtx_def**, expand_modifier) ???:0 0x86e4307 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) ???:0 0x86d1ec1 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ???:0 0x86dbda2 expand_expr_addr_expr_1(tree_node*, rtx_def*, scalar_int_mode, expand_modifier, unsigned char) ???:0 0x86d16d4 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ???:0 0x86dec8e store_expr(tree_node*, rtx_def*, int, bool, bool) ???:0 0x86e07ba expand_assignment(tree_node*, tree_node*, bool) [clone .part.0] ???:0 0x85cb005 expand_gimple_stmt(gimple*) ???:0 0x85cff76 expand_gimple_basic_block(basic_block_def*, bool) ???:0 0x85d1e56 (anonymous namespace)::pass_expand::execute(function*) ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. $ g++ -v |& unnix Using built-in specs. COLLECT_GCC=3D/<>/gcc-12.2.0/bin/g++ COLLECT_LTO_WRAPPER=3D/<>/gcc-12.2.0/libexec/gcc/i686-unknown-linux-gn= u/12.2.0/lto-wrapper Target: i686-unknown-linux-gnu Configured with: Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.2.0 (GCC)=