From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9D7D6385841D; Fri, 29 Sep 2023 06:20:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D7D6385841D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695968419; bh=BWzPdenwZYFXR3UqhgYYJ5eawIAXNzkbOeJo5f2opjE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tx/8yneHGt/+967/qY+LsavfDjnm7l+4t9g7G7yb59eLGsHuI6eVvK7Wm70oPAPOX nJZjlybolnpcQRzVK7aJagcRr418FG+1Jwsam9KGsFb3K/+POAHQf+J7rDAcXh/Z/7 yjSzJFcQoE5dM0ggtF5IlTgGNkUdDGLFcaqzQ+Sk= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111622] [13 Regression] EVRP compile-time hog compiling risc-v insn-opinit.cc Date: Fri, 29 Sep 2023 06:20:19 +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: 13.2.0 X-Bugzilla-Keywords: compile-time-hog, needs-bisection, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 13.3 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111622 --- Comment #5 from Richard Biener --- (In reply to Richard Biener from comment #4) > For riscv cross compilers you need to invoke the driver since that feeds > -mabi and -march to cc1plus required to identify the target as 64bit ... >=20 > That would be -march=3Drv64imafdc_zicsr_zifencei -mabi=3Dlp64d for exampl= e. Err, forget that. The testcase is for a x86_64 compiler, but you need -fno-exceptions -fno-rtti -O2 to reproduce the GCC case exactly (it also works with plain -O2). So, this is in _building_ a x86_64 -> riscv cross (not using it).=