http://llvm.org/bugs/show_bug.cgi?id=20553
Bug ID: 20553
Summary: -frewrite-includes loses information about system
headers, leading to additional warnings and errors
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Consider:
$ cat x/t.h
int __fastcall f();
$ cat t.c
#include "t.h"
void g() { f(); }
$ clang -c t.c -isystem x -m64 # no warnings
$ clang -c t.c -isystem x -m64 -E -frewrite-includes -o t.ii
$ clang -c t.ii -m64
x\t.h:1:5: warning: calling convention '__fastcall' ignored for this target
[-Wignored-attributes]
int __fastcall f();
^
1 warning generated.
This is really annoying when working with crashers on Windows, where system
headers are rife with warnings.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs