delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/04/06:34:42

Date: Tue, 4 Mar 1997 13:26:25 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Paul Derbyshire <ao950 AT freenet DOT carleton DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: AVOID -fforce-addr
In-Reply-To: <199703040406.XAA17829@freenet3.carleton.ca>
Message-ID: <Pine.SUN.3.91.970304132550.12059H-100000@is>
MIME-Version: 1.0

On Mon, 3 Mar 1997, Paul Derbyshire wrote:

> Well, the source is quite lengthy. About sixty K, 5000 lines. In fact I
> have just begun breaking it into smaller .c modules.

If the source is large, chances are cc1.exe is overflowing its runtime
stack when optimizing (FAQ, section 6.3).  Try stubediting it to
enlarge the stack to, say, 1MB, and see if that helps.

> The command line was:
> 
> gcc   -g  -O3  -m486 -fforce-addr -fomit-frame-pointer -Wall -o mquest.o
>       -c mquest.c
> 
> Maybe there's some subtlety of GCC that makes two of those switches
> incompatible...?

Does the problem go away when you omit one of the other switches?
Anyway, this precise command worked for me on a small test program, so
the options per se aren't the problem.

- Raw text -


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