This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/21457] ICE building glibc 2.3.5 nptl in gen_subprogram_die at dwarf2out.c:10913
- From: "benh at kernel dot crashing dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 May 2005 23:19:49 -0000
- Subject: [Bug c/21457] ICE building glibc 2.3.5 nptl in gen_subprogram_die at dwarf2out.c:10913
- References: <20050508224545.21457.benh@kernel.crashing.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From benh at kernel dot crashing dot org 2005-05-08 23:19 -------
Ok, this is with a CVS checkout of today, without the debian patches (that
changes the line number a bit). I now get:
../elf/tst-execstack-mod.c:24: internal compiler error: in gen_subprogram_die,
at dwarf2out.c:10887
The program is simple:
/* Test module for making nonexecutable stacks executable
on load of a DSO that requires executable stacks. */
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
void callme (void (*callback) (void));
/* This is a function that makes use of executable stack by
using a local function trampoline. */
void
tryme (void)
{
bool ok = false;
void callback (void) { ok = true; }
callme (&callback);
if (ok)
printf ("DSO called ok (local %p, trampoline %p)\n", &ok, &callback);
else
abort ();
}
void
callme (void (*callback) (void))
{
(*callback) ();
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21457