This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
sparclite-elf bug, GNATS bootstrap/4198
- From: "David S. Miller" <davem at redhat dot com>
- To: wilson at redhat dot com
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 07 Oct 2002 01:51:23 -0700 (PDT)
- Subject: sparclite-elf bug, GNATS bootstrap/4198
This change
Fix sparc*-*-elf constructor problems; from Jason Merrill via Jonathan Larmour.
* config/sparc/liteelf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
Undef.
* configure.in (sparclite-*-elf, sparc86x-*-elf): Don't use libgloss.h.
* configure: Regenerate.
seems to be the source of the GNATS bug mentioned in the
subject. The diff is:
Index: liteelf.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sparc/liteelf.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -r1.2 -r1.3
49a50,53
>
> /* Use __main method of constructor invocation. */
> #undef INIT_SECTION_ASM_OP
> #undef FINI_SECTION_ASM_OP
As a result, we have ELF + !INIT_SECTION_ASM_OP and !HAS_INIT_SECTION
which causes crtstuff.c to explode here:
#else /* ! INIT_SECTION_ASM_OP && ! HAS_INIT_SECTION */
#error "What are you doing with crtstuff.c, then?"
#endif
It is possible that gcc/crtstuff.c changed incompatibly between your
changes and now. I did a quick cvs log of crtstuff.c and this appears
to not be the case, only unrelated changes have happened.