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.
This commit is contained in:
		
				
					committed by
					
						 Corinna Vinschen
						Corinna Vinschen
					
				
			
			
				
	
			
			
			
						parent
						
							17528b9d2c
						
					
				
				
					commit
					fbaa096772
				
			| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/i386/feclearexcept.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/i386/feclearexcept.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/i386/fegetenv.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/i386/fegetenv.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/i386/fegetexceptflag.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/i386/fegetexceptflag.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/i386/fegetround.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/i386/fegetround.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/i386/feholdexcept.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/i386/feholdexcept.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../x86_64/fenv.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/i386/fenv.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/i386/fenv.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/i386/feraiseexcept.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/i386/feraiseexcept.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/i386/fesetenv.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/i386/fesetenv.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/i386/fesetexceptflag.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/i386/fesetexceptflag.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/i386/fesetround.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/i386/fesetround.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/i386/fetestexcept.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/i386/fetestexcept.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/i386/feupdateenv.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/i386/feupdateenv.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/x86_64/feclearexcept.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/x86_64/feclearexcept.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/x86_64/fegetenv.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/x86_64/fegetenv.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/x86_64/fegetexceptflag.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/x86_64/fegetexceptflag.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/x86_64/fegetround.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/x86_64/fegetround.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/x86_64/feholdexcept.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/x86_64/feholdexcept.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/x86_64/feraiseexcept.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/x86_64/feraiseexcept.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/x86_64/fesetenv.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/x86_64/fesetenv.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/x86_64/fesetexceptflag.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/x86_64/fesetexceptflag.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/x86_64/fesetround.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/x86_64/fesetround.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/x86_64/fetestexcept.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/x86_64/fetestexcept.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
| @@ -1 +0,0 @@ | |||||||
| ../../fenv/fenv_stub.c |  | ||||||
							
								
								
									
										7
									
								
								newlib/libm/machine/x86_64/feupdateenv.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								newlib/libm/machine/x86_64/feupdateenv.c
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /* | ||||||
|  |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  |  * | ||||||
|  |  * (c) Copyright 2019 Joel Sherrill <joel@rtems.org> | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include "../../fenv/fenv_stub.c" | ||||||
		Reference in New Issue
	
	Block a user