[U-Boot-Users] ARM targets compil error with gcc >= 3.4

Eric Jarrige ericjaddr-pub at yahoo.fr
Sun Aug 14 23:44:32 CEST 2005


Hello everybody

there is a compilation error with GCC >= 3.4 and all U-Boot ARM  
targets like motorola mx1ads (arm920t).
the ARM '-mshort-load-bytes' compilation flag is deprecated and no  
more supported.
Since all referenced ARM cpus are based on the ARMv4 core or higher,  
It is possible to remove this flag.
the binary code produced is compatible (as described in GCC doc).
I checked it with the ELDK GCC 3.3.3 and a GCC 3.4.2 without problem  
on a Freescale imx board.

Note: There is an alternate GCC flag to solve this problem (- 
malignment-traps)  but this flag seems to be deprecated with the  
recent  GCC 4.

Actually i'm interested to solve the problem with the arm920t.
For developers this is the list of affected files/architectures and  
hereafter a patch to support GCC 3.4 and upper:
cpu/arm720t/config.mk
cpu/arm920t/config.mk
cpu/arm925t/config.mk
cpu/arm926ejs/config.mk
cpu/ixp/config.mk
cpu/lh7a40x/config.mk
cpu/pxa/config.mk
cpu/s3c44b0/config.mk
cpu/sa1100/config.mk

Feedbacks are welcome. Thanks

Best regards,
Eric Jarrige

-------------- next part --------------
A non-text attachment was scrubbed...
Name: arm-mshort-load-bytes.patch
Type: application/octet-stream
Size: 4750 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20050814/f44b6d54/attachment.obj 


More information about the U-Boot mailing list