On Wed, Oct 1, 2014 at 3:11 PM, Steve Ellcey <sell...@mips.com> wrote:
>
> I have a question about MULTILIB_OSDIRNAMES and about specifying a
> mapping in this variable.
>
> According to fragments.texi:
>
>   When it is a set of mappings of the form @var{gccdir}=@var{osdir},
>   the left side gives the GCC convention and the right gives the
>   equivalent OS defined location.
>
> But when I try this it doesn't seem to work for me and if I am reading
> the config/i386/t-linux64 file correctly it looks like instead of
> having a mapping from one of the MULTILIB_DIRNAMES entries, which
> is what I expected, it seems to map from the MULTILIB_OPTIONS instead.
> I.e.  The @var{gccdir} entries in config/i386/t-linux64 start with an
> 'm' like the options do, but which is not part of the GCC directory names.
>
> So is the documentation wrong, or am I misreading it, or is the code
> wrong?  I would actually like the code to match the existing documentation
> because on mips the ABI options contain equal signs (-mabi=32, -mabi=64) so
> it would be hard/confusing to map an option to a directory when the
> option itself contains an equal sign.

It is a regex, so I use . instead of the equal sign.
See 
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/config/aarch64/t-aarch64-linux;h=d6a678ed1705f6f821b2ebfca3d59359ded24631;hb=HEAD
for an example:
MULTILIB_OSDIRNAMES += mabi.ilp32=../libilp32

Thanks,
Andrew Pinski


>
> Steve Ellcey
> sell...@mips.com

Reply via email to