http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52581
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|libstdc++ |c++ --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-03-13 17:27:48 UTC --- (In reply to comment #0) > 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))); If these are necessary for portability then please open a separate bugzilla report, with component=libstdc++, thanks. > 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 an internal compiler error indicates a component=c++ bug, not a component=libstdc++ bug