From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by ml01.01.org (Postfix) with ESMTP id 746E91A1E0F for ; Mon, 8 Aug 2016 07:56:48 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 08 Aug 2016 07:56:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,490,1464678000"; d="scan'208";a="1010510058" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga001.jf.intel.com with ESMTP; 08 Aug 2016 07:56:29 -0700 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 8 Aug 2016 07:56:28 -0700 Received: from fmsmsx103.amr.corp.intel.com ([169.254.2.39]) by fmsmsx116.amr.corp.intel.com ([10.18.116.20]) with mapi id 14.03.0248.002; Mon, 8 Aug 2016 07:56:28 -0700 From: "Carsey, Jaben" To: Michael Zimmermann , Ard Biesheuvel CC: "edk2-devel@lists.01.org" , Leif Lindholm , Daryl McDaniel , "Carsey, Jaben" Thread-Topic: [edk2] [PATCH 1/2] StdLib/LibC: avoid LTO code for compiler intrinsics Thread-Index: AQHR8WXJWyKqFp+3sEKnBzG+/NYB1aA/YWWA///F2qA= Date: Mon, 8 Aug 2016 14:56:27 +0000 Message-ID: References: <1470654741-24203-1-git-send-email-ard.biesheuvel@linaro.org> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMWFiZTkwYjYtMWMzZS00YmMzLWJhNDUtZDk1NDRiOGQxMjY4IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IlpsZkpTNVNtSDA1SUNOSitqbjFFRU5vN2txbDRRblwvczJcL3dJOWprd0F3Zz0ifQ== x-ctpclassification: CTP_IC x-originating-ip: [10.1.200.108] MIME-Version: 1.0 Subject: Re: [PATCH 1/2] StdLib/LibC: avoid LTO code for compiler intrinsics X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2016 14:56:48 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jaben Carsey > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > Michael Zimmermann > Sent: Monday, August 08, 2016 4:24 AM > To: Ard Biesheuvel > Cc: Carsey, Jaben ; edk2-devel@lists.01.org; Leif > Lindholm ; Daryl McDaniel lists@mc2research.org> > Subject: Re: [edk2] [PATCH 1/2] StdLib/LibC: avoid LTO code for compiler > intrinsics > Importance: High >=20 > Reviewed-by: Michael Zimmermann >=20 > On Mon, Aug 8, 2016 at 1:12 PM, Ard Biesheuvel > > wrote: >=20 > > The softfloat routines and some other routines supplied by LibC > > will satisfy references to compiler intrinsics that are emitted > > by the compiler backend, which under LTO means that the link-time > > code generation may emit references to symbols that have been > > optimized away already. > > > > Work around this by building the ARM and AARCH64 versions of LibC > > and the softfloat library without LTO. > > > > Contributed-under: TianoCore Contribution Agreement 1.0 > > Signed-off-by: Ard Biesheuvel > > --- > > StdLib/LibC/LibC.inf | 1 + > > StdLib/LibC/Softfloat/Softfloat.inf | 2 +- > > 2 files changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/StdLib/LibC/LibC.inf b/StdLib/LibC/LibC.inf > > index f13630648555..6039bb81c7dd 100644 > > --- a/StdLib/LibC/LibC.inf > > +++ b/StdLib/LibC/LibC.inf > > @@ -120,3 +120,4 @@ [LibraryClasses] > > # > > [BuildOptions] > > MSFT:*_*_IA32_CC_FLAGS =3D /GL- > > + GCC:*_*_ARM_CC_FLAGS =3D -fno-lto > > diff --git a/StdLib/LibC/Softfloat/Softfloat.inf b/StdLib/LibC/Softfloa= t/ > > Softfloat.inf > > index 99763bcb57ba..460406c38fa4 100644 > > --- a/StdLib/LibC/Softfloat/Softfloat.inf > > +++ b/StdLib/LibC/Softfloat/Softfloat.inf > > @@ -71,4 +71,4 @@ [Packages] > > # Nasty things could happen if you do. > > > > [BuildOptions] > > - GCC:*_*_*_CC_FLAGS =3D -DSOFTFLOAT_FOR_GCC -Wno-enum-compare > > -fno-tree-vrp > > + GCC:*_*_*_CC_FLAGS =3D -DSOFTFLOAT_FOR_GCC -Wno-enum- > compare > > -fno-tree-vrp -fno-lto > > -- > > 2.7.4 > > > > > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel