[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patches] Add support for --with-arch configure option
- To: Andreas Krebbel <krebbel@xxxxxxxxxxxxxxxxxx>
- Subject: Re: [patches] Add support for --with-arch configure option
- From: "Joseph S. Myers" <joseph@xxxxxxxxxxxxxxxx>
- Date: Fri, 15 Aug 2008 11:23:05 +0000 (UTC)
On Fri, 15 Aug 2008, Andreas Krebbel wrote:
> Hello,
>
> glibc configure currently accepts the --with-cpu=x parameter doing two
> things:
>
> 1. Compile everything with -mcpu=x
> 2. Append x to the sysdeps paths when looking for the files to be built.
>
> In GCC -mcpu has been replaced by -march/-mtune in order to be able
> change the scheduling policy without depending on the architecture.
> So there are targets (e.g. S/390) which do not support -mcpu anymore.
>
> The attached patch adds the --with-arch configure option having the
> same effect as --with-cpu regarding point 2 but passing the -march=x
> option to GCC instead of -mcpu.
>
> This is a prerequisite for supporting S/390 DFP hardware support in
> eglibc.
>
> Please apply to DFP and mainline branch if it is OK.
I see nothing EGLIBC-specific about this; have you also submitted it for
FSF GLIBC? I'd like to see Roland's comments on it, if any, as I think he
has the best understanding of the principles of how this configure support
is meant to be designed. (For example, he might have a view on whether
you should keep the option as --with-cpu but make it map to -march on some
targets.)
--
Joseph S. Myers
joseph@xxxxxxxxxxxxxxxx