From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Thu, 20 May 2010 09:32:37 +0800 Subject: [U-Boot] [PATCH] nios2: fix r15 issue for gcc4 In-Reply-To: <201005191911.52864.vapier@gentoo.org> References: <1273874405-15545-1-git-send-email-thomas@wytron.com.tw> <201005191911.52864.vapier@gentoo.org> Message-ID: <4BF49135.2030100@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Mike Frysinger wrote: > On Friday 14 May 2010 18:00:04 Thomas Chou wrote: >> The "-ffixed-r15" option doesn't work well for gcc4. Since we >> don't use gp for small data with option "-G0", we can use gp >> as global data pointer. This allows compiler to use r15. It >> is necessary for gcc4 to work properly. >> >> Signed-off-by: Thomas Chou >> --- >> arch/nios2/config.mk | 2 +- >> arch/nios2/cpu/start.S | 7 ------- >> arch/nios2/include/asm/global_data.h | 2 +- >> 3 files changed, 2 insertions(+), 9 deletions(-) > > i think you also need to update examples/standalone/stubs.c > > maybe also document things in README and doc/README.standalone ? > -mike Dear Mike, Thank you very mcuh. The nios2 gd usage was not documented. I will add it to README and doc/README.standalone. I will update examples/standalone/stubs.c, too. Best regards, Thomas