Hello,

From gcc/i386/config/mingw32.h, STARTFILE_SPEC and ENDFILE_SPEC include
crtbegin.o and crtend.o unconditionally.

libgcc/config.host includes crtbegin.o and crtend.o in extra_parts for
i[34567]86-*-mingw* but not for x86_64-*-mingw*.

Building a toolchain for x86_64-pc-mingw32 then rapidly fails with complaints
about crtbegin.o and crtend.o missing.

This patch is a proposal to fix this by adding the objects to extra_parts,
as well as i386/t-cygming to tmake_file so rules are available to build the
objects.

Tested by verifying that a build with --target=x86_64-pc-mingw32
proceeds to completion after the change.

OK to commit ?

Thanks in advance for your feedback,

With Kind Regards,

Olivier

2014-07-02  Olivier Hainque  <hain...@adacore.com>

libgcc/
        * config.host (x86_64-*-mingw*): Add i386/t-cygming to tmake_file
        and crtbegin.o + crtend.o to extra_parts.

Attachment: mingw-crtstuff.diff
Description: Binary data

Reply via email to