This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/57287] GCC 4.9.0 fails to build GDB on Ubuntu 12.04
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 24 May 2013 11:01:19 +0000
- Subject: [Bug middle-end/57287] GCC 4.9.0 fails to build GDB on Ubuntu 12.04
- Auto-submitted: auto-generated
- References: <bug-57287-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57287
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
#include <setjmp.h>
jmp_buf buf;
void foo (int);
void bar (int) __attribute__((leaf));
void enumerate_locals (int indent)
{
foo (0);
while (indent--)
{
int local_indent = 8 + (8 * indent);
if (local_indent != 8)
{
setjmp (buf);
bar (local_indent);
}
}
foo (1);
}
warns about uninitialized local_indent. The abnormal edges we insert
for foo (0) make undefined values flow into the setjmp block.