[LLVMbugs] [Bug 20553] New: -frewrite-includes loses information about system headers, leading to additional warnings and errors
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Aug 5 14:09:42 PDT 2014
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: unassignedclangbugs at nondot.org
Reporter: rnk at google.com
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140805/7e901d04/attachment.html>
More information about the llvm-bugs
mailing list