This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/60830] [4.9 Regression] ICE on bootstrapping on cygwin
- From: "bernd.edlinger at hotmail dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 Apr 2014 20:48:40 +0000
- Subject: [Bug bootstrap/60830] [4.9 Regression] ICE on bootstrapping on cygwin
- Auto-submitted: auto-generated
- References: <bug-60830-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60830
--- Comment #41 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
(In reply to Kai Tietz from comment #39)
> Well, the patch might work-a-round issue. Nevertheless it just paperbags
> the real issue existing in binutils.
> Additionally the patch would break x64
> version of cygwin. At least that was the reason why we introduced it.
Kai, this issue is also present in binutils-2.22, and probably very old.
So it really deserves a work-around on our side.
As far as I understood from your messages on gcc-patches, the
PE-Format is not able to handle weak externals without any definition.
But it is not a requirement, that the weak definition is in the
same file, where it is used. So this patch just moves the
weak definitions to another file. The only file I could think of
is cygming-crtend.c, because crtbegin.o and crtend.o are always
used in pairs.
What do you think, will this work for x64 too?
Bernd.