From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3AF6C3858424; Mon, 18 Dec 2023 02:24:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3AF6C3858424 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702866294; bh=KfIHChIsYWz1Wm64f89Dokt/jmI/uiXDK2nl5FVWuWY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ozAnp57Gipmeo4nHgMBgisY0AQqF4u7SNcnp6iUXzMeJ0oSXTe1it+LSmhfa2WHgP ZxokrPXLN4PJAiCBzhy0ivvn1IQMiTkY7LrvfqnYV5Fx0wQOGmLC3dTinxiz9jKPt2 no9dyniV3IXqYYCj61uJQtJlayrUn9dy6yVVOFZ8= From: "syq 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+ since r13-3178-g66c48be23e0fa5 Date: Mon, 18 Dec 2023 02:24:54 +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: syq at gcc dot gnu.org X-Bugzilla-Status: NEW 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 #5 from YunQiang Su --- It's my fault. I misunderstanding `reconcat`: if `optr` is NULL, it cannot work as the `s1` at the sametime. If so, the return string will be empty. So, let's define and initial ret like this: char *ret =3D concat(" ");=20 Any idea?=