[LLVMbugs] [Bug 3586] New: cant redefine malloc() prototype
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sat Feb 14 09:20:36 PST 2009
http://llvm.org/bugs/show_bug.cgi?id=3586
Summary: cant redefine malloc() prototype
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu
dgregor in r64504 made malloc and bunch of other functions to have a constant
prototype... in a case of malloc it is void*(unsigned long)
in FreeBSD kernel malloc() has different prototype:
void *malloc(unsigned long size, struct malloc_type *type, int flags)
__malloc_like;
clang produces a hard error when one attempts to redefine malloc, can there be
a flag to turn off the hard error? or something like that?
--
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