diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2011-01-25 03:00:08 -0600 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-01-25 21:16:08 +0100 |
commit | e009cdeb63308f291c54b173484401aab4a3fe54 (patch) | |
tree | f812dbcd16075dca06dcd04e7d0c7d208b1c1707 /post/lib_powerpc/fpu/20001122-1.c | |
parent | 2b21ec92afd8f1809d55beb6044d9faabb4acae1 (diff) | |
download | u-boot-imx-e009cdeb63308f291c54b173484401aab4a3fe54.zip u-boot-imx-e009cdeb63308f291c54b173484401aab4a3fe54.tar.gz u-boot-imx-e009cdeb63308f291c54b173484401aab4a3fe54.tar.bz2 |
powerpc: Fix FPU post related link warnings
If we built POST on PPC's that didn't enable CONFIG_SYS_POST_FPU we'd
get the following warning with newer toolchains:
powerpc-linux-gnu-ld: Warning: lib_powerpc/fpu/libpostpowerpcfpu.o
uses hard float, libpost.o uses soft float
We actually worked around this sometime ago with the following commit:
commit ce82ff05388b5ddafdf6082ef0776cce72c40b1c
Author: Yuri Tikhonov <yur@emcraft.com>
Date: Sat Dec 20 14:54:21 2008 +0300
FPU POST: fix warnings when building with 2.18 binutils
However, this only took into effect if CONFIG_SYS_POST_FPU was enabled.
We can simply move the GNU_FPOST_ATTR out of the CONFIG_SYS_POST_FPU
ifdef block to address the issue.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'post/lib_powerpc/fpu/20001122-1.c')
-rw-r--r-- | post/lib_powerpc/fpu/20001122-1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/post/lib_powerpc/fpu/20001122-1.c b/post/lib_powerpc/fpu/20001122-1.c index bef80c5..4af300d 100644 --- a/post/lib_powerpc/fpu/20001122-1.c +++ b/post/lib_powerpc/fpu/20001122-1.c @@ -28,10 +28,10 @@ #include <post.h> -#if CONFIG_POST & CONFIG_SYS_POST_FPU - GNU_FPOST_ATTR +#if CONFIG_POST & CONFIG_SYS_POST_FPU + int fpu_post_test_math1 (void) { volatile double a, *p; |