This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/57067] Missing control flow edges for setjmp/longjmp
- From: "gretay at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 29 Apr 2013 16:58:34 +0000
- Subject: [Bug rtl-optimization/57067] Missing control flow edges for setjmp/longjmp
- Auto-submitted: auto-generated
- References: <bug-57067-4 at http dot gcc dot gnu dot org/bugzilla/>
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.