c9388c11f1 
								
							 
						 
						
							
							
								
								Driver/Darwin/ARM: Kernel/kext code has more strict alignment requirements.  
							
							... 
							
							
							
							llvm-svn: 127815 
							
						 
						
							2011-03-17 17:10:06 +00:00  
				
					
						
							
							
								 
						
							
								24f1d3e60a 
								
							 
						 
						
							
							
								
								Add NetBSD target support. Patch by Joerg Sonnenberger.  
							
							... 
							
							
							
							llvm-svn: 124736 
							
						 
						
							2011-02-02 18:59:27 +00:00  
				
					
						
							
							
								 
						
							
								e7f211c89f 
								
							 
						 
						
							
							
								
								Add support for soft/hard float options to the Sparc target  
							
							... 
							
							
							
							llvm-svn: 118514 
							
						 
						
							2010-11-09 17:21:19 +00:00  
				
					
						
							
							
								 
						
							
								c8f008f649 
								
							 
						 
						
							
							
								
								Use ld directly on linux. Changes from the previous try:  
							
							... 
							
							
							
							*) Try to detect as much as possible from the system itself, not the distro.
   This should make it easier to port to a new distro and more likely to
   work on a unknown one.
*) The distro enum now doesn't include the arch. Just use the existing
   host detection support in LLVM.
*) Correctly handle --sysroot.
A small regression is that now clang will pass bitcode file to the linker.
This is necessary for the gold plugin support to work.
It might be better to detect this at configure/cmake time, but doing it in
c++ first is a lot easier.
llvm-svn: 118382 
							
						 
						
							2010-11-07 20:14:31 +00:00  
				
					
						
							
							
								 
						
							
								b2cbd85be8 
								
							 
						 
						
							
							
								
								Revert while I debug test failures :-(  
							
							... 
							
							
							
							llvm-svn: 118150 
							
						 
						
							2010-11-03 04:43:56 +00:00  
				
					
						
							
							
								 
						
							
								c5dfb607f5 
								
							 
						 
						
							
							
								
								Switch clang to run ld directly on linux. I tested this on all the linux  
							
							... 
							
							
							
							distros listed by running
gcc main.o -o main
g++ main.o -o main
gcc main.o -o main -static
g++ main.o -o main -static
gcc f.o -o f.so -shared
g++ f.o -o f.so -shared
and comparing the ld line with the one created by clang. I also added
-m32/m64 in distros that support it.
While I tested many distros, there will always be more. If you are hit by this
it should be somewhat easy to add your distro. If you are in a hurry, do
revert this, but please inform how to detect you distro and the ld command
lines produced by the above gcc invocations. Most distros have some patches
on gcc :-(
llvm-svn: 118149 
							
						 
						
							2010-11-03 04:37:51 +00:00  
				
					
						
							
							
								 
						
							
								ccbc45262b 
								
							 
						 
						
							
							
								
								Driver/Darwin: Make the compilation object available in AddLinkArgs.  
							
							... 
							
							
							
							llvm-svn: 113549 
							
						 
						
							2010-09-09 21:51:05 +00:00  
				
					
						
							
							
								 
						
							
								b186bc3c4b 
								
							 
						 
						
							
							
								
								Visual Studio tools used on win32 hosts when targeting win32.  
							
							... 
							
							
							
							llvm-svn: 111748 
							
						 
						
							2010-08-21 21:55:07 +00:00  
				
					
						
							
							
								 
						
							
								92b0093112 
								
							 
						 
						
							
							
								
								Run the assembler instead of gcc on Linux.  
							
							... 
							
							
							
							llvm-svn: 110635 
							
						 
						
							2010-08-10 00:25:48 +00:00  
				
					
						
							
							
								 
						
							
								7fbaf53470 
								
							 
						 
						
							
							
								
								Driver: Add Compilation::addCommand and switch tools to using it, now that we  
							
							... 
							
							
							
							don't have to deal with nested jobs.
llvm-svn: 110015 
							
						 
						
							2010-08-02 02:38:28 +00:00  
				
					
						
							
							
								 
						
							
								bffefc015e 
								
							 
						 
						
							
							
								
								Driver: Eliminate now unnecessary tool hooks for whether they accept piped input/output.  
							
							... 
							
							
							
							llvm-svn: 110012 
							
						 
						
							2010-08-02 02:38:18 +00:00  
				
					
						
							
							
								 
						
							
								3e2ee147d0 
								
							 
						 
						
							
							
								
								add driver support for minix, patch by Kees van Reeuwijk  
							
							... 
							
							
							
							from PR7583
llvm-svn: 107788 
							
						 
						
							2010-07-07 16:01:42 +00:00  
				
					
						
							
							
								 
						
							
								8829962030 
								
							 
						 
						
							
							
								
								Driver: Add an explicit dsymutil action.  
							
							... 
							
							
							
							llvm-svn: 105474 
							
						 
						
							2010-06-04 18:28:36 +00:00  
				
					
						
							
							
								 
						
							
								1cb532ca28 
								
							 
						 
						
							
							
								
								Driver: Add Tool::ShortName, intended to be a human readable name for the tool.  
							
							... 
							
							
							
							llvm-svn: 104416 
							
						 
						
							2010-05-22 00:37:18 +00:00  
				
					
						
							
							
								 
						
							
								4f5e79c67d 
								
							 
						 
						
							
							
								
								Driver: Add a tool definition for the Clang integrated assembler.  
							
							... 
							
							
							
							llvm-svn: 104280 
							
						 
						
							2010-05-20 21:30:13 +00:00  
				
					
						
							
							
								 
						
							
								af260b9945 
								
							 
						 
						
							
							
								
								VISIBILITY_HIDDEN was renamed LLVM_LIBRARY_VISIBILITY.  
							
							... 
							
							
							
							llvm-svn: 103494 
							
						 
						
							2010-05-11 20:16:05 +00:00  
				
					
						
							
							
								 
						
							
								3d45e17d15 
								
							 
						 
						
							
							
								
								Driver: Add a Tool::hasGoodDiagnostics hook, and use it to simplify logic for  
							
							... 
							
							
							
							deciding when we need to emit an extra "command failed" diagnostic.
 - This also fixes the case where we were emitting that extra diagnostics, even
   when using clang w/ the integrated assembler, which has good diagnostics.
llvm-svn: 100529 
							
						 
						
							2010-04-06 17:07:49 +00:00  
				
					
						
							
							
								 
						
							
								0b26a616eb 
								
							 
						 
						
							
							
								
								Add in some more MIPS command line options.  
							
							... 
							
							
							
							Patch by Oleksandr Tymoshenko!
llvm-svn: 97544 
							
						 
						
							2010-03-02 02:41:08 +00:00  
				
					
						
							
							
								 
						
							
								c434394d18 
								
							 
						 
						
							
							
								
								Driver: Add -[no-]integrated-as for clang.  
							
							... 
							
							
							
							- Requires backend support, which only exists for i386--darwin currently.
No 'as' required:
--
ddunbar@ozzy:tmp$ cat t.c
int main() { return 42; }
ddunbar@ozzy:tmp$ clang -m32 -integrated-as t.c
ddunbar@ozzy:tmp$ ./a.out; echo $?
42
ddunbar@ozzy:tmp$
--
The random extra whitespace is how you know its working! :)
llvm-svn: 95194 
							
						 
						
							2010-02-03 03:07:56 +00:00  
				
					
						
							
							
								 
						
							
								4e29505a95 
								
							 
						 
						
							
							
								
								Driver: Fix fallback to gcc to -c instead of -S if trying to generate an LLVM bc  
							
							... 
							
							
							
							file.
llvm-svn: 94463 
							
						 
						
							2010-01-25 22:35:08 +00:00  
				
					
						
							
							
								 
						
							
								a48823fdbe 
								
							 
						 
						
							
							
								
								Driver/Darwin/ld: Eliminate AddDarwinSubArch, our linker invocation is going to  
							
							... 
							
							
							
							diverge from gcc anyway.
llvm-svn: 94138 
							
						 
						
							2010-01-22 02:04:52 +00:00  
				
					
						
							
							
								 
						
							
								e017ecc9e2 
								
							 
						 
						
							
							
								
								Remove ';' after method definition. Noticed by clang++, which one would think  
							
							... 
							
							
							
							would have a higher respect for its own code. This is getting old, is this
warning really adding value?
llvm-svn: 91779 
							
						 
						
							2009-12-19 17:50:07 +00:00  
				
					
						
							
							
								 
						
							
								0f5c542a86 
								
							 
						 
						
							
							
								
								ARM: Pass -mcpu to clang-cc based on -march= and -mcpu=.  
							
							... 
							
							
							
							llvm-svn: 81429 
							
						 
						
							2009-09-10 04:57:17 +00:00  
				
					
						
							
							
								 
						
							
								3b3191f23c 
								
							 
						 
						
							
							
								
								Move Clang X86 cpu/feature argument translation into AddX86TargetArgs.  
							
							... 
							
							
							
							llvm-svn: 81390 
							
						 
						
							2009-09-09 22:33:08 +00:00  
				
					
						
							
							
								 
						
							
								e9ded43d1d 
								
							 
						 
						
							
							
								
								Add DarwinTool base class for all Darwin tools, and move AddDarwin[Sub]Arch there.  
							
							... 
							
							
							
							llvm-svn: 81367 
							
						 
						
							2009-09-09 18:36:20 +00:00  
				
					
						
							
							
								 
						
							
								11289f4280 
								
							 
						 
						
							
							
								
								Remove tabs, and whitespace cleanups.  
							
							... 
							
							
							
							llvm-svn: 81346 
							
						 
						
							2009-09-09 15:08:12 +00:00  
				
					
						
							
							
								 
						
							
								f0a5b9b126 
								
							 
						 
						
							
							
								
								Rename Darwin_X86 toolchain to just Darwin, this can support all platforms.  
							
							... 
							
							
							
							llvm-svn: 81016 
							
						 
						
							2009-09-04 18:34:51 +00:00  
				
					
						
							
							
								 
						
							
								5095b293b7 
								
							 
						 
						
							
							
								
								Remove unused argument.  
							
							... 
							
							
							
							llvm-svn: 81010 
							
						 
						
							2009-09-04 17:39:02 +00:00  
				
					
						
							
							
								 
						
							
								856e4ff78d 
								
							 
						 
						
							
							
								
								Second half of, clang, AuroraUX toolchain support.  
							
							... 
							
							
							
							llvm-svn: 79713 
							
						 
						
							2009-08-22 01:06:46 +00:00  
				
					
						
							
							
								 
						
							
								10de9e6602 
								
							 
						 
						
							
							
								
								OpenBSD support.  
							
							... 
							
							
							
							- Patch by Jonathan Gray!
llvm-svn: 74453 
							
						 
						
							2009-06-29 20:52:51 +00:00  
				
					
						
							
							
								 
						
							
								cc9123424f 
								
							 
						 
						
							
							
								
								DragonFly ToolChain definition for driver.  
							
							... 
							
							
							
							- Patch by Alex Hornung!
llvm-svn: 70635 
							
						 
						
							2009-05-02 18:28:39 +00:00  
				
					
						
							
							
								 
						
							
								111af7d7b4 
								
							 
						 
						
							
							
								
								Preliminary PCH support in the driver  
							
							... 
							
							
							
							llvm-svn: 69410 
							
						 
						
							2009-04-18 00:34:01 +00:00  
				
					
						
							
							
								 
						
							
								d067f7fbef 
								
							 
						 
						
							
							
								
								Driver: Split out CPP specific options for clang so that we don't end  
							
							... 
							
							
							
							up adding them twice when running with -no-integrated-cpp or
-save-temps.
 - <rdar://problem/6766636> -save-temps falls over with prefix headers
llvm-svn: 68660 
							
						 
						
							2009-04-08 23:54:23 +00:00  
				
					
						
							
							
								 
						
							
								d854c8d8a6 
								
							 
						 
						
							
							
								
								Driver: Add freebsd::Link  
							
							... 
							
							
							
							- Patch by Ed Schouten!
llvm-svn: 68233 
							
						 
						
							2009-04-01 19:36:32 +00:00  
				
					
						
							
							
								 
						
							
								8eb473c477 
								
							 
						 
						
							
							
								
								Driver: Call 'as' directly on FreeBSD.  
							
							... 
							
							
							
							- Patch by Ed Schouten!
llvm-svn: 68121 
							
						 
						
							2009-03-31 17:45:15 +00:00  
				
					
						
							
							
								 
						
							
								52e96cc932 
								
							 
						 
						
							
							
								
								Improve dependency file support.  
							
							... 
							
							
							
							- Rip out various bits of logic from clang-cc's dependency file gen,
   force driver to provide instead.
 - -MD output now goes to proper location
<rdar://problem/6723948> clang -MD puts dep file in /tmp with wrong name
 - -M and -MM still don't work correctly.
llvm-svn: 68022 
							
						 
						
							2009-03-30 00:34:04 +00:00  
				
					
						
							
							
								 
						
							
								afec1f58e9 
								
							 
						 
						
							
							
								
								Driver: Finish porting Darwin::Preprocess and Compile port (still  
							
							... 
							
							
							
							unused, and lacking a test case).
 - ccc is now on death row, pending some more testing and bug fixes.
llvm-svn: 68012 
							
						 
						
							2009-03-29 18:40:18 +00:00  
				
					
						
							
							
								 
						
							
								e6adeeece3 
								
							 
						 
						
							
							
								
								Driver: Start porting Darwin::Preprocess and Compile implementations  
							
							... 
							
							
							
							(currently unused).
llvm-svn: 68003 
							
						 
						
							2009-03-29 17:08:39 +00:00  
				
					
						
							
							
								 
						
							
								c196421fbc 
								
							 
						 
						
							
							
								
								Driver: Add darwin::Link tool.  
							
							... 
							
							
							
							- <rdar://problem/6717381> [driver] implement ld argument translation
   in new driver
llvm-svn: 67760 
							
						 
						
							2009-03-26 16:23:12 +00:00  
				
					
						
							
							
								 
						
							
								be2208472c 
								
							 
						 
						
							
							
								
								Driver: Add and use darwin::Assemble tool.  
							
							... 
							
							
							
							- Based on patch from Pieter de Bie; thanks!
llvm-svn: 67379 
							
						 
						
							2009-03-20 16:06:39 +00:00  
				
					
						
							
							
								 
						
							
								64ed5e3730 
								
							 
						 
						
							
							
								
								Driver: Add darwin::Lipo tool.  
							
							... 
							
							
							
							llvm-svn: 67355 
							
						 
						
							2009-03-20 00:52:38 +00:00  
				
					
						
							
							
								 
						
							
								a3246a0638 
								
							 
						 
						
							
							
								
								Driver: Lift out common GCC tool and implement generic GCC tool  
							
							... 
							
							
							
							argument translation.
Also, stub out clang tool implementation a bit more.
llvm-svn: 67185 
							
						 
						
							2009-03-18 08:07:30 +00:00  
				
					
						
							
							
								 
						
							
								04c4c2c3db 
								
							 
						 
						
							
							
								
								Driver: ConstructJob also needs to know the destination (where to put  
							
							... 
							
							
							
							its commands).
llvm-svn: 67179 
							
						 
						
							2009-03-18 07:06:02 +00:00  
				
					
						
							
							
								 
						
							
								0450e6dc4c 
								
							 
						 
						
							
							
								
								Driver: Add a dash of const.  
							
							... 
							
							
							
							llvm-svn: 67170 
							
						 
						
							2009-03-18 06:07:59 +00:00  
				
					
						
							
							
								 
						
							
								1a093d2049 
								
							 
						 
						
							
							
								
								Driver: Stub out Tool::ConstructJob.  
							
							... 
							
							
							
							llvm-svn: 67169 
							
						 
						
							2009-03-18 06:00:36 +00:00  
				
					
						
							
							
								 
						
							
								82116f8df4 
								
							 
						 
						
							
							
								
								Driver: Add name to Tool (for testing/debugging) and move GCC_* tools  
							
							... 
							
							
							
							into gcc:: namespace.
llvm-svn: 67120 
							
						 
						
							2009-03-17 22:45:24 +00:00  
				
					
						
							
							
								 
						
							
								15abb2ee0e 
								
							 
						 
						
							
							
								
								Driver: GCC 4.0 isn't happy with VISIBILITY_HIDDEN on a namespace.  
							
							... 
							
							
							
							llvm-svn: 67110 
							
						 
						
							2009-03-17 22:18:43 +00:00  
				
					
						
							
							
								 
						
							
								5903d8c08a 
								
							 
						 
						
							
							
								
								Driver: Stub out generic GCC tool selection (missed a file)  
							
							... 
							
							
							
							llvm-svn: 67109 
							
						 
						
							2009-03-17 22:07:58 +00:00