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/c3b55511b71f
branches:  trunk
changeset: 937446:c3b55511b71f
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 c5f586255ff8 -r c3b55511b71f 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