Patchwork Add -pthread option for RTEMS

login
register
mail settings
Submitter Sebastian Huber
Date Jan. 29, 2013, 1:43 p.m.
Message ID <1359467039-1712-1-git-send-email-sebastian.huber@embedded-brains.de>
Download mbox | patch
Permalink /patch/216532/
State New
Headers show

Comments

Sebastian Huber - Jan. 29, 2013, 1:43 p.m.
A lot of things use the -pthread GCC option if they want to use the
Pthreads.  Examples are various configure scripts and some GCC test
cases.  RTEMS supports Pthreads.  It is convenient to simply add a
-pthread option and ignore it for RTEMS.

2013-01-29  Sebastian Huber  <sebastian.huber@embedded-brains.de>

        * config/rtems.opt: Add -pthread option.
---
 gcc/config/rtems.opt |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Sebastian Huber - March 26, 2013, 10:50 a.m.
Ping.

On 01/29/2013 02:43 PM, Sebastian Huber wrote:
> A lot of things use the -pthread GCC option if they want to use the
> Pthreads.  Examples are various configure scripts and some GCC test
> cases.  RTEMS supports Pthreads.  It is convenient to simply add a
> -pthread option and ignore it for RTEMS.
>
> 2013-01-29  Sebastian Huber  <sebastian.huber@embedded-brains.de>
>
>          * config/rtems.opt: Add -pthread option.
> ---
>   gcc/config/rtems.opt |    3 +++
>   1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/gcc/config/rtems.opt b/gcc/config/rtems.opt
> index d76b7e7..0b1a353 100644
> --- a/gcc/config/rtems.opt
> +++ b/gcc/config/rtems.opt
> @@ -23,6 +23,9 @@
>
>   ; Please try to keep this file in ASCII collating order.
>
> +pthread
> +Ignore
> +
>   qnolinkcmds
>   Driver
>
>

Patch

diff --git a/gcc/config/rtems.opt b/gcc/config/rtems.opt
index d76b7e7..0b1a353 100644
--- a/gcc/config/rtems.opt
+++ b/gcc/config/rtems.opt
@@ -23,6 +23,9 @@ 
 
 ; Please try to keep this file in ASCII collating order.
 
+pthread
+Ignore
+
 qnolinkcmds
 Driver