aboutsummaryrefslogtreecommitdiff
path: root/tools/ccc/ccclib/Arguments.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-24ccc/Driver: -r option doesn't take an argument.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67581 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-23ccc: Forward -f[no-]builtin to clang.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67517 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-13ccc/Driver: Forward -fheinous-gnu-extensions to clang.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66915 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-13ccc/Driver: Forward -fprint-source-range-info to clang.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66879 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-13ccc/Driver: Mark {dump{machine,specs,version},Daniel Dunbar
print-{multi-{directory,lib,os-directory}, search-dirs} as unsupported instead of handling separately. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66848 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-12ccc: Tweak some group names.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66772 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-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-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-18ccc: Forward -ftime-report to clang.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64887 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-17ccc: Recognize -isystem.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64776 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-16ccc: @<filename> arguments are only treated specially if <filename>Daniel Dunbar
exists, otherwise gcc just treats as an input. - PR3591 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64640 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-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: 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-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-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-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-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: 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-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: 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: 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-17ccc: Don't be pedantically compatible with -Z options, these are theDaniel Dunbar
result of an internal implementation detail of gcc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62389 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-16ccc: Clean up (user level) error handling.Daniel Dunbar
- ccc now checks for existence of input files (more annoying to test, but matches gcc). - Fix some test cases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62378 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-16ccc: Darwin/X86: gcc compatibility, only addDaniel Dunbar
'-feliminate-unused-debug-symbols' in reponse to '-g' (not '-g*'). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62357 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-16ccc: Darwin/X86: Implement remainder of (non -Z...) generic argumentDaniel Dunbar
translation. - As is my general strategy, this is initially pedantically compatible with gcc and can be cleaned up later. So, for example, we still pass -static to collect2 4 times if you say '-mkernel -fapple-kext'. ;) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62353 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-14ccc: Implement support clang PTH using gcc PCH style interface.Daniel Dunbar
This requires some hackery, as gcc's PCH mechanism changes behavior, whereas while PTH is simply a cache. Notably: - Automatically cause clang to load a .pth file if we find one that matches a command line -include argument (similar to how gcc looks for .gch files). - When generating precompiled headers, translate the suffix from .gch to .pth (so we do not conflict with actual gcc PCH files). - When generating precompiled headers, copy the input header to the same location as the output PTH file. This is necessary because gcc supports -include xxx.h even if xxx.h doesn't exist, but for clang we need to actually have the contents of this file available. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62246 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-14ccc: Finish main clang compiler argument translation.Daniel Dunbar
- Still missing some odds and ends like -M. - Also, we still need to do some translation and forwarding of codegen options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62241 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-14ccc: Implement argument translation for clang.Daniel Dunbar
- This is what ccc (old) currently handles. - Clang accepts some more things that aren't getting forwarded... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62210 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-13ccc: Darwin: Implement some important general argument translationsDaniel Dunbar
for the Darwin tool chain. - Ideally we would localize these to tool specific argument processing but for now this matches gcc closely. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62181 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-13ccc: Allow internal tool chain specific argument translation.Daniel Dunbar
- Pulled -Xarch processing into this. - Get rid of manual creation of forwarding arg array. - Use Darwin/CC1 instead of generic GCC cc1 on X86. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62172 91177308-0d34-0410-b5e6-96231b3b80d8