Bug 236337 - read_barrier fix for alpha
read_barrier fix for alpha
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
rawhide
alpha Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-13 06:03 EDT by Oliver Falk
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-04-13 10:35:18 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Oliver Falk 2007-04-13 06:03:38 EDT
Index: gcc41.spec
===================================================================
RCS file: /cvs/dist/devel/gcc/gcc41.spec,v
retrieving revision 1.156
diff -r1.156 gcc41.spec
142a143
> Patch32: gcc-4.1.2-read_barrier_alpha.patch
450a452
> %patch32 -p1 -b .read_barrier_alpha

--- gcc-4.1.2/libjava/sysdep/alpha/locks.h.read_barrier_alpha   2007-02-20
22:41:38.000000000 +0100
+++ gcc-4.1.2/libjava/sysdep/alpha/locks.h      2007-04-10 18:20:24.000000000 +0200
@@ -58,4 +58,10 @@
   __asm__ __volatile__("wmb" : : : "memory");
 }
 
+inline static void
+read_barrier()
+{
+ __asm__ __volatile__("mb" : : : "memory");
+}
+
 #endif


This would help AlphaCore. Please note, I already spoke with gcc-people and they
told me that this is already fixed in HEAD.
Comment 1 Jakub Jelinek 2007-04-13 10:35:18 EDT
Committed to SVN redhat/gcc-4_1-branch, will therefore show up
in the next rawhide build.

Note You need to log in before you can comment on or make changes to this bug.