From: Jim Wilson Date: Tue, 12 Oct 1999 02:03:39 +0000 (-0700) Subject: Fix sparc*-*-elf constructor problems; from Jason Merrill via Jonathan Larmour. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6eccdc8137452ba214e122fb0cb936f6a2358677;p=gcc.git 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. From-SVN: r29906 --- diff --git a/gcc/config/sparc/liteelf.h b/gcc/config/sparc/liteelf.h index 3eedce4c4c3..164cf20e46d 100644 --- a/gcc/config/sparc/liteelf.h +++ b/gcc/config/sparc/liteelf.h @@ -47,3 +47,7 @@ Boston, MA 02111-1307, USA. */ #undef STARTFILE_SPEC #define STARTFILE_SPEC "crti.o%s crtbegin.o%s" + +/* Use __main method of constructor invocation. */ +#undef INIT_SECTION_ASM_OP +#undef FINI_SECTION_ASM_OP diff --git a/gcc/configure b/gcc/configure index 5c4f0f4c83b..97a98865853 100755 --- a/gcc/configure +++ b/gcc/configure @@ -6047,7 +6047,7 @@ for machine in $build $host $target; do tmake_file=sparc/t-sparclite ;; sparclite-*-elf*) - tm_file="sparc/liteelf.h libgloss.h" + tm_file="sparc/liteelf.h" tmake_file=sparc/t-sparclite extra_parts="crtbegin.o crtend.o" ;; @@ -6056,7 +6056,7 @@ for machine in $build $host $target; do tmake_file=sparc/t-sp86x ;; sparc86x-*-elf*) - tm_file="sparc/sp86x-elf.h libgloss.h" + tm_file="sparc/sp86x-elf.h" tmake_file=sparc/t-sp86x extra_parts="crtbegin.o crtend.o" ;; diff --git a/gcc/configure.in b/gcc/configure.in index 65e268614a8..50a55539315 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -3365,7 +3365,7 @@ changequote([,])dnl tmake_file=sparc/t-sparclite ;; sparclite-*-elf*) - tm_file="sparc/liteelf.h libgloss.h" + tm_file="sparc/liteelf.h" tmake_file=sparc/t-sparclite extra_parts="crtbegin.o crtend.o" ;; @@ -3374,7 +3374,7 @@ changequote([,])dnl tmake_file=sparc/t-sp86x ;; sparc86x-*-elf*) - tm_file="sparc/sp86x-elf.h libgloss.h" + tm_file="sparc/sp86x-elf.h" tmake_file=sparc/t-sp86x extra_parts="crtbegin.o crtend.o" ;;