This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/12022] arm-coff build is broken: dies on crtstuff.c with #error
- From: "wilson at specifixinc dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Oct 2003 01:59:24 -0000
- Subject: [Bug bootstrap/12022] arm-coff build is broken: dies on crtstuff.c with #error
- References: <20030821212253.12022.dhazeghi@yahoo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12022
------- Additional Comments From wilson at specifixinc dot com 2003-10-14 01:59 -------
Subject: Re: arm-coff build is broken: dies on crtstuff.c
with #error
pinskia at gcc dot gnu dot org wrote:
> Both INIT_SECTION_ASM_OP and HAS_INIT_SECTION are not defined which means it should not be
> building crtstuff.c at all.
gcc/config/arm/t-arm-coff has the line
EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o
which is bogus. We don't build these for coff targets.
This looks like some kind of merging or cut&paste error. The
gcc-patches message from Richard Earnshaw mentions that this came from
merging in the new arm/thumb port in Apr 2000.
The problem wasn't noticed at the time because the #error in crstuff.c
was added in Aug 2001.
The same problem was in the t-xscale-coff file, which Nick Clifton fixed
in Dec 2001.
This should be fixed simply by deleting the EXTRA_MULTILIB_PARTS line.
I see that the t-strongarm-pe file has the same line. I suspect that
one is also broken in the same way, and needs the same fix.