Message ID | 20220119020955.54413-2-hjl.tools@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 656143857815 for <patchwork@sourceware.org>; Wed, 19 Jan 2022 02:11:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 656143857815 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1642558286; bh=Z2WbWGtjvqRuiP2NmEF0KXPSB+wFAYiyrmogZAslnPQ=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=XFZhtBSa2pE08KtKJk+BmZY8p1VWs3VOslJ7ugPYusNbgKD5ICVhpWfdXrFLERL86 sBWKU+sPXnMNPO+geGwCAoGIMqCV7bLso45GA5rmzvmAtuN2LxFs8Q4jVMLIhTbmPy dC763M4/cBwr/VJhEe3PAuP9q3tnW3FM3Km5Zpng= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org 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 <gcc-patches@gcc.gnu.org>; 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 <gcc-patches@gcc.gnu.org>; 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) To: gcc-patches@gcc.gnu.org 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: "H.J. Lu via Gcc-patches" <gcc-patches@gcc.gnu.org> Reply-To: "H.J. Lu" <hjl.tools@gmail.com> Cc: Eric Botcazou <ebotcazou@adacore.com> Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> |
Series |
[1/2,Ada] Compile s-mmap and 128bit on x86_64-linux-gnux32
|
|
Commit Message
H.J. Lu
Jan. 19, 2022, 2:09 a.m. UTC
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(+)
Comments
OK, thanks. > 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 >
On Wed, Jan 19, 2022 at 1:06 AM Arnaud Charlet <charlet@adacore.com> wrote: > > OK, thanks. OK for backports? Thanks. > > 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 > >
> > OK, thanks. > > OK for backports? Yes.
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