[Bug tree-optimization/56094] Invalid line number info generated with tree-level ivopts
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 24 20:50:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56094
--- Comment #11 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2013-01-24 20:49:33 UTC ---
(In reply to comment #10)
>
> Input_location should only be used from parsing. Other places reuse the
> variable and those happen to eventually pick up stale values, such as
> gimplification. We should
> Arrange for different globals to be used there and privatize input_location. In
> the meantime assert that input_location is unknown when
> Entering or leaving passes.
>
Perhaps I didn't make myself clear. What is calling internal_get_tmp_var that
is relying on input_location to be pointing to a sensible location? Is it
really called during parsing?
More information about the Gcc-bugs
mailing list