[U-Boot] [PATCH] nios2: fix r15 issue for gcc4

Mike Frysinger vapier at gentoo.org
Thu May 20 01:11:51 CEST 2010


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 <thomas at wytron.com.tw>
> ---
>  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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100519/11d0b8b8/attachment.pgp 


More information about the U-Boot mailing list