From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28077 invoked by alias); 30 Jun 2005 20:21:10 -0000 Mailing-List: contact sid-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sources.redhat.com Received: (qmail 27952 invoked by uid 22791); 30 Jun 2005 20:21:03 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 30 Jun 2005 20:21:03 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j5UKL1q8025733 for ; Thu, 30 Jun 2005 16:21:01 -0400 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j5UKL0u12880; Thu, 30 Jun 2005 16:21:00 -0400 Received: from touchme.toronto.redhat.com (IDENT:postfix@touchme.toronto.redhat.com [172.16.14.9]) by pobox.toronto.redhat.com (8.12.8/8.12.8) with ESMTP id j5UKKx1M012741; Thu, 30 Jun 2005 16:20:59 -0400 Received: from tooth.toronto.redhat.com (tooth.toronto.redhat.com [172.16.14.29]) by touchme.toronto.redhat.com (Postfix) with ESMTP id F29C2800108; Thu, 30 Jun 2005 16:20:58 -0400 (EDT) Received: from tooth.toronto.redhat.com (IDENT:V79zPyCSRhVd7hWkks8vbRfyA2p/7GAS@localhost [127.0.0.1]) by tooth.toronto.redhat.com (8.12.8/8.12.8) with ESMTP id j5UKKwdS008414; Thu, 30 Jun 2005 16:20:58 -0400 Received: (from fche@localhost) by tooth.toronto.redhat.com (8.12.8/8.12.8/Submit) id j5UKKw24008412; Thu, 30 Jun 2005 16:20:58 -0400 Date: Thu, 30 Jun 2005 20:21:00 -0000 From: "Frank Ch. Eigler" To: Aldy Hernandez Cc: sid@sources.redhat.com, jason@redhat.com Subject: Re: sid doesn't build with gcc 4.0.x Message-ID: <20050630202058.GA7997@redhat.com> References: <20050630172848.GA4491@redhat.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline In-Reply-To: <20050630172848.GA4491@redhat.com> User-Agent: Mutt/1.4.1i X-SW-Source: 2005-q2/txt/msg00054.txt.bz2 --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 691 Hi - aldyh wrote: > Sid is not building with GCC 4.0 or above. The problem is in > component/cgen-cpu/cgen-cpu.h's use of reinterpret_cast. The > reinterpret_cast construct is not allowed amongst integers. I'm checking in a variant of this code which uses pointer aliasing. Some super-keener could make a union-based version (pre-approved). > * component/interrupt/components.h (bus_size): Fix constructor to > be legitimate C++. This one is ok, feel free to commit. > * component/cgen-cpu/cgen-cpu.h (GETMEMSF): Change > reinterpret_cast to static_cast. > (SETMEMSF): Same. > (GETMEMDF): Same. > (SETMEMDF): Same. This one is not (but I will commit a better one). - FChE --y0ulUmNC+osPPQO6 Content-Type: application/pgp-signature Content-Disposition: inline Content-length: 189 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCxFQqVZbdDOm/ZT0RAvY2AJ9CuIHj4xb6aLgb5Ws4d5sJSVSbtgCdE+44 fwQn1p1FqJfdKZ8pZqeVrgA= =xcx3 -----END PGP SIGNATURE----- --y0ulUmNC+osPPQO6--