Rationalize ARM compiler options
PATCH 1/1 Rationalize ARM compiler options
Signed-off-by Peter Pearse <[email protected]>
---
cpu/arm1136/config.mk +7 -7
@@ -2,6 +2,7 @@ # (C) Copyright 2002 # Gary Jennejohn, DENX Software Engineering, <[email protected]> # +# # See file CREDITS for list of people who contributed to this # project. #
@@ -20,16 +21,15 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # -PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \ - -msoft-float +# ========================================================================= +# See doc/README.ARM.config.mk for a justification of the ARM specific options +# ========================================================================= +PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 -# Make ARMv5 to allow more compilers to work, even though its v6. -PLATFORM_CPPFLAGS += -march=armv5 +PLATFORM_CPPFLAGS += -march=armv6 # ========================================================================= -# # Supply options according to compiler version -# # ========================================================================= PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) -PLATFORM_CPPFLAGS +=$(call cc-option,-mno-thumb-interwork,) PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) +
cpu/arm720t/config.mk +6 -6
@@ -21,15 +21,15 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # +# ========================================================================= +# See doc/README.ARM.config.mk for a justification of the ARM specific options +# ========================================================================= +PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 -PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \ - -msoft-float - -PLATFORM_CPPFLAGS += -march=armv4 -mtune=arm7tdmi +PLATFORM_CPPFLAGS += -march=armv4t # ========================================================================= -# # Supply options according to compiler version -# # ========================================================================= PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) +
cpu/arm920t/config.mk +7 -6
@@ -2,6 +2,7 @@ # (C) Copyright 2002 # Gary Jennejohn, DENX Software Engineering, <[email protected]> # +# # See file CREDITS for list of people who contributed to this # project. #
@@ -20,15 +21,15 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # +# ========================================================================= +# See doc/README.ARM.config.mk for a justification of the ARM specific options +# ========================================================================= +PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 -PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \ - -msoft-float - -PLATFORM_CPPFLAGS += -march=armv4 +PLATFORM_CPPFLAGS += -march=armv4t # ========================================================================= -# # Supply options according to compiler version -# # ========================================================================= PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) +
cpu/arm925t/config.mk +7 -6
@@ -2,6 +2,7 @@ # (C) Copyright 2002 # Gary Jennejohn, DENX Software Engineering, <[email protected]> # +# # See file CREDITS for list of people who contributed to this # project. #
@@ -20,15 +21,15 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # +# ========================================================================= +# See doc/README.ARM.config.mk for a justification of the ARM specific options +# ========================================================================= +PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 -PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \ - -msoft-float - -PLATFORM_CPPFLAGS += -march=armv4 +PLATFORM_CPPFLAGS += -march=armv4t # ========================================================================= -# # Supply options according to compiler version -# # ========================================================================= PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) +
cpu/arm926ejs/config.mk +7 -6
@@ -2,6 +2,7 @@ # (C) Copyright 2002 # Gary Jennejohn, DENX Software Engineering, <[email protected]> # +# # See file CREDITS for list of people who contributed to this # project. #
@@ -20,15 +21,15 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # +# ========================================================================= +# See doc/README.ARM.config.mk for a justification of the ARM specific options +# ========================================================================= +PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 -PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \ - -msoft-float - -PLATFORM_CPPFLAGS += -march=armv4 +PLATFORM_CPPFLAGS += -march=armv5te # ========================================================================= -# # Supply options according to compiler version -# # ========================================================================= PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) +
cpu/arm946es/config.mk +11 -3
@@ -2,6 +2,7 @@ # (C) Copyright 2002 # Gary Jennejohn, DENX Software Engineering, <[email protected]> # +# # See file CREDITS for list of people who contributed to this # project. #
@@ -20,8 +21,15 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # +# ========================================================================= +# See doc/README.ARM.config.mk for a justification of the ARM specific options +# ========================================================================= +PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 -PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \ - -msoft-float +PLATFORM_CPPFLAGS += -march=armv5te +# ========================================================================= +# Supply options according to compiler version +# ========================================================================= +PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) +PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -PLATFORM_CPPFLAGS += -march=armv4
cpu/arm_intcm/config.mk +12 -4
@@ -2,6 +2,7 @@ # (C) Copyright 2002 # Gary Jennejohn, DENX Software Engineering, <[email protected]> # +# # See file CREDITS for list of people who contributed to this # project. #
@@ -20,8 +21,15 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # +# ========================================================================= +# See doc/README.ARM.config.mk for a justification of the ARM specific options +# ========================================================================= +PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 +# This cpu intended for unknown cpu - use lowest common architecture +PLATFORM_CPPFLAGS += -march=armv4 +# ========================================================================= +# Supply options according to compiler version +# ========================================================================= +PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) +PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \ - -msoft-float - -PLATFORM_CPPFLAGS += -march=armv4
cpu/ixp/config.mk +8 -7
@@ -21,17 +21,18 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # - -BIG_ENDIAN = y - -PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \ - -msoft-float -mbig-endian +# ========================================================================= +# See doc/README.ARM.config.mk for a justification of the ARM specific options +# ========================================================================= +PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 -mbig-endian PLATFORM_CPPFLAGS += -mbig-endian -march=armv5te -mtune=strongarm1100 # ========================================================================= -# # Supply options according to compiler version -# # ========================================================================= PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) + +BIG_ENDIAN = y + +
cpu/lh7a40x/config.mk +6 -6
@@ -2,6 +2,7 @@ # (C) Copyright 2002 # Gary Jennejohn, DENX Software Engineering, <[email protected]> # +# # See file CREDITS for list of people who contributed to this # project. #
@@ -20,15 +21,14 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # - -PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \ - -msoft-float +# ========================================================================= +# See doc/README.ARM.config.mk for a justification of the ARM specific options +# ========================================================================= +PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 PLATFORM_CPPFLAGS += -march=armv4 # ========================================================================= -# # Supply options according to compiler version -# -# ======================================================================== +# ========================================================================= PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
cpu/pxa/config.mk +5 -6
@@ -21,15 +21,14 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # - -PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \ - -msoft-float +# ========================================================================= +# See doc/README.ARM.config.mk for a justification of the ARM specific options +# ========================================================================= +PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 PLATFORM_CPPFLAGS += -march=armv5te -mtune=xscale # ========================================================================= -# # Supply options according to compiler version -# -# ======================================================================== +# ========================================================================= PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
cpu/s3c44b0/config.mk +6 -7
@@ -21,15 +21,14 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # +# ========================================================================= +# See doc/README.ARM.config.mk for a justification of the ARM specific options +# ========================================================================= +PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 -PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \ - -msoft-float - -PLATFORM_CPPFLAGS += -march=armv4 -mtune=arm7tdmi -msoft-float +PLATFORM_CPPFLAGS += -march=armv4 -mtune=arm7tdmi # ========================================================================= -# # Supply options according to compiler version -# -# ======================================================================== +# ========================================================================= PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
cpu/sa1100/config.mk +5 -6
@@ -21,15 +21,14 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # - -PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \ - -msoft-float +# ========================================================================= +# See doc/README.ARM.config.mk for a justification of the ARM specific options +# ========================================================================= +PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 PLATFORM_CPPFLAGS += -march=armv4 -mtune=strongarm1100 # ========================================================================= -# # Supply options according to compiler version -# -# ======================================================================== +# ========================================================================= PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
doc/README.ARM.config.mk new file +74 -0
74 lines not on this page · raw message
---
Also available from git://linux-arm.org/u-boot-armdev.git#080212_options
PATCH 1/1 Rationalize ARM compiler options
Quoted 9 lines · In message <[email protected]> you wrote:
Signed-off-by Peter Pearse <[email protected]>---
cpu/arm1136/config.mk +0
-0
cpu/arm1136/config.mk line 6
Quoted 5 lines
cpu/arm1136/config.mk +1
-0@@ -2,6 +2,7 @@ # (C) Copyright 2002 # Gary Jennejohn, DENX Software Engineering, <[email protected]> # +# # See file CREDITS for list of people who contributed to this
Please don't add too many empty lines.
cpu/arm1136/config.mk line 27
Quoted 12 lines
cpu/arm1136/config.mk +4
-2# project. #@@ -20,16 +21,15 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # -PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \ - -msoft-float +# ========================================================================= +# See doc/README.ARM.config.mk for a justification of the ARM specific options +# ========================================================================= +PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8
Why exactly are you dropping -msoft-float here?
cpu/arm1136/config.mk line 29
Quoted 3 lines
cpu/arm1136/config.mk +1
-2-# Make ARMv5 to allow more compilers to work, even though its v6. -PLATFORM_CPPFLAGS += -march=armv5 +PLATFORM_CPPFLAGS += -march=armv6
Why exactly are you changing this?
Quoted 14 lines
cpu/arm720t/config.mk +4
-3@@ -21,15 +21,15 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # +# ========================================================================= +# See doc/README.ARM.config.mk for a justification of the ARM specific options +# ========================================================================= +PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 -PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \ - -msoft-float -
cpu/arm720t/config.mk line 35
Quoted 10 lines
cpu/arm720t/config.mk +2
-3-PLATFORM_CPPFLAGS += -march=armv4 -mtune=arm7tdmi +PLATFORM_CPPFLAGS += -march=armv4t # ========================================================================= -# # Supply options according to compiler version -# # ========================================================================= PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) +
Please don't add trailing empty lines.
cpu/arm920t/config.mk line 5
Quoted 10 lines
old mode 100644
new mode 100755
index 8db4adb..b5605b3cpu/arm920t/config.mk +1
-0@@ -2,6 +2,7 @@ # (C) Copyright 2002 # Gary Jennejohn, DENX Software Engineering, <[email protected]> # +#
Please don't add random empty lines.
etc. etc.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
There is is no reason for any individual to have a computer in their
home. -- Ken Olsen (President of Digital Equipment Corporation),
Convention of the World Future Society, in Boston, 1977