https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66314
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Fri May 29 10:50:58 2015 New Revision: 223861 URL: https://gcc.gnu.org/viewcvs?rev=223861&root=gcc&view=rev Log: 2015-05-29 Richard Biener <rguent...@suse.de> PR tree-optimization/66314 * tree-ssa-threadupdate.c (create_block_for_threading): Add parameter that says which loop the new block belongs to. (ssa_create_duplicates): Blocks duplicated for the threaded path belong to the loop of the thread destination. * gcc.dg/asan/pr66314.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/asan/pr66314.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-threadupdate.c