diff mbox

Add an ARCH_FLOAT_AUTO option to avoid passing float options to gcc and allow it to choose

Message ID 088489641f4790262685.1399687813@localhost
State Accepted
Commit 6fb47591d19d
Headers show

Commit Message

Cody P Schafer May 10, 2014, 2:10 a.m. UTC
# HG changeset patch
# User Cody Schafer <dev@codyps.com>
# Date 1399687808 25200
#      Fri May 09 19:10:08 2014 -0700
# Node ID 088489641f4790262685c05bef727ef8ebd5ab83
# Parent  782051b16ef832a4a5a800571fa5a53f4a9f9370
Add an ARCH_FLOAT_AUTO option to avoid passing float options to gcc and allow it to choose



--
For unsubscribe information see http://sourceware.org/lists.html#faq

Comments

Cody P Schafer May 11, 2014, 12:16 a.m. UTC | #1
On 05/09/2014 07:10 PM, Cody Schafer wrote:
> # HG changeset patch
> # User Cody Schafer <dev@codyps.com>
> # Date 1399687808 25200
> #      Fri May 09 19:10:08 2014 -0700
> # Node ID 088489641f4790262685c05bef727ef8ebd5ab83
> # Parent  782051b16ef832a4a5a800571fa5a53f4a9f9370
> Add an ARCH_FLOAT_AUTO option to avoid passing float options to gcc and allow it to choose
>

Signed-off-by: Cody P Schafer <dev@codyps.com>


> diff --git a/config/target.in b/config/target.in
> --- a/config/target.in
> +++ b/config/target.in
> @@ -296,6 +296,15 @@
>       prompt "Floating point:"
>       depends on ARCH_SUPPORTS_WITH_FLOAT
>
> +config ARCH_FLOAT_AUTO
> +    bool
> +    prompt "auto (let gcc decide)"
> +    help
> +      Instead of explicitly passing a float option, don't
> +      pass any float options and let gcc figure it out.
> +
> +      For multilib configurations, this may help.
> +
>   config ARCH_FLOAT_HW
>       bool
>       prompt "hardware (FPU)"
> @@ -364,6 +373,7 @@
>   config ARCH_FLOAT
>       string
>       default ""       if ! ARCH_SUPPORTS_WITH_FLOAT
> +    default "auto"   if ARCH_FLOAT_AUTO
>       default "hard"   if ARCH_FLOAT_HW
>       default "soft"   if ARCH_FLOAT_SW
>       default "softfp" if ARCH_FLOAT_SOFTFP
>
>
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
>

--
For unsubscribe information see http://sourceware.org/lists.html#faq
Yann E. MORIN May 11, 2014, 10:54 a.m. UTC | #2
Cody, All,

Your patch:
    arch: add option to let gccdecide what floating point to use

has been applied as: #6fb47591d19d
    http://crosstool-ng.org/hg/crosstool-ng/rev/6fb47591d19d

Thank you!

Regards,
Yann E. MORIN.



--
For unsubscribe information see http://sourceware.org/lists.html#faq
diff mbox

Patch

diff --git a/config/target.in b/config/target.in
--- a/config/target.in
+++ b/config/target.in
@@ -296,6 +296,15 @@ 
     prompt "Floating point:"
     depends on ARCH_SUPPORTS_WITH_FLOAT
 
+config ARCH_FLOAT_AUTO
+    bool
+    prompt "auto (let gcc decide)"
+    help
+      Instead of explicitly passing a float option, don't
+      pass any float options and let gcc figure it out.
+
+      For multilib configurations, this may help.
+
 config ARCH_FLOAT_HW
     bool
     prompt "hardware (FPU)"
@@ -364,6 +373,7 @@ 
 config ARCH_FLOAT
     string
     default ""       if ! ARCH_SUPPORTS_WITH_FLOAT
+    default "auto"   if ARCH_FLOAT_AUTO
     default "hard"   if ARCH_FLOAT_HW
     default "soft"   if ARCH_FLOAT_SW
     default "softfp" if ARCH_FLOAT_SOFTFP