• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Inline assember interferes with #pragma options align
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Inline assember interferes with #pragma options align
      • From: Steve Baxter <email@hidden>
References: 
 >Inline assember interferes with #pragma options align (From: Steve Baxter <email@hidden>)

  • Prev by Date: Re: pre processing problem xcode 2.1
  • Next by Date: xcode 1.5
  • Previous by thread: Inline assember interferes with #pragma options align
  • Next by thread: Re: Inline assember interferes with #pragma options align
  • Index(es):
    • Date
    • Thread