public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/52581] New: ICE with gcc-4.7 for H8300-elf target.
@ 2012-03-13 17:09 ajinkya.dhobale at kpitcummins dot com
  2012-03-13 17:35 ` [Bug c++/52581] " redi at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ajinkya.dhobale at kpitcummins dot com @ 2012-03-13 17:09 UTC (permalink / raw)
  To: gcc-bugs

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: unassigned@gcc.gnu.org
        ReportedBy: ajinkya.dhobale@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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-10-05 19:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-13 17:09 [Bug libstdc++/52581] New: ICE with gcc-4.7 for H8300-elf target ajinkya.dhobale at kpitcummins dot com
2012-03-13 17:35 ` [Bug c++/52581] " redi at gcc dot gnu.org
2012-06-22  9:23 ` jason at gcc dot gnu.org
2012-10-05 19:32 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).