(USER_LABEL_PREFIX): Redefine.
authorRichard Kenner <kenner@gcc.gnu.org>
Sat, 21 Sep 1996 11:08:05 +0000 (07:08 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Sat, 21 Sep 1996 11:08:05 +0000 (07:08 -0400)
(ASM_OUTPUT_LABELREF) Use USER_LABEL_PREFIX.

From-SVN: r12754

gcc/config/nextstep.h

index 667bd2bf7ee2c898f4829fd87981fb62a5aa50c6..8ef3001ec7f0cf4e5dbb135f81412f6e2e83758e 100644 (file)
@@ -1,5 +1,5 @@
-/* nextstep.h -- operating system specific defines to be used when
-   targeting GCC for NeXTSTEP.
+/* Operating system specific defines to be used when targeting GCC
+   for NeXTSTEP.
    Copyright (C) 1989, 90-93, 1996 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
@@ -254,6 +254,11 @@ Boston, MA 02111-1307, USA.  */
                  (CLASS_NAME), (SEL_NAME));                            \
      } while (0)
 
+/* The prefix to add to user-visible assembler symbols. */
+
+#undef USER_LABEL_PREFIX
+#define USER_LABEL_PREFIX "_"
+
 /* Wrap new method names in quotes so the assembler doesn't gag.
    Make Objective-C internal symbols local.  */
 
@@ -263,7 +268,7 @@ Boston, MA 02111-1307, USA.  */
        else if (!strncmp (NAME, "_OBJC_", 6)) fprintf (FILE, "L%s", NAME);   \
        else if (!strncmp (NAME, ".objc_class_name_", 17))              \
         fprintf (FILE, "%s", NAME);                                    \
-       else fprintf (FILE, "_%s", NAME); } while (0)
+       else fprintf (FILE, "%s%s", USER_LABEL_PREFIX, NAME); } while (0)
 
 #undef ALIGN_ASM_OP
 #define ALIGN_ASM_OP           ".align"