This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]: GVN-PRE
Daniel Berlin <dberlin@dberlin.org> writes:
> On Jun 12, 2004, at 7:10 AM, Andreas Schwab wrote:
>
>> Daniel Berlin <dberlin@dberlin.org> writes:
>>
>>> Bootstrapped and regtested on powerpc-suse-linux, powerpc-apple-darwin,
>>> i686-pc-linux-gnu, and i believe stevenb bootstrapped and regtested it
>>> on
>>> x86-64-linux-gnu
>>
>> ICEs on ia64-linux.
>
> Can you send me a .i file in the hopes that it reproduces on other
> platforms with the right code?
Here is a reduced testcase:
$ cat os_dep.i
typedef long unsigned int size_t;
typedef int GC_bool;
extern char *strchr (__const char *__s, int __c) __attribute__ ((__pure__));
extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
__attribute__ ((__pure__));
extern void GC_err_printf (const char *format, long, long, long, long, long,
long);
void
GC_print_callers ()
{
register int i;
static int reentry_count = 0;
GC_bool stop = 0;
for (i = 0; i < 1 && !stop; i++)
{
if (reentry_count > 1)
continue;
{
char buf[40];
char *name = buf;
{
static char result_buf[200];
static GC_bool will_fail = 0;
if (will_fail)
goto out;
{
char *nl = strchr (result_buf, '\n');
if (strncmp (result_buf, "main", nl - result_buf) == 0)
{
stop = 1;
}
}
name = result_buf;
out:;
}
GC_err_printf ("\t\t%s\n", (long) name, 0l, 0l, 0l, 0l, 0l);
}
}
--reentry_count;
}
$ /tmp/cvs/gcc-20040612/Build/gcc/cc1 -fpreprocessed os_dep.i -quiet -g -O2 -fexceptions -fPIC -o os_dep.s -Wall
os_dep.i: In function `GC_print_callers':
os_dep.i:8: internal compiler error: in insert_aux, at tree-ssa-pre.c:1419
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."