Subject: Re: mcleanup, err, warn
To: Ted Lemon <mellon@vix.com>
From: Chris G Demetriou <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>
List: port-pmax
Date: 05/02/1995 20:06:19
> For your edification, the short-term solution that I did use was
> something like this:
> 
> diff -c2 /usr/archive/NetBSD/{current/src,working}/sys/sys/cdefs.h
> *** /usr/archive/NetBSD/current/src/sys/sys/cdefs.h     Mon Nov 21 14:48:55 1994
> --- /usr/archive/NetBSD/working/sys/sys/cdefs.h Sun Jan  1 23:04:01 1995
> ***************
> *** 122,125 ****
> --- 122,126 ----
>   #endif
>   
> + #ifndef mips
>   #ifdef __GNUC__
>   #ifdef __STDC__
> ***************
> *** 138,141 ****
> --- 139,145 ----
>         __asm__(".stabs \"_/**/sym\",1,0,0,0")
>   #endif
> + #endif
> + #else
> + #define __warn_references(sym,msg)
>   #endif
>   
> I believe the names of those references have been changed somewhat,
> but you may still be able to find the relevant code in sys/cdefs.h.

umm, actually, i think it's stilly pretty similar, _BUT_ they're no
longer in sys/cdefs.h.


they've now moved to <machine/cdefs.h>, which defines the following
things:

	_C_LABEL(x)
	__indr_reference(sym,alias)
	__warn_references(sym,msg)


take a look at e.g. an i386 or m68k include/cdefs.h to see what the
reference macros would look like on a machine that really supports
weak and indirect references.

The Alpha doesn't, so you may want to clone my cdefs.h...  note
however that i don't have __indr_reference() defined yet (though the
tree compiles fine without it 8-).


later,

chris