[PATCH, alpha]: Fix gcc.dg/visibility.*

Uros Bizjak ubizjak@gmail.com
Mon Dec 22 17:51:00 GMT 2008


Hello!

For some reason, alpha does not use elfos.h. Attached patch adds 
ASM_OUTPUT_EXTERNAL to alpha's private elfos.h copy at alpha/elf.h

2008-12-22  Uros Bizjak  <ubizjak@gmail.com>

    * config/alpha/alpha.h (ASM_OUTPUT_EXTERNAL): New macro.

Patch was bootstrapped and regression tested on 
alphaev56-unknown-linux-gnu. Patch was committed to mainline as obvious.

Uros.

Index: gcc/config/alpha/elf.h
===================================================================
--- gcc/config/alpha/elf.h    (revision 142883)
+++ gcc/config/alpha/elf.h    (working copy)
@@ -423,3 +423,13 @@
 #if defined(HAVE_LD_EH_FRAME_HDR)
 #define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
 #endif
+
+/* A C statement (sans semicolon) to output to the stdio stream STREAM
+   any text necessary for declaring the name of an external symbol
+   named NAME which is referenced in this compilation but not defined.
+   It is needed to properly support non-default visibility.  */
+
+#ifndef ASM_OUTPUT_EXTERNAL
+#define ASM_OUTPUT_EXTERNAL(FILE, DECL, NAME) \
+  default_elf_asm_output_external (FILE, DECL, NAME)
+#endif




More information about the Gcc-patches mailing list