From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9210C385DC0C; Thu, 23 Apr 2020 13:02:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9210C385DC0C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587646951; bh=wolt09ynwnh1Oqv4lpWA1E+5yN6IreO1VUQ/JUInfVE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mbQ17ML1MtJh+CQ6KhBMcZblcO/+g0qIgIAt583bEOg8MkGpNU8s9bzcprc6zTZ7K rFvkwlW9zbFopYBVTYTyJKnyHwqUEeAF3ntzj7rEZy0kdKug1W6vfuFWz8wCvKa/fy tLCr4jTLMMmbuV9o5UBieBE20bKgBKHHz1S1WKzE= From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/94717] [10 Regression] segfault with -O2 -fnon-call-exceptions -ftracer Date: Thu, 23 Apr 2020 13:02:31 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.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: Thu, 23 Apr 2020 13:02:31 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94717 --- Comment #5 from Eric Botcazou --- > Shouldn't that be done in try_coalesce_bswap instead? > Because checking lp_nr above will only make sure it is the same between > merged_store and the first store after it, but we are trying to coalesce > often more than that. > By checking it in try_coalesce_bswap, in the first loop in that function,= it > will verify all stores. OK, I didn't realize that try_coalesce_bswap has its own private loop. But this can be done in both places, like the check on ins_stmt.=