summaryrefslogtreecommitdiffstats
path: root/clang/tools/ccc/ccclib/Arguments.py
Commit message (Collapse)AuthorAgeFilesLines
* ccc is dead.Daniel Dunbar2009-05-021-1194/+0
| | | | llvm-svn: 70649
* ccc/Driver: -r option doesn't take an argument.Daniel Dunbar2009-03-241-1/+1
| | | | llvm-svn: 67581
* ccc: Forward -f[no-]builtin to clang.Daniel Dunbar2009-03-231-0/+2
| | | | llvm-svn: 67517
* ccc/Driver: Forward -fheinous-gnu-extensions to clang.Daniel Dunbar2009-03-131-0/+1
| | | | llvm-svn: 66915
* ccc/Driver: Forward -fprint-source-range-info to clang.Daniel Dunbar2009-03-131-0/+1
| | | | llvm-svn: 66879
* ccc/Driver: Mark {dump{machine,specs,version},Daniel Dunbar2009-03-131-7/+7
| | | | | | | print-{multi-{directory,lib,os-directory}, search-dirs} as unsupported instead of handling separately. llvm-svn: 66848
* ccc: Tweak some group names.Daniel Dunbar2009-03-121-2/+2
| | | | llvm-svn: 66772
* ccc: Cleanup arguments a bit; we don't need a separate group forDaniel Dunbar2009-03-121-9/+2
| | | | | | -fblocks, and there were some duplicate options scattered in. llvm-svn: 66764
* Forward -ftemplate-depth-<N> to clang's -ftemplate-depth N.Daniel Dunbar2009-03-101-0/+1
| | | | llvm-svn: 66516
* ccc: Parse -T{bss,data,text}, -iwithsysroot, -specs correctly.Daniel Dunbar2009-03-091-3/+12
| | | | | | Also, fix some test cases. llvm-svn: 66425
* ccc: Fix passing of -nozero-initialized-in-bss.Daniel Dunbar2009-03-041-0/+1
| | | | | | - PR3722. llvm-svn: 66052
* ccc: Basic translation of gcc subtarget feature options to LLVMDaniel Dunbar2009-02-201-0/+26
| | | | | | | | options (i.e., -mno-red-zone, -msoft-float, -mno-sse, etc.) - Also, make sure unwind tables default to on Darwin/x86_64. - PR3604. llvm-svn: 65118
* ccc: Forward -ftime-report to clang.Daniel Dunbar2009-02-181-1/+1
| | | | llvm-svn: 64887
* ccc: Recognize -isystem.Daniel Dunbar2009-02-171-0/+1
| | | | llvm-svn: 64776
* ccc: Pass -f[no-]math-errno to clang.Daniel Dunbar2009-02-171-4/+27
| | | | llvm-svn: 64709
* ccc: @<filename> arguments are only treated specially if <filename>Daniel Dunbar2009-02-161-2/+8
| | | | | | | exists, otherwise gcc just treats as an input. - PR3591 llvm-svn: 64640
* Add -ffreestanding to suppress the implicit declaration of library builtins ↵Douglas Gregor2009-02-141-0/+1
| | | | | | like printf and malloc. Fixes PR3586 llvm-svn: 64566
* ccc: -dM wasn't being passed to Darwin/CC1 correctly.Daniel Dunbar2009-02-091-6/+0
| | | | llvm-svn: 64169
* ccc: Forward -dM to clang.Daniel Dunbar2009-02-061-0/+1
| | | | llvm-svn: 63955
* ccc: Give explicit error on @ style argument lists (not yet supported).Daniel Dunbar2009-02-061-1/+3
| | | | llvm-svn: 63903
* ccc: Forward -femit-all-decls to clang and use an option group toDaniel Dunbar2009-02-041-13/+14
| | | | | | simplify handling of -f options clang recognizes. llvm-svn: 63778
* Add -fno-blocks support. This fixes block-no-block-def.c.Mike Stump2009-01-301-0/+5
| | | | llvm-svn: 63385
* ccc: Forward -fobjc-nonfragile-abi to clang.Daniel Dunbar2009-01-301-0/+1
| | | | llvm-svn: 63378
* ccc: Add -Xclang option, rename -WA, to -Xanalyzer.Daniel Dunbar2009-01-301-1/+2
| | | | | | | | | - -Xclang always forwards to clang - -Xanalyzer replaces -WA,; it seems like the cleaner mechanism and is more readable. llvm-svn: 63349
* ccc: Mark -combine option as unsupported.Daniel Dunbar2009-01-301-1/+1
| | | | llvm-svn: 63348
* ccc: Support -v; invent a version number for ccc for now, will beDaniel Dunbar2009-01-281-3/+3
| | | | | | shared with clang eventually. llvm-svn: 63220
* ccc: -o should not be automatically forwarded to generic gcc tools.Daniel Dunbar2009-01-261-1/+1
| | | | llvm-svn: 63015
* ccc: Recognize -emit-llvm [-S].Daniel Dunbar2009-01-261-1/+1
| | | | | | | - Unlike llvm-gcc, this doesn't yet treat -emit-llvm output as a linker input. llvm-svn: 63014
* ccc: Finish definition of long argument translations.Daniel Dunbar2009-01-231-7/+41
| | | | | | | | - 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. llvm-svn: 62872
* ccc: Another batch of long argument translations.Daniel Dunbar2009-01-231-5/+69
| | | | | | - Again turned up a few which don't do anything sensible. llvm-svn: 62870
* ccc: Implement long options which take joined & separate forms.Daniel Dunbar2009-01-231-8/+55
| | | | llvm-svn: 62841
* ccc: Support long ('--...') flag arguments.Daniel Dunbar2009-01-231-7/+54
| | | | | | | - Curiously, a number of the current translations gcc does appear to be useless? llvm-svn: 62831
* ccc: Organize long options together.Daniel Dunbar2009-01-231-40/+30
| | | | llvm-svn: 62829
* ccc: Add support for several more aliases (--ansi, --assemble,Daniel Dunbar2009-01-231-2/+28
| | | | | | | | | --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). llvm-svn: 62825
* ccc: Add support for "alias" options.Daniel Dunbar2009-01-231-11/+36
| | | | | | | | | - 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. llvm-svn: 62820
* ccc/clang: Mimic llvm-gcc initialization of LLVM backend based on gccDaniel Dunbar2009-01-221-1/+13
| | | | | | options (for example, to set relocation model or enable unwind table generation). llvm-svn: 62740
* ccc: Handle a few long argument form (--) translations using optionDaniel Dunbar2009-01-211-20/+25
| | | | | | groups, and fix misdeclaration of some -W options. llvm-svn: 62702
* ccc: Implement file & path searching.Daniel Dunbar2009-01-211-1/+1
| | | | | | | | - Toolchain is responsible for providing list of prefixes to search. - Implement -print-file-name=xxx and -print-prog-name=xxx driver options. llvm-svn: 62659
* ccc: Add --analyze driver mode (for running static analyzer).Daniel Dunbar2009-01-211-0/+5
| | | | | | | | | | | - 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. llvm-svn: 62649
* ccc: Recognize that -M and -MM only run preprocessor.Daniel Dunbar2009-01-201-9/+10
| | | | | | | - Clean up some placement of output args to match gcc more precisely (for testing). llvm-svn: 62566
* ccc: Darwin/x86: Add direct cpp support.Daniel Dunbar2009-01-201-5/+7
| | | | | | | | | | - 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). llvm-svn: 62551
* ccc: Don't be pedantically compatible with -Z options, these are theDaniel Dunbar2009-01-171-50/+40
| | | | | | result of an internal implementation detail of gcc. llvm-svn: 62389
* ccc: Clean up (user level) error handling.Daniel Dunbar2009-01-161-0/+13
| | | | | | | | - ccc now checks for existence of input files (more annoying to test, but matches gcc). - Fix some test cases. llvm-svn: 62378
* ccc: Darwin/X86: gcc compatibility, only addDaniel Dunbar2009-01-161-1/+3
| | | | | | '-feliminate-unused-debug-symbols' in reponse to '-g' (not '-g*'). llvm-svn: 62357
* ccc: Darwin/X86: Implement remainder of (non -Z...) generic argumentDaniel Dunbar2009-01-161-0/+6
| | | | | | | | | | 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'. ;) llvm-svn: 62353
* ccc: Implement support clang PTH using gcc PCH style interface.Daniel Dunbar2009-01-141-1/+1
| | | | | | | | | | | | | | | | | | | 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. llvm-svn: 62246
* ccc: Finish main clang compiler argument translation.Daniel Dunbar2009-01-141-15/+39
| | | | | | | | | - Still missing some odds and ends like -M. - Also, we still need to do some translation and forwarding of codegen options. llvm-svn: 62241
* ccc: Implement argument translation for clang.Daniel Dunbar2009-01-141-0/+4
| | | | | | | | - This is what ccc (old) currently handles. - Clang accepts some more things that aren't getting forwarded... llvm-svn: 62210
* ccc: Darwin: Implement some important general argument translationsDaniel Dunbar2009-01-131-1/+18
| | | | | | | | for the Darwin tool chain. - Ideally we would localize these to tool specific argument processing but for now this matches gcc closely. llvm-svn: 62181
* ccc: Allow internal tool chain specific argument translation.Daniel Dunbar2009-01-131-4/+24
| | | | | | | | | | - Pulled -Xarch processing into this. - Get rid of manual creation of forwarding arg array. - Use Darwin/CC1 instead of generic GCC cc1 on X86. llvm-svn: 62172
OpenPOWER on IntegriCloud