]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
soft-fp: Condition sfp-machine.h include path on __KERNEL__.
authorJoseph Myers <joseph@codesourcery.com>
Sat, 7 Mar 2015 00:36:02 +0000 (00:36 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Sat, 7 Mar 2015 00:36:02 +0000 (00:36 +0000)
My Linux kernel patch to update the kernel to current glibc soft-fp
<https://sourceware.org/ml/libc-alpha/2015-02/msg00107.html> still
leaves a few small differences between the two copies of soft-fp.

I think it's desirable to avoid such differences completely if
possible by having one set of sources suitable for use in both places.
To that end, this patch introduces a conditional on __KERNEL__ for the
path by which sfp-machine.h is included.

Tested for powerpc-nofpu that installed stripped shared libraries are
unchanged by this patch.

* soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
<asm/sfp-machine.h> instead of <sfp-machine.h>.

ChangeLog
soft-fp/soft-fp.h

index 67780acccf5eb39ce48ddfa192108020fdcdfcd5..eaccb2cf5006e5e50ac94f40d016fb49feff188c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-03-06  Joseph Myers  <joseph@codesourcery.com>
+
+       * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
+       <asm/sfp-machine.h> instead of <sfp-machine.h>.
+
 2015-03-06  Roland McGrath  <roland@hack.frob.com>
 
        * manual/install.texi (Configuring and compiling):
index d0171e3845f406b17df96ea15b83ad7e48ca5433..db94e0b3ef79f3691b17190c4f9baf2100177933 100644 (file)
 
 #ifdef _LIBC
 # include <sfp-machine.h>
+#elif defined __KERNEL__
+/* The Linux kernel uses <asm/*.h> names for architecture-specific
+   files.  */
+# include <asm/sfp-machine.h>
 #else
 # include "sfp-machine.h"
 #endif