This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: SuperH: -m4-nofpu flag
- To: NIIBE Yutaka <gniibe at m17n dot org>
- Subject: Re: SuperH: -m4-nofpu flag
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 15 Feb 2001 04:23:29 -0200
- Cc: gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <200102150521.OAA15185@mule.m17n.org>
On Feb 15, 2001, NIIBE Yutaka <gniibe@m17n.org> wrote:
> In sh-elf, when -m4-nofpu is specified, __sh3__ (and __SH4_NOFPU__)
> are defined. It looks weird for me to define __sh3__ for SH-4.
> Is there any reason why __sh3__ is defined with -m4-nofpu in sh-elf?
Well, the ISA of a FPU-less SH4 is pretty much the same as that of
SH3. I believe that's the reason to define __sh3__. When you need to
tell whether it's an FPU-less SH4 or an SH3, there's __SH4_NOFPU__.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me