This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Shared-library constructor and destructor routines on NetBSD
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Matt Kraai <kraai at alumni dot carnegiemellon dot edu>
- Cc: Richard Earnshaw <Richard dot Earnshaw at arm dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 14 Dec 2001 11:04:11 +0000
- Subject: Re: Shared-library constructor and destructor routines on NetBSD
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> Howdy,
>
> Richard Earnshaw wrote:
> > ! #define COLLECT_SHARED_INIT_FUNC(STREAM,FUNC) \
> > ! do { \
> > ! fprintf ((STREAM), "void __init() __asm__ (\".init\");"); \
> > ! fprintf ((STREAM), "void __init() {\n\t%s();\n}\n", (FUNC)); \
> > ! } while (0);
>
> I don't think that the final semicolon is necessary. Similarly
> for COLLECT_SHARED_FINI_FUNC.
>
> Matt
Well spotted... Fixed.