This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Shared-library constructor and destructor routines on NetBSD


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]