Commit Graph

242 Commits

Author SHA1 Message Date
Chris Lattner 5382729e0c Fix strcpy implementation and trie
llvm-svn: 9338
2003-10-21 17:53:16 +00:00
John Criswell abe5cdcf21 Added LLVM copyright to Makefiles.
llvm-svn: 9314
2003-10-20 22:29:16 +00:00
John Criswell 49a9b67858 Adding additional license information to these files.
llvm-svn: 9102
2003-10-13 20:34:27 +00:00
Chris Lattner 3f647b8bc0 Actually pass in a pointer to the thrown object, not a pointer to the
exception header.  This is the final missing piece from the PR#27 puzzle.

llvm-svn: 9043
2003-10-10 22:55:55 +00:00
Brian Gaeke b8a4ed6543 Include <cstdio> instead of <stdio.h>.
llvm-svn: 9032
2003-10-10 18:46:52 +00:00
Misha Brukman 8b2bd4ed47 Fix spelling.
llvm-svn: 9027
2003-10-10 17:57:28 +00:00
Chris Lattner ef6a55b95e Fix building outside the srcdir, again
llvm-svn: 8543
2003-09-15 19:22:36 +00:00
Chris Lattner 3e61694d43 Fix building into a different obj directory
llvm-svn: 8542
2003-09-15 19:20:11 +00:00
Chris Lattner 7cae89ec44 Whoops, remove makefile too
llvm-svn: 8533
2003-09-15 15:07:37 +00:00
Chris Lattner 44f9dd0ec5 Remove dead library, it is now folded into crtend
llvm-svn: 8532
2003-09-15 15:07:22 +00:00
Chris Lattner 6d5e3a0df3 Move the exception handling runtime stuff into this directory
llvm-svn: 8530
2003-09-15 15:06:39 +00:00
Chris Lattner 8266b4c548 Urg, forgot to add a file header somehow.
Add missing function comments

llvm-svn: 8236
2003-08-30 23:31:08 +00:00
Chris Lattner e4e1a8a8a4 initial checkin of SJLJ exception handling runtime
llvm-svn: 8235
2003-08-30 23:29:22 +00:00
Chris Lattner ea40ebf1a2 Rename LongJmpException -> SJLJException
llvm-svn: 8234
2003-08-30 23:29:08 +00:00
Chris Lattner 20e7232ffc we don't need this here
llvm-svn: 8233
2003-08-30 23:18:07 +00:00
Chris Lattner 8d907494b4 Move language independent exception handling routines OUT of C++Exception.cpp
llvm-svn: 8232
2003-08-30 23:17:51 +00:00
Chris Lattner b14d0b0f3b File was renamed
llvm-svn: 8231
2003-08-30 22:48:16 +00:00
Chris Lattner 79b81bffa1 Rename files to be capitalized now that they are C++
llvm-svn: 8230
2003-08-30 22:47:59 +00:00
Chris Lattner 304225d34d Initial checkin of the SJLJ EH interface
llvm-svn: 8229
2003-08-30 22:36:52 +00:00
Misha Brukman b65f6de5aa Added a dummy version of libcurses.
llvm-svn: 8222
2003-08-29 18:13:52 +00:00
Misha Brukman 7d872c98c0 Added dummy termcap library.
llvm-svn: 8221
2003-08-29 18:09:46 +00:00
Chris Lattner 4f08308b9c * Add proper support for rethrown exceptions.
* Make catch_begin() produce a pointer that must be passed to catch_end()
* Eliminate the caught exception stack.
* Add optional debugging code that may be turned on.

llvm-svn: 8184
2003-08-28 19:58:51 +00:00
Chris Lattner 7234208d6c Convert C comments to C++
llvm-svn: 8172
2003-08-28 14:43:36 +00:00
Chris Lattner 3926a8329e New wrapper around the terminate call.
llvm-svn: 8171
2003-08-28 14:35:52 +00:00
Chris Lattner 1c725dda63 Squelch warning
llvm-svn: 8170
2003-08-28 14:35:12 +00:00
Chris Lattner 9dddce6864 Be more typesafe
Call terminate and unexpected where appropriate.
Interface to libstdc++ as appropriate
Initial cut at implementing function exception specifications

llvm-svn: 8169
2003-08-27 23:00:11 +00:00
Chris Lattner 83921b4dc6 Be more type-safe, add throw specs to all functions
llvm-svn: 8168
2003-08-27 22:59:15 +00:00
Chris Lattner 511c2cf0cc Add throw specs to the functions, remove (void) from the functions
llvm-svn: 8167
2003-08-27 22:58:51 +00:00
Chris Lattner 35312b2b6d Hack out libexception temporarily until the Sparc FE is improved
llvm-svn: 8166
2003-08-27 22:18:23 +00:00
Chris Lattner 5e22eb1942 Fix several _killer_ bugs. This now actually WORKS for really complex testcases :)
llvm-svn: 8157
2003-08-27 04:51:26 +00:00
Chris Lattner c9661eeaab C++ify, add new get_cxx_exception function to convert from generic llvm_exceptions to llvm_cxx_exception's
llvm-svn: 8156
2003-08-27 04:50:45 +00:00
Chris Lattner 8596f4ff32 Remove Cisms. We love C++
llvm-svn: 8155
2003-08-27 04:50:12 +00:00
Chris Lattner 2b33832598 Add new __llvm_cxxeh_begin_catch_if_isa function, change C -> C++ comments
llvm-svn: 8150
2003-08-26 23:46:53 +00:00
Chris Lattner 275e3eb16e Remove copy-and-paste gunk
llvm-svn: 8147
2003-08-25 22:37:04 +00:00
Chris Lattner bbaaa11433 Initial checking of C++ exception handling library
llvm-svn: 8146
2003-08-25 22:35:36 +00:00
Misha Brukman 67fc400da8 Added dummy version of the `util' library.
llvm-svn: 7995
2003-08-20 21:44:04 +00:00
Misha Brukman db3c78202d Added dummy library `libutempter' for non-privileged access to utmp/wtmp data.
llvm-svn: 7994
2003-08-20 21:42:01 +00:00
Chris Lattner 99211dc999 This really isn't the gcc library!
llvm-svn: 7917
2003-08-17 18:37:45 +00:00
Chris Lattner 7aabe391b8 Adjust level, build things in parallel
llvm-svn: 7863
2003-08-15 02:38:18 +00:00
Chris Lattner 43063248aa initial checkin, adjust LEVEL
llvm-svn: 7862
2003-08-15 02:38:06 +00:00
Chris Lattner 002c6a65c5 Initial checkin of README
llvm-svn: 7861
2003-08-15 02:35:13 +00:00
Chris Lattner aea063b30a Initial checkin of runtime/GCCLibraries makefile
llvm-svn: 7860
2003-08-15 02:33:49 +00:00
Chris Lattner d750ca9595 Update readme
llvm-svn: 7859
2003-08-15 02:31:23 +00:00
Chris Lattner 2a6b89bec5 Convert libraries into the BYTECODE_LIBRARY style
llvm-svn: 7858
2003-08-15 02:20:32 +00:00
Chris Lattner bf6efd1c6c Disable this library for now
llvm-svn: 7857
2003-08-15 02:19:43 +00:00
Chris Lattner ecc3ec0ca9 Disable this support stuff, it doesn't work under linux anyway
llvm-svn: 7849
2003-08-14 20:55:38 +00:00
John Criswell 35364c8408 Removing the pool allocator from the main CVS tree.
Use the poolalloc module in CVS from now on.

llvm-svn: 7810
2003-08-13 15:36:15 +00:00
Sumant Kowshik dca760a431 Minor fix so that the program exits upon a poolfree failure
llvm-svn: 7762
2003-08-12 00:43:23 +00:00
Sumant Kowshik db64829787 Change implementation so that variable sized slabs are used to allow arbitrary sized array allocations
llvm-svn: 7663
2003-08-07 05:31:04 +00:00
Vikram S. Adve 2786ece7fb 1. Make table size prime -- improves hashing performance vastly.
2. Reduce #hashes from 2 to 1 for initial inserts.
3. Fix incorrect assertion from last checkin.

llvm-svn: 7417
2003-07-30 12:49:25 +00:00
Vikram S. Adve f8049f93c2 Bug fix: after reallocating the hash table, we have to re-insert each value
instead of copying table entries!

llvm-svn: 7396
2003-07-29 20:01:01 +00:00
Chris Lattner 37dc32a4b2 Remove unneccesary #ifdefs
llvm-svn: 7214
2003-07-21 19:23:31 +00:00
Chris Lattner 4d52e214bb Fix warnings
llvm-svn: 7213
2003-07-21 19:20:44 +00:00
Vikram S. Adve 6fa4b79587 Use uint32_t for table index and size: table will never be > 4GB.
Also, make Pointer type depend on architecture.

llvm-svn: 7170
2003-07-11 22:02:28 +00:00
Vikram S. Adve 3b7c2a4db7 Pointer hash table reallocation code seems never to have been tested!
Unfortunately, reallocation also means that the pointer numbering will
change, so increase table size to try to avoid it.

llvm-svn: 7130
2003-07-08 18:42:44 +00:00
Vikram S. Adve b09caca804 Native libraries (libinstr*.a) should not have been taken out when
taking out the rule for compiling the test driver.
We need the native libraries for libinstr because they are directly
linked into the native CBE or LLC code.  That is the only practical
way to debug them!

llvm-svn: 7129
2003-07-08 18:40:58 +00:00
Sumant Kowshik 2b30ecdb77 Added support for poolallocarray and poolmakeunfreeable. The latter is used by the SAFECode project
llvm-svn: 7102
2003-07-03 17:55:47 +00:00
Chris Lattner 0fe5e45ee9 Don't register the destructors if the list is empty
llvm-svn: 6909
2003-06-26 04:20:38 +00:00
Joel Stanley d1e35d03b3 Prevented inclusion of (non-existent) stdint.h on Sparc.
llvm-svn: 6876
2003-06-24 02:46:47 +00:00
Misha Brukman 064192d260 Prevent lines from wrapping.
llvm-svn: 6419
2003-05-29 22:12:35 +00:00
Chris Lattner 01246aa56d Initial checkin
llvm-svn: 6414
2003-05-29 20:24:54 +00:00
Chris Lattner d339f98844 Run more post-link xforms
llvm-svn: 6400
2003-05-29 15:16:45 +00:00
Chris Lattner d10f1b56c6 Update to match the reality that is now.
llvm-svn: 6362
2003-05-27 21:43:14 +00:00
Chris Lattner af933f84c5 add support for an explicit EXPORTED_SYMBOL_LIST
llvm-svn: 6296
2003-05-22 20:27:30 +00:00
Chris Lattner be9911dbf0 Specify a list of symbols that should be exported by the library
llvm-svn: 6290
2003-05-22 19:50:30 +00:00
Chris Lattner 9141f8c2f6 Update to match typename produced by the C frontend
llvm-svn: 6287
2003-05-22 19:30:11 +00:00
Chris Lattner 30959f8faa Dead file
llvm-svn: 6189
2003-05-14 13:10:18 +00:00
Chris Lattner 1930a47f04 Minor updates
llvm-svn: 6188
2003-05-14 13:09:57 +00:00
Chris Lattner 6563768a92 Initial checkin of crtend.o implementation
llvm-svn: 6187
2003-05-14 13:09:41 +00:00
Chris Lattner 6e0ba26b43 New file
llvm-svn: 6186
2003-05-14 12:40:20 +00:00
Chris Lattner e5325ff767 Remove support for memset
llvm-svn: 5599
2003-02-18 20:42:15 +00:00
Chris Lattner eccbaee3c3 Add lots of functions
llvm-svn: 5598
2003-02-18 20:42:07 +00:00
Chris Lattner ca959ff6fd Implement more functions
llvm-svn: 5538
2003-02-11 23:12:23 +00:00
Chris Lattner 47c8d718a6 Implement feof and xmalloc
llvm-svn: 5478
2003-02-03 19:12:38 +00:00
Chris Lattner 6c4005ccfe Add a bunch more stubs
llvm-svn: 5459
2003-02-01 04:51:12 +00:00
Chris Lattner 7cef2bee08 Initial checkin of pool allocator library
llvm-svn: 5429
2003-01-29 18:38:11 +00:00
Chris Lattner b105dbacef Initial checkin of dummylib
llvm-svn: 5357
2003-01-17 19:09:29 +00:00
Chris Lattner ecbc827e1d fix path
llvm-svn: 4636
2002-11-08 21:29:22 +00:00
Chris Lattner 3c725a0722 Add note about what this is
llvm-svn: 4581
2002-11-06 20:58:26 +00:00
Chris Lattner dc403c86ec Pass renamed
llvm-svn: 3141
2002-07-30 00:53:26 +00:00
Chris Lattner 4f6a098c84 Fixes to be LP64 correct
llvm-svn: 2950
2002-07-18 00:15:29 +00:00
Chris Lattner 4b52d7fbac Allow libraries to specify other libraries to link to
llvm-svn: 2678
2002-05-20 21:45:44 +00:00
Chris Lattner f7b31cceec Tracelib is now an LLVM library just like all other libraries in this
directory.

If the test code needs to be resurrected in the future, it should be moved
into the test/Programs directory, linking with tracelib.

llvm-svn: 2672
2002-05-20 21:16:19 +00:00
Chris Lattner 008db290b8 * If hashing a pointer, cast it to a 64 bit number so gcc doesn't warn
* Don't put extra stuff after #endif

llvm-svn: 2671
2002-05-20 21:15:30 +00:00
Chris Lattner 0c1b51e622 Implement the printf function, used by assert
llvm-svn: 2666
2002-05-20 19:11:23 +00:00
Vikram S. Adve be31fcf252 Runtime routines to support tracing.
Currently includes code to hash pointers to sequence numbers.
The hash table should be separated out into a separate file
since that is generic.  The rest of this code is pretty small.

llvm-svn: 2655
2002-05-19 15:49:58 +00:00
Chris Lattner 709829dba1 Remove compilation of __main because we now link -lgcc into programs
llvm-svn: 1947
2002-03-22 19:13:47 +00:00
Vikram S. Adve 5b7700028d Need rule for runtime.o. This is just temporary to provide
ll__main so that llc output can link.

llvm-svn: 1913
2002-03-18 04:04:25 +00:00
Chris Lattner 10b85921ef Add strcat function
llvm-svn: 1847
2002-03-11 17:46:50 +00:00
Chris Lattner 06eccf0f75 Checkin library infrastructure for building stuff to be linked with
gccld

llvm-svn: 1842
2002-03-08 23:20:52 +00:00
Chris Lattner 9d6dc77e3a Add a clean target stub
llvm-svn: 1818
2002-02-26 21:48:24 +00:00
Chris Lattner c8aeee1bde Initial checkin of Makefile, just a dummy file for now.
llvm-svn: 1566
2002-01-23 19:57:59 +00:00