On 11-08-18 10:00 , Jakub Jelinek wrote:
Hi!

If gsi_stmt (*gsi) is a debug stmt, vect_finish_stmt_generation happily
copies over location from the debug stmt, instead of the following non-debug
stmt, which causes -fcompare-debug failures.

Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for
trunk?

2011-08-18  Jakub Jelinek<ja...@redhat.com>

        PR debug/50017
        * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
        is a debug stmt, use location of the first non-debug stmt after it.

        * gcc.dg/pr50017.c: New test.

OK.


Diego.

Reply via email to