[LLVMbugs] [Bug 8818] New: -E produces code that clang can't parse

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Dec 19 12:10:07 PST 2010


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

           Summary: -E produces code that clang can't parse
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu


dhcp-172-19-253-91:chrome thakis$ cat test.m 
#include <ApplicationServices/ApplicationServices.h>
dhcp-172-19-253-91:chrome thakis$
/Users/thakis/src/llvm-rw/Release+Asserts/bin/clang++ -arch i386 -E -o tmp2.m
test.m
dhcp-172-19-253-91:chrome thakis$
/Users/thakis/src/llvm-rw/Release+Asserts/bin/clang++ -c tmp2.m
In file included from test.m:1:
In file included from test.m:1:
In file included from
/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:30:
In file included from
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QD.h:29:
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ColorSync.framework/Headers/ColorSyncDeprecated.h:1236:9:
error: mac68k alignment pragma is not supported on this target
#pragma options align=mac68k
        ^
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ColorSync.framework/Headers/ColorSyncDeprecated.h:3157:9:
error: mac68k alignment pragma is not supported on this target
#pragma options align=mac68k
        ^
In file included from test.m:1:
In file included from test.m:1:
In file included from
/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:38:
In file included from
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PrintCore.h:30:
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PMDefinitions.h:28:9:
error: mac68k alignment pragma is not supported on this target
#pragma options align=mac68k
        ^
In file included from test.m:1:
In file included from test.m:1:
In file included from
/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:38:
In file included from
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PrintCore.h:38:
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PMDefinitionsDeprecated.h:31:9:
error: mac68k alignment pragma is not supported on this target
#pragma options align=mac68k
        ^
4 errors generated.


Works fine with gcc. In clang, it works if I pass '-arch i386' to the second
invocation, but since the output of -E is supposed to be self-contained, that
shouldn't be required.

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