From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by sourceware.org (Postfix) with ESMTPS id B9EE93857C48 for ; Wed, 19 Jan 2022 02:09:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B9EE93857C48 Received: by mail-pj1-x102e.google.com with SMTP id g9-20020a17090a67c900b001b4f1d71e4fso1105977pjm.4 for ; Tue, 18 Jan 2022 18:09:59 -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:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Z2WbWGtjvqRuiP2NmEF0KXPSB+wFAYiyrmogZAslnPQ=; b=EZ+/CE1VSjwtIjeRFlCHoyyQvFq58kn0YhCyLzEopvICzAu1FHfwxl7fatZVopCql4 ZyZEimbCn9Dj0iZ/nB2z+MMzsQEG3QJJgg/ilYnv24hTYJYviR+NBVisVQdQlAmABieh xh+iU+l1SQlgMnISfoZUY9JGsUTl/TdYhz0B5vMnRAhQptalfoN5TLAdK8N43jLYijpU rnfR04Vslp+Drrq5zOJ7oo0s0tH5c/slXtxi89yc1zCqnW08FjCYhg8KUxMRlJxLX8Hd o4jGS9S0fCB+9nxwdjverI2xwHqoFl9jEAn0fWQ4OcwuAzEGQw4VKk1btdq6SPgFOhn+ fRrg== X-Gm-Message-State: AOAM530jm05O9z1pBUW9jYUxOFTKA/3faH7OoieFNJtZFMCZyZXrcMq7 z4ebDF7PcCef9gND7gh8gmw= X-Google-Smtp-Source: ABdhPJzhsxBkj1yGukkQMDlLt6f7ohAjvn9bFdhLq9YkAd0yFtKLeRodn7jZeldjAtO+GuuUTD0vwA== X-Received: by 2002:a17:902:7209:b0:149:64f4:b8a1 with SMTP id ba9-20020a170902720900b0014964f4b8a1mr30767717plb.0.1642558198859; Tue, 18 Jan 2022 18:09:58 -0800 (PST) Received: from gnu-tgl-3.localdomain ([172.58.35.133]) by smtp.gmail.com with ESMTPSA id h13sm16045309pgq.63.2022.01.18.18.09.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jan 2022 18:09:58 -0800 (PST) Received: from gnu-tgl-2.localdomain (gnu-tgl-2 [192.168.1.42]) by gnu-tgl-3.localdomain (Postfix) with ESMTPS id 51771C0525; Tue, 18 Jan 2022 18:09:57 -0800 (PST) Received: from gnu-tgl-2.. (localhost [IPv6:::1]) by gnu-tgl-2.localdomain (Postfix) with ESMTP id 0C4D0300458; Tue, 18 Jan 2022 18:09:56 -0800 (PST) From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Cc: Eric Botcazou Subject: [PATCH 2/2] [Ada] Set target_cpu to x32 for x86_64-linux-gnux32 Date: Tue, 18 Jan 2022 18:09:55 -0800 Message-Id: <20220119020955.54413-2-hjl.tools@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220119020955.54413-1-hjl.tools@gmail.com> References: <20220119020955.54413-1-hjl.tools@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3018.6 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_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, UNWANTED_LANGUAGE_BODY 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: Wed, 19 Jan 2022 02:10:01 -0000 Since the x86_64-linux-gnux32 compiler is actually an x32 compiler, set target_cpu to x32 for x86_64-linux-gnux32. PR ada/103538 * gcc-interface/Makefile.in (target_cpu): Set to x32 for x86_64-linux-gnux32. --- gcc/ada/gcc-interface/Makefile.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcc/ada/gcc-interface/Makefile.in b/gcc/ada/gcc-interface/Makefile.in index 53d0739470a..b8a24708280 100644 --- a/gcc/ada/gcc-interface/Makefile.in +++ b/gcc/ada/gcc-interface/Makefile.in @@ -350,6 +350,13 @@ ifeq ($(strip $(filter-out x86_64, $(target_cpu))),) endif endif +# The x86_64-linux-gnux32 compiler is actually an x32 compiler +ifeq ($(strip $(filter-out x86_64 linux-gnux32%, $(target_cpu) $(target_os))),) + ifneq ($(strip $(MULTISUBDIR)),/64) + target_cpu:=x32 + endif +endif + # The SuSE PowerPC64/Linux compiler is actually a 32-bit PowerPC compiler ifeq ($(strip $(filter-out powerpc64 suse linux%, $(target_cpu) $(target_vendor) $(target_os))),) target_cpu:=powerpc -- 2.34.1