From a2f8be9c834cb513666e0ce02ee8f4b4a3f358f8 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 10 Mar 2015 00:32:29 +0000 Subject: soft-fp: Use multiple-include guards. This patch makes soft-fp headers consistently use multiple-include guards, something previously done mainly only in the Linux kernel version. The guard macros aren't the same as those used in the Linux kernel, but there seems to be enough variation in such guards in Linux kernel code that hopefully this version will be acceptable there. Tested for powerpc-nofpu that installed stripped shared libraries are unchanged by this patch. * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard. * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise. * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise. * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise. * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise. * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise. * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise. * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise. * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise. * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty. Add comment on closing #endif. --- soft-fp/op-common.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'soft-fp/op-common.h') diff --git a/soft-fp/op-common.h b/soft-fp/op-common.h index ee4147602f..0a2f86aad9 100644 --- a/soft-fp/op-common.h +++ b/soft-fp/op-common.h @@ -29,6 +29,9 @@ License along with the GNU C Library; if not, see . */ +#ifndef SOFT_FP_OP_COMMON_H +#define SOFT_FP_OP_COMMON_H 1 + #define _FP_DECL(wc, X) \ _FP_I_TYPE X##_c __attribute__ ((unused)) _FP_ZERO_INIT; \ _FP_I_TYPE X##_s __attribute__ ((unused)) _FP_ZERO_INIT; \ @@ -2109,3 +2112,5 @@ #define _FP_DIV_MEAT_1_loop(fs, R, X, Y) _FP_DIV_MEAT_N_loop (fs, 1, R, X, Y) #define _FP_DIV_MEAT_2_loop(fs, R, X, Y) _FP_DIV_MEAT_N_loop (fs, 2, R, X, Y) #define _FP_DIV_MEAT_4_loop(fs, R, X, Y) _FP_DIV_MEAT_N_loop (fs, 4, R, X, Y) + +#endif /* !SOFT_FP_OP_COMMON_H */ -- cgit 1.4.1