summaryrefslogtreecommitdiff
path: root/tools/gccld
Commit message (Collapse)AuthorAge
* Changes For Bug 352Reid Spencer2004-09-01
| | | | | | | | | Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16137 91177308-0d34-0410-b5e6-96231b3b80d8
* Add the LLVMsystem.a library as it is now used for operating systemReid Spencer2004-08-29
| | | | | | | independence of the tool. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16092 91177308-0d34-0410-b5e6-96231b3b80d8
* The functions in Signal.h are now in the llvm::sys namespace - adjustReid Spencer2004-08-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16091 91177308-0d34-0410-b5e6-96231b3b80d8
* This pass has proven its metal, remove -disable option.Chris Lattner2004-08-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15411 91177308-0d34-0410-b5e6-96231b3b80d8
* Run DSE at link-time, and turn on an IP alias analysis by default in gccld!Chris Lattner2004-07-27
| | | | | | | The -disable-globalsmodref is temporary and will be removed eventually. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15268 91177308-0d34-0410-b5e6-96231b3b80d8
* Linker.h moved to include/llvm/SupportMisha Brukman2004-06-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14351 91177308-0d34-0410-b5e6-96231b3b80d8
* Make gccld copy the llvm-stub program to be the execution wrapper forChris Lattner2004-06-02
| | | | | | | | | | | | bytecode files on win32 systems. We keep the shell script on unix systems because it is much more transparent for the users and supports -load options. This allows llvmgcc work correctly on win32 systems without the -native or -native-cbe options. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13946 91177308-0d34-0410-b5e6-96231b3b80d8
* Move some functions out of gccld.cpp to GenerateCode.cpp. This allows usChris Lattner2004-06-02
| | | | | | | | to reduce the inter-file interface in the gccld tool and gets some uninteresting code out of gccld.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13942 91177308-0d34-0410-b5e6-96231b3b80d8
* Refactor a bit of code into a function, no functionality changes.Chris Lattner2004-06-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13941 91177308-0d34-0410-b5e6-96231b3b80d8
* Header file movedChris Lattner2004-05-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13813 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow the user to set the LLVMINTERP environment variable as a workaround, forBrian Gaeke2004-05-07
| | | | | | | | | | | | | when they have to run a gccld shell script without having lli in their path. This is intended to address Bug 289. Also, emit the traditional syntax ${1+"$@"} for passing all of a shell script's args to a subprocess. If you have arguments that have spaces in them, $* will not preserve the quoting (i.e., the quoted string "foo bar" as an argument will end up as two arguments "foo" "bar" to lli.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13414 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't use invalid HTML in a doxygen comment.Misha Brukman2004-04-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12962 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a couple more IPO'sChris Lattner2004-04-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12863 91177308-0d34-0410-b5e6-96231b3b80d8
* Disable strict alias analysis in the backend c compiler, as the code weChris Lattner2004-04-08
| | | | | | | generate is not TBAA safe. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12774 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert previous patch, I'm a moron :)Chris Lattner2004-04-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12773 91177308-0d34-0410-b5e6-96231b3b80d8
* Right, we break strict aliasing requirements. Make sure to disable strictChris Lattner2004-04-08
| | | | | | | aliasing in the C compiler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12772 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor cleanupsChris Lattner2004-04-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12700 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a new gccld -native-cbe option which causes gccld to generate native codeChris Lattner2004-04-06
| | | | | | | for the application with the C backend instead of the native LLVM code generator git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12698 91177308-0d34-0410-b5e6-96231b3b80d8
* Run the new pass in gccld now that it passes all testsChris Lattner2004-03-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12196 91177308-0d34-0410-b5e6-96231b3b80d8
* We have this snazzy link-time optimizer. How about we start using it? ThisChris Lattner2004-02-26
| | | | | | | | removes some cruft from 255.vortex, cleaning up after DAE and IPCP, which do horrible, beautiful, things to vortex. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11861 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a new pass, run internalize firstChris Lattner2004-02-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11839 91177308-0d34-0410-b5e6-96231b3b80d8
* Include Config/config.h for SHLIBEXT.Alkis Evlogimenos2004-02-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11779 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure to print a stack trace whenever an error signal is delivered toChris Lattner2004-02-19
| | | | | | | the tool. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11633 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed PR#197. The libcrtend library is removed from the library linking listJohn Criswell2004-01-26
| | | | | | | when creating native executables. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10979 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixes for PR214. Use the SHLIBEXT variable instead of hardcoding .so intoJohn Criswell2004-01-26
| | | | | | | every file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10976 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure to verify the result before writing out the bytecode file. Not doingChris Lattner2004-01-14
| | | | | | | so can cause obscure errors downstream. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10840 91177308-0d34-0410-b5e6-96231b3b80d8
* Modified the logic so that library objects with main() are only linked inJohn Criswell2003-12-23
| | | | | | | if the program currently has main undefined. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10597 91177308-0d34-0410-b5e6-96231b3b80d8
* Modified the linker so that it always links in an object from an archiveJohn Criswell2003-12-23
| | | | | | | | | | | that defines the symbol "main." This is a hack that ensures that programs that place their main function in a library and then link it in (i.e. Apache 2.x) get their main function linked in. There is probably a more correct way to do this, but this works for now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10594 91177308-0d34-0410-b5e6-96231b3b80d8
* Added the -h option for compatibility with other linkers.John Criswell2003-12-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10335 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix compatibility with gcc 3.4Chris Lattner2003-11-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10262 91177308-0d34-0410-b5e6-96231b3b80d8
* The function resolving pass must be run, even if -disable-opt is specifiedChris Lattner2003-11-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10250 91177308-0d34-0410-b5e6-96231b3b80d8
* * The return value of LinkLibraries is ignored, so remove it.Chris Lattner2003-11-28
| | | | | | | | | * Finegrainify namespacification of Linker.cpp * If linking a library in fails, do not STOP LINKING IN LIBRARIES AND CONTINUE ANYWAY! Instead, just output the warning, and keep going. :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10249 91177308-0d34-0410-b5e6-96231b3b80d8
* I'm gonna be picky and say we don't really need that trailing slash "lib/"Misha Brukman2003-11-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10196 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure we ONLY add a `-load' switch to the JIT command line if the file isMisha Brukman2003-11-24
| | | | | | | verified as having an ELF header. This fixes PR151. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10195 91177308-0d34-0410-b5e6-96231b3b80d8
* When writing out the runner script, add -load=<lib> lines to pull in all theMisha Brukman2003-11-20
| | | | | | | shared objects automagically, so it doesn't have to be done by hand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10114 91177308-0d34-0410-b5e6-96231b3b80d8
* Add ability to search only for native shared object, and expose theMisha Brukman2003-11-20
| | | | | | | functionality to the rest of gccld. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10113 91177308-0d34-0410-b5e6-96231b3b80d8
* For consistency, removed space between function name and left paren in functionMisha Brukman2003-11-20
| | | | | | | call, i.e. [ addPass (...) ] => [ addPass(...) ] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10105 91177308-0d34-0410-b5e6-96231b3b80d8
* * Doxygenified comments, simplifying them and shortening in the processMisha Brukman2003-11-20
| | | | | | | * Eliminated extra space git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10104 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a -verify option to verify the results of gccld passes.Brian Gaeke2003-11-16
| | | | | | | Add a -disable-opt option to turn off gccld optimization passes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10040 91177308-0d34-0410-b5e6-96231b3b80d8
* When we find a module we want, in an archive, in verbose mode,Brian Gaeke2003-11-16
| | | | | | | | | print out the module's identifier (which should now contain the name of both the archive and the module.) Wrap some lines at 80 cols. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10039 91177308-0d34-0410-b5e6-96231b3b80d8
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9903 91177308-0d34-0410-b5e6-96231b3b80d8
* Move IsArchive, IsBytecode to FileUtilities. Fix up some method comments.Brian Gaeke2003-11-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9902 91177308-0d34-0410-b5e6-96231b3b80d8
* This version of Linker.cpp works a lot better, but it's a little messy. Sorry.Brian Gaeke2003-11-11
| | | | | | | | | Use FileOpenable() instead of FileExists(). Create IsBytecode() predicate -- like IsArchive(), but for bytecode files. Use IsBytecode() before trying to load any file as a bytecode file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9893 91177308-0d34-0410-b5e6-96231b3b80d8
* Give gccld more gutsChris Lattner2003-11-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9835 91177308-0d34-0410-b5e6-96231b3b80d8
* Give this header file an Emacs mode-line.Brian Gaeke2003-11-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9749 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not assume the first file is a bytecode file. Instead, construct a dummyBrian Gaeke2003-11-05
| | | | | | | | | Module and link things into that. Also, fix a typo in an error message. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9748 91177308-0d34-0410-b5e6-96231b3b80d8
* Shorten and correct some function-header comments.Brian Gaeke2003-11-05
| | | | | | | | | | | | | | | Make "verbose" output MUCH nicer. Now it tells you when you are linking a bytecode file, or an archive, and whether it's because you called it by name, or because you gave it a -l option, and it says "Trying" before it takes action and prints a message in the past tense afterwards. Make LinkFiles not skip the first file in Files. Make LinkFiles warn you if it can't find a file and LLVM_LIB_SEARCH_PATH is unset. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9747 91177308-0d34-0410-b5e6-96231b3b80d8
* Make -r work, fixing PR 91Chris Lattner2003-11-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9724 91177308-0d34-0410-b5e6-96231b3b80d8
* If linking a library, do not link other libraries, like libc, into it!Chris Lattner2003-11-03
| | | | | | | This fixes lots of annoying warnings and error messages git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9677 91177308-0d34-0410-b5e6-96231b3b80d8
* lli -q is history. Rebuild your gccld shell scripts, folks!Brian Gaeke2003-10-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9494 91177308-0d34-0410-b5e6-96231b3b80d8