summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-02-15 12:20:23 +0000
committerPavel Labath <pavel@labath.sk>2019-02-15 12:20:23 +0000
commit4f85014dffda33e22edce359eaaa4b162804326a (patch)
tree41ac52e87e5d24d83e80a31995fbdeaf66f9232b
parentc065b025a666a768c45510481785295c4bde61e5 (diff)
downloadbcm5719-llvm-4f85014dffda33e22edce359eaaa4b162804326a.tar.gz
bcm5719-llvm-4f85014dffda33e22edce359eaaa4b162804326a.zip
Remove alignment from struct XSAVE altogether
I reduced the alignment of this struct in r342029 to avoid compiler warnings about under-aligned allocations, but it turns out that this still causes problems with some compilers (see r353778). As I hinted in r342029, I don't believe any special aligment is necessary here (the only reason for that would be if we used some aligned SSE instructions to access this buffer, but I don't see any reason why we should do that), so here I go all the way, and remove the alignment requirements (except the ones naturally imposed by basic types) altogether. llvm-svn: 354125
-rw-r--r--lldb/source/Plugins/Process/Utility/RegisterContext_x86.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Utility/RegisterContext_x86.h b/lldb/source/Plugins/Process/Utility/RegisterContext_x86.h
index 049865ca38b..ad004c8c824 100644
--- a/lldb/source/Plugins/Process/Utility/RegisterContext_x86.h
+++ b/lldb/source/Plugins/Process/Utility/RegisterContext_x86.h
@@ -340,7 +340,7 @@ LLVM_PACKED_END
// x86 extensions to FXSAVE (i.e. for AVX and MPX processors)
LLVM_PACKED_START
-struct LLVM_ALIGNAS(16) XSAVE {
+struct XSAVE {
FXSAVE i387; // floating point registers typical in i387_fxsave_struct
XSAVE_HDR header; // The xsave_hdr_struct can be used to determine if the
// following extensions are usable
OpenPOWER on IntegriCloud