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++/68819] Invalid "-Wmisleading-indentation" warning if location_t >=LINE_MAP_MAX_LOCATION_WITH_COLS


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.

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