From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from elaine.keithp.com (home.keithp.com [63.227.221.253]) by sourceware.org (Postfix) with ESMTPS id ED8663858D28 for ; Sun, 5 Feb 2023 07:10:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ED8663858D28 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=keithp.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=keithp.com Received: from localhost (localhost [127.0.0.1]) by elaine.keithp.com (Postfix) with ESMTP id 7C2BE3F33F0C; Sat, 4 Feb 2023 23:10:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=keithp.com; s=mail; t=1675581043; bh=SmLGySPmxeaDZ1Y4byQM77gjhX7XXNmtoUrvzz1alI4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lfoE+j4LKtzjWWIPDg7YsjmiD58vT8mHFS99Qx6SgHSK331YTkLXtNPVF1QPGAnj+ riqzK1WxDNNpAe4l/JnfoxKdvWk9k5vhRN/3z7I696ovEzW4GD+FXK19Wop4Zrfdgs JIIDJMLar8xBWFlhpPSxW3x2roo4dR5Gm5kXEQiHAhiU/s+w9T2D3L62SYtfgYn+wA +Lw8F3p5gVisDE1QZSmG9uPp1Jmj+py7im4ZFNyWPGJ+C6X7ByrkZN4mbMR1EzmFkd TnoWei3l50J7g3cXS2jnMg61WT7Gz64yLPeoDbhGKIFHVQXoOsPu9OQFgtYRr3TxyB 8lxgilN3rf1vA== X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from elaine.keithp.com ([127.0.0.1]) by localhost (elaine.keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2CZbTYxftdt3; Sat, 4 Feb 2023 23:10:43 -0800 (PST) Received: from keithp.com (koto.keithp.com [192.168.11.2]) by elaine.keithp.com (Postfix) with ESMTPSA id F39B83F33F09; Sat, 4 Feb 2023 23:10:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=keithp.com; s=mail; t=1675581043; bh=SmLGySPmxeaDZ1Y4byQM77gjhX7XXNmtoUrvzz1alI4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lfoE+j4LKtzjWWIPDg7YsjmiD58vT8mHFS99Qx6SgHSK331YTkLXtNPVF1QPGAnj+ riqzK1WxDNNpAe4l/JnfoxKdvWk9k5vhRN/3z7I696ovEzW4GD+FXK19Wop4Zrfdgs JIIDJMLar8xBWFlhpPSxW3x2roo4dR5Gm5kXEQiHAhiU/s+w9T2D3L62SYtfgYn+wA +Lw8F3p5gVisDE1QZSmG9uPp1Jmj+py7im4ZFNyWPGJ+C6X7ByrkZN4mbMR1EzmFkd TnoWei3l50J7g3cXS2jnMg61WT7Gz64yLPeoDbhGKIFHVQXoOsPu9OQFgtYRr3TxyB 8lxgilN3rf1vA== Received: by keithp.com (Postfix, from userid 1000) id A2A771E600C9; Sat, 4 Feb 2023 23:10:42 -0800 (PST) From: Keith Packard To: gcc-patches@gcc.gnu.org Cc: Keith Packard , Andrew Pinski , Kito Cheng , Richard Sandiford , Sebastian Huber Subject: [PATCH 2/3] Add newlib and picolibc as default C library choices Date: Sat, 4 Feb 2023 23:10:35 -0800 Message-Id: <7fa04bf66973de28961edeef470266caeaa348fc.1675579641.git.keithp@keithp.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: References: <20220903060707.1622470-1-keithp@keithp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Signed-off-by: Keith Packard --- gcc/config.gcc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/config.gcc b/gcc/config.gcc index 0679a76bebb..84bca8df615 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -661,7 +661,7 @@ case ${target} in esac # Common C libraries. -tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 LIBC_MUSL=4" +tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 LIBC_MUSL=4 LIBC_NEWLIB=5 LIBC_PICOLIBC=6" default_libc="" @@ -5879,6 +5879,15 @@ bionic) musl) default_libc=LIBC_MUSL ;; +newlib) + # Newlib configurations don't set the DEFAULT_LIBC variable, so + # avoid changing those by allowing --with-default-libc=newlib but + # not actually setting the DEFAULT_LIBC variable. + default_libc= + ;; +picolibc) + default_libc=LIBC_PICOLIBC + ;; "") ;; *) -- 2.39.0