From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24524 invoked by alias); 28 Jun 2005 04:20:33 -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 24431 invoked by uid 22791); 28 Jun 2005 04:20:08 -0000 Received: from mtagate3.de.ibm.com (HELO mtagate3.de.ibm.com) (195.212.29.152) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 28 Jun 2005 04:20:08 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate3.de.ibm.com (8.12.10/8.12.10) with ESMTP id j5S4K5mf172088 for ; Tue, 28 Jun 2005 04:20:05 GMT Received: from d12av04.megacenter.de.ibm.com (d12av04.megacenter.de.ibm.com [9.149.165.229]) by d12nrmr1607.megacenter.de.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j5S4K5RW159624 for ; Tue, 28 Jun 2005 06:20:05 +0200 Received: from d12av04.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av04.megacenter.de.ibm.com (8.12.11/8.13.3) with ESMTP id j5S4K5KL006297 for ; Tue, 28 Jun 2005 06:20:05 +0200 Received: from d12ml102.megacenter.de.ibm.com (d12ml102.megacenter.de.ibm.com [9.149.166.138]) by d12av04.megacenter.de.ibm.com (8.12.11/8.12.11) with ESMTP id j5S4K55m006294; Tue, 28 Jun 2005 06:20:05 +0200 In-Reply-To: <27fdc0d8dc588cfdb3a14a153c5d037c@physics.uc.edu> Subject: Re: signed is undefined and has been since 1992 (in GCC) To: Andrew Pinski Cc: gcc mailing list Message-ID: From: Michael Veksler Date: Tue, 28 Jun 2005 04:20:00 -0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-SW-Source: 2005-06/txt/msg01075.txt.bz2 Andrew Pinski wrote on 28/06/2005 07:08:33: > The first change in GCC which changed signed overflow/wrapping to be > undefined > was added back in 1992 in loop.c. The next change was in 1999 with the > addition of simplify-rtx.c. Why are we talking about this now, instead > of back > when they were added? (note both of these changes were before fwrapv > can into > play). > I don't mind MAX_INT+1 being undefined by gcc. I object to drawing from "undefined" to conclude that is_modulo should be true. This does not make a practical sense. Drawing conclusions from "undefined" can yield absurd results.