This is the mail archive of the gcc-patches@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: sh-unknown-linux-gnu (Support of no fdiv for integer division)


On Oct  3, 2001, NIIBE Yutaka <gniibe@m17n.org> wrote:

> For our use, new option -m4-no-fpu needs following:
> 	Define __SH4__
> 	Not define __sh3__
> 	__SH4_NOFPU__: Doesn't matter
> 	SH4 scheduling
> 	Don't use FPU

Defining __SH4__ is dangerous, because assembly code might assume that
__SH4__ implies an FPU is available.  I'd rather follow existing
practice of -m4-single and -m4-single-only and have -m4-no-fpu define
only __SH4_NO_FPU__.

-- 
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]