Article View: gnu.gcc.bug
Article #6314Internal compiler error in cc1
From: Ian Willis
Date: Sun, 17 Dec 1995 00:00
Date: Sun, 17 Dec 1995 00:00
42 lines
2617 bytes
2617 bytes
Compiling this cut down example program with "gcc -O file.c":
main() {
int dev = 0;
if (((dev + 1) & 1) || ((dev + 1) & 2)) ;
}
gives:
gcc: Internal compiler error: program cc1 got fatal signal 6
Change -O to -O0 and the problem goes away.
The problem occurs both in a gcc 2.7.2 I built for i386-sco3.2v5 and in
one built by robertl@arnet.com (who mailed the patches necessary to host
and target on SCO OpenServer 5 to bug-gcc on Nov 17 1995). For the latter
"gcc -v -O file.c" shows:
Reading specs from /usr/cygnus/progressive-95q4/H-i486-unknown-sco3.2v5.0.0/lib/gcc-lib/i486-unknown-sco3.2v5.0.0/2.7-95q4/specs
gcc version 2.7-95q4
/usr/cygnus/progressive-95q4/H-i486-unknown-sco3.2v5.0.0/lib/gcc-lib/i486-unkno
wn-sco3.2v5.0.0/2.7-95q4/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -
Asystem(__unix) -Acpu(__i386) -Amachine(__i386) -D__OPTIMIZE__ -D_M_COFF -D_SCO_
COFF -D__i386 -D_SCO_DS=1 -D__unix -D_M_I386 -D_M_XENIX -D_M_UNIX -D_SCO_C_DIALE
CT=1 -D_STRICT_NAMES -D_SCO_XPG_VERS=4 -I/usr/include -D_M_BITFIELDS -D_M_INTERN
AT -D_M_SYSV -D_M_SYS5 -D_M_SYSIII -D_M_WORDSWAP -Di386 -Dunix -DM_I386 -DM_UNIX
-DM_XENIX -D_M_I86 -D_M_I86SM -D_M_SDATA -D_M_STEXT file.c /usr/tmp/cca004uE.i
GNU CPP version 2.7-95q4 (80386, ATT syntax)
#include "..." search starts here:
#include <...> search starts here:
/usr/include
/usr/cygnus/progressive-95q4/H-i486-unknown-sco3.2v5.0.0/lib/gcc-lib/i486-unknown-sco3.2v5.0.0/2.7-95q4/../../../../../include
/usr/cygnus/progressive-95q4/H-i486-unknown-sco3.2v5.0.0/lib/gcc-lib/i486-unknown-sco3.2v5.0.0/2.7-95q4/../../../../i486-unknown-sco3.2v5.0.0/include
/usr/cygnus/progressive-95q4/H-i486-unknown-sco3.2v5.0.0/lib/gcc-lib/i486-unknown-sco3.2v5.0.0/2.7-95q4/include
/usr/include
End of search list.
/usr/cygnus/progressive-95q4/H-i486-unknown-sco3.2v5.0.0/lib/gcc-lib/i486-unknown-sco3.2v5.0.0/2.7-95q4/cc1 /usr/tmp/cca004uE.i -quiet -dumpbase file.c -O -version -o /usr/tmp/cca004uE.s
GNU C version 2.7-95q4 (80386, ATT syntax) compiled by CC.
gcc: Internal compiler error: program cc1 got fatal signal 6
Disclaimer: The opinions expressed are mine and not
those of The Santa Cruz Operation, Inc.
Technical Details
Message-ID:
<9512171705.aa22428@scommode.sco.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,73657d838531714,start X-Google-Attributes: gid113d02,public From: ianw@sco.COM (Ian Willis) Subject: Internal compiler error in cc1 Date: 1995/12/17 Message-ID: <9512171705.aa22428@scommode.sco.com> X-Deja-AN: 122134607 distribution: gnu sender: daemon@cis.ohio-state.edu organization: GNUs Not Usenet newsgroups: gnu.gcc.bug