This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: building gcc 4.0.1 using CAS (part of the sun v8plus arch)
- From: James E Wilson <wilson at specifix dot com>
- To: "Andrew B. Lundgren" <lundgren at byu dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 01 Sep 2005 16:34:42 -0700
- Subject: Re: building gcc 4.0.1 using CAS (part of the sun v8plus arch)
- References: <4313666B.2040904@byu.net>
Andrew B. Lundgren wrote:
> Is there a macro I can ifdef on to check to see if I can use the v8plus
> instructions, otherwise use the existing spinlock implementation?
It looks like we have __sparc_v8__ and __sparc_v9__ but not a macro for
v8plus. If you need one, you may have to add it. See CPP_CPU_SPEC in
gcc/config/sparc/sparc.h. Since v8plus is really an ABI not a cpu, it
might make sense to create a CPP_ABI_SPEC or similar.
FYI You can use the cpp -dM option to see what predefined macros are
available. Try it with -mv8, -mv8plus, -mv9 to see what the differences
are.
If you have access to the Sun compiler, you might want to check to see
what Sun does. They may already have predefined preprocessor macros for
this.
--
Jim Wilson, GNU Tools Support, http://www.specifix.com