https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80953

--- Comment #27 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> ---
> --- Comment #26 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> Try -fno-delayed-branch then?  The debug info and unwind info for delayed 
> slots
> isn't really well defined...

For a quick check, I just tried it on
c-c++-common/asan/heap-overflow-1.c at -O0

    #0 0x11258 in main
/vol/gcc/src/hg/trunk/local/gcc/testsuite/c-c++-common/asan/heap-overflow-1.c:21

vs. -O1:

    #0 0x1121c in main
/vol/gcc/src/hg/trunk/local/gcc/testsuite/c-c++-common/asan/heap-overflow-1.c:24

-fno-delayed-branch made no difference.

Reply via email to