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

           Summary: much bigger resulting code than with gcc
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


lev /tmp$ gcc -c -O2 ansi.c && nm -S ansi.o | grep WriteString
0000000000004970 000000000000190a T WriteString


lev /tmp$ clang -c -O2 ansi.c && nm -S ansi.o | grep WriteString
ansi.c:2891:13: warning: format string is not a string literal (potentially
insecure) [-Wformat-security]
  LMsg(err, str);
            ^~~
1 diagnostic generated.
00000000000003d0 000000000000328e T WriteString

note the size of the WriteString function --- 190a vs 328e, thats quite a lot!
attached test case

this is most probably something in llvm codegen or llvm itself. I dont know


-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to