aboutsummaryrefslogtreecommitdiff
path: root/tools/ccc
AgeCommit message (Collapse)Author
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-14Add -ffreestanding to suppress the implicit declaration of library builtins ↵Douglas Gregor
like printf and malloc. Fixes PR3586 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64566 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-13ccc: Suffix for PCH files is appended, not replaced. (Test case)Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64467 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-13ccc: Suffix for PCH files is appended, not replaced.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64466 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-13ccc: Test case for transparent PTH support.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64420 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-11One more tweak to account for gluing together llvm and clang into one.Mike Stump
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64276 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-11More version experimentation.Mike Stump
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64271 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-11Run a little experiment with version numbers.Mike Stump
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64268 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-09ccc: -dM wasn't being passed to Darwin/CC1 correctly.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64169 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-06ccc/Darwin: Add a missing Darwin argument translation, -shared becomesDaniel Dunbar
-dynamiclib. Re-audited translations to make sure I didn't miss something else. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63953 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-06ccc: Give explicit error on @ style argument lists (not yet supported).Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63903 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-05ccc: Implement special language recognition handling for -.Daniel Dunbar
- <rdar://problem/6551577> [ccc] require -x with - git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63901 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-02-04ccc: -ObjC and -ObjC++ change default language, but only for "sourceDaniel Dunbar
files". git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63727 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-03Use /usr/bin/env to run Python for increased portability. Patch byDaniel Dunbar
David Chisnall. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63661 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-30ccc: Mark -combine option as unsupported.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63348 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-28Fix test case (for -### printing version)Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63223 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-28ccc: Support -v; invent a version number for ccc for now, will beDaniel Dunbar
shared with clang eventually. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63220 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-27ccc: Normalize machine name to i386 for platforms which report theDaniel Dunbar
machine as x86_64. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63122 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-26ccc: -o should not be automatically forwarded to generic gcc tools.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63015 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: Another batch of long argument translations.Daniel Dunbar
- Again turned up a few which don't do anything sensible. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62870 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-23ccc: Implement long options which take joined & separate forms.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62841 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: Organize long options together.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62829 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-23ccc: Add support for several more aliases (--ansi, --assemble,Daniel Dunbar
--assert, --classpath). - Requires providing some option parameters to over-ride rendering in order to match gcc. There may be a cleaner way to do this (probably by introducing a new option type for long JoinedOrSeparate forms). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62825 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: Add support for "alias" options.Daniel Dunbar
- Unlike groups (which gather distinct but related options), aliases are for options like '--all-warnings' which are effectively treated like some other option ('-Wall') both in the driver logic and when passing to tools. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62820 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: Bug fix, driver logic was allowing child jobs to pipe output whenDaniel Dunbar
parent wasn't expecting it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62811 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: Handle a few long argument form (--) translations using optionDaniel Dunbar
groups, and fix misdeclaration of some -W options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62702 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 test case.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62654 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-21ccc: Unbreak -pipe handling broken in previous refactoring.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62637 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-20Fix ccclib building when building in a separate build tree.Mike Stump
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62621 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