This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/41762] internal compiler error when compiling xorg-server
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Oct 2009 15:27:07 -0000
- Subject: [Bug middle-end/41762] internal compiler error when compiling xorg-server
- References: <bug-41762-14164@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from jakub at gcc dot gnu dot org 2009-10-22 15:27 -------
Slightly more reduced testcase:
extern __SIZE_TYPE__ strlen (const char *);
extern int f1 (void *);
extern char *f2 (void);
extern void f3 (int, int);
static char *a;
char *b, *c, *d, *e;
void
foo (void)
{
int f, g, h;
f = (a ? strlen (a) : strlen ("abcde"));
f += (b ? strlen (b) : 0);
f += (c ? strlen (c) : 0);
f += (d ? strlen (d) : 0);
f += (e ? strlen (e) : 0);
h = f1 (strlen);
g = strlen (a);
f3 (g, f);
}
void
bar (void)
{
a = f2 ();
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41762