The attached patch removes /space/homedirs/uros/gcc-svn/trunk/libobjc/encoding.c:84: warning: "DFmode" redefined 84 | #define DFmode _C_DBL | In file included from ../.././gcc/tm.h:36, from /space/homedirs/uros/gcc-svn/trunk/libobjc/encoding.c:37: ../.././gcc/insn-modes.h:210: note: this is the location of the previous definition 210 | #define DFmode (scalar_float_mode ((scalar_float_mode::from_int) E_DFmode)) |
warning. 2019-03-06 Uroš Bizjak <ubiz...@gmail.com> * encoding.c (DFmode): #undef before #define. Bootstrapped on x86_64-linux-gnu {,-m32}. OK for mainline? Uros.
diff --git a/libobjc/encoding.c b/libobjc/encoding.c index adac546..ef34fc8 100644 --- a/libobjc/encoding.c +++ b/libobjc/encoding.c @@ -81,6 +81,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #define DECL_MODE(TYPE) *(TYPE) #define TYPE_MODE(TYPE) *(TYPE) +#undef DFmode #define DFmode _C_DBL #define strip_array_types(TYPE) ({const char *_field = (TYPE); \