Re: Bug: gcc ignores ebp clobber
Bernhard Kauer <[email protected]>
| Newsgroups | gmane.network.etherboot.user |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Aug 15, 2009 at 11:07:22PM +0100, Michael Brown wrote: > On Saturday 15 August 2009 08:41:53 Stefan Hajnoczi wrote: > > We should still fix this since a new version of GCC may come along and > > decide to use %ebp in one of these functions. > > When fixing, we need to be aware that using push/pop within inline asm can > itself introduce potential silent bugs, if a potentially stack-based value is > used in a non-register constraint occurring after the push instruction. There are currently no memory constraints in the asm statements that clobber ebp. But you have to keep in mind this when changing them or writing new ones... Bernhard ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july