From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25479 invoked by alias); 1 Nov 2004 02:50:09 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 25243 invoked from network); 1 Nov 2004 02:50:08 -0000 Received: from unknown (HELO Cantor.suse.de) (195.135.220.2) by sourceware.org with SMTP; 1 Nov 2004 02:50:08 -0000 Received: from hermes.suse.de (hermes-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id AD7A0ECC97E; Mon, 1 Nov 2004 03:50:07 +0100 (CET) To: Paul Hilfinger Cc: gdb-patches@sources.redhat.com Subject: Re: : Re: [RFA] Setting long long bitfields References: <200411010116.iA11Fx03022536@tully.CS.Berkeley.EDU> From: Andreas Schwab X-Yow: TONY RANDALL! Is YOUR life a PATIO of FUN?? Date: Mon, 01 Nov 2004 02:50:00 -0000 In-Reply-To: <200411010116.iA11Fx03022536@tully.CS.Berkeley.EDU> (Paul Hilfinger's message of "Sun, 31 Oct 2004 17:15:59 -0800") Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2004-11/txt/msg00005.txt.bz2 Paul Hilfinger writes: > Oops, sorry: I got the problematic case backwards. The problem is > that a bitsize of 0 is legal, and that causes the result of your > suggested tweak to be officially undefined. How can bitsize ever become zero? Note that the original code contains a shift by bitsize - 1, which is undefined as well in this case. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."