OSDN Git Service

fix extended identifiers to comply with the Darwin ABI.
authoriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Feb 2012 08:21:46 +0000 (08:21 +0000)
committeriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Feb 2012 08:21:46 +0000 (08:21 +0000)
gcc:

* config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
extended identifiers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184302 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/darwin.h

index d4722a3..7cc1ecb 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-16  Iain Sandoe  <iains@gcc.gnu.org>
+
+       * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
+       extended identifiers.
+
 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/51929
index 2425332..3e6efd7 100644 (file)
@@ -615,7 +615,7 @@ int darwin_label_is_anonymous_local_objc_name (const char *name);
        else if (!strncmp (xname, ".objc_class_name_", 17))                  \
         fprintf (FILE, "%s", xname);                                        \
        else if (xname[0] != '"' && name_needs_quotes (xname))               \
-        fprintf (FILE, "\"%s\"", xname);                                    \
+        asm_fprintf (FILE, "\"%U%s\"", xname);                              \
        else                                                                 \
          asm_fprintf (FILE, "%U%s", xname);                                 \
   } while (0)