On Mon, Apr 11, 2016 at 8:30 PM, Bryan Drewery <bdrew...@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 _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"