Remove long unused WARN_REFERENCES macro; idea guenther@, ok jsg@ jca@
authormiod <miod@openbsd.org>
Tue, 30 Aug 2022 16:26:29 +0000 (16:26 +0000)
committermiod <miod@openbsd.org>
Tue, 30 Aug 2022 16:26:29 +0000 (16:26 +0000)
sys/arch/alpha/include/asm.h
sys/arch/amd64/include/asm.h
sys/arch/arm/include/asm.h
sys/arch/arm64/include/asm.h
sys/arch/i386/include/asm.h
sys/arch/riscv64/include/asm.h
sys/arch/sh/include/asm.h
sys/arch/sparc64/include/asm.h

index c115cba..baf9cac 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm.h,v 1.14 2017/06/29 17:36:16 deraadt Exp $ */
+/* $OpenBSD: asm.h,v 1.15 2022/08/30 16:26:29 miod Exp $ */
 /* $NetBSD: asm.h,v 1.23 2000/06/23 12:18:45 kleink Exp $ */
 
 /* 
@@ -623,15 +623,3 @@ label:     ASCIZ msg;                                              \
 #define WEAK_ALIAS(alias,sym)                                  \
        .weak alias;                                            \
        alias = sym
-
-/*
- * WARN_REFERENCES: create a warning if the specified symbol is referenced
- * (ELF only).
- */
-#ifdef __STDC__
-#define        WARN_REFERENCES(_sym,_msg)                              \
-       .section .gnu.warning. ## _sym ; .ascii _msg ; .text
-#else
-#define        WARN_REFERENCES(_sym,_msg)                              \
-       .section .gnu.warning./**/_sym ; .ascii _msg ; .text
-#endif /* __STDC__ */
index fbcb748..f732182 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: asm.h,v 1.21 2022/01/01 23:47:14 guenther Exp $       */
+/*     $OpenBSD: asm.h,v 1.22 2022/08/30 16:26:29 miod Exp $   */
 /*     $NetBSD: asm.h,v 1.2 2003/05/02 18:05:47 yamt Exp $     */
 
 /*-
        .weak alias;                                                    \
        alias = sym
 
-/* XXXfvdl do not use stabs here */
-#ifdef __STDC__
-#define        WARN_REFERENCES(sym,msg)                                        \
-       .stabs msg ## ,30,0,0,0 ;                                       \
-       .stabs __STRING(_C_LABEL(sym)) ## ,1,0,0,0
-#else
-#define        WARN_REFERENCES(sym,msg)                                        \
-       .stabs msg,30,0,0,0 ;                                           \
-       .stabs __STRING(sym),1,0,0,0
-#endif /* __STDC__ */
-
 /* generic retpoline ("return trampoline") generator */
 #define        JMP_RETPOLINE(reg)              \
                call    69f             ; \
index 27e55be..d67f1bc 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: asm.h,v 1.11 2022/05/24 17:15:22 guenther Exp $       */
+/*     $OpenBSD: asm.h,v 1.12 2022/08/30 16:26:29 miod Exp $   */
 /*     $NetBSD: asm.h,v 1.4 2001/07/16 05:43:32 matt Exp $     */
 
 /*
        .weak alias;                                                    \
        alias = sym
 
-#ifdef __STDC__
-#define        WARN_REFERENCES(sym,msg)                                        \
-       .stabs msg ## ,30,0,0,0 ;                                       \
-       .stabs __STRING(_C_LABEL(sym)) ## ,1,0,0,0
-#else
-#define        WARN_REFERENCES(sym,msg)                                        \
-       .stabs msg,30,0,0,0 ;                                           \
-       .stabs __STRING(_/**/sym),1,0,0,0
-#endif /* __STDC__ */
-
 #endif /* !_ARM_ASM_H_ */
index 24b0a1e..df3ee34 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: asm.h,v 1.9 2022/05/24 22:34:02 guenther Exp $        */
+/*     $OpenBSD: asm.h,v 1.10 2022/08/30 16:26:29 miod Exp $   */
 /*     $NetBSD: asm.h,v 1.4 2001/07/16 05:43:32 matt Exp $     */
 
 /*
        .weak alias;                                                    \
        alias = sym
 
-#ifdef __STDC__
-#define        WARN_REFERENCES(sym,msg)                                        \
-       .stabs msg ## ,30,0,0,0 ;                                       \
-       .stabs __STRING(_C_LABEL(sym)) ## ,1,0,0,0
-#else
-#define        WARN_REFERENCES(sym,msg)                                        \
-       .stabs msg,30,0,0,0 ;                                           \
-       .stabs __STRING(sym),1,0,0,0
-#endif
-
 #endif /* !_MACHINE_ASM_H_ */
index baa6dfe..0504d19 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: asm.h,v 1.17 2022/08/27 08:26:15 tb Exp $     */
+/*     $OpenBSD: asm.h,v 1.18 2022/08/30 16:26:29 miod Exp $   */
 /*     $NetBSD: asm.h,v 1.7 1994/10/27 04:15:56 cgd Exp $      */
 
 /*-
        .weak alias; \
        alias = sym
 
-/*
- * WARN_REFERENCES: create a warning if the specified symbol is referenced
- */
-#define WARN_REFERENCES(_sym,_msg)     \
-       .section .gnu.warning. ## _sym ; .ascii _msg ; .text
-
 /* let kernels and others override entrypoint alignment */
 #ifndef _ALIGN_TEXT
 # define _ALIGN_TEXT .align 2, 0x90
index 44ecf69..b9d78f5 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: asm.h,v 1.4 2022/02/24 07:08:21 guenther Exp $        */
+/*     $OpenBSD: asm.h,v 1.5 2022/08/30 16:26:29 miod Exp $    */
 
 /*
  * Copyright (c) 2020 Brian Bamsch <bbamsch@google.com>
        .weak alias;                                                    \
        alias = sym
 
-#ifdef __STDC__
-#define        WARN_REFERENCES(sym,msg)                                        \
-       .stabs msg ## ,30,0,0,0 ;                                       \
-       .stabs __STRING(_C_LABEL(sym)) ## ,1,0,0,0
-#else
-#define        WARN_REFERENCES(sym,msg)                                        \
-       .stabs msg,30,0,0,0 ;                                           \
-       .stabs __STRING(sym),1,0,0,0
-#endif
-
 #define        WEAK_REFERENCE(sym, alias)                              \
        .weak alias;                                            \
        .set alias,sym
index 2ab2b3c..6192b76 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: asm.h,v 1.8 2018/11/11 20:15:24 guenther Exp $        */
+/*     $OpenBSD: asm.h,v 1.9 2022/08/30 16:26:29 miod Exp $    */
 /*     $NetBSD: asm.h,v 1.25 2006/01/20 22:02:40 christos Exp $        */
 
 /*-
        .weak _C_LABEL(alias);                                          \
        _C_LABEL(alias) = _C_LABEL(sym)
 
-#define        WARN_REFERENCES(_sym,_msg)                              \
-       .section .gnu.warning._sym; .ascii _msg; .previous
-
 #endif /* !_SH_ASM_H_ */
index c94c4d1..2d8ffff 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: asm.h,v 1.14 2022/01/01 23:47:14 guenther Exp $       */
+/*     $OpenBSD: asm.h,v 1.15 2022/08/30 16:26:29 miod Exp $   */
 /*     $NetBSD: asm.h,v 1.15 2000/08/02 22:24:39 eeh Exp $ */
 
 /*
        .weak alias;                                                    \
        alias = sym
 
-/*
- * WARN_REFERENCES: create a warning if the specified symbol is referenced.
- */
-#ifdef __STDC__
-#define        WARN_REFERENCES(_sym,_msg)                              \
-       .section .gnu.warning. ## _sym ; .ascii _msg ; .text
-#else
-#define        WARN_REFERENCES(_sym,_msg)                              \
-       .section .gnu.warning./**/_sym ; .ascii _msg ; .text
-#endif /* __STDC__ */
-
 #endif /* _MACHINE_ASM_H_ */