public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
To: crossgcc@sourceware.org
Cc: "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
Subject: Re: [PATCH] cc/gcc: pass --with-float to configure
Date: Mon, 12 Dec 2011 21:57:00 -0000	[thread overview]
Message-ID: <201112122256.40221.yann.morin.1998@anciens.enib.fr> (raw)
In-Reply-To: <bd159438bf3a1dae64e2.1323721709@advlt005-ubuntu>

Benoît, All,

On Monday 12 December 2011 21:28:29 Benoît Thébaudeau wrote:
> # HG changeset patch
> # User "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
> # Date 1323721590 -3600
> # Node ID bd159438bf3a1dae64e2bbffd6eaaa19f72fe4ad
> # Parent  7a5ee8d36a1de21f8cb1e1cd138c0f066f0ec8c2
> cc/gcc: pass --with-float to configure
> 
> The --with-float configure option defines the default -mhard-float, -msoft-float
> or -mfloat-abi option of the built GCC. The --with-float option is ignored if
> any of the latter options is passed to GCC.
> 
> Currently, these options are passed to GCC through the C(XX)FLAGS_FOR_TARGET
> environment variables, but these variables are only used to build GCC's internal
> stuff and libraries. Hence, --with-float has to be passed to GCC's configure to
> define the default options of the final GCC.

This should be already handled by the code on lines #176 and #439:
    http://crosstool-ng.org/hg/crosstool-ng/file/7a5ee8d36a1d/scripts/build/cc/gcc.sh#l176

176    for tmp in ARCH ABI CPU TUNE FPU FLOAT; do
177         eval tmp="\${CT_ARCH_WITH_${tmp}}"
178         if [ -n "${tmp}" ]; then
179             extra_config+=("${tmp}")
180         fi
181     done

(same code on line #439 for the final gcc)

Isn't it the case for 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

  reply	other threads:[~2011-12-12 21:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-12 20:28 Benoît Thébaudeau
2011-12-12 21:57 ` Yann E. MORIN [this message]
2011-12-12 22:29   ` Benoît Thébaudeau

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=201112122256.40221.yann.morin.1998@anciens.enib.fr \
    --to=yann.morin.1998@anciens.enib.fr \
    --cc=benoit.thebaudeau@advansee.com \
    --cc=crossgcc@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).