From patchwork Fri Sep 20 15:24:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 1987930 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=WIZ4uv2C; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X9GQY3QgPz1y27 for ; Sat, 21 Sep 2024 01:24:37 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 63EDE3858408 for ; Fri, 20 Sep 2024 15:24:35 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by sourceware.org (Postfix) with ESMTPS id 292F63858D29 for ; Fri, 20 Sep 2024 15:24:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 292F63858D29 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 292F63858D29 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::333 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1726845856; cv=none; b=Tx/WegoDuh+af5YIEKYixrzkrWq8p1rWJk/Qc/iHJ/kLrdFTOdi/tYV7aFOtmtH+TpkvpNVW9hlYKf9l8EJvWTLVY6ckvr1YYysJqsrDDc7E9wrUxwB6+H/f2BT0kL1L7XPqqZzsqUKO5pTeJ9b/sraJ99AXUc1ixCFBACYFfDs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1726845856; c=relaxed/simple; bh=zbX+ueCKYgzeoZPFeOld6F9BTBXKNRWABO0hhTyJlV4=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=Ed0QldSg1MCuT37ZO1FaiV49HB4HhOGOkgR1lN1tBo0XkHtN3TWm+UwIu5imJS9EBujBQfGZPn/A9+oFwe6YMDf25Vq+mx86sAte7jOnmHJdkgGmqg/kCSKKtP8NshHxDEVW1TGVOPiLHR3c9VTq871Ac51fSIfcAO7MLkgBrN0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-42cb1758e41so17498035e9.1 for ; Fri, 20 Sep 2024 08:24:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726845854; x=1727450654; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=jPo5oinELCzXi5Fm2hlu7eOJQGgSkRrgQ+oACenGPzY=; b=WIZ4uv2Cw+Q8Lxo50Wq1qvla9BsQFpPx+mDNSfynDVHJQPUf7yPqRxrfNF2ztAeFuS qK6xvso2ZPbBxCFE5yTJJiPDS7Trsc2fVgu4dlPKGmfIFexr/XOpCPhQopDMbL/Nx0Dk PQt3rHno+gdaKpnfCRaoj71aKOIo1sEU9TkXSDjYn8BdVU5OodyGO8zl9qL495Tjek6a aciyL854DCaDMv9mfKl0fs1TlNUaKLelVZHCceA/gFiWE4eUzBPrRSKieQV9pmXLNQ6o 0wVc1RmWGlKer2EaTH07v/zcnIIl+RvIBDA5thmXQFENO1YS0AUC0I77CqoTFyVDt6rl YVkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726845854; x=1727450654; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jPo5oinELCzXi5Fm2hlu7eOJQGgSkRrgQ+oACenGPzY=; b=cu6JlCf23bfJPCfGVMHZaKJm+9HMoGjT1FbBEbSVkomYc8reeIZbnUMfwg0OVBp+iN eUe5Z9nyONF4DyGoYKud1Ki6PRPxeMHG5NW6ggxX/lh0TgnbjQZgAQqdLea0KmD0sx9L SGLsWzXHQEZ0cwFgd15XiId9EkhSDp0EJncPkc2q8P54PTzpPrkIPURPpUrNmRP4KzJs M5B2XoQSyi41JkgkLJm5N7E9ivbaSjzn+RDDqWyW4Z2KK1HrAYtiGecs+fshgXucoLhP PWw/hwMGaSSXEHtPeePGpwhfPVyMMguLZn0nJI00z+0bk7BvOHr47ogu547e6mgV7LnK JdCw== X-Gm-Message-State: AOJu0YzUFI8kpOPr2xV25pfHRBT8MVrNyGyI9hvkJxCylnAXh2rJtGC/ qq+w41Ag7Zxw4Pm2QiZktaaFxVdqKUrLwvJtPwoVyagB4rBx/wFJS1N08Q== X-Google-Smtp-Source: AGHT+IHyAuv3mFCjVcojWJtBw5ajgVXacrOKssgctvkUxSE16HLJuqqlgyGPiDuIwNNfbZTH7gwQMQ== X-Received: by 2002:a5d:6d0b:0:b0:374:c847:85c with SMTP id ffacd0b85a97d-37a422ac5d2mr2466241f8f.24.1726845853588; Fri, 20 Sep 2024 08:24:13 -0700 (PDT) Received: from localhost.localdomain (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37a47c1e18asm565345f8f.55.2024.09.20.08.24.12 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 20 Sep 2024 08:24:13 -0700 (PDT) From: Iain Sandoe X-Google-Original-From: Iain Sandoe To: gcc-patches@gcc.gnu.org Subject: [pushed] Darwin: Allow for as versions that need '-' for std in. Date: Fri, 20 Sep 2024 16:24:12 +0100 Message-Id: <20240920152412.20551-1-iain@sandoe.co.uk> X-Mailer: git-send-email 2.39.2 (Apple Git-143) MIME-Version: 1.0 X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: iain@sandoe.co.uk Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org Tested on i686-darwin9, 17; x86_64-darwin17,19,21,23, pushed to trunk thanks Iain --- 8< --- Recent versions of Xcode as require a dash to read from standard input. We can use this on all supported OS versions so make it unconditional. Patch from Mark Mentovai. gcc/ChangeLog: * config/darwin.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): New. Signed-off-by: Iain Sandoe --- gcc/config/darwin.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 377599074a7..0d8886c026c 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -648,6 +648,8 @@ extern GTY(()) int darwin_ms_struct; #define ASM_OPTIONS "%{v} %{w:-W} %{I*}" #endif +#define AS_NEEDS_DASH_FOR_PIPED_INPUT + /* Default Darwin ASM_SPEC, very simple. */ #define ASM_SPEC \ "%{static} -arch %(darwin_arch) " \