From 9153589571987706e37e83f9bb06b232774bfe9e Mon Sep 17 00:00:00 2001 From: Torbjorn Granlund Date: Thu, 20 Jan 1994 00:34:47 +0000 Subject: [PATCH] (ASM_GLOBALIZE_LABEL): Don't globalize function labels here. From-SVN: r6400 --- gcc/config/pa/pa.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index f8c6556fc26..5e382abe9d9 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -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. */