public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] x86_64/i386 fenv: Replace symlink with include fenv_stub.c Date: Tue, 25 Feb 2020 15:44:00 -0000 [thread overview] Message-ID: <20200225154405.34286.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=fbaa096772f77be664864d80508906ad018cc23b commit fbaa096772f77be664864d80508906ad018cc23b Author: Joel Sherrill <joel@rtems.org> Date: Tue Feb 25 07:38:33 2020 -0600 x86_64/i386 fenv: Replace symlink with include fenv_stub.c Having symlinks for these files led to an issue reported to the RTEMS Project that showed up using some tar for native Windows to unpack the newlib sources. It creates symlinks in the tar file as copies of the files the symlinks point to. If the links appear in the tar file before the source exists, it cannot copy the file. The solution in this patch is to convert the files that are symbolic links into simple files which include the file they were linked to. This should be more portable and avoids the symbolinc link problem. Diff: --- newlib/libm/machine/i386/feclearexcept.c | 8 +++++++- newlib/libm/machine/i386/fegetenv.c | 8 +++++++- newlib/libm/machine/i386/fegetexceptflag.c | 8 +++++++- newlib/libm/machine/i386/fegetround.c | 8 +++++++- newlib/libm/machine/i386/feholdexcept.c | 8 +++++++- newlib/libm/machine/i386/fenv.c | 8 +++++++- newlib/libm/machine/i386/feraiseexcept.c | 8 +++++++- newlib/libm/machine/i386/fesetenv.c | 8 +++++++- newlib/libm/machine/i386/fesetexceptflag.c | 8 +++++++- newlib/libm/machine/i386/fesetround.c | 8 +++++++- newlib/libm/machine/i386/fetestexcept.c | 8 +++++++- newlib/libm/machine/i386/feupdateenv.c | 8 +++++++- newlib/libm/machine/x86_64/feclearexcept.c | 8 +++++++- newlib/libm/machine/x86_64/fegetenv.c | 8 +++++++- newlib/libm/machine/x86_64/fegetexceptflag.c | 8 +++++++- newlib/libm/machine/x86_64/fegetround.c | 8 +++++++- newlib/libm/machine/x86_64/feholdexcept.c | 8 +++++++- newlib/libm/machine/x86_64/feraiseexcept.c | 8 +++++++- newlib/libm/machine/x86_64/fesetenv.c | 8 +++++++- newlib/libm/machine/x86_64/fesetexceptflag.c | 8 +++++++- newlib/libm/machine/x86_64/fesetround.c | 8 +++++++- newlib/libm/machine/x86_64/fetestexcept.c | 8 +++++++- newlib/libm/machine/x86_64/feupdateenv.c | 8 +++++++- 23 files changed, 161 insertions(+), 23 deletions(-) diff --git a/newlib/libm/machine/i386/feclearexcept.c b/newlib/libm/machine/i386/feclearexcept.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/i386/feclearexcept.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/i386/feclearexcept.c b/newlib/libm/machine/i386/feclearexcept.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/i386/feclearexcept.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/i386/fegetenv.c b/newlib/libm/machine/i386/fegetenv.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/i386/fegetenv.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/i386/fegetenv.c b/newlib/libm/machine/i386/fegetenv.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/i386/fegetenv.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/i386/fegetexceptflag.c b/newlib/libm/machine/i386/fegetexceptflag.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/i386/fegetexceptflag.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/i386/fegetexceptflag.c b/newlib/libm/machine/i386/fegetexceptflag.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/i386/fegetexceptflag.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/i386/fegetround.c b/newlib/libm/machine/i386/fegetround.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/i386/fegetround.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/i386/fegetround.c b/newlib/libm/machine/i386/fegetround.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/i386/fegetround.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/i386/feholdexcept.c b/newlib/libm/machine/i386/feholdexcept.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/i386/feholdexcept.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/i386/feholdexcept.c b/newlib/libm/machine/i386/feholdexcept.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/i386/feholdexcept.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/i386/fenv.c b/newlib/libm/machine/i386/fenv.c deleted file mode 120000 index 1d7c7a1..0000000 --- a/newlib/libm/machine/i386/fenv.c +++ /dev/null @@ -1 +0,0 @@ -../x86_64/fenv.c \ No newline at end of file diff --git a/newlib/libm/machine/i386/fenv.c b/newlib/libm/machine/i386/fenv.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/i386/fenv.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/i386/feraiseexcept.c b/newlib/libm/machine/i386/feraiseexcept.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/i386/feraiseexcept.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/i386/feraiseexcept.c b/newlib/libm/machine/i386/feraiseexcept.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/i386/feraiseexcept.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/i386/fesetenv.c b/newlib/libm/machine/i386/fesetenv.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/i386/fesetenv.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/i386/fesetenv.c b/newlib/libm/machine/i386/fesetenv.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/i386/fesetenv.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/i386/fesetexceptflag.c b/newlib/libm/machine/i386/fesetexceptflag.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/i386/fesetexceptflag.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/i386/fesetexceptflag.c b/newlib/libm/machine/i386/fesetexceptflag.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/i386/fesetexceptflag.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/i386/fesetround.c b/newlib/libm/machine/i386/fesetround.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/i386/fesetround.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/i386/fesetround.c b/newlib/libm/machine/i386/fesetround.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/i386/fesetround.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/i386/fetestexcept.c b/newlib/libm/machine/i386/fetestexcept.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/i386/fetestexcept.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/i386/fetestexcept.c b/newlib/libm/machine/i386/fetestexcept.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/i386/fetestexcept.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/i386/feupdateenv.c b/newlib/libm/machine/i386/feupdateenv.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/i386/feupdateenv.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/i386/feupdateenv.c b/newlib/libm/machine/i386/feupdateenv.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/i386/feupdateenv.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/x86_64/feclearexcept.c b/newlib/libm/machine/x86_64/feclearexcept.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/x86_64/feclearexcept.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/x86_64/feclearexcept.c b/newlib/libm/machine/x86_64/feclearexcept.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/x86_64/feclearexcept.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/x86_64/fegetenv.c b/newlib/libm/machine/x86_64/fegetenv.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/x86_64/fegetenv.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/x86_64/fegetenv.c b/newlib/libm/machine/x86_64/fegetenv.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/x86_64/fegetenv.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/x86_64/fegetexceptflag.c b/newlib/libm/machine/x86_64/fegetexceptflag.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/x86_64/fegetexceptflag.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/x86_64/fegetexceptflag.c b/newlib/libm/machine/x86_64/fegetexceptflag.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/x86_64/fegetexceptflag.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/x86_64/fegetround.c b/newlib/libm/machine/x86_64/fegetround.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/x86_64/fegetround.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/x86_64/fegetround.c b/newlib/libm/machine/x86_64/fegetround.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/x86_64/fegetround.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/x86_64/feholdexcept.c b/newlib/libm/machine/x86_64/feholdexcept.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/x86_64/feholdexcept.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/x86_64/feholdexcept.c b/newlib/libm/machine/x86_64/feholdexcept.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/x86_64/feholdexcept.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/x86_64/feraiseexcept.c b/newlib/libm/machine/x86_64/feraiseexcept.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/x86_64/feraiseexcept.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/x86_64/feraiseexcept.c b/newlib/libm/machine/x86_64/feraiseexcept.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/x86_64/feraiseexcept.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/x86_64/fesetenv.c b/newlib/libm/machine/x86_64/fesetenv.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/x86_64/fesetenv.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/x86_64/fesetenv.c b/newlib/libm/machine/x86_64/fesetenv.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/x86_64/fesetenv.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/x86_64/fesetexceptflag.c b/newlib/libm/machine/x86_64/fesetexceptflag.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/x86_64/fesetexceptflag.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/x86_64/fesetexceptflag.c b/newlib/libm/machine/x86_64/fesetexceptflag.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/x86_64/fesetexceptflag.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/x86_64/fesetround.c b/newlib/libm/machine/x86_64/fesetround.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/x86_64/fesetround.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/x86_64/fesetround.c b/newlib/libm/machine/x86_64/fesetround.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/x86_64/fesetround.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/x86_64/fetestexcept.c b/newlib/libm/machine/x86_64/fetestexcept.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/x86_64/fetestexcept.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/x86_64/fetestexcept.c b/newlib/libm/machine/x86_64/fetestexcept.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/x86_64/fetestexcept.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" diff --git a/newlib/libm/machine/x86_64/feupdateenv.c b/newlib/libm/machine/x86_64/feupdateenv.c deleted file mode 120000 index f97d27d..0000000 --- a/newlib/libm/machine/x86_64/feupdateenv.c +++ /dev/null @@ -1 +0,0 @@ -../../fenv/fenv_stub.c \ No newline at end of file diff --git a/newlib/libm/machine/x86_64/feupdateenv.c b/newlib/libm/machine/x86_64/feupdateenv.c new file mode 100644 index 0000000..8cbee77 --- /dev/null +++ b/newlib/libm/machine/x86_64/feupdateenv.c @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c"
reply other threads:[~2020-02-25 15:44 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20200225154405.34286.qmail@sourceware.org \ --to=corinna@sourceware.org \ --cc=newlib-cvs@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: linkBe 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).