[LLVMbugs] [Bug 4464] New: PRAGMA_STRUCT_ALIGN defined but #pragma options align doesn 't work

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Jun 26 13:44:21 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=4464

           Summary: PRAGMA_STRUCT_ALIGN defined but #pragma options align
                    doesn't work
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: alexei.svitkine at gmail.com
                CC: llvmbugs at cs.uiuc.edu


The following code produces warnings:

#if PRAGMA_STRUCT_ALIGN
#pragma options align=mac68k
#endif

typedef struct {
        short vRefNum;
        long parID;
        unsigned char name[64];
} FileDesc; /* FileDesc==FileDescriptor */

#if PRAGMA_STRUCT_ALIGN
#pragma options align=reset
#endif

The warning is:

warning: unknown pragma ignored [-Wunknown-pragmas]
#pragma options align=mac68k

The same code does not produce any warnings with Apple's GCC 4.0 used by Xcode
by default.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list