[cfe-commits] r131278 - in /cfe/trunk/lib/Headers: emmintrin.h xmmintrin.h
Bill Wendling
isanbard at gmail.com
Thu May 12 18:24:00 PDT 2011
Author: void
Date: Thu May 12 20:24:00 2011
New Revision: 131278
URL: http://llvm.org/viewvc/llvm-project?rev=131278&view=rev
Log:
Add 'may_alias' attribute. Noticed by Eli.
Modified:
cfe/trunk/lib/Headers/emmintrin.h
cfe/trunk/lib/Headers/xmmintrin.h
Modified: cfe/trunk/lib/Headers/emmintrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/emmintrin.h?rev=131278&r1=131277&r2=131278&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/emmintrin.h (original)
+++ cfe/trunk/lib/Headers/emmintrin.h Thu May 12 20:24:00 2011
@@ -468,7 +468,7 @@
{
struct __loadu_pd {
__m128d v;
- } __attribute__((packed));
+ } __attribute__((packed, may_alias));
return ((struct __loadu_pd*)dp)->v;
}
@@ -1016,7 +1016,7 @@
{
struct __loadu_si128 {
__m128i v;
- } __attribute__((packed));
+ } __attribute__((packed, may_alias));
return ((struct __loadu_si128*)p)->v;
}
Modified: cfe/trunk/lib/Headers/xmmintrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/xmmintrin.h?rev=131278&r1=131277&r2=131278&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/xmmintrin.h (original)
+++ cfe/trunk/lib/Headers/xmmintrin.h Thu May 12 20:24:00 2011
@@ -541,7 +541,7 @@
{
struct __loadu_ps {
__m128 v;
- } __attribute__((packed));
+ } __attribute__((packed, may_alias));
return ((struct __loadu_ps*)p)->v;
}
More information about the cfe-commits
mailing list