delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/13/11:03:42

Date: Tue, 13 Oct 1998 18:02:02 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: Help: -O3 breaks my code
In-Reply-To: <361cf8ae.10692665@crispin>
Message-ID: <Pine.SUN.3.91.981013180140.4278R-100000@is>
MIME-Version: 1.0
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by delorie.com id LAA08575
Reply-To: djgpp AT delorie DOT com

On Thu, 8 Oct 1998, Ignacio García Pérez wrote:

> I've got a small problem with DJGPP: when I compile my program with
> -O2 works perfect, when I compile it with -O3 it blows away.

If your program has some assembly code, make sure you save and restore
all registers that GCC knows it can clobber freely.  See section 17.4
of the DJGPP FAQ list for details.

- Raw text -


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