This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, libobjc]: Avoid "DFmode" redefinition warning


On Wed, Mar 06, 2019 at 02:45:23PM +0100, Uros Bizjak wrote:
> 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  <ubizjak@gmail.com>
> 
>     * encoding.c (DFmode): #undef before #define.
> 
> Bootstrapped on x86_64-linux-gnu {,-m32}.
> 
> OK for mainline?

Ok, thanks.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]