components/gcc49/patches/004-sem.h.patch
changeset 5205 eaff9ab86216
equal deleted inserted replaced
5204:766639d560b9 5205:eaff9ab86216
       
     1 # Stefan Teleman <[email protected]>
       
     2 # Make sure these structs are always aligned on 8.
       
     3 # Internal patch. Submitted upstram. Status pending.
       
     4 --- libgomp/config/posix/sem.h	2014-01-02 17:25:54.000000000 -0500
       
     5 +++ libgomp/config/posix/sem.h	2014-11-19 08:35:29.670306230 -0500
       
     6 @@ -48,8 +48,8 @@
       
     7  
       
     8  struct gomp_sem
       
     9  {
       
    10 -  pthread_mutex_t	mutex;
       
    11 -  pthread_cond_t	cond;
       
    12 +  pthread_mutex_t	mutex __attribute__((__aligned__(8)));
       
    13 +  pthread_cond_t	cond __attribute__((__aligned__(8)));
       
    14    int			value;
       
    15  };
       
    16