This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Fwd: crash: longjmp vs -fprofile-arcs
- From: Dale Johannesen <dalej at apple dot com>
- To: gcc at gcc dot gnu dot org
- Cc: Dale Johannesen <dalej at apple dot com>
- Date: Mon, 9 Dec 2002 09:25:44 -0800
- Subject: Fwd: crash: longjmp vs -fprofile-arcs
OK, let me try a different question:
#include <setjmp.h>
int foo (jmp_buf buf) { longjmp(buf, 1); }
now what? cc -fprofile-arcs lj.c
lj.c: In function `foo':
lj.c:2: internal error: Bus error
Please submit a full bug report, blah blah
It seems the block that calls longjmp has no successors, and the code
in profile.c
is not expecting that. Could somebody clarify which code is right?