[Bug c/79027] fold-const.c:11104:1: internal compiler error: Floating point exception

dave.anglin at bell dot net gcc-bugzilla@gcc.gnu.org
Wed Jan 11 13:18:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79027

--- Comment #4 from dave.anglin at bell dot net ---
The same error occurs with 4.9.4, 5.4.1 and 6.3.0.  I haven't seen it on hpux. 
This made me think
that it might be configuration related.  The error doesn't occur if I add
"--disable-lto --without-cloog
--without-ppl" to the configure command.  I would suspect ppl.

However, then I get an ICE building libgo:

libtool: compile:  /home/dave/gnu/gcc/objdir/./gcc/gccgo
-B/home/dave/gnu/gcc/objd
ir/./gcc/ -B/home/dave/opt/gnu/gcc/gcc-7/hppa-linux-gnu/bin/
-B/home/dave/opt/gnu/
gcc/gcc-7/hppa-linux-gnu/lib/ -isystem
/home/dave/opt/gnu/gcc/gcc-7/hppa-linux-gnu
/include -isystem /home/dave/opt/gnu/gcc/gcc-7/hppa-linux-gnu/sys-include -O2
-g -
I . -c -fgo-pkgpath=debug/dwarf ../../../gcc/libgo/go/debug/dwarf/buf.go
../../../
gcc/libgo/go/debug/dwarf/class_string.go
../../../gcc/libgo/go/debug/dwarf/const.g
o ../../../gcc/libgo/go/debug/dwarf/entry.go
../../../gcc/libgo/go/debug/dwarf/lin
e.go ../../../gcc/libgo/go/debug/dwarf/open.go
../../../gcc/libgo/go/debug/dwarf/t
ype.go ../../../gcc/libgo/go/debug/dwarf/typeunit.go
../../../gcc/libgo/go/debug/d
warf/unit.go  -fPIC -o debug/.libs/dwarf.o
go1: internal compiler error: in write_specific_type_functions, at
go/gofrontend/t
ypes.cc:1993
0x28d023 Type::write_specific_type_functions(Gogo*, Named_type*, long long,
std::_
_cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, 
Function_type*, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allo
cator<char> > const&, Function_type*)
        ../../gcc/gcc/go/gofrontend/types.cc:19930x28d473
Type::specific_type_functions(Gogo*, Named_type*, long long, Function_typ
e*, Function_type*, Named_object**, Named_object**)
        ../../gcc/gcc/go/gofrontend/types.cc:1971
0x28b743 Type::type_functions(Gogo*, Named_type*, Function_type*,
Function_type*, 
Named_object**, Named_object**)
        ../../gcc/gcc/go/gofrontend/types.cc:1753
0x28fa3f Type::type_descriptor_constructor(Gogo*, int, Named_type*, Methods
const*
, bool)
        ../../gcc/gcc/go/gofrontend/types.cc:2308
0x29125b Array_type::array_type_descriptor(Gogo*, Named_type*)
        ../../gcc/gcc/go/gofrontend/types.cc:6932
0x2916b7 Array_type::do_type_descriptor(Gogo*, Named_type*)
        ../../gcc/gcc/go/gofrontend/types.cc:6911
0x284373 Type::make_type_descriptor_var(Gogo*)
        ../../gcc/gcc/go/gofrontend/types.cc:1237
0x284797 Type::type_descriptor_pointer(Gogo*, Location)
        ../../gcc/gcc/go/gofrontend/types.cc:1172
0x2025bb Type_descriptor_expression::do_get_backend(Translate_context*)
        ../../gcc/gcc/go/gofrontend/expressions.cc:14344
0x1de9df Expression::get_backend(Translate_context*)
        ../../gcc/gcc/go/gofrontend/expressions.cc:402
0x1fbacf Struct_construction_expression::do_get_backend(Translate_context*)
        ../../gcc/gcc/go/gofrontend/expressions.cc:12572
0x1de9df Expression::get_backend(Translate_context*)       
../../gcc/gcc/go/gofrontend/expressions.cc:4020x1fc8d3
Array_construction_expression::get_constructor(Translate_context*, Btype*)     
  ../../gcc/gcc/go/gofrontend/expressions.cc:127950x1fcaf3
Fixed_array_construction_expression::do_get_backend(Translate_context*)       
../../gcc/gcc/go/gofrontend/expressions.cc:128960x1de9df
Expression::get_backend(Translate_context*)       
../../gcc/gcc/go/gofrontend/expressions.cc:402
0x1dfb87 Slice_value_expression::do_get_backend(Translate_context*)
        ../../gcc/gcc/go/gofrontend/expressions.cc:14729
0x1de9df Expression::get_backend(Translate_context*)
        ../../gcc/gcc/go/gofrontend/expressions.cc:402
0x1eaf9b Slice_construction_expression::do_get_backend(Translate_context*)
        ../../gcc/gcc/go/gofrontend/expressions.cc:13068
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
Makefile:3268: recipe for target 'debug/dwarf.lo' failed
make[4]: *** [debug/dwarf.lo] Error 1

--
John David Anglin       dave.anglin@bell.net


More information about the Gcc-bugs mailing list