From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D88B3382FC95; Mon, 21 Nov 2022 14:21:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D88B3382FC95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669040494; bh=EVpTlANVvR+1kkFSrxS056jJWFlQk1IqkM38Tx3RLhk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MOk8LLOnYw+ldVp7MY6QGrhYhcdrr6tc4vKrpFmYw2Hf/NOeuxnFhYsW+ZVLIybRo pyk5a5qQD/8e56fXD8vR+xpvOUj3lBTgSaQN0jBSMauxtN72zQR3ujqp2Om1szP+BA N15DUl7qfO10AwwyodtrW46iaWD4jK9sA4Kxq+9E= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/107794] can't use the string "linux-" via stringizing in the preprocessor Date: Mon, 21 Nov 2022 14:21:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 11.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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: 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=3D107794 --- Comment #1 from Jonathan Wakely --- "linux" is a predefined macro. Compile with -std=3Dc17 instead of the defau= lt -std=3Dgnu17 to disable that. See https://gcc.gnu.org/onlinedocs/cpp/System-specific-Predefined-Macros.ht= ml=