From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32184 invoked by alias); 28 Jun 2005 14:33:08 -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 32117 invoked by uid 22791); 28 Jun 2005 14:32:49 -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 14:32:49 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id BE1AA9624; Tue, 28 Jun 2005 10:32:47 -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 02094-01-6; Tue, 28 Jun 2005 10:32:47 -0400 (EDT) Received: from [127.0.0.1] (taconic.gnat.com [205.232.38.103]) by nile.gnat.com (Postfix) with ESMTP id 75CEC961A; Tue, 28 Jun 2005 10:32:47 -0400 (EDT) Message-ID: <42C15F8D.40706@adacore.com> Date: Tue, 28 Jun 2005 14:33:00 -0000 From: Robert Dewar User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) MIME-Version: 1.0 To: Gabriel Paubert CC: Gabriel Dos Reis , Andrew Pinski , gcc mailing list Subject: Re: signed is undefined and has been since 1992 (in GCC) References: <27fdc0d8dc588cfdb3a14a153c5d037c@physics.uc.edu> <6d9fa260f233e519762c7d11276a35ad@physics.uc.edu> <3dbad9a6bd7eb1aea74ff2245eaa1b99@physics.uc.edu> <42C115D5.8070503@adacore.com> <42C13D4D.9040604@adacore.com> <20050628134642.GA18415@iram.es> In-Reply-To: <20050628134642.GA18415@iram.es> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-06/txt/msg01121.txt.bz2 Gabriel Paubert wrote: > Now in practice what would be the cost of checking that the divisor > is -1 and take an alternate path that computes the correct > results (in modulo arithmetic) for this case ? We actually had to do this on the x86 early on for GNAT, UGH!