On 26/07/2014 9:01 pm, Sebastian Huber wrote:
The command line to build a GCC for RTEMS contained virtually always a '--enable-threads'. This patch helps to avoid this extra configuration command line parameter and makes the GCC build a bit more user friendly for RTEMS.
+1
This patch should be applied to GCC 4.9 branch and master. 2014-04-18 Sebastian Huber <sebastian.hu...@embedded-brains.de> * config.gcc (*-*-rtems*): Default to 'rtems' thread model. Enable selection of 'posix' or no thread model. --- gcc/config.gcc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/config.gcc b/gcc/config.gcc index 9b6a5f3..6eefa53 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -791,7 +791,13 @@ case ${target} in ;; *-*-rtems*) case ${enable_threads} in - yes) thread_file='rtems' ;; + "" | yes | rtems) thread_file='rtems' ;; + posix) thread_file='posix' ;;
Hmm the posix model is a little tricky. It would be good if this was the standard for RTEMS however we know there are issues and leaving it available lets us test when the issues start to get worked on yet having this available also implies it is available for use. I suppose it is ok and anyone building the tools knows what they are doing or is using something like the RSB.
Chris
+ no) ;; + *) + echo 'Unknown thread configuration for RTEMS' + exit 1 + ;; esac tmake_file="${tmake_file} t-rtems" extra_options="${extra_options} rtems.opt"
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel