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 preprocessor/69126] [6 regression] _Pragma does not apply if part of a macro


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

--- Comment #29 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Tue Feb 23 17:44:28 2016
New Revision: 233638

URL: https://gcc.gnu.org/viewcvs?rev=233638&root=gcc&view=rev
Log:
PR preprocessor/69126: avoid comparing ad-hoc and non-ad-hoc locations

gcc/testsuite/ChangeLog:
        PR preprocessor/69126
        PR preprocessor/69543
        * c-c++-common/pr69126-2-long.c: New test.
        * c-c++-common/pr69126-2-short.c: New test.
        * c-c++-common/pr69543-1.c: Remove xfail.

libcpp/ChangeLog:
        PR preprocessor/69126
        PR preprocessor/69543
        * line-map.c (linemap_compare_locations): At the function top,
        replace inlined bodies of get_location_from_adhoc_loc with calls
        to get_location_from_adhoc_loc.  Add a pair of calls to
        get_location_from_adhoc_loc at the bottom of the function, to
        avoid meaningless comparisons of ad-hoc and non-ad-hoc locations.


Added:
    trunk/gcc/testsuite/c-c++-common/pr69126-2-long.c
    trunk/gcc/testsuite/c-c++-common/pr69126-2-short.c
Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/c-c++-common/pr69543-1.c
    trunk/libcpp/ChangeLog
    trunk/libcpp/line-map.c

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