egcs 971016 crash on alpha when no-sjlj-exceptions used with stdarg
scott snyder
snyder@d0sgif.fnal.gov
Fri Oct 17 20:28:00 GMT 1997
hi -
egcs 971016 gets a fatal error when compiling this source on a
alpha-dec-osf4.0 system with the -fno-sjlj-exceptions flag set.
thanks,
sss
-- x.c -----------------------------------------------------------------------
#include <stdarg.h>
void concat (const char *first, ...)
{
register int length;
register const char *arg;
va_list args;
va_start (args, first);
if (!first)
length = 0;
else
{
length = 1;
while ((arg = va_arg (args, const char *)))
{
++length;
}
}
va_end (args);
}
------------------------------------------------------------------------------
% gcc -v -c -fno-sjlj-exceptions x.c
Reading specs from /d0sgif/data0/snyder/local/ALPHA/lib/gcc-lib/alpha-dec-osf4.0/egcs-2.90.13/specs
gcc version egcs-2.90.13 971016 (gcc2-970802 experimental)
/d0sgif/data0/snyder/local/ALPHA/lib/gcc-lib/alpha-dec-osf4.0/egcs-2.90.13/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=90 -Dunix -D__osf__ -D__alpha -D__alpha__ -D_LONGLONG -DSYSTYPE_BSD -D_SYSTYPE_BSD -D__unix__ -D__osf__ -D__alpha -D__alpha__ -D_LONGLONG -D__SYSTYPE_BSD__ -D_SYSTYPE_BSD -D__unix -D__SYSTYPE_BSD -Asystem(unix) -Asystem(xpg4) -Acpu(alpha) -Amachine(alpha) -D__LANGUAGE_C__ -D__LANGUAGE_C -DLANGUAGE_C x.c /tmp/ccaavhza.i
GNU CPP version egcs-2.90.13 971016 (gcc2-970802 experimental)
#include "..." search starts here:
#include <...> search starts here:
/d0sgif/data0/snyder/local/ALPHA/alpha-dec-osf4.0/include
/d0sgif/data0/snyder/local/ALPHA/lib/gcc-lib/alpha-dec-osf4.0/egcs-2.90.13/include
/usr/include
End of search list.
/d0sgif/data0/snyder/local/ALPHA/lib/gcc-lib/alpha-dec-osf4.0/egcs-2.90.13/cc1 /tmp/ccaavhza.i -quiet -dumpbase x.c -version -fno-sjlj-exceptions -o /tmp/ccaavhza.s
GNU C version egcs-2.90.13 971016 (gcc2-970802 experimental) (alpha-dec-osf4.0) compiled by GNU C version egcs-2.90.13 971016 (gcc2-970802 experimental).
x.c: In function `concat':
x.c:23: internal error--unrecognizable insn:
(insn:QI 44 37 46 (clobber (mem/s:TI (plus:DI (reg:DI 15 $15)
(const_int 24)))) -1 (nil)
(nil))
gcc: Internal compiler error: program cc1 got fatal signal 6
%
More information about the Gcc-bugs
mailing list