aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaAttr.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-28 19:43:33 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-28 19:43:33 +0000
commit450f79340808e54cd4b39738f943217f6fc0c2be (patch)
treedce8a9ce57b6cd27417a9608dbb0a2fa3d305ddb /lib/Sema/SemaAttr.cpp
parent94849689c1b9b2cb0f06e2a18058be54e99ab708 (diff)
Sema: Just ignore '#pragma options align=power' for now, this is no worse than
what we used to be doing, and makes sure that paired '#pragma options align=reset' won't fail. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104998 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaAttr.cpp')
-rw-r--r--lib/Sema/SemaAttr.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Sema/SemaAttr.cpp b/lib/Sema/SemaAttr.cpp
index fcf5bfd669..df68f53da6 100644
--- a/lib/Sema/SemaAttr.cpp
+++ b/lib/Sema/SemaAttr.cpp
@@ -135,7 +135,6 @@ void Sema::ActOnPragmaOptionsAlign(PragmaOptionsAlignKind Kind,
return;
}
- // We don't support #pragma options align=power.
switch (Kind) {
// For all targets we support native and natural are the same.
//
@@ -146,6 +145,12 @@ void Sema::ActOnPragmaOptionsAlign(PragmaOptionsAlignKind Kind,
Context->setAlignment(0);
break;
+ // FIXME: We just ignore #pragma options align=power for now.
+ case POAK_Power:
+ Context->push(0);
+ Context->setAlignment(0);
+ break;
+
// Note that '#pragma options align=packed' is not equivalent to attribute
// packed, it has a different precedence relative to attribute aligned.
case POAK_Packed: