This is the mail archive of the newlib@sourceware.cygnus.com mailing list for the newlib project.


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

Re: v850 on newlib 1.8.2


"J. Johnston" wrote:
> 
> Joel Sherrill wrote:
> >
> > configure.host specifies that v850 targets are to be built with this:
> >
> > newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -mv850
> > -mno-app-regs -msmall-sld"
> >
> > Unfortunately, gcc does not yet support at least the -msmall-sld option.
> >
> > --
> > Joel Sherrill, Ph.D.             Director of Research & Development
> > joel@OARcorp.com                 On-Line Applications Research
> > Ask me about RTEMS: a free RTOS  Huntsville AL 35805
> >    Support Available             (256) 722-9985
> 
> Joel,
> 
>   You are correct.  This should be removed.  The attached patch applied
> in the devo/newlib directory makes the fix.  ( patch <net182.patch ).
> This patch is only required by users who are configuring a v850 build.

I also should have asked .. does gcc 2.95.2 support the -mno-app-reg
option?
2.95.1 does not.

bash-2.03$ /usr2/test-v850/bin/v850-rtems-gcc -mno-app-reg -c j.c
cc1: Invalid option `no-app-reg'
bash-2.03$ /usr2/test-v850/bin/v850-rtems-gcc --version          
2.95.1


> -- Jeff Johnston (Cygnus Solutions)
> 
>   ------------------------------------------------------------------------
> *** configure.host      Mon Dec  6 21:06:15 1999
> --- configure.host.new  Mon Dec  6 21:06:29 1999
> *************** case "${host_cpu}" in
> *** 152,166 ****
>         ;;
>     v850)
>         machine_dir=v850
> !       newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -mv850 -mno-app-regs -msmall-sld"
>         ;;
>     v850e)
>         machine_dir=v850
> !       newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -mv850 -mno-app-regs -msmall-sld"
>         ;;
>     v850ea)
>         machine_dir=v850
> !       newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -mv850 -mno-app-regs -msmall-sld"
>         ;;
>     w65*)
>         machine_dir=w65
> --- 152,166 ----
>         ;;
>     v850)
>         machine_dir=v850
> !       newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -mv850 -mno-app-regs"
>         ;;
>     v850e)
>         machine_dir=v850
> !       newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -mv850 -mno-app-regs"
>         ;;
>     v850ea)
>         machine_dir=v850
> !       newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -mv850 -mno-app-regs"
>         ;;
>     w65*)
>         machine_dir=w65

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985

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