From owner-freebsd-current Wed Dec 6 08:57:01 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA29898 for current-outgoing; Wed, 6 Dec 1995 08:57:01 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id IAA29891 for ; Wed, 6 Dec 1995 08:56:57 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id DAA27738; Thu, 7 Dec 1995 03:52:47 +1100 Date: Thu, 7 Dec 1995 03:52:47 +1100 From: Bruce Evans Message-Id: <199512061652.DAA27738@godzilla.zeta.org.au> To: phk@critter.tfs.com, terry@lambert.org Subject: Re: changes in -current..TEST please Cc: current@freebsd.org, imb@scgt.oz.au, julian@ref.tfs.com 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. Bruce