diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2010-03-31 09:19:20 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2010-03-31 09:19:20 +0000 |
commit | f0c01ffd7723295ca7ca90a7e87351c8fb6f20e2 (patch) | |
tree | 1297185d6c10c8e9f9bb9a7ac745bf4d8d19eb84 /gcc/config/sol2.h | |
parent | 4a2f22ff85f6497078c1f56d2451663894847aa6 (diff) | |
download | gcc-f0c01ffd7723295ca7ca90a7e87351c8fb6f20e2.zip gcc-f0c01ffd7723295ca7ca90a7e87351c8fb6f20e2.tar.gz gcc-f0c01ffd7723295ca7ca90a7e87351c8fb6f20e2.tar.bz2 |
sol2.c: Include output.h.
gcc:
* config/sol2.c: Include output.h.
(solaris_assemble_visibility): New function.
* config/t-sol2 (sol2.o): Add output.h dependency.
* config/sol2-protos.h (solaris_assemble_visibility): Declare.
* config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
Redefine.
gcc/testsuite:
* g++.dg/ext/visibility/pragma-override1.C: Allow for .hidden in
assembler output on *-*-solaris2*.
* g++.dg/ext/visibility/pragma-override2.C: Likewise.
From-SVN: r157856
Diffstat (limited to 'gcc/config/sol2.h')
-rw-r--r-- | gcc/config/sol2.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h index a20c3b9..d77c0f8 100644 --- a/gcc/config/sol2.h +++ b/gcc/config/sol2.h @@ -284,6 +284,11 @@ __enable_execute_stack (void *addr) \ } \ while (0) +#ifndef USE_GAS +#undef TARGET_ASM_ASSEMBLE_VISIBILITY +#define TARGET_ASM_ASSEMBLE_VISIBILITY solaris_assemble_visibility +#endif + extern GTY(()) tree solaris_pending_aligns; extern GTY(()) tree solaris_pending_inits; extern GTY(()) tree solaris_pending_finis; |