This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, libobjc]: Avoid "DFmode" redefinition warning
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Andrew Pinski <pinskia at gmail dot com>
- Date: Wed, 6 Mar 2019 14:47:46 +0100
- Subject: Re: [PATCH, libobjc]: Avoid "DFmode" redefinition warning
- References: <CAFULd4aY0bPkO_erdCCP1qt92TRnpsTN_VqWLgP7hzsNJW89Vg@mail.gmail.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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