]> granicus.if.org Git - clang/commitdiff
Add 'may_alias' attribute. Noticed by Eli.
authorBill Wendling <isanbard@gmail.com>
Fri, 13 May 2011 01:24:00 +0000 (01:24 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 13 May 2011 01:24:00 +0000 (01:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131278 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/emmintrin.h
lib/Headers/xmmintrin.h

index b2aae8eae925a1fd1b4e89eb0dff9bc47e84fa15..ee12d3caef9c22d260b8642171123a3ce11d2dfd 100644 (file)
@@ -468,7 +468,7 @@ _mm_loadu_pd(double const *dp)
 {
   struct __loadu_pd {
     __m128d v;
-  } __attribute__((packed));
+  } __attribute__((packed, may_alias));
   return ((struct __loadu_pd*)dp)->v;
 }
 
@@ -1016,7 +1016,7 @@ _mm_loadu_si128(__m128i const *p)
 {
   struct __loadu_si128 {
     __m128i v;
-  } __attribute__((packed));
+  } __attribute__((packed, may_alias));
   return ((struct __loadu_si128*)p)->v;
 }
 
index f3e9409b85b9d3aa5058bfcf2e109ce261cbd33c..50f275dce054029d8912892769e0609bc065c54d 100644 (file)
@@ -541,7 +541,7 @@ _mm_loadu_ps(const float *p)
 {
   struct __loadu_ps {
     __m128 v;
-  } __attribute__((packed));
+  } __attribute__((packed, may_alias));
   return ((struct __loadu_ps*)p)->v;
 }