[0/1] Hard-float fenv support for PowerPc

Message ID 20200602164140.25814-1-eshandhawan51@gmail.com
Headers show
Series
  • Hard-float fenv support for PowerPc
Related show

Message

Jeff Johnston via Newlib June 2, 2020, 4:41 p.m.
This Patch adds Hard-Float fenv support for PowerPc.

The files are taken from FreeBSD and have been configured to work
with libm.

There was no PowerPc folder in libm/machine
It is added as well and declared in autoconf files

Eshan dhawan (1):
  hard float support for PowerPC taken from FreeBSD

 newlib/configure.host                         |   1 +
 newlib/libc/machine/powerpc/machine/fenv-fp.h | 198 ++++++++++++++++++
 newlib/libc/machine/powerpc/sys/fenv.h        | 132 ++++++++++++
 newlib/libm/machine/configure.in              |   1 +
 newlib/libm/machine/powerpc/Makefile.am       |  20 ++
 newlib/libm/machine/powerpc/configure.in      |  11 +
 newlib/libm/machine/powerpc/feclearexcept.c   |   7 +
 newlib/libm/machine/powerpc/fegetenv.c        |   7 +
 newlib/libm/machine/powerpc/fegetexceptflag.c |   7 +
 newlib/libm/machine/powerpc/fegetround.c      |   7 +
 newlib/libm/machine/powerpc/feholdexcept.c    |   7 +
 newlib/libm/machine/powerpc/fenv.c            |  51 +++++
 newlib/libm/machine/powerpc/feraiseexcept.c   |   7 +
 newlib/libm/machine/powerpc/fesetenv.c        |   7 +
 newlib/libm/machine/powerpc/fesetexceptflag.c |   7 +
 newlib/libm/machine/powerpc/fesetround.c      |   7 +
 newlib/libm/machine/powerpc/fetestexcept.c    |   7 +
 newlib/libm/machine/powerpc/feupdateenv.c     |   7 +
 18 files changed, 491 insertions(+)
 create mode 100644 newlib/libc/machine/powerpc/machine/fenv-fp.h
 create mode 100644 newlib/libc/machine/powerpc/sys/fenv.h
 create mode 100644 newlib/libm/machine/powerpc/Makefile.am
 create mode 100644 newlib/libm/machine/powerpc/configure.in
 create mode 100644 newlib/libm/machine/powerpc/feclearexcept.c
 create mode 100644 newlib/libm/machine/powerpc/fegetenv.c
 create mode 100644 newlib/libm/machine/powerpc/fegetexceptflag.c
 create mode 100644 newlib/libm/machine/powerpc/fegetround.c
 create mode 100644 newlib/libm/machine/powerpc/feholdexcept.c
 create mode 100644 newlib/libm/machine/powerpc/fenv.c
 create mode 100644 newlib/libm/machine/powerpc/feraiseexcept.c
 create mode 100644 newlib/libm/machine/powerpc/fesetenv.c
 create mode 100644 newlib/libm/machine/powerpc/fesetexceptflag.c
 create mode 100644 newlib/libm/machine/powerpc/fesetround.c
 create mode 100644 newlib/libm/machine/powerpc/fetestexcept.c
 create mode 100644 newlib/libm/machine/powerpc/feupdateenv.c

-- 
2.17.1

Comments

Sebastian Huber June 5, 2020, 12:46 p.m. | #1
Hello,

this patch breaks the powerpc-rtems build:

gmake[8]: Leaving directory 
'/usr/home/user/rtems-source-builder/rtems/build/powerpc-rtems6-gcc-6ea6c49-newlib-e6ce6f1-x86_64-freebsd12.1-1/build/powerpc-rtems6/m403/newlib/libm/fenv'
Making all in machine
gmake[8]: Entering directory 
'/usr/home/user/rtems-source-builder/rtems/build/powerpc-rtems6-gcc-6ea6c49-newlib-e6ce6f1-x86_64-freebsd12.1-1/build/powerpc-rtems6/m403/newlib/libm/machine'
Making all in powerpc
cd: powerpc: No such file or directory

How did you test your patch?
Jeff Johnston via Newlib June 5, 2020, 3:48 p.m. | #2
Hi Sebastian, 

Did you run autoreconf -fvi in newlib directory.
This patch only contains the hand written files
No files generated by autoconf are included in this patch 
Are those files required to be included ?? 

> On 05-Jun-2020, at 6:16 PM, Sebastian Huber <sebastian.huber@embedded-brains.de> wrote:

> 

> ´╗┐Hello,

> 

> this patch breaks the powerpc-rtems build:

> 

> gmake[8]: Leaving directory '/usr/home/user/rtems-source-builder/rtems/build/powerpc-rtems6-gcc-6ea6c49-newlib-e6ce6f1-x86_64-freebsd12.1-1/build/powerpc-rtems6/m403/newlib/libm/fenv'

> Making all in machine

> gmake[8]: Entering directory '/usr/home/user/rtems-source-builder/rtems/build/powerpc-rtems6-gcc-6ea6c49-newlib-e6ce6f1-x86_64-freebsd12.1-1/build/powerpc-rtems6/m403/newlib/libm/machine'

> Making all in powerpc

> cd: powerpc: No such file or directory

> 

> How did you test your patch?
Sebastian Huber June 7, 2020, 1:39 p.m. | #3
On 05/06/2020 17:48, Eshan Dhawan wrote:

> Hi Sebastian,

>

> Did you run autoreconf -fvi in newlib directory.

> This patch only contains the hand written files

> No files generated by autoconf are included in this patch

> Are those files required to be included ??


Ok, could you please regenerate the files with the right 
Autoconf/Automake versions and send a patch. Please check that you can 
build GCC for powerpc-rtems with this patch and a clean repository 
without any untracked files.

Please do this also for the fenv patches for the other architectures.