Subject: Re: __sparc64__ defined by preprocessor?
To: Simon Burge <simonb@wasabisystems.com>
From: john heasley <heas@shrubbery.net>
List: port-sparc64
Date: 05/20/2001 11:30:05
Mon, May 21, 2001 at 04:27:09AM +1000, Simon Burge:
> john heasley wrote:
> 
> > foad [37] gcc -E -
> > #ifdef __sparc64__
> > foo
> > #endif
> > # 1 ""
> > 
> > foo
> 
> Just a "FWIW", a test for predefined macros is:
> 
> 	thoreau:~ 671> gcc -dM -E - < /dev/null
> 	#define __NetBSD__ 1 
> 	#define __KPRINTF_ATTRIBUTE__ 1 
> 	#define __GNUC_MINOR__ 91 
> 	#define __alpha__ 1 
> 	#define __GNUC__ 2 
> 	#define __ELF__ 1 
> 	#define __alpha 1 
> 
> Simon.
> --
> Simon Burge                            <simonb@wasabisystems.com>
> NetBSD CDs, Support and Service:    http://www.wasabisystems.com/

cool.  i didnt know this option existed.  thanks!

foad [39] gcc -dM -E - < /dev/null
#define __arch64__ 1 
#define __sparc64__ 1 
#define __NetBSD__ 1 
#define __SIZE_TYPE__ long unsigned int 
#define __GNUC_MINOR__ 95 
#define __PTRDIFF_TYPE__ long int 
#define __sparc_v9__ 1 
#define __GNUC__ 2 
#define __sparc__ 1 
#define __ELF__ 1