public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] hppa-linux: add missing cpp specs
@ 2015-05-27 16:04 Mike Frysinger
  2015-05-27 17:45 ` John David Anglin
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2015-05-27 16:04 UTC (permalink / raw)
  To: gcc-patches; +Cc: law, dave.anglin

Define CPP_SPEC for parisc linux targets so that -posix & -pthread work
like on all other linux targets.

2015-05-27  Mike Frysinger  <vapier@gentoo.org>

	* config/pa/pa-linux.h (CPP_SPEC): Define.
---
 gcc/config/pa/pa-linux.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/pa/pa-linux.h b/gcc/config/pa/pa-linux.h
index 396d321..f8da185 100644
--- a/gcc/config/pa/pa-linux.h
+++ b/gcc/config/pa/pa-linux.h
@@ -28,7 +28,7 @@ along with GCC; see the file COPYING3.  If not see
   while (0)
 
 #undef CPP_SPEC
-#define CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
+#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
 
 #undef ASM_SPEC
 #define ASM_SPEC \
-- 
2.4.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] hppa-linux: add missing cpp specs
  2015-05-27 16:04 [PATCH] hppa-linux: add missing cpp specs Mike Frysinger
@ 2015-05-27 17:45 ` John David Anglin
  2015-05-27 17:57   ` Mike Frysinger
  0 siblings, 1 reply; 5+ messages in thread
From: John David Anglin @ 2015-05-27 17:45 UTC (permalink / raw)
  To: Mike Frysinger, gcc-patches; +Cc: law

On 2015-05-27 11:59 AM, Mike Frysinger wrote:
> Define CPP_SPEC for parisc linux targets so that -posix & -pthread work
> like on all other linux targets.
>
> 2015-05-27  Mike Frysinger<vapier@gentoo.org>
>
> 	* config/pa/pa-linux.h (CPP_SPEC): Define.
Okay.  I think this should be applied to all active branches. ChangeLog 
entry should mention
_REENTRANT.

Thanks,
Dave

-- 
John David Anglin  dave.anglin@bell.net

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] hppa-linux: add missing cpp specs
  2015-05-27 17:45 ` John David Anglin
@ 2015-05-27 17:57   ` Mike Frysinger
  2015-05-27 18:59     ` John David Anglin
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2015-05-27 17:57 UTC (permalink / raw)
  To: John David Anglin; +Cc: gcc-patches, law

[-- Attachment #1: Type: text/plain, Size: 747 bytes --]

On 27 May 2015 13:05, John David Anglin wrote:
> On 2015-05-27 11:59 AM, Mike Frysinger wrote:
> > Define CPP_SPEC for parisc linux targets so that -posix & -pthread work
> > like on all other linux targets.
> >
> > 2015-05-27  Mike Frysinger<vapier@gentoo.org>
> >
> > 	* config/pa/pa-linux.h (CPP_SPEC): Define.
>
> Okay.  I think this should be applied to all active branches. ChangeLog 
> entry should mention
> _REENTRANT.

since i'm not looped into gcc development normally, which branches are those 
currently ?  naively reading gcc.gnu.org homepage makes me think none since 
they're labled "regression fixes" and afaict, none of these are regressions.
they've been broken for as long as the ports have existed :/.
-mike

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] hppa-linux: add missing cpp specs
  2015-05-27 17:57   ` Mike Frysinger
@ 2015-05-27 18:59     ` John David Anglin
  2015-05-28 14:37       ` Mike Frysinger
  0 siblings, 1 reply; 5+ messages in thread
From: John David Anglin @ 2015-05-27 18:59 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: gcc-patches, law

On 2015-05-27 1:50 PM, Mike Frysinger wrote:
> since i'm not looped into gcc development normally, which branches are those
> currently ?  naively reading gcc.gnu.org homepage makes me think none since
> they're labled "regression fixes" and afaict, none of these are regressions.
> they've been broken for as long as the ports have existed :/.
The branches are 4.8, 4.9, 5 and trunk as noted on http://gcc.gnu.org.  
For target fixes, that don't
affect primary or secondary targets, nobody cares about the regression 
criteria.

This is probably one of the causes of poor thread behavior of many 
applications running on
parisc hardware.  I want to see the patch in Debian and you probably 
want it for Gentoo.

Dave

-- 
John David Anglin  dave.anglin@bell.net

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] hppa-linux: add missing cpp specs
  2015-05-27 18:59     ` John David Anglin
@ 2015-05-28 14:37       ` Mike Frysinger
  0 siblings, 0 replies; 5+ messages in thread
From: Mike Frysinger @ 2015-05-28 14:37 UTC (permalink / raw)
  To: John David Anglin; +Cc: gcc-patches, law

[-- Attachment #1: Type: text/plain, Size: 963 bytes --]

On 27 May 2015 14:20, John David Anglin wrote:
> On 2015-05-27 1:50 PM, Mike Frysinger wrote:
> > since i'm not looped into gcc development normally, which branches are those
> > currently ?  naively reading gcc.gnu.org homepage makes me think none since
> > they're labled "regression fixes" and afaict, none of these are regressions.
> > they've been broken for as long as the ports have existed :/.
>
> The branches are 4.8, 4.9, 5 and trunk as noted on http://gcc.gnu.org.  
> For target fixes, that don't
> affect primary or secondary targets, nobody cares about the regression 
> criteria.

gotcha.  i've committed them then to trunk/4.8/4.9/5.  hopefully didn't break 
anything ;).

> This is probably one of the causes of poor thread behavior of many 
> applications running on
> parisc hardware.  I want to see the patch in Debian and you probably 
> want it for Gentoo.

i've already merged the patches in Gentoo for 4.6+ ;)
-mike

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-28 14:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-27 16:04 [PATCH] hppa-linux: add missing cpp specs Mike Frysinger
2015-05-27 17:45 ` John David Anglin
2015-05-27 17:57   ` Mike Frysinger
2015-05-27 18:59     ` John David Anglin
2015-05-28 14:37       ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).