Commit Graph

16588 Commits

Author SHA1 Message Date
Reid Spencer 78d9e8763d Make the x86_64 target names match between def and use. Thanks Misha.
llvm-svn: 19170
2004-12-28 07:56:14 +00:00
Reid Spencer 307435c2ae Make the 64-bit x86 target named "x86_64" instead of "AMD64".
llvm-svn: 19169
2004-12-28 06:34:11 +00:00
Misha Brukman c57b9eb581 Add a note about registering the backend so it's available in LLC and LLI
llvm-svn: 19168
2004-12-27 19:05:16 +00:00
Jeff Cohen bb3d4a1b64 Bring VS projects up to date with respect to recent changes
llvm-svn: 19167
2004-12-27 16:49:34 +00:00
Reid Spencer cf8f341c36 Don't create symbolic links for lib/System any more. It doesn't need them.
llvm-svn: 19166
2004-12-27 09:33:46 +00:00
Reid Spencer c7f0a4733d Clean up some autoconf cruft
* Make the source detection use a file unique to Stacker
* Configure Makefile.common.in with AC_CONFIG_FILES not AC_CONFIG_MAKEFILE
* Use new autoconf format for invoking AC_OUTPUT

llvm-svn: 19165
2004-12-27 08:51:55 +00:00
Reid Spencer c4f0c739c9 Make it possible to reconfigure a project as well as just LLVM main dir.
llvm-svn: 19164
2004-12-27 08:50:27 +00:00
Reid Spencer ad7bdf7400 Fix a bug that made the nightly tester *really* slow. During changes for
portability, the --track-space option was inadvertently ignored. This patch
fixes that so that sys::Process::GetMallocUsage() is only invoked if the
--track-spaces option is given. Apparently the mallinfo() call that
GetMallocUsage() uses is *very* slow, especially when processing very large
modules like projects/llvm-test/MultiSource/Applications/kimwitu++.

llvm-svn: 19163
2004-12-27 08:03:04 +00:00
Reid Spencer a079b69981 For PR351:
* sys::PreventCoreFiles -> sys::Process::PreventCoreFiles

llvm-svn: 19162
2004-12-27 06:18:02 +00:00
Reid Spencer e925d8b8b2 For PR351:
* Ensure #includes are wrapped with appropriate HAVE_ guards
* Account for variations in time.h and sys/time.h inclusion.
* Add macros for getting wait(2) exit status correctly (per autoconf sugg.)
* Implement ThrowErrno in terms of strerror_r, strerror or none based on
  what is available on the platform.

llvm-svn: 19161
2004-12-27 06:17:50 +00:00
Reid Spencer efda887fe2 For PR351:
* Remove redundant #includes that are now in Unix.h

llvm-svn: 19160
2004-12-27 06:17:39 +00:00
Reid Spencer cf15b874e8 For PR351:
* Move implementation of sys::PreventCoreFiles function to this file from
  the now defunct SysConfig abstraction.

llvm-svn: 19159
2004-12-27 06:17:27 +00:00
Reid Spencer d103e0851c For PR351:
* Ensure #includes are wrapped with appropriate HAVE_ guards
* Ensure variations in "dirent" structure are accounted for.

llvm-svn: 19158
2004-12-27 06:17:15 +00:00
Reid Spencer 47cd653411 For PR351:
* Ensure #includes are wrapped with appropriate HAVE_ guards
* Consolidate implementation from operating system specific directory.

llvm-svn: 19157
2004-12-27 06:17:03 +00:00
Reid Spencer d554bbcefd For PR351:
* Ensure #includes are wrapped with appropriate HAVE_ guards

llvm-svn: 19156
2004-12-27 06:16:52 +00:00
Reid Spencer af6d3d5c8f For PR351:
* Consolidate implementation for Unix systems into Unix/TimeValue.cpp
* Avoid use of symbolic link to #include platform-specific implementation.

llvm-svn: 19155
2004-12-27 06:16:38 +00:00
Reid Spencer 51ea06abf8 For PR351:
* Consolidate implementation for Unix systems into Unix/Program.cpp
* Avoid use of symbolic link to #include platform-specific implementation.

llvm-svn: 19154
2004-12-27 06:16:25 +00:00
Reid Spencer 844f3fec49 For PR351:
* Consolidate implementation for Unix systems into Unix/Signals.cpp
* Avoid use of symbolic link to #include platform-specific implementation.

llvm-svn: 19153
2004-12-27 06:16:11 +00:00
Reid Spencer 71383fb646 For PR351:
* Consolidate implementation for Unix systems into Unix/Memory.cpp
* Avoid use of symbolic link to #include platform-specific implementation.

llvm-svn: 19152
2004-12-27 06:15:57 +00:00
Reid Spencer 1a7a435b49 For PR351:
* Consolidate implementation for Unix systems into Unix/MappedFile.cpp
* Avoid use of symbolic link to #include platform-specific implementation.

llvm-svn: 19151
2004-12-27 06:15:43 +00:00
Reid Spencer 97d4a17f04 For PR351:
* Consolidate implementation for Unix systems into Unix/Process.cpp
* Avoid use of symbolic link to #include platform-specific implementation.

llvm-svn: 19150
2004-12-27 06:15:29 +00:00
Reid Spencer 0d1ad6ac34 For PR351:
SysConf abstraction was pointless because it had a single function in it that
pertained only to the current process. So merge it into the Process abstraction
and remove the files completely.

llvm-svn: 19149
2004-12-27 06:15:14 +00:00
Reid Spencer b668158b7c For PR351:
* Add checks for sterror and strerror_r functions
* Add check to determine if /dev/zero is needed for allocating RWX memory.

llvm-svn: 19148
2004-12-27 06:15:02 +00:00
Reid Spencer 826da2a721 For PR351:
Provide a check to determine if /dev/zero is needed for AllocateRWX function.

llvm-svn: 19147
2004-12-27 06:14:48 +00:00
Reid Spencer 189c677549 Oops, reverse the logic on a test for WITH_LLVMGCCDIR to make it define
the path names correctly.

llvm-svn: 19146
2004-12-27 03:15:28 +00:00
Reid Spencer 474a09ca20 Provide a value for HAVE_MMAP_ANONYMOUS variable, for consistency with
other #define's.

llvm-svn: 19145
2004-12-27 03:14:43 +00:00
Reid Spencer 6bfa7a4f7b Describe the --with-llvmgccdir option to configure.
llvm-svn: 19144
2004-12-26 05:47:26 +00:00
Reid Spencer d2020acea0 Revert the last patch so that the LLVMGCCDIR environment variable is
still viable and will make use of the resurrected --with-llvmgccdir
configure option.

llvm-svn: 19143
2004-12-26 05:21:13 +00:00
Reid Spencer 8bc110c097 For PR351:
* Make sure all headers used by lib/System have checks
* Use "standard" autoconf checks for certain problematic headers
For PR432:
* Resurrect --with-llvmgccdir so a specific llvm-gcc/llvm-g++ installation
  can be specified.

llvm-svn: 19142
2004-12-25 07:31:29 +00:00
Jeff Cohen f365c33b62 mingw doesn't support the official debug API.
Old versions of the C runtime somehow get loaded into the process.  Make
sure they aren't searched for symbols.

llvm-svn: 19141
2004-12-25 04:50:17 +00:00
Jeff Cohen 683b1a5e3c Get VC++ building again
llvm-svn: 19140
2004-12-24 16:26:47 +00:00
Reid Spencer d06d026715 Ignore the autom4te.cache directoy.
llvm-svn: 19139
2004-12-24 15:11:23 +00:00
Reid Spencer c005fba17b Make sure llvm-g++ gets the right path for the llvm tools.
llvm-svn: 19138
2004-12-24 14:47:34 +00:00
Jeff Cohen 039b4abf6c Eliminate use of ltdl.c when doing a VC++ build. Because libtool isn't used,
ltdl's LGPL license would infect all of LLVM.

llvm-svn: 19137
2004-12-24 07:57:09 +00:00
Reid Spencer c81ccb488a Make the symbolic link using the correct variable!
llvm-svn: 19136
2004-12-24 06:49:16 +00:00
Reid Spencer 920b83d709 Remove references to LLVMGCCDIR because it was only used to provide a
value for the --with-llvmgccdir configure option which is no longer
supported.

llvm-svn: 19135
2004-12-24 06:32:54 +00:00
Reid Spencer 20540311e1 For PR351:
Merge implementations of isValid and GetTemporaryDirectory into this file. There
is not any point having the operating system specific files for such little
variation between the Unix family of systems.

llvm-svn: 19134
2004-12-24 06:29:42 +00:00
Reid Spencer e7c870364f For PR351:
This implementation is no longer needed, its been merged to Unix/Path.cpp since
there is such little variation between the platforms.

llvm-svn: 19133
2004-12-24 06:29:28 +00:00
Reid Spencer 328ee53573 For PR351:
Use the LLVM_ON_UNIX and LLVM_ON_WIN32 #defines to include the implementation
instead of relying upon the "platform" link

llvm-svn: 19132
2004-12-24 06:29:17 +00:00
Reid Spencer d3d6d9d691 For PR351:
Create new variables LLVM_ON_UNIX and LLVM_ON_WIN32 so we can start getting
rid of reliance upon a symbolic link to switch implementations in lib/System

llvm-svn: 19131
2004-12-24 06:29:05 +00:00
Reid Spencer 4befbf3f14 Resurrect this file.
llvm-svn: 19130
2004-12-24 06:03:31 +00:00
Reid Spencer 265b02ed3a Remove these files as they are not being included any more. DynamicLibrary
is now implemented via ltdl.cpp which has its own way of dealing with
the different platforms.

llvm-svn: 19129
2004-12-24 03:59:46 +00:00
Reid Spencer 0f996fe02c Make sure LLVMGCCWITHPATH is used instead of just LLVMGCC so that the
CFE tools can find the correct LLVM tools to invoke.

llvm-svn: 19128
2004-12-24 03:44:24 +00:00
Reid Spencer 69d897cc22 The dejagnu scripts need a path for llvm-gcc/llvm-g++ as well so use the
correct variable to get a "set the path first" invocation of those tools.

llvm-svn: 19127
2004-12-24 03:38:01 +00:00
Reid Spencer 35655d69b5 Two corrections:
* When reconfiguring, make sure the config.cache file is blown away so that
  its (old) values don't short-circuit doing the tests. When a reconfigure
  is done, it should be done from scratch, without the cache.
* For dist-check, don't pass --with-llvmgccdir any more because configure
  doesn't have this option any more.

llvm-svn: 19126
2004-12-24 03:36:31 +00:00
Reid Spencer b608aebc6c Change llvmgcc/llvmg++ to llvm-gcc and llvm-g++ respectively.
llvm-svn: 19125
2004-12-24 03:34:31 +00:00
Jeff Cohen d567bb6af6 Fix VC++ compilation error
llvm-svn: 19124
2004-12-24 02:38:34 +00:00
Reid Spencer 657b7343f3 Fix a bug in libtool's ltmain.sh. On Cygwin the "$output.exp" expression
expands to a full path name. Substitute $outputname.exp" instead and it
makes a viable temporary file name. This gets around the problem with lli
on Cygwin linking but not having any "C" library functions linked into it.

llvm-svn: 19123
2004-12-24 00:15:20 +00:00
Reid Spencer c84ee1aee0 Put CopyFile in the sys namespace.
llvm-svn: 19122
2004-12-23 22:14:32 +00:00
Misha Brukman e50986b39f Wrap at 80 cols
llvm-svn: 19121
2004-12-23 21:17:41 +00:00
Reid Spencer dee41307dc Correct the comments and file header.
llvm-svn: 19120
2004-12-23 21:16:46 +00:00
Reid Spencer 454a8afc6d Try to speed up gccld hot spot in BasicVN::getEqualNumberNodes by making
a function call at the core of the loop inline and removing unused
stack variables from an often called function. This doesn't improve things
much, the real saving will be by reducing the number of calls to this
function (100K+ when linking kimwitu++).

llvm-svn: 19119
2004-12-23 21:13:26 +00:00
Reid Spencer 0a54a58c63 Update the amd64 target detection checks.
Patch contributed by Markus F.X.J. Oberhumer.

llvm-svn: 19118
2004-12-23 21:08:52 +00:00
Reid Spencer 1097f7df5f Add a caution about using experimental versions of gnu binutils when
building Cygwin.

llvm-svn: 19117
2004-12-23 19:49:54 +00:00
Reid Spencer a8acd82275 Be specific about version of GCC and binutils on Cygwin since it matters.
llvm-svn: 19116
2004-12-23 19:39:54 +00:00
Misha Brukman 5ac308f43a LLVM now builds and runs on Linux/amd64, but we don't have 64-bit codegen yet
llvm-svn: 19115
2004-12-23 07:14:56 +00:00
Jeff Cohen cd80438755 Allow llc to recognize -march=x86. As it was, it didn't recognize any
architecture at all.

llvm-svn: 19114
2004-12-23 06:45:32 +00:00
Reid Spencer 864cee3355 Added support for detection of amd64 targets.
llvm-svn: 19113
2004-12-23 06:22:33 +00:00
Jeff Cohen 53fbecce6e Patch to fix mingw compilation problem contributed by Henrik.
llvm-svn: 19112
2004-12-23 03:44:40 +00:00
Brian Gaeke 737d3e8794 Fix the build on PowerPC/Darwin - it thought we were declaring a new
function or something. Since FileRemover takes a const reference to
sys::Path, we need to pass an actual sys::Path variable.

llvm-svn: 19111
2004-12-22 22:33:33 +00:00
Reid Spencer e0699f7466 * Remove an unnecessary step.
* Correct a path.

llvm-svn: 19110
2004-12-22 16:19:05 +00:00
Reid Spencer d94c5f8cc9 Correct compilation for Cygwin. FindExecutable now returns a sys::Path.
llvm-svn: 19109
2004-12-22 13:50:17 +00:00
Reid Spencer 3b21e3539a For PR351:
Include local FDHandle.h file now that FDHandle is local to this library
and not in lib/System/FileUtilities.

llvm-svn: 19108
2004-12-22 10:25:06 +00:00
Reid Spencer 756d023539 For PR351:
FDHandle class (non-portable) moved here from lib/Support/FileUtilities

llvm-svn: 19107
2004-12-22 10:24:55 +00:00
Reid Spencer 5260b5b46d For PR351:
Move non-portable FDHandle class to its only user: lib/Debugger

llvm-svn: 19106
2004-12-22 10:24:43 +00:00
Reid Spencer 3e41cd50b4 Add a blurb about using the GCC 3.4.3 compiler on Cygwin (which works) for
the CFE instead of the default GCC 3.3.3 compiler that comes with Cygwin.

llvm-svn: 19104
2004-12-22 09:52:30 +00:00
Reid Spencer c5f858ca52 For PR432:
* Remove the idiotic windows environment setting, its not needed.
* Remove an extraneous "mkdir" instruction.

llvm-svn: 19103
2004-12-22 09:07:51 +00:00
Reid Spencer 296cf274fd Hopefully fix a link.
llvm-svn: 19102
2004-12-22 06:48:03 +00:00
Reid Spencer 85a38ded31 Fix the names of these executables now that they've been somewhat cast in
stone.

llvm-svn: 19101
2004-12-22 06:47:25 +00:00
Reid Spencer 31bf9a0371 Correct the name of the executables to which llvmgcc and llvmgxx variables
point to.

llvm-svn: 19100
2004-12-22 06:45:24 +00:00
Reid Spencer c659a4b140 For PR432:
Rework the CFE build details to include the directions for using the
option --program-prefix=llvm- to the CFE's configure script. This ensures
that the CFE builds unique executable names and makes it possible to put
the $CFEINSTALL/bin directory into one's path.

llvm-svn: 19099
2004-12-22 06:40:29 +00:00
Reid Spencer 788b0fdab7 For PR432:
* llvmgcc -> llvm-gcc
* llvmg++ -> llvm-g++
* remove references to --with-llvmgccdir configure option

llvm-svn: 19098
2004-12-22 06:29:07 +00:00
Reid Spencer c4de911191 For PR432:
* Use LLVMGCC and LLVMGXX variables instead of computing the name

llvm-svn: 19097
2004-12-22 05:57:50 +00:00
Reid Spencer e301401118 For PR432:
* Variable name change: cferuntime_libdir -> CFERuntimeLibDir

llvm-svn: 19096
2004-12-22 05:57:33 +00:00
Reid Spencer 2bba41c760 For PR432:
* Cleanup LLVMGCXX and LLVMGCC by providing LLVMGXXWITHPATH and LLVMGCCWITHPATH
  variables that add the $(LLVMToolDir) to the path so the CFE tools can find
  the right LLVM tools they depend on.
* Standardize the name of a variable: cferuntime_libdir -> CFERuntimeLibDir

llvm-svn: 19095
2004-12-22 05:57:21 +00:00
Reid Spencer 0921255067 For PR432:
* Use new configuration variables to compute LLVMGCC and LLVMGXX variables.

llvm-svn: 19094
2004-12-22 05:57:09 +00:00
Reid Spencer fd144e8655 For PR432:
* Remove --with-llvmgccdir, not needed any more
* Search path for llvm-gcc and llvm-gxx
* Compute LLVMGCCDIR based on install path of llvm-gcc

llvm-svn: 19093
2004-12-22 05:56:56 +00:00
Reid Spencer 2ac471060e Get rid of old automake stuff
llvm-svn: 19092
2004-12-22 05:56:41 +00:00
Reid Spencer e2b14e52c7 Support the gas option --traditional-format which, for some reason, gets
passed to gccas when the --program-prefix option is used to configure CFE.

llvm-svn: 19091
2004-12-22 02:58:43 +00:00
Misha Brukman 2261bff1a5 Ignore generated files
llvm-svn: 19090
2004-12-22 01:49:53 +00:00
Reid Spencer 5fb7160b0e Revert last patch until we can figure out how to build executables named
llvmgcc and llvmg++ correctly.

llvm-svn: 19089
2004-12-22 01:37:47 +00:00
Misha Brukman 8295ac7098 Fix the Win32 build
llvm-svn: 19088
2004-12-22 01:37:33 +00:00
Reid Spencer 5d2d5db1b0 Revert last changes as they introduce CFE build problems.
llvm-svn: 19087
2004-12-22 01:36:27 +00:00
Reid Spencer fc195422a5 Make parameters to CopyFile use explicit instantiation of sys::Path.
llvm-svn: 19086
2004-12-22 01:26:48 +00:00
Jeff Cohen 248192ac04 Add project Bytecode to Visual Studio
llvm-svn: 19085
2004-12-22 00:27:14 +00:00
Reid Spencer 0953cfc002 Remove instructions to make aliases for llvmgcc and llvmg++ as the CFE
Build instructions now direct the user to have the CFE generate executables
with those names via the --program-prefix=llvm configure option.

llvm-svn: 19084
2004-12-21 18:52:08 +00:00
Reid Spencer 7bb9d35be2 For PR432:
Add instructions for using the --program-prefix=llvm so that the CFE build
produces llvmgcc instead of gcc.

llvm-svn: 19083
2004-12-21 18:50:54 +00:00
Jeff Cohen 6486fab16d Fix VC++ compilation error
llvm-svn: 19082
2004-12-21 15:40:41 +00:00
Reid Spencer 9e7acd465e For PR351:
Remove unix specific code (use of errno and read) from the reader.
Thanks to Jeff Cohen for pointing this out.

llvm-svn: 19081
2004-12-21 07:51:33 +00:00
Jeff Cohen fd0e3542f9 Visual Studio project Configure should place the configured header files
in the win32 subtree instead of the src subtree.

llvm-svn: 19080
2004-12-21 06:49:13 +00:00
Reid Spencer 107410613b Put the CopyFile function explicitly in the sys namespace.
llvm-svn: 19079
2004-12-21 03:27:08 +00:00
Reid Spencer 4acff4056f Use explicit construction of sys::Path from std::string because the
constructor is "explicit".

llvm-svn: 19078
2004-12-21 03:24:02 +00:00
Reid Spencer fbad5d7d65 Include <cassert> for Cygwin.
llvm-svn: 19077
2004-12-21 00:22:51 +00:00
Reid Spencer 22dd8b15c0 Cygwin doesn't like .. through a link, so drop the ..
llvm-svn: 19076
2004-12-20 22:21:41 +00:00
Reid Spencer 92e8a5a0ea Fix a bug where system time always equals user time
llvm-svn: 19075
2004-12-20 21:44:27 +00:00
Reid Spencer d4c6988809 Implement GetTimeUsage correctly.
llvm-svn: 19074
2004-12-20 21:43:33 +00:00
Reid Spencer 08b4bd7496 Allow compilers that can't distinguish between a class instantiation and
the declaration of a function to compile this.

llvm-svn: 19073
2004-12-20 19:16:12 +00:00
Reid Spencer 8005e66f0a Provide a getrusage based implementation of GetTotalMemoryUsage and use
the ru_maxrss field as an approximation.

llvm-svn: 19072
2004-12-20 16:33:37 +00:00
Reid Spencer 1cf74cee21 Consistently use the same #if style. Also, fix a bug testing for sbrk(3)
llvm-svn: 19071
2004-12-20 16:06:44 +00:00
Reid Spencer 1e10203375 Remove unnecessary #includes.
llvm-svn: 19070
2004-12-20 06:38:12 +00:00