aboutsummaryrefslogtreecommitdiff
path: root/tools/ccc/ccclib/Tools.py
AgeCommit message (Collapse)Author
2009-05-02ccc is dead.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70649 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-25Turn on '-analyzer-eagerly-assume' by default in ccc for the static analyzer.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67663 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-24Rename clang to clang-cc.Daniel Dunbar
Tests and drivers updated, still need to shuffle dirs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67602 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-20ccc: Use -include-pth.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67410 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-18ccc: Pass --relocation-model as separate arguments (to match Driver).Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67190 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-12ccc: Fix broken assertion.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66793 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-12ccc: Cleanup arguments a bit; we don't need a separate group forDaniel Dunbar
-fblocks, and there were some duplicate options scattered in. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66764 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-11ccc: -x assembler-with-cpp was broken for darwin, and it wasn't usingDaniel Dunbar
clang as the preprocessor even when it should. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66737 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-10Forward -ftemplate-depth-<N> to clang's -ftemplate-depth N.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66516 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-09ccc: Parse -T{bss,data,text}, -iwithsysroot, -specs correctly.Daniel Dunbar
Also, fix some test cases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66425 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-04ccc: Fix passing of -nozero-initialized-in-bss.Daniel Dunbar
- PR3722. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66052 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25Do not automatically run the 'missing -dealloc' check until we have adequate ↵Ted Kremenek
time to make it much smarter (too much noise). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65474 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-20Unbreak Darwin PIC handling; my refactoring yesterday was bogus.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65154 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-20ccc: Spell mattr correctly.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65119 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-20ccc: Basic translation of gcc subtarget feature options to LLVMDaniel Dunbar
options (i.e., -mno-red-zone, -msoft-float, -mno-sse, etc.) - Also, make sure unwind tables default to on Darwin/x86_64. - PR3604. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65118 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-20ccc: Use toolchain hook for default relocation model value.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65116 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-20ccc: Use toolChain arch name instead of looking for arch command lineDaniel Dunbar
argument; the toolchain should always know the arch. - Fixes: <rdar://problem/6582911> -ccc-clang-archs doesn't work for excluding ppc git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65104 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-20ccc: Give all tools access to the toolchain they are in.Daniel Dunbar
- No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65100 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-19ccc: Also look for .gch files when seeing if we should auto load aDaniel Dunbar
token-cache for clang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65069 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-17ccc: Pass -{MM,MMD,MF,MP,MT} to clang. Error on -{M,MM,MG,MQ} whichDaniel Dunbar
clang doesn't support yet. - See PR3603. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64783 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-17ccc: Assume gcc will accept piped assembler input when using generic GCC ↵Daniel Dunbar
toolchain. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64775 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-17ccc: Fix a FIXME.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64774 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-17Static Analyzer driver/options (partial) cleanup:Ted Kremenek
- 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64737 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-17ccc: Pass -f[no-]math-errno to clang.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64709 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-15ccc: Pass -P to clang.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64578 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-13ccc: Stop patching output file name when using transparent PTH support.Daniel Dunbar
<rdar://problem/6515236> [ccc] generate expected output files when used with PCH git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64419 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-13Always pass -disable-free to clang when compiling.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64416 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-06ccc: Forward -dM to clang.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63955 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-05ccc: Translate -O to -O1 for clang, and only pass last -O option.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63816 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-04ccc: Forward -femit-all-decls to clang and use an option group toDaniel Dunbar
simplify handling of -f options clang recognizes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63778 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-30Add -fno-blocks support. This fixes block-no-block-def.c.Mike Stump
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63385 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-30ccc: Forward -fobjc-nonfragile-abi to clang.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63378 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-30ccc: Add -Xclang option, rename -WA, to -Xanalyzer.Daniel Dunbar
- -Xclang always forwards to clang - -Xanalyzer replaces -WA,; it seems like the cleaner mechanism and is more readable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63349 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-29ccc: Embrace destiny as a clang compiler driver.Daniel Dunbar
This redoes the default mode that ccc runs in w.r.t. using clang. Now ccc defaults to always using clang for any task clang can handle. However, the following options exist to tweak this behavior: -ccc-no-clang: Don't use clang at all for compilation (still used for static analysis). -ccc-no-clang-cxx: Don't use clang for C++ and Objective-C++ inputs. -ccc-no-clang-cpp: Don't use clang as a preprocessor. -ccc-clang-archs <archs>: If present, only use clang for the given comma separated list of architectures. This only works on Darwin for now. Note that all -ccc options must be first on the command line. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63346 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-29ccc: Honor -ccc-clang for generic GCC toolchain.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63277 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-27ccc/Darwin/clang: Fix a mistranslation for the llvm-backend; llvm-gccDaniel Dunbar
doesn't set the relocation model when -mdynamic-no-pic is present. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63129 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-26ccc: Recognize -emit-llvm [-S].Daniel Dunbar
- Unlike llvm-gcc, this doesn't yet treat -emit-llvm output as a linker input. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63014 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-23ccc: Finish definition of long argument translations.Daniel Dunbar
- However, these last ones do not actually work; the issue is that they translate to batches of options and need to be reparsed. For now we just give an unsupported error on them. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62872 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-23ccc: Support long ('--...') flag arguments.Daniel Dunbar
- Curiously, a number of the current translations gcc does appear to be useless? git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62831 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-23ccc: Darwin/x86/link: Fix a few incompatibilities with gcc (missedDaniel Dunbar
forwarding -s to linker, and was only taking last arg in some cases when should have been taking all). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62824 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-23ccc: Fix typo; isn't dynamic typing fun!Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62817 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-22ccc/clang: Mimic llvm-gcc initialization of LLVM backend based on gccDaniel Dunbar
options (for example, to set relocation model or enable unwind table generation). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62740 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-21ccc: Add appropriate file search prefixes when on x86_64 Darwin, andDaniel Dunbar
look for crt3.o appropriately. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62694 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-21ccc: Implement file & path searching.Daniel Dunbar
- Toolchain is responsible for providing list of prefixes to search. - Implement -print-file-name=xxx and -print-prog-name=xxx driver options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62659 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-21ccc: Add --analyze driver mode (for running static analyzer).Daniel Dunbar
- For now forces generation of plist files, need to think about the right interface. - Changed -fsyntax-only mode to be its own phase (more consistent). - Add -WA, for passing options verbatim to analyzer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62649 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-20ccc: Allow downstream tools to be aware of final output name.Daniel Dunbar
- This is a hack to allow the Darwin linker to get -final_output when doing universal builds; the mechanism should be generalized. - Handle multiple redundant -arch arguments correctly. - Forward -arch_multiple and -final_output to gcc when necessary. - Simplified implementation of derived gcc tools. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62618 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-20ccc: Darwin/x86: Teach compile tool how to build .pch files. xcc isDaniel Dunbar
now fully independent of the gcc driver when targetting Darwin/x86. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62570 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-20ccc: Recognize that -M and -MM only run preprocessor.Daniel Dunbar
- Clean up some placement of output args to match gcc more precisely (for testing). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62566 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-20ccc: Darwin/x86: Add direct cpp support.Daniel Dunbar
- Add Darwin_X86_CC1Tool which is shared by Darwin/x86/Compile and Darwin/x86/Preprocess tools. - Minor bug fixes (CmpDriver exit code, -x cpp-output handling, some linker argument translation). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62551 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-18Fix a tyopAnders Carlsson
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62453 91177308-0d34-0410-b5e6-96231b3b80d8