Date: Wed, 06 Dec 1995 18:16:38 +0100 From: Poul-Henning Kamp <phk@critter.tfs.com> To: Bruce Evans <bde@zeta.org.au> Cc: terry@lambert.org, current@freebsd.org, imb@scgt.oz.au, julian@ref.tfs.com Subject: Re: changes in -current..TEST please Message-ID: <915.818270198@critter.tfs.com> In-Reply-To: Your message of "Thu, 07 Dec 1995 03:52:47 %2B1100." <199512061652.DAA27738@godzilla.zeta.org.au>
next in thread | previous 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. type isn't an endangered species I think... -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@ref.tfs.com TRW Financial Systems, Inc. Future will arrive by its own means, progress not so.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?915.818270198>