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/81306] valgrind error for function warn_for_multistatement_macros in file c-warn.c line 2474


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

--- Comment #9 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Aug  2 11:56:54 2017
New Revision: 250822

URL: https://gcc.gnu.org/viewcvs?rev=250822&root=gcc&view=rev
Log:
        PR c/81448
        PR c/81306
        * c-warn.c (warn_for_multistatement_macros): Prevent bogus
        warnings.  Avoid walking MACRO_MAP_LOCATIONS.                           

        * c-c++-common/Wmultistatement-macros-13.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/Wmultistatement-macros-13.c
Modified:
    trunk/gcc/c-family/c-warn.c
    trunk/gcc/c/ChangeLog
    trunk/gcc/testsuite/ChangeLog

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