FPU POST: fix warnings when building with 2.18 binutils
[oweals/u-boot.git] / post / lib_ppc / fpu / acc1.c
index 4cecbf6a4fe4bdbe319ae85079cf84b0edcab841..9fca9b3788a32e27efe9ebfa3e3e1dcf7e813fda 100644 (file)
 
 #include <common.h>
 
-#ifdef CONFIG_POST
-
 #include <post.h>
 
-#if CONFIG_POST & CFG_POST_FPU
+#if CONFIG_POST & CONFIG_SYS_POST_FPU
+
+GNU_FPOST_ATTR
 
 static double func (const double *array)
 {
@@ -53,5 +53,4 @@ int fpu_post_test_math5 (void)
        return 0;
 }
 
-#endif /* CONFIG_POST & CFG_POST_FPU */
-#endif /* CONFIG_POST */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_FPU */