This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: SuperH: -m4-nofpu flag


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]