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: Steve Baxter <email@hidden>
- Date: Wed, 22 Jun 2005 10:38:04 +0100
Hi Stan,
That doesn't fix it unfortunately - in the real code there are
thousands of lines of C between the asm{} and the pragma. Have filed
a bug:
radr://4157586
Cheers,
Steve.
On 22 Jun 2005, at 03:54, Stan Shebs wrote:
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
Stephen Baxter
Software Development Manager
Improvision
email@hidden
+44-2476-692229
_______________________________________________
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