diff options
author | Wolfgang Denk <wd@denx.de> | 2008-02-14 21:43:22 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-02-14 21:43:22 (GMT) |
commit | e7670f6c1e52ae6d2a43ff75a8bcfa7a5c86e47b (patch) | |
tree | c105ae64bb203f93e670ef11b3256a4a3086c0ad /cpu/mpc8220 | |
parent | 3c234efa693bc59906c2be55c7918ecbb55392ea (diff) | |
download | u-boot-e7670f6c1e52ae6d2a43ff75a8bcfa7a5c86e47b.tar.xz |
PPC: Use r2 instead of r29 as global data pointer
R29 was an unlucky choice as with recent toolchains (gcc-4.2.x) gcc
will refuse to use load/store multiple insns; instead, it issues a
list of simple load/store instructions upon function entry and exit,
resulting in bigger code size, which in turn makes the build for a
few boards fail.
Use r2 instead.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'cpu/mpc8220')
-rw-r--r-- | cpu/mpc8220/config.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/mpc8220/config.mk b/cpu/mpc8220/config.mk index 8e3ba54..5819048 100644 --- a/cpu/mpc8220/config.mk +++ b/cpu/mpc8220/config.mk @@ -23,7 +23,7 @@ PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi -PLATFORM_CPPFLAGS += -DCONFIG_MPC8220 -ffixed-r2 -ffixed-r29 \ +PLATFORM_CPPFLAGS += -DCONFIG_MPC8220 -ffixed-r2 \ -mstring -mcpu=603e -mmultiple # Use default linker script. Board port can override in board/*/config.mk |