Re: Inline assember interferes with #pragma options align
Re: Inline assember interferes with #pragma options align
- Subject: Re: Inline assember interferes with #pragma options align
- From: Stan Shebs <email@hidden>
- Date: Tue, 21 Jun 2005 19:54:16 -0700
Steve Baxter wrote:
Hi,
I'm trying to move a CW project to XCode and I've come across a weird
problem. If I use inline assember, it messes up the #pragma options
align stack. For instance, this code will cause an error:
int main (int argc, char * const argv[])
{
asm
{
}
#pragma options align=mac68k
struct x {
short a;
short b;
};
#pragma options align=reset
}
The error is "error: too many #pragma options align=reset"
In the immortal words of Asok the intern, "ow ow ow ow". :-)
Try adding a dummy C statement in between the asm{} and
the pragma, like "a = a;" or maybe even just ";". Both
pragmas and asm blocks have to do bad things to the parser,
it probably just needs a bit of normalcy in between
weirdnesses.
And file a bug of course.
Stan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden