From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 33B513858D32; Thu, 30 Nov 2023 15:37:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 33B513858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701358651; bh=dS4Jl8/4Mt9S2TlW3J41Z06tW+7HgTIYuxJzsFNc5is=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tyY1ZR2x0qbXPBl9oKCcz0SDFnU77GBimK+LzFjXI/A0EUsKYHyhxedKjYhdPqA77 1YFq5OjQITv8wnPwn4jvyHmF53xeQgXebDWdxBQV9GHoM2XX3qNu221UVRYBnKitiZ EhRQqyWaWbWGS7of5nYzTkDv7Yfqb9/w5GU/iTwE= From: "matoro_gcc_bugzilla at matoro dot tk" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/112759] [13/14 regression] mips -march=native detection broken with gcc 13+ Date: Thu, 30 Nov 2023 15:37:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: matoro_gcc_bugzilla at matoro dot tk 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=3D112759 --- Comment #3 from matoro --- (In reply to Andrew Pinski from comment #2) > Hmm, looks like it is this part of the change: > + if (cpu) > + ret =3D reconcat (ret, ret, "-m", argv[0], "=3D", cpu, NULL); >=20=20 > - return concat ("-m", argv[0], "=3D", cpu, NULL); >=20 >=20 > Maybe it should have been: > ``` > if (cpu) > { > if (!ret) > ret =3D concat ("-m", argv[0], "=3D", cpu, NULL); > else > ret =3D reconcat (ret, ret, "-m", argv[0], "=3D", cpu, NULL); > } > ``` >=20 > Can you try that? Indeed fixes it, thanks!=