| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | Re: [patch] Prevent dead code/data removal with gcc 3.4 |
| From: | Jun Sun <jsun@mvista.com> |
| Date: | Fri, 13 Feb 2004 09:51:41 -0800 |
| Cc: | "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>, linux-mips@linux-mips.org, jsun@mvista.com |
| In-reply-to: | <20040213145316.GA23810@linux-mips.org> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <Pine.LNX.4.55.0402131453360.15042@jurand.ds.pg.gda.pl> <20040213145316.GA23810@linux-mips.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.4i |
On Fri, Feb 13, 2004 at 03:53:16PM +0100, Ralf Baechle wrote: > On Fri, Feb 13, 2004 at 03:20:27PM +0100, Maciej W. Rozycki wrote: > > > 2. It changes inline-assembly function prologues to be embedded within the > > functions, which makes them a bit safer as they can now explicitly refer > > to the "regs" struct and assures the code won't be removed or reordered. > > It is possible that gcc changes one of the registers before save_static > and I can't imagine there's a reliable way to fix this in the inline > version. > Yes. I still remember this bug vividly. It took me quite a few days to track it down. I really wish there is a more reliable and systematic way to do this, even at some expense of a few more instructions ... Jun |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [patch] Prevent dead code/data removal with gcc 3.4, Ralf Baechle |
|---|---|
| Next by Date: | Re: [patch] Prevent dead code/data removal with gcc 3.4, Maciej W. Rozycki |
| Previous by Thread: | Re: [patch] Prevent dead code/data removal with gcc 3.4, Ralf Baechle |
| Next by Thread: | Re: [patch] Prevent dead code/data removal with gcc 3.4, Maciej W. Rozycki |
| Indexes: | [Date] [Thread] [Top] [All Lists] |