Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make make(1): don't optimize when measuring the code...



details:   https://anonhg.NetBSD.org/src/rev/3d294faa17d2
branches:  trunk
changeset: 974985:3d294faa17d2
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Aug 19 06:30:37 2020 +0000

description:
make(1): don't optimize when measuring the code coverage

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96622

diffstat:

 usr.bin/make/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 55ebdb353ca1 -r 3d294faa17d2 usr.bin/make/Makefile
--- a/usr.bin/make/Makefile     Wed Aug 19 06:11:49 2020 +0000
+++ b/usr.bin/make/Makefile     Wed Aug 19 06:30:37 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.89 2020/08/15 01:49:07 rillig Exp $
+#      $NetBSD: Makefile,v 1.90 2020/08/19 06:30:37 rillig Exp $
 #      @(#)Makefile    5.2 (Berkeley) 12/28/90
 
 PROG=  make
@@ -45,7 +45,7 @@
 USE_COVERAGE?= no              # works only with gcc; clang9 fails to link
 .if ${USE_COVERAGE} == "yes"
 GCOV?=         gcov
-COPTS+=                --coverage -O2 -ggdb
+COPTS+=                --coverage -O0 -ggdb
 LDADD+=                --coverage
 .endif
 CLEANFILES+=   *.gcda *.gcno *.gcov



Home | Main Index | Thread Index | Old Index