m68k: remove NO_UNDERSCORES
authorAndreas Schwab <schwab@linux-m68k.org>
Sun, 8 Jan 2012 12:47:30 +0000 (13:47 +0100)
committerAndreas Schwab <schwab@linux-m68k.org>
Sun, 8 Jan 2012 13:23:09 +0000 (14:23 +0100)
ChangeLog.m68k
sysdeps/m68k/sysdep.h

index 3190368..459f9bc 100644 (file)
@@ -1,7 +1,8 @@
 2012-01-08  Andreas Schwab  <schwab@linux-m68k.org>
 
-       * sysdeps/m68k/sysdep.h: Remove non-ELF support.
-       * sysdeps/m68k/asm-syntax.h: Likewise.
+       * sysdeps/m68k/asm-syntax.h: Remove non-ELF support.
+       * sysdeps/m68k/sysdep.h: Likewise.
+       (NO_UNDERSCORES): Don't define.
 
 2012-01-07  Andreas Schwab  <schwab@linux-m68k.org>
 
index 2888781..f36b584 100644 (file)
 # define ASM_TYPE_DIRECTIVE(name,typearg) .type name,typearg
 # define ASM_SIZE_DIRECTIVE(name) .size name,.-name
 
-/* In ELF C symbols are asm symbols.  */
-# undef NO_UNDERSCORES
-# define NO_UNDERSCORES
-
 /* Define an entry point visible from C.
 
    There is currently a bug in gdb which prevents us from specifying
   move.l %fp, -(%sp);                                                        \
   cfi_adjust_cfa_offset (4);  cfi_rel_offset (%fp, 0);                       \
   move.l %sp, %fp;                                                           \
-  jbsr JUMPTARGET (mcount);                                                  \
+  jbsr JUMPTARGET (_mcount);                                                 \
   move.l (%sp)+, %fp;                                                        \
   cfi_adjust_cfa_offset (-4); cfi_restore (%fp);
 # else
 #  define CALL_MCOUNT          /* Do nothing.  */
 # endif
 
-# ifdef        NO_UNDERSCORES
-/* Since C identifiers are not normally prefixed with an underscore
-   on this system, the asm identifier `syscall_error' intrudes on the
-   C name space.  Make sure we use an innocuous name.  */
-#  define syscall_error        __syscall_error
-#  define mcount       _mcount
-# endif
-
 # define PSEUDO(name, syscall_name, args)                                    \
-  .globl syscall_error;                                                              \
+  .globl __syscall_error;                                                    \
   ENTRY (name)                                                               \
     DO_CALL (syscall_name, args);                                            \
-    jcc JUMPTARGET(syscall_error)
+    jcc JUMPTARGET(__syscall_error)
 
 # undef PSEUDO_END
 # define PSEUDO_END(name)                                                    \