public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] Query on CONFIG_SYS_THUMB_BUILD
Date: Wed, 19 Nov 2014 07:42:14 +0100	[thread overview]
Message-ID: <20141119074214.3d414ce6@lilith> (raw)
In-Reply-To: <350403c10d5a64a57fb5ef9ab7efb0ab@agner.ch>

Hello Stefan,

On Tue, 18 Nov 2014 19:37:18 +0100, Stefan Agner <stefan@agner.ch>
wrote:

> diff --git a/arch/arm/config.mk b/arch/arm/config.mk
> index f0eafd6..ddbc8dc 100644
> --- a/arch/arm/config.mk
> +++ b/arch/arm/config.mk
> @@ -30,6 +30,8 @@ PF_CPPFLAGS_ARM := $(call cc-option, -mthumb
> -mthumb-interwork,\
>  			$(call cc-option,-marm,)\
>  			$(call cc-option,-mno-thumb-interwork,)\
>  		)
> +AFLAGS_AUTOIT	:=$(call
> as-option,-Wa$(comma)-mimplicit-it=always,-Wa$(comma)-mauto-it)
> +PF_CPPFLAGS_ARM += $(AFLAGS_AUTOIT)
>  else
>  PF_CPPFLAGS_ARM := $(call cc-option,-marm,) \
>  		$(call cc-option,-mno-thumb-interwork,)

> The main change here is the implicit-it/auto-it functionality. For me it
> works when enabling that globally. Is it harmful to enable that
> globally? The other changes need a proper ifdef, but should be ok I
> guess.

-mimplicit-it=always will have no effect on ARM builds as it defaults
to 'arm', meaning that IT instructions are already optional in ARM
mode, and switching to 'always' changes the behavior only for Thumb
mode.

For -mauto-it, it is not documented in the gas documentation online or
in my current as' --target-help. I'll dig this deeper today, but barring
any scream from me, the change above is fine globally in U-Boot.

> --
> Stefan

Amicalement,
-- 
Albert.

  reply	other threads:[~2014-11-19  6:42 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-13 16:29 [U-Boot] Query on CONFIG_SYS_THUMB_BUILD Victor Ascroft
2014-11-13 20:53 ` Wolfgang Denk
2014-11-14  4:30   ` Victor Ascroft
2014-11-14  5:43     ` Wolfgang Denk
2014-11-14  6:10       ` Victor Ascroft
2014-11-14 14:01 ` Simon Glass
2014-11-14 15:26   ` Albert ARIBAUD
2014-11-15  1:56     ` Simon Glass
2014-11-15  5:26       ` Victor Ascroft
2014-11-15  5:38         ` Victor Ascroft
2014-11-15 12:30       ` Albert ARIBAUD
2014-11-15 22:10         ` Simon Glass
2014-11-16  7:50           ` Albert ARIBAUD
2014-11-17  6:28             ` Simon Glass
2014-11-18  3:32               ` Victor Ascroft
2014-11-18  4:59                 ` Simon Glass
2014-11-18 12:10   ` Stefan Agner
2014-11-18 16:07   ` Stefan Agner
2014-11-18 18:37     ` Stefan Agner
2014-11-19  6:42       ` Albert ARIBAUD [this message]
2014-11-19  6:58         ` Wolfgang Denk
2014-11-19 16:31           ` Bill Pringlemeir
2014-11-19 17:48             ` Albert ARIBAUD
2014-11-19 18:34               ` Bill Pringlemeir
2014-11-20 12:04                 ` Albert ARIBAUD
2014-11-20 16:34                   ` Bill Pringlemeir
2014-11-21 12:22                     ` Albert ARIBAUD

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=20141119074214.3d414ce6@lilith \
    --to=albert.u.boot@aribaud.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