This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Support for #pragma redefine_external on Solaris
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Ian Lance Taylor <ian at airs dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>, <loewis at informatik dot hu-berlin dot de>
- Date: Thu, 29 Nov 2001 11:20:03 +0000 (GMT)
- Subject: Re: Support for #pragma redefine_external on Solaris
On 28 Nov 2001, Ian Lance Taylor wrote:
> 2001-11-28 Ian Lance Taylor <ian@airs.com>
>
> * config/sparc/sol2.h (CPP_PREDEFINES): Define
> __PRAGMA_REDEFINE_EXTNAME.
> (REGISTER_TARGET_PRAGMAS): Define.
> (HANDLE_PRAGMA_REDEFINE_EXTNAME): Define.
> (ASM_OUTPUT_EXTERNAL): Define.
> * config/sparc/sparc.c: Include "cpplib.h", "c-pragma.h",
> "c-lex.h".
> (handle_pragma_redefine_extname): New function.
> (sparc_redefine_external): New function.
> (sparc_add_gc_roots): Add redefine_extname_list.
> * config/sparc/sparc-protos.h (sparc_redefine_external): Declare.
> (handle_pragma_redefine_extname): Declare.
Documentation in the Pragmas section of extend.texi is needed.
--
Joseph S. Myers
jsm28@cam.ac.uk