Browse Source

allow arches to easily override asm-line-sep, move cris over to new style, and have hppa use it now

Mike Frysinger 18 years ago
parent
commit
defb9e49f9

+ 3 - 1
include/libc-symbols.h

@@ -131,7 +131,9 @@
 # endif
 #endif
 
-#ifndef ASM_LINE_SEP
+#ifdef __UCLIBC_ASM_LINE_SEP__
+# define ASM_LINE_SEP __UCLIBC_ASM_LINE_SEP__
+#else
 # define ASM_LINE_SEP ;
 #endif
 

+ 1 - 1
libc/sysdeps/linux/cris/bits/uClibc_arch_features.h

@@ -40,6 +40,6 @@
 #define __UCLIBC_HAVE_SIGNED_ZERO__
 
 /* lovely */
-#define ASM_LINE_SEP @
+#define __UCLIBC_ASM_LINE_SEP__ @
 
 #endif /* _BITS_UCLIBC_ARCH_FEATURES_H */

+ 3 - 0
libc/sysdeps/linux/hppa/bits/uClibc_arch_features.h

@@ -38,4 +38,7 @@
 /* define if target supports IEEE signed zero floats */
 #define __UCLIBC_HAVE_SIGNED_ZERO__
 
+/* the default ; is a comment on hppa */
+#define __UCLIBC_ASM_LINE_SEP__ !
+
 #endif /* _BITS_UCLIBC_ARCH_FEATURES_H */