Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gmon Don't warn about frame pointer use for clang e...



details:   https://anonhg.NetBSD.org/src/rev/08cb93bf5d09
branches:  trunk
changeset: 379386:08cb93bf5d09
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun May 30 02:24:05 2021 +0000

description:
Don't warn about frame pointer use for clang either.

diffstat:

 lib/libc/gmon/Makefile.inc |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r fb91e4399678 -r 08cb93bf5d09 lib/libc/gmon/Makefile.inc
--- a/lib/libc/gmon/Makefile.inc        Sun May 30 02:23:25 2021 +0000
+++ b/lib/libc/gmon/Makefile.inc        Sun May 30 02:24:05 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.14 2019/01/06 18:14:10 christos Exp $
+#      $NetBSD: Makefile.inc,v 1.15 2021/05/30 02:24:05 joerg Exp $
 #      @(#)Makefile.inc        8.1 (Berkeley) 6/4/93
 
 # gmon sources
@@ -23,6 +23,7 @@ COPTS.mcount.c+=${${ACTIVE_CXX} == "gcc"
 # The usage of __builtin_frame_address(1) should be OK.
 COPTS.mcount.c+=${${ACTIVE_CXX} == "gcc":? -Wno-error=frame-address :}
 .endif
+COPTS.mcount.c+=${${ACTIVE_CC} == "clang":? -Wno-error=frame-address :}
 
 
 # mcount and gmon cannot be compiled with profiling



Home | Main Index | Thread Index | Old Index