[ECOS] Hitachi SH3 port questions
Jesper Skov
jskov@redhat.com
Fri Dec 8 15:10:00 GMT 2000
>>>>> "Jesper" == Jesper Skov <jskov@redhat.com> writes:
Jesper> ... It's actually the CYGBLD_ATTRIB_ASM_ALIAS macro that's
Jesper> broken. Surely it should be:
[snip]
I think this is it. If you agree, please apply it. I'm headed for bed.
Cheers,
Jesper
Index: ChangeLog
===================================================================
RCS file: /local/cvsfiles/ecc/ecc/infra/current/ChangeLog,v
retrieving revision 1.91
diff -u -5 -r1.91 ChangeLog
--- ChangeLog 2000/09/11 01:42:29 1.91
+++ ChangeLog 2000/12/08 23:09:13
@@ -1,5 +1,10 @@
+2000-12-09 Jesper Skov <jskov@redhat.com>
+
+ * include/cyg_type.h (CYGBLD_ATTRIB_ASM_ALIAS): Mangle assembler
+ symbols properly.
+
2000-09-08 Jonathan Larmour <jlarmour@redhat.com>
* include/cyg_type.h (CYGBLD_ATTRIB_SECTION): Don't stringify arg.
2000-09-04 Jonathan Larmour <jlarmour@redhat.com>
Index: include/cyg_type.h
===================================================================
RCS file: /local/cvsfiles/ecc/ecc/infra/current/include/cyg_type.h,v
retrieving revision 1.41
diff -u -5 -r1.41 cyg_type.h
--- include/cyg_type.h 2000/09/11 01:42:29 1.41
+++ include/cyg_type.h 2000/12/08 23:08:53
@@ -291,12 +291,14 @@
__attribute__ ((alias (#__symbol__)))
// This effectively does the reverse of the previous macro. It defines
// a name that the attributed variable or function will actually have
// in assembler.
+#define __Str(x) #x
+#define __Xstr(x) __Str(x)
# define CYGBLD_ATTRIB_ASM_ALIAS(__symbol__) \
- __asm__ ( #__symbol__ )
+ __asm__ ( __Xstr( CYG_LABEL_DEFN( __symbol__ ) ) )
// Shows that a function returns the same value when given the same args, but
// note this can't be used if there are pointer args
# define CYGBLD_ATTRIB_CONST __attribute__((const))
More information about the Ecos-discuss
mailing list