PERFORCE change 133160 for review
Warner Losh
imp at FreeBSD.org
Sat Jan 12 20:43:10 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=133160
Change 133160 by imp at 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
More information about the p4-projects
mailing list