From 04ee0a2aad2ab8f6e16653ef11d984d7ce24beed Mon Sep 17 00:00:00 2001 From: Kristoffer Ericson Date: Fri, 9 Jun 2006 00:41:01 +0000 Subject: linux-jlime-sh3-2.6.16.20: Add patches for known gcc 4.1.1 issues * Lower default optimization to -O1 * add volatile struct so it doesnt get wiped out by gcc jlime-donkey.conf: Set default optimization * Lower default optimization to -O1 --- .../volatile-traps.c.patch | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 packages/linux/linux-jlime-sh3-2.6.16.20/volatile-traps.c.patch (limited to 'packages/linux/linux-jlime-sh3-2.6.16.20/volatile-traps.c.patch') diff --git a/packages/linux/linux-jlime-sh3-2.6.16.20/volatile-traps.c.patch b/packages/linux/linux-jlime-sh3-2.6.16.20/volatile-traps.c.patch new file mode 100644 index 0000000000..dd432f58e5 --- /dev/null +++ b/packages/linux/linux-jlime-sh3-2.6.16.20/volatile-traps.c.patch @@ -0,0 +1,47 @@ +--- linux-2.6.16.20/arch/sh/kernel/traps.c_orig 2006-06-09 00:03:58.000000000 +0000 ++++ linux-2.6.16.20/arch/sh/kernel/traps.c 2006-06-09 00:07:04.000000000 +0000 +@@ -51,7 +51,7 @@ + #define DO_ERROR(trapnr, signr, str, name, tsk) \ + asmlinkage void do_##name(unsigned long r4, unsigned long r5, \ + unsigned long r6, unsigned long r7, \ +- struct pt_regs regs) \ ++ volatile struct pt_regs regs) \ + { \ + unsigned long error_code; \ + \ +@@ -89,7 +89,7 @@ + + DEFINE_SPINLOCK(die_lock); + +-void die(const char * str, struct pt_regs * regs, long err) ++void die(const char * str, volatile struct pt_regs * regs, long err) + { + static int die_counter; + +@@ -102,7 +102,7 @@ + do_exit(SIGSEGV); + } + +-static inline void die_if_kernel(const char * str, struct pt_regs * regs, long err) ++static inline void die_if_kernel(const char * str, volatile struct pt_regs * regs, long err) + { + if (!user_mode(regs)) + die(str, regs, err); +@@ -117,7 +117,7 @@ + * - other kernel errors are bad + * - return 0 if fixed-up, -EFAULT if non-fatal (to the kernel) fault + */ +-static int die_if_no_fixup(const char * str, struct pt_regs * regs, long err) ++static int die_if_no_fixup(const char * str, volatile struct pt_regs * regs, long err) + { + if (!user_mode(regs)) + { +@@ -581,7 +581,7 @@ + + asmlinkage void do_exception_error(unsigned long r4, unsigned long r5, + unsigned long r6, unsigned long r7, +- struct pt_regs regs) ++ volatile struct pt_regs regs) + { + long ex; + asm volatile("stc r2_bank, %0" : "=r" (ex)); -- cgit v1.2.3