re PR tree-optimization/71403 (wrong code (segfault) at -O3 on x86_64-linux-gnu)
authorJeff Law <law@redhat.com>
Mon, 13 Jun 2016 20:55:59 +0000 (14:55 -0600)
committerJeff Law <law@gcc.gnu.org>
Mon, 13 Jun 2016 20:55:59 +0000 (14:55 -0600)
commita73786e39ff86e8e1d186baaf802b99f8675bbeb
tree6a2c8bbaf60c75e44945f7c6c198e3a2a1e8fa1d
parent79a2bc2dc96fb0c6efd4db45d6d8d333f676e8a5
re PR tree-optimization/71403 (wrong code (segfault) at -O3 on x86_64-linux-gnu)

PR tree-optimization/71403
* tree-ssa-threadbackward.c
(convert_and_register_jump_thread_path): No longer accept reference
to path.  Do not pop items off the path anymore.
(fsm_find_control_statement_thread_paths): Do not allow threading
to a deeper loop nest.  Pop the last item off the path here rather
than in convert_and_register_jump_thread_path.

PR tree-optimization/71403
* c-c++-common/ubsan/pr71403-1.c: New test.
* c-c++-common/ubsan/pr71403-2.c: New test.
* c-c++-common/ubsan/pr71403-3.c: New test.

From-SVN: r237403
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/pr71403-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/ubsan/pr71403-2.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/ubsan/pr71403-3.c [new file with mode: 0644]
gcc/tree-ssa-threadbackward.c