[Bug rtl-optimization/57067] Missing control flow edges for setjmp/longjmp

gretay at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Apr 29 16:58:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57067

--- Comment #4 from gretay at gcc dot gnu.org 2013-04-29 16:58:34 UTC ---
Created attachment 29974
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29974
testcase

The attached test case fails for arm-none-eabi on trunk, caused by r198096 (the
fix for PR56982). It seems related to this PR because the control flow edge
after testing the return value of malloc disappears and it is sensitive to the
setjmp() call placement.

Compile with:
/work/apr-builds/r198096/install/bin/arm-none-eabi-gcc -O1 -mcpu=cortex-a15
pr57067.c -o bad.elf
The test case should print PASS, but it prints FAIL.



More information about the Gcc-bugs mailing list