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]

Re: thread model patch for *-rtems PR3266


*)(*(*^*&!@ I clicked the wrong file. :(

The correct patch is gcc-rtems_thread.patch.  Comments
still apply.

Joel Sherrill wrote:
> 
> 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.
> 

The following ChangeLog entry is NOT for thread model 
problems but for miscellaneous *-rtems configurery
problems.

>   ------------------------------------------------------------------------
> 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.

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>

	* configure.in: Add rtems as a supported thread model.
	* gthr-rtems.h: Add missing entry point __gthread_active_p.

diff -uNr /usr1/rtems/work-tools/original/gcc-3.0-20010614/gcc/configure.in gcc-3.0-20010614/gcc/configure.in
--- /usr1/rtems/work-tools/original/gcc-3.0-20010614/gcc/configure.in	Tue Jun 12 21:27:58 2001
+++ gcc-3.0-20010614/gcc/configure.in	Fri Jun 15 11:03:07 2001
@@ -288,7 +288,7 @@
 		target_thread_file=''
 		;;
 	xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
-	xsolaris | xwin32 | xdce | xvxworks | xaix)
+	xsolaris | xwin32 | xdce | xrtems| xvxworks | xaix)
 		target_thread_file=$enable_threads_flag
 		;;
 	*)
diff -uNr /usr1/rtems/work-tools/original/gcc-3.0-20010614/gcc/gthr-rtems.h gcc-3.0-20010614/gcc/gthr-rtems.h
--- /usr1/rtems/work-tools/original/gcc-3.0-20010614/gcc/gthr-rtems.h	Wed Dec  6 20:42:01 2000
+++ gcc-3.0-20010614/gcc/gthr-rtems.h	Mon Jun 18 10:26:58 2001
@@ -62,6 +62,13 @@
 extern int rtems_gxx_mutex_unlock (__gthread_mutex_t *mutex);
 
 
+/* RTEMS threading is always active */
+static inline int
+__gthread_active_p (void)
+{
+  return 1;
+}
+
 /* Wrapper calls */
 static inline int
 __gthread_once (__gthread_once_t *once, void (*func) ())

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