From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1931 invoked by alias); 9 Aug 2005 04:44:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 1541 invoked by uid 48); 9 Aug 2005 04:44:25 -0000 Date: Tue, 09 Aug 2005 04:44:00 -0000 Message-ID: <20050809044425.1533.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050809031223.23295.pinskia@gcc.gnu.org> References: <20050809031223.23295.pinskia@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug middle-end/23295] fold does not simplify -a - (5) to (-5) - a X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg00946.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-09 04:44 ------- I am going to move this to minor as this could be considered a regression in a way. It was introduced by: (fold): Optimize "-A - B" as "-B - A" if overflow wraps around. But in a way since wrapv is false, that means overflow is undefined and can be either wraps or anything else. Maybe Roger can comment on this? -- What |Removed |Added ---------------------------------------------------------------------------- CC| |sayle at gcc dot gnu dot org Severity|enhancement |minor http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23295