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.richa...@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.

jeff

Reply via email to