From owner-freebsd-current Wed Dec 6 09:17:42 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA02481 for current-outgoing; Wed, 6 Dec 1995 09:17:42 -0800 (PST) Received: from critter.tfs.com ([140.145.230.252]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id JAA02471 for ; Wed, 6 Dec 1995 09:17:39 -0800 (PST) Received: from localhost.tfs.com (localhost.tfs.com [127.0.0.1]) by critter.tfs.com (8.6.12/8.6.12) with SMTP id RAA00917; Wed, 6 Dec 1995 17:16:39 GMT X-Authentication-Warning: critter.tfs.com: Host localhost.tfs.com didn't use HELO protocol To: Bruce Evans cc: terry@lambert.org, current@freebsd.org, imb@scgt.oz.au, julian@ref.tfs.com Subject: Re: changes in -current..TEST please In-reply-to: Your message of "Thu, 07 Dec 1995 03:52:47 +1100." <199512061652.DAA27738@godzilla.zeta.org.au> Date: Wed, 06 Dec 1995 18:16:38 +0100 Message-ID: <915.818270198@critter.tfs.com> From: Poul-Henning Kamp Sender: owner-current@freebsd.org Precedence: bulk > >> #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.