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

Cody Schafer dev@codyps.com
Sat May 10 02:10:00 GMT 2014


# 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

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



More information about the crossgcc mailing list