From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DF770385DC14; Wed, 13 May 2020 22:09:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DF770385DC14 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589407786; bh=pM/inYvJjB9ZEcoIRBqLd2XLzNQC6ycdU0coM0jAKkc=; h=From:To:Subject:Date:From; b=Nv+74+0xFt9oynZl2EF8gDZYjLOArnd6a3++E43cEsUeBK5pwK32+x4UYI7mbquT6 f70UoSp+qQT4MN7WnVthPvQsvcmnKFD39I1eULhsQrKz688zsUhn0LdL2cKtFIAmrl sY4UyRQAbGtwtzhVsQULZ0u2sOmOBN23NjtA/RXo= From: "slyfox at inbox dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/95118] New: gcc-10 and master -O3 -fopt-info-vec causes gcc to hang Date: Wed, 13 May 2020 22:09:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 10.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at inbox dot ru 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 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: Wed, 13 May 2020 22:09:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95118 Bug ID: 95118 Summary: gcc-10 and master -O3 -fopt-info-vec causes gcc to hang Product: gcc Version: 10.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at inbox dot ru Target Milestone: --- The bug originally reported by Adrien Dessemond as https://bugs.gentoo.org/722774 where gzip-1.10's ./configure CFLAGS=3D"-O3 = -pipe -march=3Dnative -fomit-frame-pointer -fopt-info-vec -mindirect-branch=3Dthu= nk -mindirect-branch-register" makes gcc hang. Minimal reproducer against gcc-10.1.0 anf gcc-master is: // $ cat bug.c void a(); void b() { union { int c[4]; long double d; } e =3D {{0, 0, 4}}; a(e.d); } $ /usr/bin/x86_64-pc-linux-gnu-gcc-10.1.0 -o conftest -O3 -fopt-info-vec -c bug.c Reproducible on the following gcc config against master: Reading specs from /home/slyfox/dev/git/gcc-native-quick/gcc/specs COLLECT_GCC=3D/home/slyfox/dev/git/gcc-native-quick/gcc/xgcc COLLECT_LTO_WRAPPER=3D/home/slyfox/dev/git/gcc-native-quick/gcc/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --enable-languages=3Dc,c++ --disable-boot= strap --with-multilib-list=3Dm64 --prefix=3D/home/slyfox/dev/git/gcc-native-quick/../gcc-native-quick-instal= led --disable-nls --without-isl --disable-libsanitizer --disable-libvtv --disable-libgomp --disable-libstdcxx-pch --disable-libunwind-exceptions CFLAGS=3D'-O1 ' CXXFLAGS=3D'-O1 ' --with-sysroot=3D/usr/x86_64-HEAD-linux-g= nu Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.0.0 20200513 (experimental) (GCC)=