Date: Sun, 13 Jan 2008 04:43:09 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 133160 for review Message-ID: <200801130443.m0D4h935050203@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=133160 Change 133160 by imp@imp_mbp on 2008/01/13 04:42:45 Remove redindant declaration of WEAK_REFERENCE. Other #defines don't need to be defined only when compiling elf. Assume __STDC__ since we don't support any compilers that don't set it. This is semi-lame at this stage of the game, but I was on the plane and couldn't resist. Affected files ... .. //depot/projects/mips2-jnpr/src/sys/mips/include/asm.h#7 edit Differences ... ==== //depot/projects/mips2-jnpr/src/sys/mips/include/asm.h#7 (text+ko) ==== @@ -121,25 +121,11 @@ #define AENT(x) #endif -#ifdef __ELF__ -#define WEAK_ALIAS(alias,sym) \ - .weak alias; \ - alias = sym -#endif - /* * WARN_REFERENCES: create a warning if the specified symbol is referenced - * (ELF only, and thus, no leading underscores). */ -#ifdef __ELF__ -#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 /* __ELF__ */ /* * These are temp registers whose names can be used in either the old @@ -164,11 +150,7 @@ #ifdef __ELF__ # define _C_LABEL(x) x #else -# ifdef __STDC__ # define _C_LABEL(x) _ ## x -# else -# define _C_LABEL(x) _/**/x -# endif #endif /* @@ -287,15 +269,9 @@ .ent _C_LABEL(x),0; \ EXPORT(x); \ -#ifdef __STDC__ #define VECTOR_END(x) \ EXPORT(x ## End); \ END(x) -#else -#define VECTOR_END(x) \ - EXPORT(x/**/End); \ - END(x) -#endif #define KSEG0TEXT_START #define KSEG0TEXT_END
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801130443.m0D4h935050203>