lkml.org 
[lkml]   [1997]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectegcs-2.90.1[5-7] crash on __asm__, i586-pc-linux-gnulibc1
Date
From
I've got the above egcs versions (sorry, no earlier ones to check here),
compiled with -O2 -fomit-frame-pointer -mpentium.

The compiler crashes on the file .../arch/i386/kernel/process.c from
linux-2.1.64, but doesn't on linux-2.1.63-VGER-CVS971112. I've managed to
strip down the files to the following minimal examples, which crash
"gcc -c testfile.c". In the original, pa is gdt and the offending function
is flush_thread:

#ifdef DONT_CRASH
extern int pa[256];
#else
extern int *pa;
#endif

void f(void)
{
int i;
{
for (i = 1; i < 512; i++) {
__asm__(""
:
: "m" (* pa),
"m" (* (pa+1)),
"m" (* (pa+2)),
"m" (* (pa+3)),
"m" (* (pa+4)),
"m" (* (pa+5)),
"m" (* (pa+6)));
}
}
}
--
Horst von Brand vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viña del Mar, Chile +56 32 672616


\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.069 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site