From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6C308385841F; Tue, 4 Jan 2022 09:49:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6C308385841F From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/103900] [12 Regression] ICE: in expand_expr_real_2, at expr.c:9771 with -O -fno-tree-dce -fno-tree-dse since r12-6173-g9ff206d3865df5cb Date: Tue, 04 Jan 2022 09:49:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2022 09:49:09 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103900 --- Comment #5 from Martin Li=C5=A1ka --- No, it still crashes with the current master (g:fbb592407c9): $ gcc pr103900.c -c -O -fno-tree-dce -fno-tree-dse --save-temps --verbose Using built-in specs. COLLECT_GCC=3Dgcc Target: x86_64-pc-linux-gnu Configured with: /home/marxin/Programming/gcc/configure --enable-languages=3Dc,c++,fortran,jit --prefix=3D/home/marxin/bin/gcc --disable-multilib --enable-host-shared --disable-libsanitizer --enable-valgrind-annotations --disable-bootstrap Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 20220104 (experimental) (GCC)=20 COLLECT_GCC_OPTIONS=3D'-c' '-O' '-fno-tree-dce' '-fno-tree-dse' '-save-temp= s' '-v' '-mtune=3Dgeneric' '-march=3Dx86-64' /home/marxin/bin/gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1 -E -quiet = -v pr103900.c -mtune=3Dgeneric -march=3Dx86-64 -fno-tree-dce -fno-tree-dse -O -fpch-preprocess -o pr103900.i ignoring nonexistent directory "/home/marxin/bin/gcc/lib64/gcc/x86_64-pc-linux-gnu/12.0.0/../../../../x86_= 64-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /home/marxin/bin/gcc/lib64/gcc/x86_64-pc-linux-gnu/12.0.0/include /usr/local/include /home/marxin/bin/gcc/include /home/marxin/bin/gcc/lib64/gcc/x86_64-pc-linux-gnu/12.0.0/include-fixed /usr/include End of search list. COLLECT_GCC_OPTIONS=3D'-c' '-O' '-fno-tree-dce' '-fno-tree-dse' '-save-temp= s' '-v' '-mtune=3Dgeneric' '-march=3Dx86-64' /home/marxin/bin/gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1 -fpreproce= ssed pr103900.i -quiet -dumpbase pr103900.c -dumpbase-ext .c -mtune=3Dgeneric -march=3Dx86-64 -O -version -fno-tree-dce -fno-tree-dse -o pr103900.s GNU C17 (GCC) version 12.0.0 20220104 (experimental) (x86_64-pc-linux-gnu) compiled by GNU C version 11.2.1 20211124 [revision 7510c23c1ec53aa4a62705f0384079661342ff7b], GMP version 6.2.1, MPFR version 4.1.0-p7, MPC version 1.2.1, isl version isl-0.24-GMP GGC heuristics: --param ggc-min-expand=3D30 --param ggc-min-heapsize=3D4096 GNU C17 (GCC) version 12.0.0 20220104 (experimental) (x86_64-pc-linux-gnu) compiled by GNU C version 11.2.1 20211124 [revision 7510c23c1ec53aa4a62705f0384079661342ff7b], GMP version 6.2.1, MPFR version 4.1.0-p7, MPC version 1.2.1, isl version isl-0.24-GMP GGC heuristics: --param ggc-min-expand=3D30 --param ggc-min-heapsize=3D4096 Compiler executable checksum: c265fe5ba5ef24bee29b1830921bb05e during RTL pass: expand pr103900.c: In function =E2=80=98foo0=E2=80=99: pr103900.c:11:1: internal compiler error: in expand_expr_real_2, at expr.c:= 9771 11 | foo0() { | ^~~~ 0x6e2341 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) /home/marxin/Programming/gcc/gcc/expr.c:9771 0xa3bf75 expand_gimple_stmt_1 /home/marxin/Programming/gcc/gcc/cfgexpand.c:3967 0xa3bf75 expand_gimple_stmt /home/marxin/Programming/gcc/gcc/cfgexpand.c:4028 0xa41dac expand_gimple_basic_block /home/marxin/Programming/gcc/gcc/cfgexpand.c:6069 0xa43f77 execute /home/marxin/Programming/gcc/gcc/cfgexpand.c:6795 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=