Internal error in gcc

Sven Sandberg ssven@geocities.com
Tue Feb 8 07:50:00 GMT 2000


Hello,

I got the following compiler error when compiling one of my files:

----------------
d:/djgpp/lang/cxx/stl_alloc.h: In function `static char *
__default_alloc_template<false,0>::_S_chunk_alloc(long unsigned int, int &)':
d:/djgpp/lang/cxx/stl_alloc.h:531:   instantiated from
`__default_alloc_template<false,0>::_S_refill(long unsigned int)'
d:/djgpp/lang/cxx/stl_alloc.h:419:   instantiated from
`__default_alloc_template<false,0>::allocate(long unsigned int)'
d:/djgpp/lang/cxx/std/bastring.cc:33:   instantiated from
`basic_string<char,string_char_traits<char>,__default_alloc_template<false,0
> >::Rep::operator new(long unsigned int, long unsigned int)'
d:/djgpp/lang/cxx/std/bastring.cc:60:   instantiated from
`basic_string<char,string_char_traits<char>,__default_alloc_template<false,0
> >::Rep::create(long unsigned int)'
d:/djgpp/lang/cxx/std/bastring.cc:71:   instantiated from
`basic_string<char,string_char_traits<char>,__default_alloc_template<false,0
> >::Rep::clone()'
d:/djgpp/lang/cxx/std/bastring.h:75:   instantiated from here
d:/djgpp/lang/cxx/stl_alloc.h:518: internal error--unrecognizable insn:
(jump_insn 30 29 414 (set (pc)
        (if_then_else (geu (cc0)
                (const_int 10000 [0x2710]))
            (label_ref 33)
            (pc))) -1 (nil)
    (expr_list:REG_BR_PROB (const_int -1 [0xffffffff])
        (nil)))
----------------

My command line is:
	gcc -O3 -fbranch-probabilities -o obj/djgpp/release/game.o -c src/game.cc
, plus some local include paths that I figured were unessential. It seems
like both -O3 and -fbranch-probabilities are necessary to get the error.

Is this a known bug? I uploaded the .ii file together with the .da file and
the compiler errors to
http://www.geocities.com/SiliconValley/Campus/2801/misc/internal-error-tar.g
z (it is ~59 KB, and is really a .tar.gz file but yahoo is too stupid to
allow .tar.gz extensions so I renamed it). I haven't had this problem
before, so I suspect it might go away if I start reducing the amount of code.

I use gcc 2.95.2 with djgpp 2.02. The source files are C++. The error
occurs both under dos and under dos box from windows 95. I use a P133.

Thanks,
Sven Sandberg



More information about the Gcc-bugs mailing list