From mint-bounce@lists.fishpool.fi  Fri Feb 22 14:25:59 2008
X-ME-UUID: 20080222133940460.7074F700008D@mwinf2b06.orange.fr
Date: Fri, 22 Feb 2008 14:39:40 +0100
From: Patrice Mandin <mandin.patrice@wanadoo.fr>
To: mint@fishpool.com
Subject: Re: [MiNT] Automatic -fomit-frame-pointer usage
Message-Id: <20080222143940.21379127.mandin.patrice@wanadoo.fr>
In-Reply-To: <47BECA07.8020506@freesbee.fr>
References: <47BECA07.8020506@freesbee.fr>
Organization: Chez moi
X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: mandin.patrice@wanadoo.fr
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id m1MJPrUf011391

Le Fri, 22 Feb 2008 14:11:35 +0100
Vincent Rivière <vincent.riviere@freesbee.fr> a écrit:

> Do you think that CAN_DEBUG_WITHOUT_FP should be used for the MiNT
> target or not ?

Be careful with the frame pointer. On X86, for example, it is used to
process exceptions in C++ programs. I don't know how it behaves in this
case on m68k. Also, yesterday I add a problem with gcc 2.95 on m68k, and
a program dealing with 64 bits integer. long long values where stored in
the stack frame, link/unlk instructions where used, even if I add
-fomit-frame-pointer.

The best thing you can do, is try to run gdb on a program compiled
without the frame pointer.

-- 
Patrice Mandin
WWW: http://pmandin.atari.org/
Programmeur Linux, Atari
Spécialité: Développement, jeux


