- To: bugs-gcc at gnu dot org
- Subject: gcc bug
- From: "Derek R. Price" <derek dot price at openavenue dot com>
- Date: Mon, 16 Oct 2000 19:43:58 -0400
- Organization: Open Avenue
Since subbing the tolower line with:
*p = tolower(*p);
p++;
or
print ("%c", *p++);
fails to produce a seg fault, I'm assuming this is a bug in gcc.
[dprice@empress ccvs]$ gcc -v -save-temps tmp.c
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.0)
/usr/lib/gcc-lib/i386-redhat-linux/2.96/cpp0 -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)
-Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_i386__
tmp.c tmp.i
GNU CPP version 2.96 20000731 (Red Hat Linux 7.0) (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 tmp.i -quiet -dumpbase
tmp.c -version -o tmp.s
GNU C version 2.96 20000731 (Red Hat Linux 7.0) (i386-redhat-linux)
compiled by GNU C version 2.96 20000731 (Red Hat Linux 7.0).
as -V -Qy -o tmp.o tmp.s
GNU assembler version 2.10.90 (i386-redhat-linux) using BFD version
2.10.0.18
/usr/lib/gcc-lib/i386-redhat-linux/2.96/collect2 -m elf_i386
-dynamic-linker /lib/ld-linux.so.2
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crti.o
/usr/lib/gcc-lib/i386-redhat-linux/2.96/crtbegin.o
-L/usr/lib/gcc-lib/i386-redhat-linux/2.96
-L/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../.. tmp.o -lgcc -lc -lgcc
/usr/lib/gcc-lib/i386-redhat-linux/2.96/crtend.o
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crtn.o
Derek
--
Derek Price CVS Solutions Architect ( http://CVSHome.org )
mailto:dprice@openavenue.com OpenAvenue ( http://OpenAvenue.com )
--
You seem... to consider the judges as the ultimate arbiters of all
constitutional questions; a very dangerous doctrine indeed, and one which would
place us under the despotism of an oligarchy.... The Constitution has erected
no such single tribunal.
- Thomas Jefferson, 1820
tmp.i.bz2