This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1 of 4] scripts: introduce float type as a string


Morten, Michael, All,

On Friday 25 November 2011 13:19:34 Morten Thunberg Svendsen wrote:
> x86 do not support the --with-float option or the -msoft/har-float.
> This seems to fix it for x86  (only arm, mips, powerpc and sparc
> supports --with-float
> http://gcc.gnu.org/viewcvs/trunk/gcc/config.gcc?revision=181079&view=markup
> )

Ah, that's a good reference. Thanks!

> diff -r 258160822e35 scripts/build/arch/x86.sh
> --- a/scripts/build/arch/x86.sh	Wed Nov 23 13:15:27 2011 +0800
> +++ b/scripts/build/arch/x86.sh	Fri Nov 25 13:07:05 2011 +0100
> @@ -20,4 +20,16 @@
>              *)                            CT_TARGET_ARCH=i586;;
>          esac
>      fi
> +
> +    # with-float is not possible for x86
> +    case "${CT_ARCH_FLOAT}" in
> +        hard)
> +            CT_ARCH_FLOAT_CFLAG=
> +            CT_ARCH_WITH_FLOAT=
> +            ;;
> +        soft)
> +            CT_ARCH_FLOAT_CFLAG="-msoft-float"
> +            CT_ARCH_WITH_FLOAT=
> +            ;;
> +    esac
>  }

I already have a set of patches here that fixes this here. I'll update them
with the info above (supported only by: arm, mips, ppc and sparc).

Thank you.

Regards,
Yann E. MORIN.


-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]