From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3177 invoked by alias); 28 Jun 2005 20:31:45 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 3168 invoked by uid 22791); 28 Jun 2005 20:31:43 -0000 Received: from nile.gnat.com (HELO nile.gnat.com) (205.232.38.5) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 28 Jun 2005 20:31:43 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id D754D962D; Tue, 28 Jun 2005 16:31:41 -0400 (EDT) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02183-01-7; Tue, 28 Jun 2005 16:31:41 -0400 (EDT) Received: from [127.0.0.1] (taconic.gnat.com [205.232.38.103]) by nile.gnat.com (Postfix) with ESMTP id 9F24F960F; Tue, 28 Jun 2005 16:31:41 -0400 (EDT) Message-ID: <42C1B3AC.50206@adacore.com> Date: Tue, 28 Jun 2005 20:31:00 -0000 From: Robert Dewar User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) MIME-Version: 1.0 To: Gabriel Dos Reis CC: Olivier Galibert , Andrew Haley , Dave Korn , 'Andrew Pinski' , 'gcc mailing list' Subject: Re: signed is undefined and has been since 1992 (in GCC) References: <20050628142441.GA52889@dspnet.fr.eu.org> <20050628145148.GD52889@dspnet.fr.eu.org> <17089.26325.169281.749633@zapata.pink> <20050628171752.GE52889@dspnet.fr.eu.org> <42C19BE8.9050107@adacore.com> <42C1A23F.6000806@adacore.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-06/txt/msg01195.txt.bz2 Gabriel Dos Reis wrote: > C and C++ are general programming language geared toward system > programming. Yes, and my two examples are completely consistent with that. A C compiler that uses the trapping arithmetic on the MIPS is entirely conforming, and has the advantage that if you develop with such a compiler you avoid silly mistakes of expecting signed integers to wrap, so your code will be more portable. "has the semantics that Gabriel Dos Reis wants" is not an evaluable predicate!