diff options
author | Joel Sherrill <joel@rtems.org> | 2020-02-25 07:38:33 -0600 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2020-02-25 16:42:19 +0100 |
commit | fbaa096772f77be664864d80508906ad018cc23b (patch) | |
tree | 0d6d9596e712be94aa4b68bf8beed470dc156c04 /newlib/libm | |
parent | 17528b9d2c3147f5de0f604fc2702b2e0010c533 (diff) | |
download | newlib-fbaa096772f77be664864d80508906ad018cc23b.zip newlib-fbaa096772f77be664864d80508906ad018cc23b.tar.gz newlib-fbaa096772f77be664864d80508906ad018cc23b.tar.bz2 |
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.
Diffstat (limited to 'newlib/libm')
23 files changed, 161 insertions, 23 deletions
diff --git a/newlib/libm/machine/i386/feclearexcept.c b/newlib/libm/machine/i386/feclearexcept.c index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/i386/feclearexcept.c +++ b/newlib/libm/machine/i386/feclearexcept.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * 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 index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/i386/fegetenv.c +++ b/newlib/libm/machine/i386/fegetenv.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * 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 index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/i386/fegetexceptflag.c +++ b/newlib/libm/machine/i386/fegetexceptflag.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * 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 index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/i386/fegetround.c +++ b/newlib/libm/machine/i386/fegetround.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * 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 index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/i386/feholdexcept.c +++ b/newlib/libm/machine/i386/feholdexcept.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * 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 index 1d7c7a1..8cbee77 120000..100644 --- a/newlib/libm/machine/i386/fenv.c +++ b/newlib/libm/machine/i386/fenv.c @@ -1 +1,7 @@ -../x86_64/fenv.c
\ No newline at end of file +/* + * 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 index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/i386/feraiseexcept.c +++ b/newlib/libm/machine/i386/feraiseexcept.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * 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 index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/i386/fesetenv.c +++ b/newlib/libm/machine/i386/fesetenv.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * 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 index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/i386/fesetexceptflag.c +++ b/newlib/libm/machine/i386/fesetexceptflag.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * 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 index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/i386/fesetround.c +++ b/newlib/libm/machine/i386/fesetround.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * 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 index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/i386/fetestexcept.c +++ b/newlib/libm/machine/i386/fetestexcept.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * 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 index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/i386/feupdateenv.c +++ b/newlib/libm/machine/i386/feupdateenv.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * 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 index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/x86_64/feclearexcept.c +++ b/newlib/libm/machine/x86_64/feclearexcept.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * 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 index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/x86_64/fegetenv.c +++ b/newlib/libm/machine/x86_64/fegetenv.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * 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 index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/x86_64/fegetexceptflag.c +++ b/newlib/libm/machine/x86_64/fegetexceptflag.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * 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 index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/x86_64/fegetround.c +++ b/newlib/libm/machine/x86_64/fegetround.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * 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 index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/x86_64/feholdexcept.c +++ b/newlib/libm/machine/x86_64/feholdexcept.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * 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 index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/x86_64/feraiseexcept.c +++ b/newlib/libm/machine/x86_64/feraiseexcept.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * 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 index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/x86_64/fesetenv.c +++ b/newlib/libm/machine/x86_64/fesetenv.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * 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 index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/x86_64/fesetexceptflag.c +++ b/newlib/libm/machine/x86_64/fesetexceptflag.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * 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 index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/x86_64/fesetround.c +++ b/newlib/libm/machine/x86_64/fesetround.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * 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 index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/x86_64/fetestexcept.c +++ b/newlib/libm/machine/x86_64/fetestexcept.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * 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 index f97d27d..8cbee77 120000..100644 --- a/newlib/libm/machine/x86_64/feupdateenv.c +++ b/newlib/libm/machine/x86_64/feupdateenv.c @@ -1 +1,7 @@ -../../fenv/fenv_stub.c
\ No newline at end of file +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> + */ + +#include "../../fenv/fenv_stub.c" |