This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [build, lto-plugin] Check for -static-libgcc before use (PR lto/60981)


On Wed, May 14, 2014 at 10:31 AM, Rainer Orth
<ro@cebitec.uni-bielefeld.de> wrote:
> As reported in the PR, the lto-plugin may fail to link if the host
> compiler defines __GNUC__, but doesn't accept -static-libgcc (like
> recent versions of clang do).
>
> The following patch fixes this by explicitly checking for -static-libgcc
> instead of relying on __GNUC__/$GNUC.
>
> Tested by configuring lto-plugin with Studio cc (which doesn't define
> __GNUC__) and gcc.  The submitter also verified that the patch fixes his
> problem.
>
> Ok for mainline and the 4.9 branch?

Ok if nobody else objects within 24h.

Thanks,
Richard.

>         Rainer
>
>
> 2014-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
>
>         PR lto/60981
>         * configure.ac: Check for -static-libgcc.
>         * configure: Regenerate.
>
>
>
> --
> -----------------------------------------------------------------------------
> Rainer Orth, Center for Biotechnology, Bielefeld University
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]