This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 2/13] musl libc config
- From: Ilya Verbin <iverbin at gmail dot com>
- To: Kyrill Tkachov <kyrylo dot tkachov at arm dot com>
- Cc: Jeff Law <law at redhat dot com>, Szabolcs Nagy <Szabolcs dot Nagy at arm dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Gregor Richards <gregor dot richards at uwaterloo dot ca>, Rich Felker <dalias at libc dot org>, Szabolcs Nagy <nsz at port70 dot net>
- Date: Wed, 22 Apr 2015 18:26:59 +0300
- Subject: Re: [PATCH 2/13] musl libc config
- Authentication-results: sourceware.org; auth=none
- References: <55354A4A dot 4060702 at arm dot com> <55354AD5 dot 6030000 at arm dot com> <55379F19 dot 6060805 at redhat dot com> <5537B18B dot 3090408 at arm dot com>
On Wed, Apr 22, 2015 at 15:34:51 +0100, Kyrill Tkachov wrote:
>
> On 22/04/15 14:16, Jeff Law wrote:
> >On 04/20/2015 12:52 PM, Szabolcs Nagy wrote:
> >>Add musl libc support to gcc and the command line option -mmusl following other
> >>libc support code.
> >>
> >>Note that -m<libc> cannot be entirely correct: there are build time decisions
> >>based on the default libc.
> >>
> >>gcc/Changelog:
> >>
> >>2015-04-16 Gregor Richards <gregor.richards@uwaterloo.ca>
> >>
> >> * config.gcc (LIBC_MUSL): New tm_defines macro.
> >> * config/linux.h (OPTION_MUSL): Define.
> >> (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
> >> (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
> >> (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
> >>
> >> * config/linux.opt (mmusl): New option.
> >> * gcc/configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
> >> (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
> >>
> >> * gcc/configure: Regenerate.
> >OK for the trunk. Please install.
>
> I've committed this on Szabolcs' behalf with r222326
> with slightly adjusted ChangeLog paths:
>
> 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
>
> * config.gcc (LIBC_MUSL): New tm_defines macro.
> * config/linux.h (OPTION_MUSL): Define.
> (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
> (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
> (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
>
> * config/linux.opt (mmusl): New option.
> * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
> (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
>
> * configure: Regenerate.
This caused:
https://gcc.gnu.org/ml/gcc-regression/2015-04/msg00262.html
-- Ilya