[llvm-bugs] [Bug 25546] New: Bad diagnostic when using -Wunused-macros and building .S files

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 16 11:56:46 PST 2015


https://llvm.org/bugs/show_bug.cgi?id=25546

            Bug ID: 25546
           Summary: Bad diagnostic when using -Wunused-macros and building
                    .S files
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: eyal.lotem at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

If you build even the empty.S file:

echo > /tmp/empty.S
clang -Wunused-macros -c /tmp/empty.S

You get a bad "unused macro" diagnostics on all the built-in macros:

<built-in>:1:9: warning: macro is not used [-Wunused-macros]
#define __llvm__ 1
        ^
<built-in>:2:9: warning: macro is not used [-Wunused-macros]
#define __clang__ 1
        ^
...

-- 
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/20151116/a24dc163/attachment.html>


More information about the llvm-bugs mailing list