[LLVMbugs] [Bug 15848] New: Add support for ms_printf format attribute

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 25 22:34:13 PDT 2013


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

            Bug ID: 15848
           Summary: Add support for ms_printf format attribute
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: net147 at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The C runtime on Windows XP and older does not support %lld and some other
format strings used by GNU printf. You need to use %I64d instead of %lld.

The ms_printf format attribute should be implemented to check against MS format
strings and the printf format attribute should default to ms_printf on Windows
when used with MinGW GCC.

This has already been implemented in GCC 4.4:
http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=133365

-- 
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/20130426/3bca33ed/attachment.html>


More information about the llvm-bugs mailing list