OpenBSD cilkrts portability patch

2013-11-09 Thread John Carr
I am trying to build the trunk version of gcc to have Cilk on OpenBSD. I attach three changes to libcilkrts. Two changes treat OpenBSD like FreeBSD. One change is needed because OpenBSD defines PTHREAD_MUTEX_* as enumerations rather than preprocessor constants. Index: /data/jfc/src/GNU/trunk/li

[PATCH] ARM: Weaker memory barriers

2014-03-10 Thread John Carr
A comment in arm/sync.md notes "We should consider issuing a inner shareability zone barrier here instead." Here is my first attempt at a patch to emit weaker memory barriers. Three instructions seem to be relevant for user mode code on my Cortex A9 Linux box: dmb ishst, dmb ish, dmb sy I belie

Re: [PATCH] ARM: Weaker memory barriers

2014-03-11 Thread John Carr
Will Deacon wrote: > > Hi John, > > On Tue, Mar 11, 2014 at 02:54:18AM +0000, John Carr wrote: > > A comment in arm/sync.md notes "We should consider issuing a inner > > shareability zone barrier here instead." Here is my first attempt > > at a patc