From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id 852513858D28 for ; Fri, 24 Dec 2021 10:41:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 852513858D28 Received: by mail-wr1-x42c.google.com with SMTP id t26so16769386wrb.4 for ; Fri, 24 Dec 2021 02:41:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:reply-to :mime-version:content-transfer-encoding; bh=lS1nMRTXtejzheLYv5vhcdx1r/n5Rbcx53k7D5tR36g=; b=1jnD5YFZ0yfDOpqQmRCkA7hvU42mSEczlcYNti8/Oul0MG60TBKyu+xm475E1IIb7W rbTgOUKwO9DoEf1ldHgrzZSa1E9BPlxhJXSdQUUF5EKgjZr0d/nze6MuBaSrrleUnjDN 84a08xYLDzp9W/+j4rCF2nlmnG7nb5rCfYhpMKzXGXnqgweuVrSuxk+bEGqxAX/yUtK6 BUV/LtPh8dszPlc3tijdL1JnQ5AgLd3Wxyrbs/wUWo4G0Ud8fwZqZL0rvQSV4yg02Qq7 OR8Y0WezaCOhDKs2+/OYd7aMr+Uv1HtqZxd0OkpNfFVZicLe3xruSOkpxqbj5sZwdoqo 3/9Q== X-Gm-Message-State: AOAM53201VzWZu2/l8e3e0GDyDFKXql3mrXwPTFqNB/3qE8BlMCNKiTd bzBTnr/+Q3dWiB9LBOMQXpuNLvZSLME= X-Google-Smtp-Source: ABdhPJwc1gWEeDroH6W30l5IseScJqJMRT3t0Y3633YVQiH/vC0KWRS8v/2IpKRmTdSxjgciTibPDg== X-Received: by 2002:a05:6000:2c9:: with SMTP id o9mr4344255wry.377.1640342485601; Fri, 24 Dec 2021 02:41:25 -0800 (PST) Received: from localhost.localdomain (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.gmail.com with ESMTPSA id l25sm7104490wmh.18.2021.12.24.02.41.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Dec 2021 02:41:25 -0800 (PST) From: Iain Sandoe X-Google-Original-From: Iain Sandoe To: gcc-patches@gcc.gnu.org Subject: [pushed] Darwin: Define OBJECT_FORMAT_MACHO. Date: Fri, 24 Dec 2021 10:41:18 +0000 Message-Id: <20211224104118.11918-1-iain@sandoe.co.uk> X-Mailer: git-send-email 2.24.3 (Apple Git-128) Reply-To: iain@sandoe.co.uk MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.5 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.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Dec 2021 10:41:27 -0000 There are places that we need to make different codegen depending on the object format rather than on the arch. We already have definitions for ELF, COFF etc. this adds one for MACHO. Tested on i686, powerpc, x86_64 and aarch64 Darwin. pushed to master, thanks Iain Signed-off-by: Iain Sandoe gcc/ChangeLog: * config/darwin.h (OBJECT_FORMAT_MACHO): New. --- gcc/config/darwin.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 75b688ebf9e..c175eade887 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -43,6 +43,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #define DARWIN_X86 0 #define DARWIN_PPC 0 +#define OBJECT_FORMAT_MACHO 1 + /* Suppress g++ attempt to link in the math library automatically. */ #define MATH_LIBRARY "" -- 2.24.3 (Apple Git-128)