From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 76710 invoked by alias); 7 Dec 2018 13:30:48 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 76673 invoked by uid 89); 7 Dec 2018 13:30:45 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY autolearn=ham version=3.3.2 spammy=H*Ad:U*ibuclaw, Hx-languages-length:1391 X-HELO: smtp.CeBiTec.Uni-Bielefeld.DE Received: from smtp.CeBiTec.Uni-Bielefeld.DE (HELO smtp.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 07 Dec 2018 13:30:44 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id E00915D9; Fri, 7 Dec 2018 14:30:38 +0100 (CET) Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mjxBDWxynh1V; Fri, 7 Dec 2018 14:30:37 +0100 (CET) Received: from lokon.CeBiTec.Uni-Bielefeld.DE (lokon.CeBiTec.Uni-Bielefeld.DE [129.70.161.152]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id 237655D8; Fri, 7 Dec 2018 14:30:37 +0100 (CET) Received: (from ro@localhost) by lokon.CeBiTec.Uni-Bielefeld.DE (8.15.2+Sun/8.15.2/Submit) id wB7DUZF7007270; Fri, 7 Dec 2018 14:30:35 +0100 (MET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Iain Buclaw Subject: Pass GDCFLAGS and CCASFLAGS to libphobos subdirs Date: Fri, 07 Dec 2018 13:30:00 -0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (usg-unix-v) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-IsSubscribed: yes X-SW-Source: 2018-12/txt/msg00449.txt.bz2 --=-=-= Content-Type: text/plain Content-length: 650 When trying to rebuild libphobos with -g3 -O0 for better debugging, I noticed that GDCFLAGS weren't passed down as expected. It turned out that they are missing from AM_MAKEFLAGS. After I fixed this, the only file still compiled with -g -O2 was libdruntime/core/threadasm.S, so I added CCASFLAGS, too. Tested on i386-pc-solaris2.11. Ok for mainline? Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University 2018-12-06 Rainer Orth * Makefile.am (AM_MAKEFLAGS): Pass CCASFLAGS, GDCFLAGS. * Makefile.in: Regenerate. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=libphobos-gdcflags-subdirs.patch Content-length: 724 # HG changeset patch # Parent 5910a51aed6e6de5841187a79b17799d6e2241b5 Pass GDCFLAGS and CCASFLAGS to libphobos subdirs diff --git a/libphobos/Makefile.am b/libphobos/Makefile.am --- a/libphobos/Makefile.am +++ b/libphobos/Makefile.am @@ -29,12 +29,14 @@ AM_MAKEFLAGS = \ "AR_FLAGS=$(AR_FLAGS)" \ "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ + "CCASFLAGS=$(CCASFLAGS)" \ "CFLAGS=$(CFLAGS)" \ "CXXFLAGS=$(CXXFLAGS)" \ "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \ "GDC_FOR_TARGET=$(GDC_FOR_TARGET)" \ "GDC=$(GDC)" \ + "GDCFLAGS=$(GDCFLAGS)" \ "INSTALL=$(INSTALL)" \ "INSTALL_DATA=$(INSTALL_DATA)" \ "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ --=-=-=--