sparclite-elf bug, GNATS bootstrap/4198

David S. Miller davem@redhat.com
Mon Oct 7 01:58:00 GMT 2002


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.



More information about the Gcc-bugs mailing list