This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Internal compiler error in 2.96 19991213, more information
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Internal compiler error in 2.96 19991213, more information
- From: "Matt Austern" <austern at isolde dot engr dot sgi dot com>
- Date: Mon, 13 Dec 1999 17:44:01 -0800
- References: <9912131732.ZM41140@isolde.engr.sgi.com>
- Reply-to: austern at sgi dot com
Sorry, looking back at my earlier message I see that I haven't
quite provided full information. Here's the -v output.
--Matt
austern@pizzelle% g++ -v -c -fPIC bug.C
Reading specs from
/hosts/isolde/home/austern/tmp/lib/gcc-lib/i686-pc-linux-gnu/2.96/specs
gcc version 2.96 19991213 (experimental)
/hosts/isolde/home/austern/tmp/lib/gcc-lib/i686-pc-linux-gnu/2.96/cpp
-lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=96 -D__cplusplus
-D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__
-D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Acpu(i386) -Amachine(i386)
-Di386 -D__i386 -D__i386__ -D__tune_pentiumpro__ -D__PIC__ -D__pic__ bug.C
/tmp/ccOOc6Ug.ii
GNU CPP version 2.96 19991213 (experimental) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/hosts/isolde/home/austern/tmp/lib/gcc-lib/i686-pc-linux-gnu/2.96/../../../../include/g++-3
/hosts/isolde/home/austern/tmp/lib/gcc-lib/i686-pc-linux-gnu/2.96/../../../../i686-pc-linux-gnu/include
/hosts/isolde/home/austern/tmp/lib/gcc-lib/i686-pc-linux-gnu/2.96/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
/usr/local/include
End of omitted list.
/hosts/isolde/home/austern/tmp/lib/gcc-lib/i686-pc-linux-gnu/2.96/cc1plus
/tmp/ccOOc6Ug.ii -quiet -dumpbase bug.cc -version -fPIC -o /tmp/ccamUsXo.s
GNU C++ version 2.96 19991213 (experimental) (i686-pc-linux-gnu) compiled by
GNU C version 2.96 19991213 (experimental).
bug.C: In method `void Y::f ()':
bug.C:20: Unrecognizable insn:
(insn 46 44 48 (set (reg:SI 4 esi)
(plus:SI (reg:SI 2 ecx)
(const (unspec[
(symbol_ref/v:SI ("*.LC0"))
] 7)))) -1 (nil)
(nil))
bug.C:20: Internal compiler error in `insn_default_length', at
insn-attrtab.c:215
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
austern@pizzelle%
--- Forwarded mail from austern@sgi.com
From: "Matt Austern" <austern>
Date: Mon, 13 Dec 1999 17:32:51 -0800
Reply-to: austern@sgi.com
To: gcc-bugs@gcc.gnu.org
Subject: Internal compiler error in 2.96 19991213
Cc: austern
Here is a simple (not necessarily minimal) test case.
Note that the -fPIC option is essential.
--Matt Austern
austern@pizzelle% g++ -v
Reading specs from
/hosts/isolde/home/austern/tmp/lib/gcc-lib/i686-pc-linux-gnu/2.96/specs
gcc version 2.96 19991213 (experimental)
austern@pizzelle% cat bug.C
typedef struct {
unsigned char buf[2048];
} X;
struct Y{
void f();
struct {
X x;
} _s[1];
};
typedef char* CharStar;
void Y::f() {
const CharStar s = "abcd";
for (int i = 0; i < 4; i++){
_s[0].x.buf[32+i] = s[i];
}
}
austern@pizzelle% g++ -c -fPIC bug.C
bug.C: In method `void Y::f ()':
bug.C:20: Unrecognizable insn:
(insn 46 44 48 (set (reg:SI 4 esi)
(plus:SI (reg:SI 2 ecx)
(const (unspec[
(symbol_ref/v:SI ("*.LC0"))
] 7)))) -1 (nil)
(nil))
bug.C:20: Internal compiler error in `insn_default_length', at
insn-attrtab.c:215
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
austern@pizzelle%
--- End of forwarded mail from austern@sgi.com