This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

internal compiler error with march=k6


Hi,

I get reproducible crashes when I try to compile this simple code
with march=k6. All other march=[i386|i486|pentium|pentiumpro|athlon] work.

Here's the code in all it's glory:
# 1 "k6-crash.c"
void copy3(char *dst, char *src, unsigned count)
{
  int i;
  for (i=count>>2; i; i--)
    *((unsigned *)dst)++ = *((unsigned *)src)++;
}


And the command I use: (-O1 or -march=!k6 do not crash)	
gcc -v --save-temps -march=k6 -O2 k6-crash.c


And finally the output from gcc:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000719 (experimental)
 /usr/lib/gcc-lib/i386-redhat-linux/2.96/cpp -lang-c -v -D__GNUC__=2
-D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__
-D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__OPTIMIZE__
-Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__k6 -D__k6__
-D__tune_k6__ k6-crash.c k6-crash.i
GNU CPP version 2.96 20000719 (experimental) (cpplib)
 (i386 Linux/ELF)
ignoring nonexistent directory "/usr/i386-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc-lib/i386-redhat-linux/2.96/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i386-redhat-linux/2.96/cc1 k6-crash.i -quiet -dumpbase
k6-crash.c -march=k6 -O2 -version -o k6-crash.s
GNU C version 2.96 20000719 (experimental) (i386-redhat-linux) compiled by GNU C
version 2.96 20000719 (experimental).
gcc: Internal error: Segmentation fault (program cc1)

-- 
[ Mikko Tiihonen | 040-5445043 | mikko.tiihonen@hut.fi ]

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]