From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from nwk-aaemail-lapp01.apple.com (nwk-aaemail-lapp01.apple.com [17.151.62.66]) by mx.groups.io with SMTP id smtpd.web11.16281.1572922516357800059 for ; Mon, 04 Nov 2019 18:55:16 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@apple.com header.s=20180706 header.b=YL76Stzf; spf=pass (domain: apple.com, ip: 17.151.62.66, mailfrom: afish@apple.com) Received: from pps.filterd (nwk-aaemail-lapp01.apple.com [127.0.0.1]) by nwk-aaemail-lapp01.apple.com (8.16.0.27/8.16.0.27) with SMTP id xA52qC2E012077; Mon, 4 Nov 2019 18:55:14 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=sender : from : message-id : content-type : mime-version : subject : date : in-reply-to : cc : to : references; s=20180706; bh=LQs7DNDgQ+aDZu0lsFbGTN6MsVMhEz2bYK3L36cpc/Y=; b=YL76StzfZ81nSB3mijZpfrXoRf0kddGFsGD1pXAAEzzTyELTIbfOhe26DMmLWw1INa44 kMlVhsmlO/6aR0NZ2iuL8uBr5B7YCPJB/yWpfdrGexiPD/BuUphJv6Grn/2Vze9+u7Ij MT46p+jDUrDioM7iOhicLsOyZHFK2cD/dTTu7amtNQmACqv3CDqSpEiB0rntUCNCKU0M zpqlQhgl3qpDiTbBmNgWiUn3FW4O/Hmz8GHh025mdaUl10UfVI17mfs7pQtzKDTAxCiY xfB/OQimH8vG7RGooVh+DNP5WNOWxY9FfCkibVeyBejqGlSVpxY9zz5c8L2B7KK2ZotP aQ== Received: from ma1-mtap-s02.corp.apple.com (ma1-mtap-s02.corp.apple.com [17.40.76.6]) by nwk-aaemail-lapp01.apple.com with ESMTP id 2w18r83u1w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 04 Nov 2019 18:55:14 -0800 Received: from nwk-mmpp-sz12.apple.com (nwk-mmpp-sz12.apple.com [17.128.115.204]) by ma1-mtap-s02.corp.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) with ESMTPS id <0Q0H00MCH6RWIL70@ma1-mtap-s02.corp.apple.com>; Mon, 04 Nov 2019 18:55:14 -0800 (PST) Received: from process_milters-daemon.nwk-mmpp-sz12.apple.com by nwk-mmpp-sz12.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) id <0Q0H00H005SUV900@nwk-mmpp-sz12.apple.com>; Mon, 04 Nov 2019 18:55:11 -0800 (PST) X-Va-A: X-Va-T-CD: 7daa14ab80d2839c17f099a8fda5373c X-Va-E-CD: 4c18f08684eff679337f18d62477fc07 X-Va-R-CD: 62e6ed62aebede719759a2c43183ec0c X-Va-CD: 0 X-Va-ID: a32aafe6-697e-4492-bc09-c01f65e03193 X-V-A: X-V-T-CD: 7daa14ab80d2839c17f099a8fda5373c X-V-E-CD: 4c18f08684eff679337f18d62477fc07 X-V-R-CD: 62e6ed62aebede719759a2c43183ec0c X-V-CD: 0 X-V-ID: 0c8af11f-a9c6-4394-8a07-0645c1ff86d0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-11-04_12:,, signatures=0 Received: from [17.235.75.204] (unknown [17.235.75.204]) by nwk-mmpp-sz12.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) with ESMTPSA id <0Q0H006556RW1S80@nwk-mmpp-sz12.apple.com>; Mon, 04 Nov 2019 18:55:10 -0800 (PST) Sender: afish@apple.com From: "Andrew Fish" Message-id: <178B7E6A-69EE-418F-B5E2-9C72B2A29C2E@apple.com> MIME-version: 1.0 (Mac OS X Mail 13.0 \(3594.4.17\)) Subject: Re: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable Date: Mon, 04 Nov 2019 20:55:08 -0600 In-reply-to: <4A89E2EF3DFEDB4C8BFDE51014F606A14E536C4A@SHSMSX104.ccr.corp.intel.com> Cc: "tigerliu@zhaoxin.com" To: devel@edk2.groups.io, liming.gao@intel.com References: <4A89E2EF3DFEDB4C8BFDE51014F606A14E535229@SHSMSX104.ccr.corp.intel.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14E536C4A@SHSMSX104.ccr.corp.intel.com> X-Mailer: Apple Mail (2.3594.4.17) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-11-04_12:,, signatures=0 Content-type: multipart/alternative; boundary="Apple-Mail=_85C7A5D1-DC33-48E8-A30E-365E663974CA" --Apple-Mail=_85C7A5D1-DC33-48E8-A30E-365E663974CA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Liming, Thanks for looking into this. It is always good to try and do things the s= ame way on different tool chains if possible.=20 Thanks, Andrew Fish > On Nov 3, 2019, at 9:40 PM, Liming Gao wrote: >=20 > Andrew: > I did some investigation. Seemly, there is no way to disable VS comman= d line warning. > > Thanks > Liming > From: devel@edk2.groups.io [mailto:devel@e= dk2.groups.io ] On Behalf Of Andrew Fish via G= roups.Io > Sent: Thursday, October 31, 2019 10:07 AM > To: devel@edk2.groups.io ; Gao, Liming > > Cc: tigerliu@zhaoxin.com > Subject: Re: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable > > Liming, > > For gcc/clang if you repeat an argument the last argument wins. This is = the default behavior and it does not warn, as it is designed to work with f= eatures like PcdOptimizeCompilerEnable.=20 > > If VC++ warns for this behavior should we disable D9025 for VC++ so all = the toolchains have the same behavior? > > Thanks, > > Andrew Fish >=20 >=20 > On Oct 30, 2019, at 6:46 PM, Liming Gao > wrote: > > Yes. This is the expect behavior. Compiler optimization is disabled, the= n Od option will be used for VS tool chain. > > From: devel@edk2.groups.io [mailto:devel@e= dk2.groups.io ] On Behalf Of Tiger Liu(BJ-RD) > Sent: Thursday, October 31, 2019 9:40 AM > To: devel@edk2.groups.io ; Gao, Liming > > Subject: Re: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable > > Hi, Liming: > Thanks for your explanation. > > If setting PcdOptimizeCompilerEnable as disable, then will cause D9025 c= ompiling warning. > Such as: > cl : Command line warning D9025 : overriding '/O1' with '/Od' > > So, is it ok? > > Thanks > =E5=8F=91=E4=BB=B6=E4=BA=BA: devel@edk2.groups.io > =E4=BB=A3=E8= =A1=A8 Liming Gao > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2019=E5=B9=B410=E6=9C=8830=E6=97= =A5 23:00 > =E6=94=B6=E4=BB=B6=E4=BA=BA: devel@edk2.groups.io ; Tiger Liu(BJ-RD) > > =E4=B8=BB=E9=A2=98: Re: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompile= rEnable > > NOOPT is build target. It includes the compiler option to disable optimi= zation. If the platform supports NOOPT target, it can be built with -b NOOP= T. > > PcdOptimizeCompilerEnable is one feature PCD defined in edk2-platforms. = It can be used to control the compiler option in [BuildOptions] section. It= can also be used for DEBUG or RELEASE target.=20 > > Thanks > Liming > <>From: devel@edk2.groups.io > On Behalf Of Tiger Liu(BJ-RD) > Sent: Tuesday, October 29, 2019 7:01 PM > To: devel@edk2.groups.io > Subject: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable > > Hi, All: > I have a question about NOOPT and PcdOptimizeCompilerEnable. > > If Target =3D NOOPT, then will disable all optimizations. > And PcdOptimizeCompilerEnable has the same function. > > So, What=E2=80=99s the relationship between PcdOptimizeCompilerEnable an= d NOOPT? > > Thanks > > Best wishes, > >=20 > =E4=BF=9D=E5=AF=86=E5=A3=B0=E6=98=8E=EF=BC=9A > =E6=9C=AC=E9=82=AE=E4=BB=B6=E5=90=AB=E6=9C=89=E4=BF=9D=E5=AF=86=E6=88=96= = =E4=B8=93=E6=9C=89=E4=BF=A1=E6=81=AF=EF=BC=8C=E4=BB=85=E4=BE=9B=E6=8C=87= =E5=AE=9A=E6=94=B6=E4=BB=B6=E4=BA=BA=E4=BD=BF=E7=94=A8=E3=80=82=E4=B8=A5= =E7=A6=81=E5=AF=B9=E6=9C=AC=E9=82=AE=E4=BB=B6=E6=88=96=E5=85=B6=E5=86=85= =E5=AE=B9=E5=81=9A=E4=BB=BB=E4=BD=95=E6=9C=AA=E7=BB=8F=E6=8E=88=E6=9D=83= =E7=9A=84=E6=9F=A5=E9=98=85=E3=80=81=E4=BD=BF=E7=94=A8=E3=80=81=E5=A4=8D= =E5=88=B6=E6=88=96=E8=BD=AC=E5=8F=91=E3=80=82 > CONFIDENTIAL NOTE: > This email contains confidential or legally privileged information and i= s for the sole use of its intended recipient. Any unauthorized review, use,= copying or forwarding of this email or the content of this email is strict= ly prohibited. > >=20 > =E4=BF=9D=E5=AF=86=E5=A3=B0=E6=98=8E=EF=BC=9A > =E6=9C=AC=E9=82=AE=E4=BB=B6=E5=90=AB=E6=9C=89=E4=BF=9D=E5=AF=86=E6=88=96= = =E4=B8=93=E6=9C=89=E4=BF=A1=E6=81=AF=EF=BC=8C=E4=BB=85=E4=BE=9B=E6=8C=87= =E5=AE=9A=E6=94=B6=E4=BB=B6=E4=BA=BA=E4=BD=BF=E7=94=A8=E3=80=82=E4=B8=A5= =E7=A6=81=E5=AF=B9=E6=9C=AC=E9=82=AE=E4=BB=B6=E6=88=96=E5=85=B6=E5=86=85= =E5=AE=B9=E5=81=9A=E4=BB=BB=E4=BD=95=E6=9C=AA=E7=BB=8F=E6=8E=88=E6=9D=83= =E7=9A=84=E6=9F=A5=E9=98=85=E3=80=81=E4=BD=BF=E7=94=A8=E3=80=81=E5=A4=8D= =E5=88=B6=E6=88=96=E8=BD=AC=E5=8F=91=E3=80=82 > CONFIDENTIAL NOTE: > This email contains confidential or legally privileged information and i= s for the sole use of its intended recipient. Any unauthorized review, use,= copying or forwarding of this email or the content of this email is strict= ly prohibited. > >=20 --Apple-Mail=_85C7A5D1-DC33-48E8-A30E-365E663974CA Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Liming,
Thanks for looking into this. It is alwa= ys good to try and do things the same way on different tool chains if possi= ble. 

Thanks= ,

Andrew Fish

On Nov 3, 2019, at 9:40 PM, Liming Gao <liming.gao@intel.com> wrote:

Andrew:
  I did some investigation. Seemly, there is no way to disable = VS command line warning.
&nbs= p;
Thanks
Liming
From: = devel@edk2.groups.io [mailto:de= vel@edk2.groups.io] <= b class=3D"">On Behalf Of Andrew Fish via Groups.Io
Sent: Thursday, October 31, 2019 10:0= 7 AM
To: devel@edk2.groups.io; Gao,= Liming <liming.gao@intel.com>
Cc: <= /span>tigerliu@zhaoxin.com
<= b class=3D"">Subject: Re: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable
=  
Liming,
 
For gcc/clang if you repeat an= argument the last argument wins. This is the default behavior and it does = not warn, as it is designed to work with features like PcdOptimizeComp= ilerEnable. 
 
=
If VC++ warns fo= r this behavior should we disable D9025 for VC++ so all the toolchains= have the same behavior?
<= div style=3D"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "= Times New Roman", serif;" class=3D""> 
Thanks,
 
Andrew Fish


On Oct 30, 2019, at 6:46 PM, Liming Gao <liming.gao@intel.com> wrote:<= /o:p>
 
Yes. This is the expect= behavior. Compiler optimization is disabled, then Od option will be used f= or VS tool chain.
 = ;
From: devel@edk2.groups.io<= span class=3D"apple-converted-space"> [mailto:devel@ed= k2.groups.io] = On Behalf Of Tiger Liu(BJ-RD)
Sent: Thursday, October 31, 2019 9:40 AM
To: = devel@edk2.groups.io; Gao, Liming <limin= g.gao@intel.com>
Subject: Re: [edk2-devel] [edk2] NOOP= T and PcdOptimizeCompilerEnable
 
Hi, Liming= :
Thanks for your explanation.
 
If setting PcdOptimizeCompilerEnable as disable, then will ca= use D9025 compiling warning.
Such as:
cl : Command line warning D9025 : overriding '/O1' with '/Od'
 
So, is it ok?
 
Thanks
=E5=8F=91=E4=BB=B6= = =E4=BA=BA: = devel@edk2.groups.io <devel@edk2.groups.io> =E4=BB=A3=E8=A1=A8=  Liming Gao
=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2019=E5= =B9=B410=E6=9C=8830=E6=97= =A5 23:00
=E6=94=B6=E4=BB=B6=E4=BA=BA<= b class=3D"">:
 devel@e= dk2.groups.io; Tiger Liu(BJ-RD) <TigerLiu@zhaoxin.com<= /span>>
=E4=B8= =BB=E9=A2=98:&nb= sp;Re: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable=
 
NOOPT is build target. It includes th= e compiler option to disable optimization. If the platform supports NOOPT t= arget, it can be built with -b NOOPT.
 = ;
PcdOptimizeCompilerEnable is one feature PCD d= efined in edk2-platforms. It can be used to control the compiler option in = [BuildOptions] section. It can also be used for DEBUG or RELEASE target. 
 
Thanks=
= Liming
From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of=  Tiger Liu(BJ-RD)
Sent:&nb= sp;Tuesday, October 29, 2019 7:01 PM
To:=  devel@edk2.gr= oups.io
Subject: [edk2-devel] [edk2] NOOPT and PcdOptimiz= eCompilerEnable
 
<= span style=3D"font-size: 10.5pt; font-family: DengXian; color: rgb(31, 73, = 125);" class=3D"">Hi, All:
I hav= e a question about NOOPT and PcdOptimizeCompilerEnable.=
 
If Target =3D NOOPT, then will disable all optimizations.
And PcdOptimizeCompilerEnable has the same func= tion.
 =
So, What=E2=80=99s the relationship between PcdO= ptimizeCompilerEnable and NOOPT?
 
Thanks=
 
Best wishes,

 

=E4=BF=9D=E5=AF=86=E5=A3=B0=E6=98=8E=EF=BC=9A
=E6=9C=AC=E9=82=AE=E4=BB=B6=E5=90=AB=E6=9C=89=E4=BF=9D=E5=AF=86=E6=88=96= =E4=B8=93=E6=9C=89=E4=BF=A1=E6=81=AF=EF=BC=8C=E4=BB=85=E4=BE=9B=E6=8C=87= =E5=AE=9A=E6=94=B6=E4=BB=B6=E4=BA=BA=E4=BD=BF=E7=94=A8=E3=80=82=E4=B8=A5= =E7=A6=81=E5=AF=B9=E6=9C=AC=E9=82=AE=E4=BB=B6=E6=88=96=E5=85=B6=E5=86=85= =E5=AE=B9=E5=81=9A=E4=BB=BB=E4=BD=95=E6=9C=AA=E7=BB=8F=E6=8E=88=E6=9D=83= =E7=9A=84=E6=9F=A5=E9=98=85=E3=80=81=E4=BD=BF=E7=94=A8=E3=80=81=E5=A4=8D= =E5=88=B6=E6=88=96=E8=BD=AC=E5=8F=91=E3=80=82
CONFIDENTIAL NOTE:=
This email contains confidential or legally privilege= d information and is for the sole use of its intended recipient. Any unauth= orized review, use, copying or forwarding of this email or the content of t= his email is strictly prohibited.

 

=
=E4=BF=9D=E5=AF=86=E5=A3=B0=E6= = =98=8E=EF=BC=9A
<= div style=3D"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "= Times New Roman", serif; line-height: 10pt;" class=3D"">=E6=9C=AC=E9=82=AE=E4=BB=B6=E5=90=AB=E6=9C=89=E4= = =BF=9D=E5=AF=86=E6=88=96=E4=B8=93=E6=9C=89=E4=BF=A1=E6=81=AF=EF=BC=8C=E4= =BB=85=E4=BE=9B=E6=8C=87=E5=AE=9A=E6=94=B6=E4=BB=B6=E4=BA=BA=E4=BD=BF=E7= =94=A8=E3=80=82=E4=B8=A5=E7=A6=81=E5=AF=B9=E6=9C=AC=E9=82=AE=E4=BB=B6=E6= =88=96=E5=85=B6=E5=86=85=E5=AE=B9=E5=81=9A=E4=BB=BB=E4=BD=95=E6=9C=AA=E7= =BB=8F=E6=8E=88=E6=9D=83=E7=9A=84=E6=9F=A5=E9=98=85=E3=80=81=E4=BD=BF=E7= =94=A8=E3=80=81=E5=A4=8D=E5=88=B6=E6=88=96=E8=BD=AC=E5=8F=91=E3=80=82
CONFIDENTIAL NOTE:
This email contains confident= ial or legally privileged information and is for the sole use of its intend= ed recipient. Any unauthorized review, use, copying or forwarding of this e= mail or the content of this email is strictly prohibited.
 

<= /blockquote>

--Apple-Mail=_85C7A5D1-DC33-48E8-A30E-365E663974CA--