[LLVMbugs] [Bug 4371] New: much bigger resulting code than with gcc

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jun 11 11:15:23 PDT 2009


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: unassignedclangbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu


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.



More information about the llvm-bugs mailing list