From patchwork Tue Apr 27 22:15:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Edelsohn X-Patchwork-Id: 1470881 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=n3J0P2ao; dkim-atps=neutral Received: from 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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FVGLR2r3pz9sVq for ; Wed, 28 Apr 2021 08:15:58 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9A97C382E82F; Tue, 27 Apr 2021 22:15:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9A97C382E82F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1619561754; bh=KfNFD6GF28h0FAl9oZlopyLUHQSI/UAuyK4b8iGnr9I=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=n3J0P2aoOFZjbMJXk0DHkPUnhrKVB9hQWIWHqIQeGYWqHAv/OcZgN6pGl72mCsNqM vCAArZcHBun/dT7/fCOjzcY6Tswvub0Dshbp+wMtIuCex1hZtEulNqrI4EoJBR2dl9 XyHSpQuWFBCcknn4GUgY8ve3+BaP68HG6QMAV+L0= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by sourceware.org (Postfix) with ESMTPS id F1FBF3848016 for ; Tue, 27 Apr 2021 22:15:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org F1FBF3848016 Received: by mail-lj1-x233.google.com with SMTP id a13so16136291ljp.2 for ; Tue, 27 Apr 2021 15:15:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=KfNFD6GF28h0FAl9oZlopyLUHQSI/UAuyK4b8iGnr9I=; b=MforbynzMO72H81z6BsIeFFhL184mapo3D2hXQFu9OyA9HVJGhd4Q3/yVh8KwlhihZ kzvVlmYUi1fixXXH81jL9e49zj+jKpQ4/Fcz9pe2lBuaavRS85niO+Y6FbG7Wszh/6ZN W5MHbwnpRDdEPy52lj01dWqjPFWcSy0vqyy1mbO5QRYirbgrJu2+T2rpiBTWwX+2/7kr NtQH9mbEIe0VnmdoXOt6k/3HISIj+LSnlVXzRAcIpR21QoB6x4/7VldYO5wgYajdR5oe RV8bXCyGhmKbJeKe9zvmA47TfJ/3thf7VFblefRkd5JGk2CtWYuh7v1pz5Ifd51Llsz8 d31A== X-Gm-Message-State: AOAM532mC+0JdQcC+TvBBrI/8EnMjc9elDKa8z+m+MMzbLNX2pkVH+4I m2Xw+qLB+nN/bogqyld6R5zb9b3+XCPoDXP/B7Bx1mXNC38= X-Google-Smtp-Source: ABdhPJxtP2kdOSeMfcIVDwr3ERB0jYl/klpTNTHjymRQjcxtz1ErSwObqAyTzO8oJ0ky/tyEz6c0JGdEPnFvs5HSeVA= X-Received: by 2002:a2e:8e64:: with SMTP id t4mr18409496ljk.211.1619561750611; Tue, 27 Apr 2021 15:15:50 -0700 (PDT) MIME-Version: 1.0 Date: Tue, 27 Apr 2021 18:15:39 -0400 Message-ID: Subject: [PATCH,AIX] Alias -m64 to -maix64 and -m32 to -maix32 To: GCC Patches X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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-Patchwork-Original-From: David Edelsohn via Gcc-patches From: David Edelsohn Reply-To: David Edelsohn Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" GCC on AIX historically has used -maix64 and -maix32 to switch to 64 bit mode or 32 bit mode, unlike other ports that use -m64 and -m32. The Alias() directive for options cannot be used because aix64 is expected in multiple parts of the compiler infrastructure and one cannot switch to -m64 due to backward compatibility. This patch defines DRIVER_SELF_SPECS to translate -m64 to -maix64 and -m32 to -maix32 so that the command line option compatible with other targets can be used while continuing to allow the historical options. Bootstrapped on powerpc-ibm-aix7.2.3.0 Thanks, David gcc/ChangeLog: * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New. * config/rs6000/aix64.opt (m64): New. (m32): New. diff --git a/gcc/config/rs6000/aix.h b/gcc/config/rs6000/aix.h index b116e1a36bb..662785cc7db 100644 --- a/gcc/config/rs6000/aix.h +++ b/gcc/config/rs6000/aix.h @@ -280,3 +280,9 @@ #define RS6000_USE_DWARF_NUMBERING #define TARGET_PRECOMPUTE_TLS_P rs6000_aix_precompute_tls_p + +/* Replace -m64 with -maix64 and -m32 with -maix32. */ +#undef SUBTARGET_DRIVER_SELF_SPECS +#define SUBTARGET_DRIVER_SELF_SPECS \ +"%{m64:-maix64} %