delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/11/21/10:57:43

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <20071121150206 DOT GH4195 AT implementation DOT uk DOT xensource DOT com> <000601c82c52$4d310de0$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <20071121153012 DOT GI4195 AT implementation DOT uk DOT xensource DOT com> <000701c82c54$a18bae20$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <20071121154317 DOT GJ4195 AT implementation DOT uk DOT xensource DOT com>
Subject: RE: gcc bug
Date: Wed, 21 Nov 2007 15:57:15 -0000
Message-ID: <000d01c82c57$2f8ce980$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <20071121154317.GJ4195@implementation.uk.xensource.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 21 November 2007 15:43, Samuel Thibault wrote:

> Ok, so cygwin has it too. It's fixed in HEAD, see
>
http://www.nabble.com/-Bug-c-34130---New%3A-the-builtin-abs%28%29-gives-wrong-
result-when-used-in-some-expression-tf4824981.html#a13808833

  Now why didn't you just say "PR34130" in the first place?  Yep, fixed on
HEAD certainly wouldn't mean "fixed in a couple of years' old release
version"!

  Interesting:

http://gcc.gnu.org/viewcvs/trunk/gcc/fold-const.c?view=log&pathrev=130258

Revision 91373 - (view) (download) - [select for diffs]
Modified Sat Nov 27 10:13:56 2004 UTC (2 years, 11 months ago) by jakub
File length: 352911 byte(s)
Diff to previous 91170 (colored)

	* fold-const.c (extract_muldiv_1) <case ABS_EXPR>: If ctype is
	unsigned and type signed, build ABS_EXPR with signed_type (ctype)
	and only afterwards convert to ctype.


  That's probably where it got introduced.  I could always backport the fix to
3.4.4 and spin a fresh release, and to be fair, I wasn't planning to, but
that's a scary enough bug that I feel like I want to.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019