]> git.sur5r.net Git - u-boot/commit
nios2: fix r15 issue for gcc4
authorThomas Chou <thomas@wytron.com.tw>
Fri, 21 May 2010 03:08:03 +0000 (11:08 +0800)
committerScott McNutt <smcnutt@psyent.com>
Fri, 28 May 2010 14:56:03 +0000 (10:56 -0400)
commit0df01fd3d71481b5cc7aeea6a741b9fc3be15178
treea5eb637453d7f400eb1f9709b376ad247905e265
parent661ba14051db6766932fcb50ba1ec7c67f230054
nios2: fix r15 issue for gcc4

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 <thomas@wytron.com.tw>
Signed-off-by: Scott McNutt <smcnutt@psyent.com>
README
arch/nios2/config.mk
arch/nios2/cpu/start.S
arch/nios2/include/asm/global_data.h
doc/README.standalone
examples/standalone/stubs.c