From patchwork Tue May 30 07:21:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marc_Poulhi=C3=A8s?= X-Patchwork-Id: 100607 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1998735vqr; Tue, 30 May 2023 00:32:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5vP1n2MKG2NNhODEq6Kqhj1z0vvyJRkwU0JJrh/9GTtHc0K+ZpMBaIFpN34Vc+bprkvKSN X-Received: by 2002:a17:906:6a0c:b0:973:da59:7c76 with SMTP id qw12-20020a1709066a0c00b00973da597c76mr1410220ejc.56.1685431933948; Tue, 30 May 2023 00:32:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685431933; cv=none; d=google.com; s=arc-20160816; b=x3ESoFDwA8G2jq33Yd+ZebfU/byawkkRbtlGkCZMjsa70WFUiWnzhw/VPRT8HiMwRi 0NaLQ7TkONFYTaUcmPlc3dLN6ewLoEGgLiAuefnWhrB+h0S3xBRirmFfygzsSnIEVdm3 PJXajnZXMGpCbF3i0/AjJSD91R6DjhP0eIwURJIfeOMxxEU1ZvM0GapgNnHMUmVDK03O iTFmHQ28UyXaeDFCVAuQKjoiAKjZJXmkWuyVApr80p7IVyIw92vjYfFa/tOyD++5WMq6 lrVwgUb9yajhIcmvzz5t6fYHgtpSOP+TYlUglhIwrtKWTegyBUqcAYVGMlocNN8no4/S jgog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=eudhCZIYWN1hcBVXNelgI2qUOdksNCjh4ab/4RWUJig=; b=vB/+cMo7W7fT8zl8KBBzFnHnGUxFl/APgQgN7OF/STmXbCqrgIhroT8Au3GUpC4woR j11UyHtziZspnSpK8++nLogbH2MH7xbWEHYiMqQPdQjOnkd2ZGmBIp5Yk5ejRMwgoCAK 0mzZLCBtf8WFLeKlFeqEJkwJRPp6QtDUy8zyMIFztm6uRds2RWG/2ebv/PUgaPpl7bnq /EhvJGqXCy9R82DeoIyxWAqPVO+5+bV1gijI1XPLepwTuK+MBSgRxIMvt6F1vHmKsswL TxfUbrYIeIm1AIJtBHGcaYkIBoSaknPAkc6wP9R74oQYcl9hyehl5eLLml3g9YSitcwe 2/oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=rrZsFMY9; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id b15-20020a05640202cf00b00514b296d207si226915edx.445.2023.05.30.00.32.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 00:32:13 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=rrZsFMY9; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1F89D38532DD for ; Tue, 30 May 2023 07:26:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1F89D38532DD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685431586; bh=eudhCZIYWN1hcBVXNelgI2qUOdksNCjh4ab/4RWUJig=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=rrZsFMY9LJZ2RnaojyQd+BZattuAYGB17MNXcri70wxgUKBLFEZxTWEmJd6GLvCqi JhOyHXLlaSucYloJJWw5uz2AO+siUhMtehl8b9tMj4r7qlo1T3dpczMD6sHFIJqZzj xppDHas9OKmZ67+bxYaT6BpQKCuQLvX/PE53/3U0= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by sourceware.org (Postfix) with ESMTPS id 2EE0F38558A7 for ; Tue, 30 May 2023 07:21:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2EE0F38558A7 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3f6042d610fso42098415e9.1 for ; Tue, 30 May 2023 00:21:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685431269; x=1688023269; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eudhCZIYWN1hcBVXNelgI2qUOdksNCjh4ab/4RWUJig=; b=Cv3ZqR/l+T3ZYUzA7uDzl3N4b5SpUe5OAnJQyqykOKWT890ukdtPCN7Jq9DRVmMCGS Wdf6uRBn2Dz3isWOprfzUSSJj651Yaz2hLV0XOqv6EBr3pmQXqWvr4oViQEWL4Vm4SuJ gPYXkOJb8OPP2DfsEvtFpywYstaLeRjb5nUxdeGwA3wQc6VuP2ix6aAVUR3x6KYXnSec +48kPJJ8kSKlt8YJ6lGFkg215aOeErEpPV4NBwRm/ePVb0sOVZeadLv3G8guucUpO3np wOJ0tCZyTCZogIdzVr1cf1whC/UfuXBi9hyFrIPdo1milkdXtZOJF7QMBpoDg8vCuD4j IXAg== X-Gm-Message-State: AC+VfDxhxmOClfzmSBSD9dXKd13xp14A921Fo1b7KzpgkSmtOLgZhOYw 9SS088d0H97Aq04kagx8PngM5dcgzp/dqgr/6BhXJw== X-Received: by 2002:a05:600c:3787:b0:3f6:8be:5044 with SMTP id o7-20020a05600c378700b003f608be5044mr842956wmr.16.1685431269135; Tue, 30 May 2023 00:21:09 -0700 (PDT) Received: from localhost.localdomain ([2001:861:3382:1a90:7733:a608:a415:6b2a]) by smtp.gmail.com with ESMTPSA id t16-20020a1c7710000000b003f604793989sm19904334wmi.18.2023.05.30.00.21.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 00:21:08 -0700 (PDT) To: gcc-patches@gcc.gnu.org Cc: Eric Botcazou Subject: [COMMITTED] ada: Disable PIE mode during the build of the Ada front-end Date: Tue, 30 May 2023 09:21:07 +0200 Message-Id: <20230530072107.2500365-1-poulhies@adacore.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-Spam-Status: No, score=-13.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?Marc_Poulhi=C3=A8s_via_Gcc-patches?= From: =?utf-8?q?Marc_Poulhi=C3=A8s?= Reply-To: =?utf-8?q?Marc_Poulhi=C3=A8s?= Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767303475307799891?= X-GMAIL-MSGID: =?utf-8?q?1767303475307799891?= From: Eric Botcazou This also removes some obsolete stuff. gcc/ada/ * gcc-interface/Make-lang.in (ADA_CFLAGS): Move up. (ALL_ADAFLAGS): Add $(NO_PIE_CFLAGS). (ada/mdll.o): Remove. (ada/mdll-fil.o): Likewise. (ada/mdll-utl.o): Likewise. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/gcc-interface/Make-lang.in | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/gcc/ada/gcc-interface/Make-lang.in b/gcc/ada/gcc-interface/Make-lang.in index 7b826f2366f..d7bab7d3ce8 100644 --- a/gcc/ada/gcc-interface/Make-lang.in +++ b/gcc/ada/gcc-interface/Make-lang.in @@ -71,10 +71,11 @@ else ADAFLAGS=$(COMMON_ADAFLAGS) endif +ADA_CFLAGS = ALL_ADAFLAGS = \ - $(CFLAGS) $(ADA_CFLAGS) $(ADAFLAGS) $(CHECKING_ADAFLAGS) $(WARN_ADAFLAGS) + $(CFLAGS) $(NO_PIE_CFLAGS) $(ADA_CFLAGS) \ + $(ADAFLAGS) $(CHECKING_ADAFLAGS) $(WARN_ADAFLAGS) FORCE_DEBUG_ADAFLAGS = -g -ADA_CFLAGS = COMMON_ADA_INCLUDES = -I- -I. -Iada/generated -Iada -I$(srcdir)/ada STAGE1_LIBS= @@ -1174,17 +1175,6 @@ ada/gnatvsn.o : ada/gnatvsn.adb ada/generated/gnatvsn.ads $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(ADA_OUTPUT_OPTION) @$(ADA_DEPS) -# Dependencies for windows specific tool (mdll) - -ada/mdll.o : ada/mdll.adb ada/mdll.ads ada/mdll-fil.ads ada/mdll-utl.ads - $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(ADA_OUTPUT_OPTION) - -ada/mdll-fil.o : ada/mdll-fil.adb ada/mdll.ads ada/mdll-fil.ads - $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(ADA_OUTPUT_OPTION) - -ada/mdll-utl.o : ada/mdll-utl.adb ada/mdll.ads ada/mdll-utl.ads ada/sdefault.ads ada/types.ads - $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(ADA_OUTPUT_OPTION) - # All generated files. Perhaps we should build all of these in the same # subdirectory, and get rid of ada/bldtools. # Warning: the files starting with ada/gnat.ads are not really generated,