From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9593 invoked by alias); 13 Mar 2012 17:28:19 -0000 Received: (qmail 9528 invoked by uid 22791); 13 Mar 2012 17:28:17 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Mar 2012 17:28:05 +0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/52581] ICE with gcc-4.7 for H8300-elf target. Date: Tue, 13 Mar 2012 17:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: build X-Bugzilla-Severity: major X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Component Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-03/txt/msg01194.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52581 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Component|libstdc++ |c++ --- Comment #1 from Jonathan Wakely 2012-03-13 17= :27:48 UTC --- (In reply to comment #0) > Modification done in gcc source is as follows, > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > In "libstdc++-v3/include/bits/random.tcc" >=20 > const size_t __m =3D std::max(__s + 1, __n); >=20 > replaced with, >=20 > const size_t __m =3D std::max((size_t)(__s + 1), __n); >=20 >=20 > In "libstdc++-v3/include/std/bitset" >=20 > const size_t __nbits =3D std::min(_Nb, std::min(__n, __len - __pos)); >=20 > replaced with >=20 > const size_t __nbits =3D std::min(_Nb, std::min(__n, (size_t)(__len - __p= os))); If these are necessary for portability then please open a separate bugzilla report, with component=3Dlibstdc++, thanks. > Error message is as follows, > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > 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/incl= ude/ext/bitmap_allocator.h: > In member function =C3=A2void > __gnu_cxx::__detail::_Bitmap_counter<_Tp>::_M_reset(long int) [with _Tp = =3D > __gnu_cxx::bitmap_allocator::_Alloc_block*]=C3=A2: > /home/toolchain/build/gcc/h8300-elf/h8300h/normal/int32/libstdc++-v3/incl= ude/ext/bitmap_allocator.h:417:2: > error: type mismatch in binary expression > short int >=20 > int >=20 > short int >=20 > D.6046 =3D D.6045 /[ex] 8; >=20 > home/toolchain/build/gcc/h8300-elf/h8300h/normal/int32/libstdc++-v3/inclu= de/ext/bitmap_allocator.h:417:2: > internal compiler error: verify_gimple failed an internal compiler error indicates a component=3Dc++ bug, not a component=3Dlibstdc++ bug