- Dec 03, 2007
-
-
Fariborz Jahanian authored
llvm-svn: 44553
-
Ted Kremenek authored
http://llvm.org/viewvc/llvm-project?view=rev&revision=44551 Removed debugging fprintfs for printing targets. Implemented error messages when processing invalid targets. llvm-svn: 44552
-
Ted Kremenek authored
replaces the functionality previously provided by just "-arch" (which is still supported but has different semantics). The new behavior is as follows: (1) If the user does not specify -triple: (a) If no -arch options are specified, the target triple used is the host triple (in llvm/Config/config.h). (b) If one or more -arch's are specified (and no -triple), then there is one triple for each -arch, where the specified arch is substituted for the arch in the host triple. Example: host triple = i686-apple-darwin9 command: clang -arch ppc -arch ppc64 ... triples used: ppc-apple-darwin9 ppc64-apple-darwin9 (2) The user does specify a -triple (only one allowed): (a) If no -arch options are specified, the triple specified by -triple is used. E.g clang -triple i686-apple-darwin9 (b) If one or more -arch options are specified, then the triple specified by -triple is used as the primary target, and the arch's specified by -arch are used to create secondary targets. For example: clang -triple i686-apple-darwin9 -arch ppc -arch ppc64 has the following targets: i686-apple-darwin9 (primary target) ppc-apple-darwin9 ppc64-apple-darwin9 Other changes related to the changes to the driver: - TargetInfoImpl now includes the triple string. - TargetInfo::getTargetTriple returns the triple for its primary target. - test case test/Parser/portability.c has been updated because "-arch linux" is no longer valid ("linux" is an OS, not an arch); instead we use a bogus architecture "bogusW16W16" where WCharWidth=16 and WCharAlign=16. llvm-svn: 44551
-
Chris Lattner authored
llvm-svn: 44550
-
Fariborz Jahanian authored
llvm-svn: 44548
-
Fariborz Jahanian authored
(Also fixed a regression caused by recent changes to synthesis of structs). llvm-svn: 44540
-
Ted Kremenek authored
provide handy accessors to the subexpressions of ConditionalOperator that automatically take into account the GCC extension where the "LHS" expression is omitted: e.g x ?: y;. When the LHS expression is available, getTrueExpr() is the same as getLHS(); when LHS is NULL, getTrueExpr() returns the condition expression. llvm-svn: 44536
-
Bill Wendling authored
standard says that we should adjust the "reference to T" type to "T" before analysis. llvm-svn: 44530
-
Seo Sanghyeon authored
llvm-svn: 44529
-
Anders Carlsson authored
Handle initializing vector elements correctly. Emit just one warning if there are excess initializers, instead of one per initializer. llvm-svn: 44525
-
Chris Lattner authored
llvm-svn: 44523
-
- Dec 02, 2007
-
-
Anders Carlsson authored
llvm-svn: 44521
-
Chris Lattner authored
llvm-svn: 44520
-
Seo Sanghyeon authored
in the header. Patch by Cédric Venet. llvm-svn: 44519
-
Christopher Lamb authored
Treat discarding array initializer elements as an extwarn (so -pedantic-errors flags it). Allow CodeGen to truncate the initializer if needed. llvm-svn: 44518
-
Chris Lattner authored
llvm-svn: 44516
-
Chris Lattner authored
extern storage class was returning false from hasStaticStorage. Ted, please review this. llvm-svn: 44515
-
Christopher Lamb authored
llvm-svn: 44514
-
Chris Lattner authored
llvm-svn: 44513
-
Chris Lattner authored
llvm-svn: 44512
-
Chris Lattner authored
llvm-svn: 44511
-
Chris Lattner authored
llvm-svn: 44510
-
Chris Lattner authored
extern int x[]; void foo() { x[0] = 1; } int x[10]; void bar() { x[0] = 1; } llvm-svn: 44509
-
Chris Lattner authored
llvm-svn: 44508
-
Chris Lattner authored
llvm-svn: 44507
-
Chris Lattner authored
their prototype. llvm-svn: 44506
-
Chris Lattner authored
llvm-svn: 44505
-
Chris Lattner authored
llvm-svn: 44504
-
Chris Lattner authored
llvm-svn: 44503
-
Chris Lattner authored
llvm-svn: 44502
-
Chris Lattner authored
t.c:3322:5: warning: cannot codegen this yet __asm__ ("bswap %0" : "+r" (_data)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ instead of: Unimplemented stmt! (AsmStmt 0x80eaa0 <t.c:3331:5, line:3334:28>) llvm-svn: 44501
-
Chris Lattner authored
llvm-svn: 44500
-
Chris Lattner authored
llvm-svn: 44499
-
Chris Lattner authored
rewriter emit this error if it fails to rewrite an @encode: t.m:17:9: error: rewriter could not replace sub-expression due to macros c = ENC(char *)[2] + 4; ^~~~~~~~~~~ ... where ENC is: #define ENC @encode llvm-svn: 44498
-
Oliver Hunt authored
among other things. Also change a codegen warning to dump to stderr so it doesn't mess with -emit-llvm output llvm-svn: 44497
-
Chris Lattner authored
llvm-svn: 44496
-
Oliver Hunt authored
We now use the CodeGenModule logic for generating the constant initialiser expression, so happily further initialiser fixes should automatically work for statics as well. llvm-svn: 44495
-
- Dec 01, 2007
-
-
Fariborz Jahanian authored
llvm-svn: 44492
-
Chris Lattner authored
llvm-svn: 44491
-
Christopher Lamb authored
llvm-svn: 44490
-