Skip to contentSkip to conversation

Rationalize ARM compiler options

PATCH New Peter Pearse 2 participants 2 messages Feb 13, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Rationalize ARM compiler options

---

cpu/arm1136/config.mk +7 -7
old mode 100644
new mode 100755
index 6ab0dd3..5c64aa7
@@ -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
old mode 100644
new mode 100755
index 641b91c..2da312e
@@ -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
old mode 100644
new mode 100755
index 8db4adb..b5605b3
@@ -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
old mode 100644
new mode 100755
index 8db4adb..b5605b3
@@ -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
old mode 100644
new mode 100755
index 8db4adb..7f531f8
@@ -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
old mode 100644
new mode 100755
index 81ca288..7f531f8
@@ -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
old mode 100644
new mode 100755
index 81ca288..6766074
@@ -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
old mode 100644
new mode 100755
index a71a20b..da67bae
@@ -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
old mode 100644
new mode 100755
index 10e755b..dfa6dfd
@@ -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
old mode 100644
new mode 100755
index f0b86b7..bd9ef17
@@ -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
old mode 100644
new mode 100755
index 6dc9c46..8e77969
@@ -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
old mode 100644
new mode 100755
index 5be7dfb..cf9c296
@@ -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

#1 lore raw

PATCH 1/1 Rationalize ARM compiler options

Quoted 9 lines · In message <[email protected]> you wrote:

---

cpu/arm1136/config.mk +0 -0
old mode 100644
new mode 100755
index 6ab0dd3..5c64aa7

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..b5605b3

cpu/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