Re: try_finally_expr wrong source location info

2017-07-12 Thread Vyacheslav Barinov
Hello, I've fixed the location issue by generating new STATEMENT_LIST_END tree for each compound statement and using it to store the location of closing brace. I do understand that it's rather an ugly workaround than a solution, but still it resolves the issue for us and doesn't break GCC testsui

Re: try_finally_expr wrong source location info

2017-06-13 Thread Vyacheslav Barinov
Hello, >> But then, after lowering on the eh pass (gcc/tree-eh.c:1161), the "finally" >> location is set up to the `gimple_location (tf->try_finally_expr)' which >> actually expands to "testcase.cxx:4", a place where the "try" block starts. >> >> The dump testcase.cxx.009t.ehopt shows no location

Re: try_finally_expr wrong source location info

2017-06-09 Thread Eric Botcazou
> But then, after lowering on the eh pass (gcc/tree-eh.c:1161), the "finally" > location is set up to the `gimple_location (tf->try_finally_expr)' which > actually expands to "testcase.cxx:4", a place where the "try" block starts. > > The dump testcase.cxx.009t.ehopt shows no location info for des