Subject: RE: leading/trailing underscores?
To: None <mcmahill@mtl.mit.edu, tech-toolchain@netbsd.org>
From: Tim Rightnour <root@garbled.net>
List: tech-toolchain
Date: 01/11/1999 10:51:48
On 11-Jan-99 mcmahill@mtl.mit.edu spoke unto us all:
# > I'm pretty sure thats because pmax is ELF, and mac68k is a.out.
# > 
#  
#  should there be consistency between ELF systems then and then also between
#  different a.out systems?  
#  
#  I looked on a few different machines to see if __ELF__ is defined
#  by 'cpp -dM < /dev/null'  and I'm seeing some inconsistency here as well.
#  for example, on your alpha, I see
#  
# #define __NetBSD__ 1
# #define __KPRINTF_ATTRIBUTE__ 1
# #define __alpha__ 1
# #define __GNUC__ 1
# #define __ELF__ 1
# #define __alpha 1
#  
#  on my mac68k,
#  
# #define __NetBSD__ 1
# #define __KPRINTF_ATTRIBUTE__ 1
# #define mc68000 1
# #define mc68020 1
# #define __GNUC__ 1
# #define m68k 1
# #define unix 1

I'm assuming this is 1.3.. still if we don't predefine "unix" anymore, why do
we define m68k and the mc68 defines?

#  
#  on my pmax,
#  
# #define R3000 1
# #define SYSTYPE_BSD 1
# #define __NO_LEADING_UNDERSCORES__ 1
# #define __ANSI_COMPAT 1
# #define __NetBSD__ 1
# #define __KPRINTF_ATTRIBUTE__ 1
# #define _R3000 1
# #define MIPSEL 1
# #define __GP_SUPPORT__ 1
# #define mips 1
# #define __GNUC__ 1
# #define _SYSTYPE_BSD 1
# #define unix 1

Hrmmm..  that should definately define __ELF__.. how odd...

#  
#  Is there a reason why __ELF__ is not defined on the pmax and it is on the
#  alpha?  Also, why is it __alpha and __alpha__ not just alpha (or why not
#  __m68k and __mips?)?
#
#  -Dan
#  

---
Tim Rightnour  -  root@garbled.net
Free Multi-Platform Operating System: http://www.netbsd.org
NetBSD Mailing lists on the web: http://mail-index.netbsd.org/mlist