This is the mail archive of the gcc-bugs@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]

[Bug c/77323] Bad "defaults to 'int'" warning for unsupported types


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77323

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Aug 25 08:22:56 2016
New Revision: 239752

URL: https://gcc.gnu.org/viewcvs?rev=239752&root=gcc&view=rev
Log:
        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 when _FloatN or
        _FloatNx is not supported.

        * gcc.dg/pr77323.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr77323.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-decl.c
    trunk/gcc/testsuite/ChangeLog

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