Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 1995 03:52:47 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        phk@critter.tfs.com, terry@lambert.org
Cc:        current@freebsd.org, imb@scgt.oz.au, julian@ref.tfs.com
Subject:   Re: changes in -current..TEST please
Message-ID:  <199512061652.DAA27738@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> #define MAKE_SET(set, sym, type) \
>> 	asm(".stabs \"_" #set "\", " #type ", 0, 0, _" #sym)

>If you used up to date source, you would know that the above macro now
>looks like this:

>	#define MAKE_SET(set, sym, type) \
>		static void *const __set_##set##_sym_##sym = \
>			(&__set_##set##_sym_##sym, &sym, 0); \
>		asm(".stabs \"_" #set "\", " #type ", 0, 0, _" #sym)

>and that it (according to the gcc manual) ensures that the compiler will
>not remove your static and "secretly" referenced Symbols.

The macro only tells the compiler about `sym'.  `type' is only referenced
in the stab.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512061652.DAA27738>