[LLVMbugs] [Bug 3855] New: Checks for built-in functions make autoconf upset

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Mar 21 01:42:17 PDT 2009


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

           Summary: Checks for built-in functions make autoconf upset
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ed at 80386.nl
                CC: llvmbugs at cs.uiuc.edu
            Blocks: 3696


I've seen some breakage (zsh, python, etc) where autoconf compiles pieces of
code that look like:

void snprintf();

int
main(int argc, char *argv[])
{

        snprintf();
}

Unfortunately Clang returns the following:

test.c:1:6: warning: incompatible redeclaration of library function 'snprintf'
will be ignored
void snprintf();
     ^
test.c:1:6: note: 'snprintf' is a builtin with type 'int (char *, unsigned
long, char const *, ...)'
test.c:7:11: error: too few arguments to function call
        snprintf();
        ~~~~~~~~ ^
3 diagnostics generated.

This means autoconf thinks snprintf() is not present. It also does this with
memmove(), etc.


-- 
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