(ASM_GLOBALIZE_LABEL): Don't globalize function labels here.
authorTorbjorn Granlund <tege@gnu.org>
Thu, 20 Jan 1994 00:34:47 +0000 (00:34 +0000)
committerTorbjorn Granlund <tege@gnu.org>
Thu, 20 Jan 1994 00:34:47 +0000 (00:34 +0000)
From-SVN: r6400

gcc/config/pa/pa.h

index f8c6556..5e382ab 100644 (file)
@@ -1712,11 +1712,16 @@ readonly_data ()                                                        \
      } while (0)
 
 #define ASM_GLOBALIZE_LABEL(FILE, NAME)                                        \
-  do { fputs ("\t.EXPORT ", FILE); assemble_name (FILE, NAME);         \
-       if (FUNCTION_NAME_P (NAME))                                     \
-        fputs (",CODE\n", FILE);                                       \
-       else                                                            \
-        fputs (",DATA\n", FILE);} while (0)
+  do {                                                                 \
+    /* We only handle DATA objects here, functions are globalized in   \
+       ASM_DECLARE_FUNCTION_NAME.  */                                  \
+    if (! FUNCTION_NAME_P (NAME))                                      \
+      {                                                                        \
+       fputs ("\t.EXPORT ", FILE);                                     \
+       assemble_name (FILE, NAME);                                     \
+       fputs (",DATA\n", FILE);                                        \
+      }                                                                        \
+  } while (0)
 
 /* This is how to output a reference to a user-level label named NAME.
    `assemble_name' uses this.  */