Re: C PATCH to suppress a bogus "defaulting to int" warning (PR c/77323)

2016-08-24 Thread Joseph Myers
On Wed, 24 Aug 2016, Marek Polacek wrote: > 2016-08-24 Marek Polacek > > PR c/77323 > * c-decl.c (declspecs_add_type): Set typespec_word even when __intN > or _FloatN or _FloatNx is not supported. > (finish_declspecs): Set type to integer_type_node

Re: C PATCH to suppress a bogus "defaulting to int" warning (PR c/77323)

2016-08-24 Thread Marek Polacek
On Wed, Aug 24, 2016 at 12:18:17PM +0200, Marek Polacek wrote: > When declaring something using an unsupported type specifier, such as __int128 > on 32-bit systems, or _Float128x, the error for the unsupported type is > followed by a warning about the type defaulting to int. > > But for

C PATCH to suppress a bogus "defaulting to int" warning (PR c/77323)

2016-08-24 Thread Marek Polacek
When declaring something using an unsupported type specifier, such as __int128 on 32-bit systems, or _Float128x, the error for the unsupported type is followed by a warning about the type defaulting to int. But for unsupported types this warning isn't useful. The problem was that for these