delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/06/28/14:37:49

X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: RE: possible compiler optimization error
Date: Thu, 28 Jun 2007 14:37:10 -0400
Message-ID: <C6EEDB0EB45A56439F73B1D23E39694A35C823@USORL02P702.ww007.siemens.net>
In-Reply-To: <006a01c7b9ab$418ca130$2e08a8c0@CAM.ARTIMI.COM>
References: <C6EEDB0EB45A56439F73B1D23E39694A35C7EC AT USORL02P702 DOT ww007 DOT siemens DOT net> <006a01c7b9ab$418ca130$2e08a8c0 AT CAM DOT ARTIMI DOT COM>
From: "Frederich, Eric P21322" <eric DOT frederich AT siemens DOT com>
To: "Dave Korn" <dave DOT korn AT artimi DOT com>, <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l5SIbbQf026998

> From: cygwin-owner AT cygwin DOT com On Behalf Of Dave Korn
> Sent: Thursday, June 28, 2007 1:39 PM
> To: cygwin AT cygwin DOT com
> Subject: RE: possible compiler optimization error
> 
> On 28 June 2007 18:19, Frederich, Eric P21322 wrote:
> 
>   Your code has a bug, most likely an uninitialised or otherwise stray
> pointer, but could be anything that causes undefined 
> behaviour.  It works on
> Linux/Solaris by good fortune, because whatever memory 
> addresses you're
> stomping all over just happen to be free and safe to stomp on on those
> platforms, whereas windows systems have different process 
> space layout 

During development of this program I used Valgrind on Linux to detect
memory allocation and un-initialized pointer type of errors.  I do not
believe this is the case.

> Now, there /could/ be a compiler bug, but unless you can 
> present us with a
> testcase that we can compile ourselves and test out, it's not 
> going to be easy
> to help you.  Fragmentary code snippets aren't useful.  For 
> advice on how to
> write a really good compiler bug report, see the guidelines at

Yes, I do realize this.  I figured that describing the behavior would be
enough to diagnose the problem without having to cut down an 8,000 line
program into a concise example.  It turns out that it was and Brian
Dessent suggested some more compiler flags to help with floating point
accuracy, -ffloat-store.

Thanks for your help.

--
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