delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/28/17:38:12

From: "Thomas Harte" <T DOT Harte AT btinternet DOT com DOT REMOVE_THIS_BIT>
Newsgroups: comp.os.msdos.djgpp
Subject: Allegro & optimisations. Again
Date: 28 Apr 1997 20:12:20 GMT
Organization: SoftySoft
Message-ID: <01bc5410$33e3ac60$c23c63c3@default>
NNTP-Posting-Host: host5-99-60-194.btinternet.com
Lines: 45
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Earlier, I wrote this :-

> 	Are there any known optimisations with which Allegro > does not work? I
am
> using 2.2, and I installed the latest wip, but when I went > to make it,
it
> stopped with some error before doing anything, so I don't > think that's
> applicable.
> 	Anyway, the code compiles and runs fine with the 
> command line :
>
> 	gcc -o %1.exe %1.c -lalleg
>
>	. . . but the command line:

>	gcc -O3 -m486 -ffast-math -fomit-frame-pointer -
> funroll-loops
> -fstrength-reduce -fforce-addr -o %1.exe %1.c -lalleg

>	for example compiles a version of the .exe which just > doesn't work
> correctly. I am planning on trying each of the command 
> line switches one by
> one to see which is/are the offender(s), but I was just 
> wondering if anyone
> knows of any I should specifically not use, just before I > start.
> 	As for source code that displays this problem, my 
> lines source code (on my
> web page, see some other posting named 'source code', or 
> indeed underneath
> my name if you only want the URL) is one which seems to 
> display this fault.

	Having been instructed to re-make Allegro, because my liballeg.a &
allegro.h were probably out of step, I did. The result? The original,
simple command line works as always. The second's compiled code now works,
but when you leave the program, you get wither a SIGSEGV or a SIGILL - even
though all of the code to that point has functioned exactly perfectly. Once
again, this problem manifests with Lines, but this time most of my other
stuff is okay.

	Can anyone tell me what is going on? Once again, the source is there to
download if you want it.

		-Thomas
http://www.softysoft.home.ml.org

- Raw text -


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