- Feb 17, 2009
-
-
Chris Lattner authored
highlight the arguments to the macro as well as the identifier. Before: t.c:3:9: error: no matching function for call to '__tg_acos'; candidates are: return acos(x); ^~~~ after: t.c:3:9: error: no matching function for call to '__tg_acos'; candidates are: return acos(x); ^~~~~~~ llvm-svn: 64743
-
Ted Kremenek authored
llvm-svn: 64740
-
Ted Kremenek authored
- Move all analyzer options logic to AnalysisConsumer.cpp. - Unified specification of stores/constraints/output to be: -analyzer-output=... -analyzer-store=... -analyzer-constraints=... instead of -analyzer-range-constraints, -analyzer-store-basic, etc. - Updated drivers (ccc-analyzer, scan-builds, new ccc) to obey this new interface - Updated test cases to conform to new driver options llvm-svn: 64737
-
Douglas Gregor authored
functions, so if we're declaring a static we should implicitly declare a library function by the same name (e.g., malloc, strdup). Fixes PR3592. llvm-svn: 64736
-
Anders Carlsson authored
llvm-svn: 64735
-
Daniel Dunbar authored
llvm-svn: 64727
-
Chris Lattner authored
llvm-svn: 64725
-
Chris Lattner authored
possible future "data loss" warnings, and b) makes it intensely obvious to the user what the impl of these functions do in a ambiguity error. llvm-svn: 64724
-
Chris Lattner authored
llvm-svn: 64723
-
Chris Lattner authored
Now no candidates are printed because the 'notes' are in a system header. :( #include <tgmath-sofar.h> double foo2(short *x) { return acos(x); } t.c:10:10: error: no matching function for call to '__tg_acos'; candidates are: return acos(x); ^~~~ 1 diagnostic generated. llvm-svn: 64722
-
Chris Lattner authored
all the integer types other than char/short to avoid overload ambiguities. llvm-svn: 64721
-
Chris Lattner authored
produces really horrible diagnostics when overload ambiguities happen: t.c:10:10: error: call to '__tg_acos' is ambiguous; candidates are: return acos(x); ^~~~ In file included from t.c:1: /Users/sabre/llvm/Debug/Headers/tgmath-sofar.h:49:1: note: candidate function __TG_RC_1(x, acos, cacos) ^ /Users/sabre/llvm/Debug/Headers/tgmath-sofar.h:49:1: note: candidate function __TG_RC_1(x, acos, cacos) ^ /Users/sabre/llvm/Debug/Headers/tgmath-sofar.h:49:1: note: candidate function __TG_RC_1(x, acos, cacos) ^ /Users/sabre/llvm/Debug/Headers/tgmath-sofar.h:49:1: note: candidate function __TG_RC_1(x, acos, cacos) ^ /Users/sabre/llvm/Debug/Headers/tgmath-sofar.h:49:1: note: candidate function __TG_RC_1(x, acos, cacos) ^ /Users/sabre/llvm/Debug/Headers/tgmath-sofar.h:49:1: note: candidate function __TG_RC_1(x, acos, cacos) ^ A possible fix is to just not use macros for this, which I'll probably go for, but it would be nice to emit the type at the call, so we know what we asked for! llvm-svn: 64720
-
Chris Lattner authored
llvm-svn: 64719
-
Chris Lattner authored
instance in Sema be a pimpl. llvm-svn: 64718
-
Douglas Gregor authored
CXXRecordDecl that is used to represent class template specializations. These are canonical declarations that can refer to either an actual class template specialization in the code, e.g., template<> class vector<bool> { }; or to a template instantiation. However, neither of these features is actually implemented yet, so really we're just using (and uniqing) the declarations to make sure that, e.g., A<int> is a different type from A<float>. Note that we carefully distinguish between what the user wrote in the source code (e.g., "A<FLOAT>") and the semantic entity it represents (e.g., "A<float, int>"); the former is in the sugared Type, the latter is an actual Decl. llvm-svn: 64716
-
Bill Wendling authored
U include/llvm/CodeGen/DebugLoc.h U lib/CodeGen/SelectionDAG/LegalizeDAG.cpp U lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp U lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp Enable debug location generation at -Os. This goes with the reapplication of the r63639 patch. llvm-svn: 64715
-
Chris Lattner authored
llvm-svn: 64712
-
Chris Lattner authored
llvm-svn: 64711
-
Chris Lattner authored
makes -emit-html do nice things for code like: #define FOO(X) y int FOO(4 ); highlighting the FOO instance as well as the ) on the next line properly. llvm-svn: 64710
-
Daniel Dunbar authored
llvm-svn: 64709
-
Chris Lattner authored
llvm-svn: 64708
-
Chris Lattner authored
llvm-svn: 64707
-
Chris Lattner authored
llvm-svn: 64706
-
Devang Patel authored
Testcase for rev. 64704 llvm-svn: 64705
-
Evan Cheng authored
llvm-svn: 64703
-
Dan Gohman authored
llvm-svn: 64702
-
Daniel Dunbar authored
llvm-svn: 64701
-
Daniel Dunbar authored
llvm-svn: 64700
-
Dan Gohman authored
llvm-svn: 64694
-
Dan Gohman authored
of an alloca or global variable. llvm-svn: 64693
-
- Feb 16, 2009
-
-
Anders Carlsson authored
llvm-svn: 64692
-
Daniel Dunbar authored
- No functionality change. llvm-svn: 64691
-
Fariborz Jahanian authored
nonfragile abi. llvm-svn: 64690
-
Daniel Dunbar authored
- Define pow[lf]?, sqrt[lf]? as builtins. - Add -fmath-errno option which binds to LangOptions.MathErrno - Add new builtin flag Builtin::Context::isConstWithoutErrno for functions which can be marked as const if errno isn't respected for math functions. Sema automatically marks these functions as const when they are defined, if MathErrno=0. - IRgen uses const attribute on sqrt and pow library functions to decide if it can use the llvm intrinsic. llvm-svn: 64689
-
Daniel Dunbar authored
Doug: please verify that it is expected that LastIdx can be less that NumInits. And perhaps add a comment so that Chris doesn't break your code. :) llvm-svn: 64688
-
Ted Kremenek authored
llvm-svn: 64687
-
Douglas Gregor authored
extensions). This caught a couple bugs in our test suite :) llvm-svn: 64686
-
Chris Lattner authored
llvm-svn: 64684
-
Chris Lattner authored
emit two volatile loads for: typedef __attribute__(( ext_vector_type(4) )) float float4; float test(volatile float4 *P) { return P->x+P->y; } llvm-svn: 64683
-
Ted Kremenek authored
llvm-svn: 64682
-