From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B4B9F3884526; Wed, 29 Nov 2023 22:16:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B4B9F3884526 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701296190; bh=iWZMmSZcM7oGm5qYRLU1433jGy0IwCbY+HEtMbXHLdY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=exACYVbt31Y4EOxPXLSiU4ENL5e+odAJYYTGx4bUPWVQP374z56BEU/pCcwTN86Hg B0kYO1Qk8lqfnY6lk2yC4gF5y5E1HTv5aEgXFsmE3lQAIlKH5VhQCKZ0eBggdTJZiZ 0/xSfNSXqUxnW5qI84oabsCVP2jGWuDxTaVEmQH8= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/112759] [13/14 regression] mips -march=native detection broken with gcc 13+ Date: Wed, 29 Nov 2023 22:16: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: pinskia 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc 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 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[13 regression] mips |[13/14 regression] mips |-march=3Dnative detection |-march=3Dnative detection |broken with gcc 13+ |broken with gcc 13+ --- Comment #2 from Andrew Pinski --- Hmm, looks like it is this part of the change: + if (cpu) + ret =3D reconcat (ret, ret, "-m", argv[0], "=3D", cpu, NULL); - return concat ("-m", argv[0], "=3D", cpu, NULL); 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); } ``` Can you try that?=