This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

thread model patch for *-rtems PR3266



I believe the config.gcc code in question has been 
replaced on the mainline.  Both pieces are applicable
to 3.0-CVS branch.

PR3266 can be closed if the attached patch is applied.

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985
2001-06-19	Joel Sherrill <joel@OARcorp.com>

	* config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
	extra multilib parts like arm-elf.
	(i960-*-coff*, i960-*-rtems): Should not use collect2.
	(m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
	crtfini.o as extra multilib parts.

diff -uNr /usr1/rtems/work-tools/original/gcc-3.0-20010614/gcc/config.gcc gcc-3.0-20010614/gcc/config.gcc
--- /usr1/rtems/work-tools/original/gcc-3.0-20010614/gcc/config.gcc	Tue Jun  5 14:09:51 2001
+++ gcc-3.0-20010614/gcc/config.gcc	Tue Jun 19 09:29:47 2001
@@ -545,7 +545,6 @@
 	if test x$enable_threads = xyes; then
 	  thread_file='rtems'
 	fi
-	extra_parts="crtinit.o crtfini.o"
 	;;
 arc-*-elf*)
 	extra_parts="crtinit.o crtfini.o"
@@ -1610,12 +1609,10 @@
 i960-*-coff*)
 	tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
 	tmake_file=i960/t-960bare
-	use_collect2=yes
 	;;
 i960-*-rtems)
 	tmake_file="i960/t-960bare t-rtems"
 	tm_file="${tm_file} dbxcoff.h i960/rtems.h"
-	use_collect2=yes
 	if test x$enable_threads = xyes; then
 	  thread_file='rtems'
 	fi
@@ -2018,6 +2015,7 @@
 	xm_file=m68k/xm-m68kv.h
 	tmake_file=m68k/t-m68kelf
 	header_files=math-68881.h
+	extra_parts="crtbegin.o crtend.o"
 	;;
 m68k-*-lynxos*)
 	if test x$gas = xyes
@@ -2114,6 +2112,7 @@
 	tm_file=m68k/rtemself.h
 	extra_headers=math-68881.h
 	float_format=m68k
+	extra_parts="crtbegin.o crtend.o"
 	if test x$enable_threads = xyes; then
 	  thread_file='rtems'
 	fi

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]