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]

SHOWSTOPPER BUG compiling trivial code



Compiling this code:

/// ppp.c
static int
   elem_compare (elem1, elem2)
   const void *elem1;
const void *elem2;
{
	int e1 = * (int *) elem1;
	int e2 = * (int *) elem2;
	if (e1 < e2)
		return -1;
	else if (e1 > e2)
		return 1;
	else
		return 0;
}
/// eof

gives an ICE  when using arm-elf compiler hosted on Intel RH 5.2


/home/vadim/build-egcs/gcc/xgcc -B/home/vadim/build-egcs/gcc/ -B/home/vadim/
build-egcs/arm-elf/newlib/ -B/home/vadim/arm/arm-elf/bin/  -nostdinc -c -DHA
VE_CONFIG_H -g -O2   -W -Wall -Wtraditional -v ppp.c
Reading specs from /home/vadim/build-egcs/gcc/specs
gcc version 2.96 20000503 (experimental)
 /home/vadim/build-egcs/gcc/cpp -lang-c -nostdinc -v -iprefix
/home/vadim/build-egcs/gcc/../lib/gcc-lib/arm-elf/2.96/ -isystem
/home/vadim/arm/arm-elf/bin/include -isystem
/home/vadim/build-egcs/arm-elf/newlib/include -isystem
/home/vadim/build-egcs/gcc/include -D__GNUC__=2 -D__GNUC_MINOR__=96 -D__GNUC
_PATCHLEVEL__=0 -Acpu(arm) -Amachine(arm) -D__CHAR_UNSIGNED__ -D__OPTIMIZE__
 -g -W -Wall -Wtraditional -D__ARM_ARCH_4T__ -D__APCS_32__ -D__ARMEL__ -Darm
_elf -D__ELF__ -Darm -D__arm__ -DHAVE_CONFIG_H ../../../egcs/libiberty/ppp.c
/tmp/ccnBb2bK.i
GNU CPP version 2.96 20000503 (experimental) (cpplib)
 (ARM/ELF non-Linux)
ignoring nonexistent directory `/home/vadim/arm/arm-elf/bin/include'
ignoring nonexistent directory
`/home/vadim/build-egcs/arm-elf/newlib/include'
#include "..." search starts here:
#include <...> search starts here:
 /home/vadim/build-egcs/gcc/include
End of search list.
 /home/vadim/build-egcs/gcc/cc1 /tmp/ccnBb2bK.i -quiet -dumpbase
ppp.c -g -O2 -W -Wall -Wtraditional -version -o /tmp/ccA6A3SF.s
GNU C version 2.96 20000503 (experimental) (arm-elf) compiled by GNU C
version 2.7.2.3.
../../../egcs/libiberty/ppp.c: In function `elem_compare':
../../../egcs/libiberty/ppp.c:14: Internal compiler error in
`verify_wide_reg_1', at flow.c:2593
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.


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