summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Builtins.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Supply the header corresponding to a library builtin as a separate argument ↵Douglas Gregor2009-02-161-17/+3
| | | | | | to the LIBBUILTIN macro llvm-svn: 64676
* Fix pasto noticed by Anders Johnsen.Daniel Dunbar2009-02-151-2/+2
| | | | llvm-svn: 64595
* Add -ffreestanding to suppress the implicit declaration of library builtins ↵Douglas Gregor2009-02-141-5/+13
| | | | | | like printf and malloc. Fixes PR3586 llvm-svn: 64566
* Fix the build on win32.Cedric Venet2009-02-141-4/+4
| | | | llvm-svn: 64556
* Make it possible for builtins to expression FILE* arguments, so thatDouglas Gregor2009-02-141-6/+25
| | | | | | | | we can define builtins such as fprintf, vfprintf, and __builtin___fprintf_chk. Give a nice error message when we need to implicitly declare a function like fprintf. llvm-svn: 64526
* Extend builtin "attribute" syntax to include a notation forDouglas Gregor2009-02-141-0/+35
| | | | | | | | | | | | | | | | | | | | | printf-like functions, both builtin functions and those in the C library. The function-call checker now queries this attribute do determine if we have a printf-like function, rather than scanning through the list of "known functions IDs". However, there are 5 functions they are not yet "builtins", so the function-call checker handles them specifically still: - fprintf and vfprintf: the builtins mechanism cannot (yet) express FILE* arguments, so these can't be encoded. - NSLog: the builtins mechanism cannot (yet) express NSString* arguments, so this (and NSLogv) can't be encoded. - asprintf and vasprintf: these aren't part of the C99 standard library, so we really shouldn't be defining them as builtins in the general case (and we don't seem to have the machinery to make them builtins only on certain targets and depending on whether extensions are enabled). llvm-svn: 64512
* Fix for PR3350: add special-casing for "references" to va_lists in Eli Friedman2009-01-201-0/+17
| | | | | | | | builtins. Also, a minor tweak to va_copy for consistency. llvm-svn: 62574
* Don't give a default argument to ASTContext::getFunctionType for the ↵Argyrios Kyrtzidis2008-10-261-1/+1
| | | | | | | | | TypeQuals parameter, it causes subtle bugs where TypeQuals, while necessary, are omitted from the call. -Remove the default argument. -Update all call sites of ASTContext::getFunctionType. llvm-svn: 58187
* Make llvm memory barrier available as an intrinsicMon P Wang2008-10-181-0/+4
| | | | llvm-svn: 57751
* Fix va_arg handling to do argument decaying at the correct place. ThisChris Lattner2008-09-291-5/+9
| | | | | | | fixes problems handling references of va_list, which happens on x86_64. This fixes PR2841 and rdar://6252231 llvm-svn: 56809
* Fix rdar://6252231 - cannot call vsnprintf with va_list on x86_64,Chris Lattner2008-09-281-0/+3
| | | | | | | | by decaying __builtin_va_list's type when forming builtins. On x86-64 (and other targets) __builtin_va_list is a typedef for an array. llvm-svn: 56768
* More #include cleaningDaniel Dunbar2008-08-111-0/+1
| | | | | | | | - Drop Expr.h,RecordLayout.h from ASTContext.h (for DeclBase.h and SourceLocation.h) - Move ASTContext constructor into implementation llvm-svn: 54627
* Make a major restructuring of the clang tree: introduce a top-levelChris Lattner2008-03-151-0/+195
lib dir and move all the libraries into it. This follows the main llvm tree, and allows the libraries to be built in parallel. The top level now enforces that all the libs are built before Driver, but we don't care what order the libs are built in. This speeds up parallel builds, particularly incremental ones. llvm-svn: 48402
OpenPOWER on IntegriCloud