[LLVMbugs] [Bug 6542] New: Add support for __gcc_tdiag__ format attribute

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 8 03:20:40 PST 2010


           Summary: Add support for __gcc_tdiag__ format attribute
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu

GCC makes use of the __gcc_tdiag__ format attribute in its various warning and
error output routines.  When compiling dragonegg with clang++, this results in
lots of warnings like this:

'format' attribute argument not supported: __gcc_tdiag__
extern bool warning (int, const char *, ...) ATTRIBUTE_GCC_DIAG(2,3);

This is annoying, because vast numbers of these warnings are output.
The same thing happens when compiling GCC with clang.  It would be
great if clang could recognize this format attribute.

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