public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Dimitar Dimitrov <dimitar@dinux.eu>
To: newlib@sourceware.org, joel@rtems.org
Subject: Re: [PATCH v2 2/2] PRU: Align libmath to PRU ABI
Date: Mon, 26 Aug 2019 20:08:00 -0000	[thread overview]
Message-ID: <4751701.5kOjEuJXUL@tpdeb> (raw)
In-Reply-To: <CAF9ehCVWRSMYosu_gz5Wp71Wyjaiz=ym-pZR=AwFib3Jsii6pA@mail.gmail.com>

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 <dimitar@dinux.eu> 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 <dimitar@dinux.eu>
> > ---
> > 
> >  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

  reply	other threads:[~2019-08-26 20:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-26  4:14 [PATCH v2 1/2] Initial PRU port Dimitar Dimitrov
2019-08-26  4:14 ` [PATCH v2 2/2] PRU: Align libmath to PRU ABI Dimitar Dimitrov
2019-08-26 15:13   ` Joel Sherrill
2019-08-26 20:08     ` Dimitar Dimitrov [this message]
2019-08-26 20:18       ` Joel Sherrill

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4751701.5kOjEuJXUL@tpdeb \
    --to=dimitar@dinux.eu \
    --cc=joel@rtems.org \
    --cc=newlib@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).