From 8e3ec9caeb2653b676896ddf05cdf826edc2c3f1 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 13 May 2011 01:24:00 +0000 Subject: [PATCH] Add 'may_alias' attribute. Noticed by Eli. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131278 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Headers/emmintrin.h | 4 ++-- lib/Headers/xmmintrin.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Headers/emmintrin.h b/lib/Headers/emmintrin.h index b2aae8eae9..ee12d3caef 100644 --- a/lib/Headers/emmintrin.h +++ b/lib/Headers/emmintrin.h @@ -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; } diff --git a/lib/Headers/xmmintrin.h b/lib/Headers/xmmintrin.h index f3e9409b85..50f275dce0 100644 --- a/lib/Headers/xmmintrin.h +++ b/lib/Headers/xmmintrin.h @@ -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; } -- 2.40.0