This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]