Re: [PATCH v2 2/2] PRU: Align libmath to PRU ABI
Dimitar Dimitrov <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <4751701.5kOjEuJXUL@tpdeb> |
There is no particular reason. I saw that it is being used by many libm sources. I'm willing to change it. What is the preferred newlib license? https://spdx.org/licenses/BSD-2-Clause.html or https:// spdx.org/licenses/BSD-2-Clause-FreeBSD.html ? Thanks, Dimitar On понеделник, 26 август 2019 г. 18:12:48 EEST Joel Sherrill wrote: > Why the 3 paragraph BSD style license with notice required on binary > distributions? > > Is it possible to just use the 2-paragraph style? > > Thanks. > > --joel > > On Sun, Aug 25, 2019 at 11:15 PM Dimitar Dimitrov <[email protected]> wrote: > > The TI proprietary toolchain uses nonstandard names for some math > > library functions. In order to achieve ABI compatibility between > > GNU and TI toolchains, add support for the TI function names. > > > > Signed-off-by: Dimitar Dimitrov <[email protected]> > > --- > > > > newlib/configure.host | 1 + > > newlib/libm/machine/configure.in | 1 + > > newlib/libm/machine/pru/Makefile.am | 19 ++++++++++++ > > newlib/libm/machine/pru/configure.in | 11 +++++++ > > newlib/libm/machine/pru/fpclassify.c | 43 +++++++++++++++++++++++++++ > > newlib/libm/machine/pru/fpclassifyf.c | 43 +++++++++++++++++++++++++++ > > newlib/libm/machine/pru/isfinite.c | 43 +++++++++++++++++++++++++++ > > newlib/libm/machine/pru/isfinitef.c | 43 +++++++++++++++++++++++++++ > > newlib/libm/machine/pru/isinf.c | 43 +++++++++++++++++++++++++++ > > newlib/libm/machine/pru/isinff.c | 43 +++++++++++++++++++++++++++ > > newlib/libm/machine/pru/isnan.c | 43 +++++++++++++++++++++++++++ > > newlib/libm/machine/pru/isnanf.c | 43 +++++++++++++++++++++++++++ > > newlib/libm/machine/pru/isnormal.c | 43 +++++++++++++++++++++++++++ > > newlib/libm/machine/pru/isnormalf.c | 43 +++++++++++++++++++++++++++ > > 14 files changed, 462 insertions(+) > > create mode 100644 newlib/libm/machine/pru/Makefile.am > > create mode 100644 newlib/libm/machine/pru/configure.in > > create mode 100644 newlib/libm/machine/pru/fpclassify.c > > create mode 100644 newlib/libm/machine/pru/fpclassifyf.c > > create mode 100644 newlib/libm/machine/pru/isfinite.c > > create mode 100644 newlib/libm/machine/pru/isfinitef.c > > create mode 100644 newlib/libm/machine/pru/isinf.c > > create mode 100644 newlib/libm/machine/pru/isinff.c > > create mode 100644 newlib/libm/machine/pru/isnan.c > > create mode 100644 newlib/libm/machine/pru/isnanf.c > > create mode 100644 newlib/libm/machine/pru/isnormal.c > > create mode 100644 newlib/libm/machine/pru/isnormalf.c > > > > diff --git a/newlib/configure.host b/newlib/configure.host > > index 6a6066bb2..6ee32ca3d 100644 > > --- a/newlib/configure.host > > +++ b/newlib/configure.host > > @@ -296,6 +296,7 @@ case "${host_cpu}" in > > > > default_newlib_nano_malloc="yes" > > default_newlib_atexit_dynamic_alloc="no" > > machine_dir=pru > > > > + libm_machine_dir=pru > > > > ;; > > > > riscv*) > > > > libm_machine_dir=riscv > > > > diff --git a/newlib/libm/machine/configure.in > > b/newlib/libm/machine/configure.in index 55e2d35c3..5a58b6bed 100644 > > --- a/newlib/libm/machine/configure.in > > +++ b/newlib/libm/machine/configure.in > > @@ -29,6 +29,7 @@ if test -n "${libm_machine_dir}"; then > > > > arm) AC_CONFIG_SUBDIRS(arm) ;; > > i386) AC_CONFIG_SUBDIRS(i386) ;; > > nds32) AC_CONFIG_SUBDIRS(nds32) ;; > > > > + pru) AC_CONFIG_SUBDIRS(pru) ;; > > > > spu) AC_CONFIG_SUBDIRS(spu) ;; > > riscv) AC_CONFIG_SUBDIRS(riscv) ;; > > > > esac; > > > > diff --git a/newlib/libm/machine/pru/Makefile.am > > b/newlib/libm/machine/pru/Makefile.am new file mode 100644 > > index 000000000..69facdf34 > > --- /dev/null > > +++ b/newlib/libm/machine/pru/Makefile.am > > @@ -0,0 +1,19 @@ > > +## Process this file with automake to generate Makefile.in > > + > > +INCLUDES = -I $(newlib_basedir)/../newlib/libm/common $(NEWLIB_CFLAGS) \ > > + $(CROSS_CFLAGS) $(TARGET_CFLAGS) > > + > > +LIB_SOURCES = \ > > + fpclassify.c fpclassifyf.c isfinite.c isfinitef.c isinf.c \ > > + isinff.c isnan.c isnanf.c isnormal.c isnormalf.c > > + > > +noinst_LIBRARIES = lib.a > > +lib_a_SOURCES = $(LIB_SOURCES) > > +lib_a_CFLAGS = $(AM_CFLAGS) > > +lib_a_CCASFLAGS = $(AM_CCASFLAGS) > > +noinst_DATA = > > + > > +include $(srcdir)/../../../Makefile.shared