delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/21/09:37:15

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Date: Mon, 21 Jan 2002 16:17:44 +0200 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
X-Sender: pavenis AT ieva06
To: djgpp AT delorie DOT com
Subject: Re: My program produces nonsense with 3.0.3
In-Reply-To: <3C4C2378.31F7A5B0@netstep.net>
Message-ID: <Pine.A41.4.05.10201211613490.10286-100000@ieva06>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com


On Mon, 21 Jan 2002, Rodeo Red wrote:

> 
> 
> pavenis AT lanet DOT lv wrote:
> > 
> > On 18 Jan 2002 at 17:14, Rodeo Red wrote:
> > 
> > > Then I updated:
> > > djdev203 Development Kit and Runtime (12/2001 Refresh)
> > > gpp303b.zip : GCC 3.0.3 C++ compiler binaries for DJGPP
> > >
> > > The compiler took twice as long, the the program it produced was twice
> > > as big, and when I ran my program, it took 50% longer and turned the
> > > begining of the web pages into gibberish. (A repeating pattern which,
> > > strangly had the word java in it.)
> > 
> > One of things to try in such case is to add compiler option
> > -fno-strict-aliasing and see whether it fixes the problem. Search
> > GCC-3.0.3 man page (man gcc) or docs for '-fstrict aliasing' to
> > get more info.
> > 
> > Andris
> 
> Thanks for the suggestion. I tried it and I still get the same results.
> 

So perhaps You'll have to try to debug program to find the source of
trouble. Some more suggestions try to compile with various optimization
related options and see whether result changes. Also don't use
-fomit-frame-pointer (however serious -fomit-frame-pointer related 
problem were fixed in gcc-3.0.3)

(But ignore compile time and program performance now while the result
is wrong)

Andris




- Raw text -


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