[Bug preprocessor/69543] [6/7 Regression] _Pragma does not apply within macro

dmalcolm at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 19 21:31:00 GMT 2017


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

--- Comment #9 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
(In reply to David Malcolm from comment #8)
> The following testcases still have xfails:
>   c-c++-common/pr69543-3.c
>   c-c++-common/pr69543-4.c
> so this isn't quite fixed yet.

These XFAILs are fixed (for both C and C++) by deleting these lines within
tree-ssa-uninit.c:warn_uninit:

175       location = linemap_resolve_location (line_table, location,
176                                            LRK_SPELLING_LOCATION, NULL);

so that the location used for the warning retains any virtual location, rather
than flattening it to the physical location.  Am not yet sure of the impact of
such a change.


More information about the Gcc-bugs mailing list