This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/68819] Invalid "-Wmisleading-indentation" warning if location_t >=LINE_MAP_MAX_LOCATION_WITH_COLS
- From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 17 Dec 2015 21:31:07 +0000
- Subject: [Bug c++/68819] Invalid "-Wmisleading-indentation" warning if location_t >=LINE_MAP_MAX_LOCATION_WITH_COLS
- Auto-submitted: auto-generated
- References: <bug-68819-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68819
--- Comment #9 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Created attachment 37075
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37075&action=edit
Updated patch, which adds a "sorry" when the problem first occurs
Here's a new patch. Unfortunately, with this new patch, it fails bootstrap
here:
gimple-match.c: In function âbool gimple_simplify_LSHIFT_EXPR(code_helper*,
tree_node**, gimple**, tree_node* (*)(tree), code_helper, tree, tree, tree)â:
gimple-match.c:50437:0: sorry, unimplemented: -Wmisleading-indentation is
disabled from this point onwards, since column-tracking was disabled due to the
size of the code/headers
std::swap (o30, o31);
actually here:
if (tree_swap_operands_p (o30, o31, false))
std::swap (o30, o31);
We may need to fix things so that we're less likely to run into the
LINE_MAP_MAX_LOCATION_WITH_COLS limit.