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.

llvm-svn: 104998
This commit is contained in:
Daniel Dunbar 2010-05-28 19:43:33 +00:00
parent 406e3826e0
commit 5794c6fa43
2 changed files with 7 additions and 2 deletions

View File

@ -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:

View File

@ -9,4 +9,4 @@
#pragma options align=natural
#pragma options align=reset
#pragma options align=mac68k
/* expected-warning {{unsupported alignment option}} */ #pragma options align=power
#pragma options align=power