Module Name: src
Committed By: rillig
Date: Wed Aug 19 06:30:37 UTC 2020
Modified Files:
src/usr.bin/make: Makefile
Log Message:
make(1): don't optimize when measuring the code coverage
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96622
To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/usr.bin/make/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/Makefile
diff -u src/usr.bin/make/Makefile:1.89 src/usr.bin/make/Makefile:1.90
--- src/usr.bin/make/Makefile:1.89 Sat Aug 15 01:49:07 2020
+++ src/usr.bin/make/Makefile Wed Aug 19 06:30:37 2020
@@ -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 @@ HDRS+= trace.h
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