public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [patch u-boot git 2/3] better ARM9 compiler options
Date: Fri, 18 Jan 2008 12:50:50 -0800	[thread overview]
Message-ID: <200801181250.50303.david-b@pacbell.net> (raw)

Update some ARM9 builds to pass the exact CPU to GCC, when the compiler
supports that specification.  This stops pessimizing codegen, and removes
voluminous warnings about (no) interworking support from EABI compilers.
(Like CodeSourcery's ARM 2007q3 release.)

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>

--- u-boot.orig/cpu/arm920t/config.mk	2008-01-13 10:42:55.000000000 -0800
+++ u-boot/cpu/arm920t/config.mk	2008-01-13 11:05:02.000000000 -0800
@@ -24,11 +24,11 @@
 PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 \
 	-msoft-float
 
-PLATFORM_CPPFLAGS += -march=armv4
 # =========================================================================
 #
 # Supply options according to compiler version
 #
 # =========================================================================
+PLATFORM_CPPFLAGS +=$(call cc-option,-mcpu=arm920t,-march=armv4)
 PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu)
 PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
--- u-boot.orig/cpu/arm926ejs/config.mk	2008-01-13 10:42:55.000000000 -0800
+++ u-boot/cpu/arm926ejs/config.mk	2008-01-13 11:04:56.000000000 -0800
@@ -24,11 +24,11 @@
 PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 \
 	-msoft-float
 
-PLATFORM_CPPFLAGS += -march=armv4
 # =========================================================================
 #
 # Supply options according to compiler version
 #
 # =========================================================================
+PLATFORM_CPPFLAGS +=$(call cc-option,-mcpu=arm926ej-s,-march=armv4)
 PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu)
 PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))

         reply	other threads:[~2008-01-18 20:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-18 20:45 [U-Boot-Users] [patch u-boot git 1/3] add missing ARM boards to MAKEALL David Brownell
2008-01-18 20:50 ` David Brownell [this message]
2008-01-21 23:26   ` [U-Boot-Users] [patch u-boot git 2/3] better ARM9 compiler options Ulf Samuelsson
2008-01-22  0:24     ` [U-Boot-Users] [patch u-boot git 2/3] better ARM9 compileroptions Woodruff, Richard
2008-01-22  0:53     ` [U-Boot-Users] [patch u-boot git 2/3] better ARM9 compiler options David Brownell
2008-03-30 14:49   ` Jean-Christophe PLAGNIOL-VILLARD
2008-03-30 14:37 ` [U-Boot-Users] [patch u-boot git 1/3] add missing ARM boards to MAKEALL Jean-Christophe PLAGNIOL-VILLARD

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200801181250.50303.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox