http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52581
Bug #: 52581 Summary: ICE with gcc-4.7 for H8300-elf target. Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: libstdc++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: ajinkya.dhob...@kpitcummins.com Hello, I am newbie to GNU GCC. I am working on H8300 architecture and version detail for my toolchain sources are as follows, gcc = 4.7.0-RC-20120302 binutils = 2.22 newlib = 1.20.0 mpfr = 3.0.0 mpc = 0.8.2 gmp = 5.0.1 native gcc = 4.3.2 OS = Fedora 10 All sources are used without any modificaion except gcc source. Modification done in gcc source is as follows, ============================================================================ In "libstdc++-v3/include/bits/random.tcc" const size_t __m = std::max(__s + 1, __n); replaced with, const size_t __m = std::max((size_t)(__s + 1), __n); In "libstdc++-v3/include/std/bitset" const size_t __nbits = std::min(_Nb, std::min(__n, __len - __pos)); replaced with const size_t __nbits = std::min(_Nb, std::min(__n, (size_t)(__len - __pos))); ============================================================================ After successful built of binutils, gcc and newlib, I am facing problem while building toolchain during final gcc make. GCC configure command: "make > makelast.out 2>&1". Error message is as follows, ============================================================================ In file included from /home/toolchain/src/gcc-4.7.2/libstdc++-v3/src/bitmap_allocator.cc:26:0: /home/toolchain/build/gcc/h8300-elf/h8300h/normal/int32/libstdc++-v3/include/ext/bitmap_allocator.h: In member function âvoid __gnu_cxx::__detail::_Bitmap_counter<_Tp>::_M_reset(long int) [with _Tp = __gnu_cxx::bitmap_allocator<char>::_Alloc_block*]â: /home/toolchain/build/gcc/h8300-elf/h8300h/normal/int32/libstdc++-v3/include/ext/bitmap_allocator.h:417:2: error: type mismatch in binary expression short int int short int D.6046 = D.6045 /[ex] 8; home/toolchain/build/gcc/h8300-elf/h8300h/normal/int32/libstdc++-v3/include/ext/bitmap_allocator.h:417:2: internal compiler error: verify_gimple failed =========================================================================== All the help you can provide will be very appreciated. Thank you very much. Ajinkya