summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-04-05 17:44:16 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-04-05 17:44:16 +0000
commitaab76be8fb2bbdc1fb6f0e63cb9500508da59da5 (patch)
tree10d7619b98868dc42a7f11c73b8ca1df31d471fe /gnu
parentcea8197c7dfaf7a62d1b667c7b3bf8a8c905c48b (diff)
Make sure all public declarations are declared .globl; remove code to
declare functions .export, which is now redundant. This makes symbol aliases created with attribute("alias") visible. ok deraadt@
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/gcc/gcc/config/pa/openbsd.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/gnu/usr.bin/gcc/gcc/config/pa/openbsd.h b/gnu/usr.bin/gcc/gcc/config/pa/openbsd.h
index 5741fb91ec8..a161ac9c400 100644
--- a/gnu/usr.bin/gcc/gcc/config/pa/openbsd.h
+++ b/gnu/usr.bin/gcc/gcc/config/pa/openbsd.h
@@ -162,6 +162,9 @@ do { \
(DECL) && TREE_CODE (DECL) == FUNCTION_DECL ? "ax" : \
(DECL) && DECL_READONLY_SECTION (DECL, RELOC) ? "a" : "aw")
+/* Use the default. */
+#undef TARGET_ASM_GLOBALIZE_LABEL
+
/* FIXME: Hacked from the <elfos.h> one so that we avoid multiple
labels in a function declaration (since pa.c seems determined to do
it differently) */
@@ -170,12 +173,6 @@ do { \
#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \
do \
{ \
- if (TREE_PUBLIC (DECL)) \
- { \
- fputs ("\t.export ", FILE); \
- assemble_name (FILE, NAME); \
- fputs (", entry\n", FILE); \
- } \
ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "function"); \
ASM_DECLARE_RESULT (FILE, DECL_RESULT (DECL)); \
} \