| To: | ralf@linux-mips.org |
|---|---|
| Subject: | Re: [PATCH] Make __declare_dbe_table() static |
| From: | Atsushi Nemoto <anemo@mba.ocn.ne.jp> |
| Date: | Mon, 19 Feb 2007 00:58:50 +0900 (JST) |
| Cc: | linux-mips@linux-mips.org |
| In-reply-to: | <20070218155408.GA24660@linux-mips.org> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20070219.004435.25910295.anemo@mba.ocn.ne.jp> <20070218155408.GA24660@linux-mips.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
On Sun, 18 Feb 2007 15:54:08 +0000, Ralf Baechle <ralf@linux-mips.org> wrote: > > Make __declare_dbe_table() static and call it explicitly to ensure not > > optimized out. > > That's what __attribute_used__ was meant to be used for. But we do not need empty __declare_dbe_table() function body (jr ra + nop) at all. If we called it explicitly, compiler will optimized it out. Saves two instructions ;) |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] Make kernel_thread_helper() static, Ralf Baechle |
|---|---|
| Next by Date: | Re: [PATCH] Make __declare_dbe_table() static, Ralf Baechle |
| Previous by Thread: | Re: [PATCH] Make __declare_dbe_table() static, Ralf Baechle |
| Next by Thread: | Re: [PATCH] Make __declare_dbe_table() static, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |