svn commit: r297836 - head/lib/msun/tests

Ngie Cooper yaneurabeya at gmail.com
Fri Apr 22 22:02:17 UTC 2016


On Mon, Apr 11, 2016 at 8:30 PM, Bryan Drewery <bdrewery at freebsd.org> wrote:
> On 4/11/2016 2:15 PM, Garrett Cooper wrote:
>> Author: ngie
>> Date: Mon Apr 11 21:15:48 2016
>> New Revision: 297836
>> URL: https://svnweb.freebsd.org/changeset/base/297836
>>
>> Log:
>>   Fix appending -O0 to CFLAGS
>
> This seems to be a NOP.
>
>>
>>   The previous method would completely nerf CFLAGS once bsd.progs.mk had
>
> I'm not seeing 'completely nerf' in a diff:
>> -/usr/local/bin/ccache cc -O2 -pipe -DHAVE_FENV_H -D__HAVE_LONG_DOUBLE -DLDBL_PREC=64   -O0 -g -std=iso9899:1999 -fstack-protector-strong -Wno-unknown-pragmas   -fcolor-diagnostics -Qunused-arguments  -c /root/git/freebsd/lib/msun/tests/nearbyint_test.c -o nearbyint_test.o
>> -cc -O2 -pipe -DHAVE_FENV_H -D__HAVE_LONG_DOUBLE -DLDBL_PREC=64 -O0 -g -std=iso9899:1999 -fstack-protector-strong -Wno-unknown-pragmas -fcolor-diagnostics -Qunused-arguments  -o nearbyint_test.full nearbyint_test.o   -lm
>> +/usr/local/bin/ccache cc -O2 -pipe -DHAVE_FENV_H -D__HAVE_LONG_DOUBLE -O0 -DLDBL_PREC=64   -g -std=iso9899:1999 -fstack-protector-strong -Wno-unknown-pragmas   -fcolor-diagnostics -Qunused-arguments  -c /root/git/freebsd/lib/msun/tests/nearbyint_test.c -o nearbyint_test.o
>> +cc -O2 -pipe -DHAVE_FENV_H -D__HAVE_LONG_DOUBLE -O0 -DLDBL_PREC=64 -g -std=iso9899:1999 -fstack-protector-strong -Wno-unknown-pragmas -fcolor-diagnostics -Qunused-arguments  -o nearbyint_test.full nearbyint_test.o   -lm
>
> It's simply moving it earlier, since it comes before the CFLAGS+=-DLDBL_PREC
>
> I diff'd the entire output and all were the same as this.
>
> Am I missing something?

    What prompted me to do this (and brought me to this incorrect
conclusion) originally is that I was trying to figure out why make
-VCFLAGS.fminmax_test wasn't outputting -O* the way I thought it
would. After doing some digging, yes... it was a silly nop :(... in
retrospect (jhb was right) I shouldn't have MFCed it :/. I'll "revert"
the change in the next go-around with this Makefile..
Thanks,
-Ngie


More information about the svn-src-all mailing list