source:
rtems-tools/tools/4.11/gcc/gcc-rtems-thread-model-posix-1.diff
@
b2589cb
Last change on this file since b2589cb was b2589cb, checked in by Chris Johns <chrisj@…>, on 08/14/13 at 03:49:27 | |
---|---|
|
|
File size: 3.4 KB |
-
gcc/config.gcc
diff --git a/gcc/config.gcc b/gcc/config.gcc index ef37e61..6e03865 100644
a b case ${target} in 763 763 ;; 764 764 *-*-rtems*) 765 765 case ${enable_threads} in 766 yes) thread_file=' rtems' ;;766 yes) thread_file='posix' ;; 767 767 esac 768 768 extra_options="${extra_options} rtems.opt" 769 769 default_use_cxa_atexit=yes -
libgcc/config/t-rtems
diff --git a/libgcc/config/t-rtems b/libgcc/config/t-rtems index 85f1da9..11e0c64 100644
a b 1 1 # If we are building next to newlib, this will let us find the RTEMS 2 2 # limits.h when building libgcc2. Otherwise, newlib must be installed 3 3 # first. 4 LIBGCC2_INCLUDES = -I$(srcdir)/../newlib/libc/sys/rtems/include 4 LIBGCC2_INCLUDES = -I$(srcdir)/../newlib/libc/sys/rtems/include -I$(srcdir)/../newlib/libc/sys/rtems -
libgcc/gthr-posix.h
diff --git a/libgcc/gthr-posix.h b/libgcc/gthr-posix.h index f0d8cd7..653a7fc 100644
a b __gthrw(pthread_detach) 110 110 #ifndef __BIONIC__ 111 111 __gthrw(pthread_cancel) 112 112 #endif 113 #ifndef __rtems__ 113 114 __gthrw(sched_yield) 115 #endif 114 116 115 117 __gthrw(pthread_mutex_lock) 116 118 __gthrw(pthread_mutex_trylock) … … __gthread_objc_thread_get_priority (void) 447 449 static inline void 448 450 __gthread_objc_thread_yield (void) 449 451 { 452 #ifndef __rtems__ 450 453 if (__gthread_active_p ()) 451 454 __gthrw_(sched_yield) (); 455 #endif 452 456 } 453 457 454 458 /* Terminate the current thread. */ … … __gthread_self (void) 689 693 static inline int 690 694 __gthread_yield (void) 691 695 { 696 #ifndef __rtems__ 692 697 return __gthrw_(sched_yield) (); 698 #else 699 return 0; 700 #endif 693 701 } 694 702 695 703 static inline int -
libgcc/gthr.h
diff --git a/libgcc/gthr.h b/libgcc/gthr.h index 0edb583..672f69d 100644
a b see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 135 135 #if SUPPORTS_WEAK 136 136 /* The pe-coff weak support isn't fully compatible to ELF's weak. 137 137 For static libraries it might would work, but as we need to deal 138 with shared versions too, we disable it for mingw-targets. */ 139 #ifdef __MINGW32__ 138 with shared versions too, we disable it for mingw-targets. 139 140 RTEMS is always threaded so disable weak support. */ 141 #if defined(__MINGW32__) || defined(__rtems__) 140 142 #undef GTHREAD_USE_WEAK 141 143 #define GTHREAD_USE_WEAK 0 142 144 #endif -
libstdc++-v3/include/Makefile.am
diff --git a/libstdc++-v3/include/Makefile.am b/libstdc++-v3/include/Makefile.am index 5971af3..b8f2842 100644
a b ${host_builddir}/gthr.h: ${toplevel_srcdir}/libgcc/gthr.h stamp-${host_alias} 1139 1139 -e '/^#/s/\(${uppercase}${uppercase}*\)/_GLIBCXX_\1/g' \ 1140 1140 -e 's/_GLIBCXX_SUPPORTS_WEAK/__GXX_WEAK__/g' \ 1141 1141 -e 's/_GLIBCXX___MINGW32_GLIBCXX___/__MINGW32__/g' \ 1142 -e 's/_GLIBCXX___rtems_GLIBCXX___/__rtems__/g' \ 1142 1143 -e 's,^#include "\(.*\)",#include <bits/\1>,g' \ 1143 1144 < $< > $@ 1144 1145 -
libstdc++-v3/include/Makefile.in
diff --git a/libstdc++-v3/include/Makefile.in b/libstdc++-v3/include/Makefile.in index aa8ef43..1536a7f 100644
a b ${host_builddir}/gthr.h: ${toplevel_srcdir}/libgcc/gthr.h stamp-${host_alias} 1545 1545 -e '/^#/s/\(${uppercase}${uppercase}*\)/_GLIBCXX_\1/g' \ 1546 1546 -e 's/_GLIBCXX_SUPPORTS_WEAK/__GXX_WEAK__/g' \ 1547 1547 -e 's/_GLIBCXX___MINGW32_GLIBCXX___/__MINGW32__/g' \ 1548 -e 's/_GLIBCXX___rtems_GLIBCXX___/__rtems__/g' \ 1548 1549 -e 's,^#include "\(.*\)",#include <bits/\1>,g' \ 1549 1550 < $< > $@ 1550 1551
Note: See TracBrowser
for help on using the repository browser.