patch for Re: libstdc++/3174: sparc-rtems (also seen on i386-rtems)
Joel Sherrill
joel.sherrill@OARcorp.com
Tue Jun 19 07:35:00 GMT 2001
Attached is a minor patch that adds the missing entry point
to gthr-rtems.h and adds rtems as a known thread model to
configure.in.
This is the patch that lets this close.
bkoz@gcc.gnu.org wrote:
>
> Synopsis: sparc-rtems (also seen on i386-rtems)
>
> State-Changed-From-To: feedback->closed
> State-Changed-By: bkoz
> State-Changed-When: Mon Jun 18 22:53:35 2001
> State-Changed-Why:
> Fixed
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3174&database=gcc
--
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) ())
More information about the Gcc-bugs
mailing list