From: miod Date: Tue, 30 Aug 2022 16:26:29 +0000 (+0000) Subject: Remove long unused WARN_REFERENCES macro; idea guenther@, ok jsg@ jca@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=bdbc9fc8c8ce7e6b8811341237302307b1bd1b0b;p=openbsd Remove long unused WARN_REFERENCES macro; idea guenther@, ok jsg@ jca@ --- diff --git a/sys/arch/alpha/include/asm.h b/sys/arch/alpha/include/asm.h index c115cba4a97..baf9cacce12 100644 --- a/sys/arch/alpha/include/asm.h +++ b/sys/arch/alpha/include/asm.h @@ -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__ */ diff --git a/sys/arch/amd64/include/asm.h b/sys/arch/amd64/include/asm.h index fbcb748f883..f7321821985 100644 --- a/sys/arch/amd64/include/asm.h +++ b/sys/arch/amd64/include/asm.h @@ -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 $ */ /*- @@ -179,17 +179,6 @@ .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 ; \ diff --git a/sys/arch/arm/include/asm.h b/sys/arch/arm/include/asm.h index 27e55be5b6f..d67f1bc9a28 100644 --- a/sys/arch/arm/include/asm.h +++ b/sys/arch/arm/include/asm.h @@ -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 $ */ /* @@ -94,14 +94,4 @@ .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_ */ diff --git a/sys/arch/arm64/include/asm.h b/sys/arch/arm64/include/asm.h index 24b0a1ee998..df3ee34ad67 100644 --- a/sys/arch/arm64/include/asm.h +++ b/sys/arch/arm64/include/asm.h @@ -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 $ */ /* @@ -147,14 +147,4 @@ .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_ */ diff --git a/sys/arch/i386/include/asm.h b/sys/arch/i386/include/asm.h index baa6dfec34d..0504d196be7 100644 --- a/sys/arch/i386/include/asm.h +++ b/sys/arch/i386/include/asm.h @@ -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 $ */ /*- @@ -82,12 +82,6 @@ .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 diff --git a/sys/arch/riscv64/include/asm.h b/sys/arch/riscv64/include/asm.h index 44ecf69c88d..b9d78f527ff 100644 --- a/sys/arch/riscv64/include/asm.h +++ b/sys/arch/riscv64/include/asm.h @@ -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 @@ -104,16 +104,6 @@ .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 diff --git a/sys/arch/sh/include/asm.h b/sys/arch/sh/include/asm.h index 2ab2b3cff9c..6192b76db5e 100644 --- a/sys/arch/sh/include/asm.h +++ b/sys/arch/sh/include/asm.h @@ -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 $ */ /*- @@ -188,7 +188,4 @@ .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_ */ diff --git a/sys/arch/sparc64/include/asm.h b/sys/arch/sparc64/include/asm.h index c94c4d12fcc..2d8ffffc7b2 100644 --- a/sys/arch/sparc64/include/asm.h +++ b/sys/arch/sparc64/include/asm.h @@ -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 $ */ /* @@ -107,15 +107,4 @@ .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_ */