]> git.llucax.com Git - software/druntime.git/log
software/druntime.git
15 years agoMake build-dmd.sh use DC environment variable
Leandro Lucarella [Sat, 22 Nov 2008 16:31:36 +0000 (14:31 -0200)]
Make build-dmd.sh use DC environment variable

When build-dmd.sh calls make, it doesn't use the DC environment variable
to pick which compiler to use. This is a simple fix to honour the DC
environment variable.

15 years agoAdded core.vararg for variadic argument handling. This seemed necessary, since varar...
sean [Tue, 25 Nov 2008 23:53:07 +0000 (23:53 +0000)]
Added core.vararg for variadic argument handling.  This seemed necessary, since varargs are a language feature.  There should be no conflict with std.stdarg, etc, anyway.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@52 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years ago* Small fix to a typo in trunk/cover.d
sean [Tue, 25 Nov 2008 00:56:46 +0000 (00:56 +0000)]
* Small fix to a typo in trunk/cover.d
* Merged changes from trunk/cover to branches/D1.0/cover

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@51 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years ago* Removed -version=Posix from dmd.conf. This flag is now set automatically by DMD.
sean [Mon, 24 Nov 2008 22:42:47 +0000 (22:42 +0000)]
* Removed -version=Posix from dmd.conf.  This flag is now set automatically by DMD.
* Fixed code coverage feature such that the output files will be ./basename.lst instead of basename.d.lst located in their original path.  The previous
behavior was breaking on linux where the install path is typically read-only, and should now match the old phobos code coverage feature.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@50 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agocover.d does not produce output
walter [Mon, 24 Nov 2008 03:06:35 +0000 (03:06 +0000)]
cover.d does not produce output

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@49 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years ago* Removed "-debug" from the list of debug build flags. The purpose of debug builds...
sean [Fri, 21 Nov 2008 23:08:16 +0000 (23:08 +0000)]
* Removed "-debug" from the list of debug build flags.  The purpose of debug builds is to test user code, not library code.
* Fixed an edit error that would have broken unit testing of druntime in trunk.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@48 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years ago* Auto type determination was broken in some unit tests. This has been fixed.
sean [Thu, 20 Nov 2008 22:49:32 +0000 (22:49 +0000)]
* Auto type determination was broken in some unit tests.  This has been fixed.
* The following new build options have been added:
    - release (default)
    - debug
    - unittest
* Debug libraries are now generated by the build-dmd scripts and have a "-d" appended to their name.  These libraries have both "-g" and "-debug" set to enable asserts and symbol info.
* Added unittest.d to run unit tests.
* Added test-dmd.bat to build and run unit tests on Win32.  A problem currently exists with this feature, and once it has been resolved a test-dmd.sh will be added as well.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@47 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoFixed the static data area range calculation. Previous behavior was causing only...
sean [Thu, 6 Nov 2008 20:36:50 +0000 (20:36 +0000)]
Fixed the static data area range calculation.  Previous behavior was causing only 1/4 of the static data area to be scanned by the GC.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@46 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agofix scope
walter [Thu, 6 Nov 2008 09:58:20 +0000 (09:58 +0000)]
fix scope

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@45 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoChanged D 2.0 runtime to account for 'this' being changed from a pointer to a referen...
sean [Wed, 5 Nov 2008 00:40:16 +0000 (00:40 +0000)]
Changed D 2.0 runtime to account for 'this' being changed from a pointer to a reference.  This update will only work with DMD 2.021 and above.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@44 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years ago* Fixed the documentation for sleep().
sean [Wed, 5 Nov 2008 00:35:42 +0000 (00:35 +0000)]
* Fixed the documentation for sleep().
* Changed the implementation of sleep() on Windows such that a yield will not be forced upon the user if they pass an interval that evaluates to zero.  For more information regarding Sleep(0), see the MSDN docs.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@43 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years ago* Reclassified most runtime-generated errors as Errors rather than Exceptions. This...
sean [Fri, 31 Oct 2008 23:13:27 +0000 (23:13 +0000)]
* Reclassified most runtime-generated errors as Errors rather than Exceptions.  This involved both a parent reasignment and a name change.  At this point, the only remaining Exception is UnicodeException.
* Renamed ArrayBoundsException to RangeError in an attempt to be more general.
* Renamed onArrayBoundsError callback to onRangeError to make handling of these conditions more general as well.  Ideally, this will allow the same callback to be used for other purposes in the future.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@42 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoChanged the package name for bitmanip.
sean [Fri, 31 Oct 2008 22:07:16 +0000 (22:07 +0000)]
Changed the package name for bitmanip.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@41 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoFixed 64-bit prototype for dirent_r routine.
sean [Wed, 29 Oct 2008 21:22:29 +0000 (21:22 +0000)]
Fixed 64-bit prototype for dirent_r routine.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@40 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoAdded static data segment support to the new Runtime.loadLibrary() features. This...
sean [Wed, 29 Oct 2008 00:15:37 +0000 (00:15 +0000)]
Added static data segment support to the new Runtime.loadLibrary() features.  This also replaces static data segment scanning for all apps by dropping rt_scanStaticData() in favor of a new initialization step that calls gc_addRange() for each static data segment.  The upshot of this is that all GCs must track add/remove Root and Range calls so the info can be passed to a proxy if gc_setProxy() is called.  See src/gc/stub/gc.d for a simple implementation of this.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@39 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoFirst attempt at support for dynamic library loading and unloading. Currently, only...
sean [Mon, 27 Oct 2008 22:15:16 +0000 (22:15 +0000)]
First attempt at support for dynamic library loading and unloading.  Currently, only Windows is supported, and information on static data ranges still needs to be passed to the application GC (see "TODO" in gc/basic and gc/stub).

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@38 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoRemoved stdc directory. This was moved to core/stdc.
sean [Mon, 27 Oct 2008 22:08:29 +0000 (22:08 +0000)]
Removed stdc directory.  This was moved to core/stdc.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@37 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years ago* Moved sys into core.sys
sean [Sat, 25 Oct 2008 00:15:55 +0000 (00:15 +0000)]
* Moved sys into core.sys
* Moved stdc.posix into core.sys.posix
* Moved stdc into core.stdc
* Added initial support for Runtime.loadLibrary() and Runtime.unloadLibrary() in D2.  The same functions are exposed in D1, but they are stubbed out for the moment.  The basic library loading and unloading should theoretically work, but the GC handle swapping code still needs a look, etc.  I left the D1 version stubbed out to make finding GC diffs easier for when I look at the handle swapping code (which is in D2 but not D1).  Still not sure about the function naming either... may just switch to load() and unload().

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@36 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoChanged pthread_cleanup to properly account for platform differences. core.thread...
sean [Tue, 21 Oct 2008 23:40:18 +0000 (23:40 +0000)]
Changed pthread_cleanup to properly account for platform differences.  core.thread should now build with freebsd.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@35 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoenable generation of gcstub.obj
walter [Mon, 20 Oct 2008 20:51:32 +0000 (20:51 +0000)]
enable generation of gcstub.obj

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@34 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agorestored support for setting gc handle
walter [Mon, 20 Oct 2008 05:01:16 +0000 (05:01 +0000)]
restored support for setting gc handle

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@33 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoFixed a few build script issues on posix, including a bug in looking for some of...
sean [Fri, 17 Oct 2008 03:06:32 +0000 (03:06 +0000)]
Fixed a few build script issues on posix, including a bug in looking for some of the core modules in the wrong place, and a hack to eliminate filename collision with the dmd compiler runtime.  This latter issue really needs to be addressed in a better way, but at this point my priority is just to get the build working.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@32 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoChanged Thread.sleep() to accept a long with a tick resolution of 100 nanoseconds...
sean [Thu, 16 Oct 2008 20:54:55 +0000 (20:54 +0000)]
Changed Thread.sleep() to accept a long with a tick resolution of 100 nanoseconds.  This closes #9

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@31 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoNo longer default-initializing a buffer which is immediately set via a function call.
sean [Thu, 16 Oct 2008 20:46:34 +0000 (20:46 +0000)]
No longer default-initializing a buffer which is immediately set via a function call.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@30 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years ago* Changed top-level exception class name from 'Exception' to 'Throwable'.
sean [Wed, 15 Oct 2008 21:33:55 +0000 (21:33 +0000)]
* Changed top-level exception class name from 'Exception' to 'Throwable'.
* Created a new class 'Exception' which derives from 'Throwable'.
* Created a new class 'Error' which derives from 'Throwable'.
* Moved core modules from the top level into a package named 'core'.
* Added onHiddenFuncError() routine to pass hidden function error handling from the runtime to core.exception.
* Renamed _d_getErrno to getErrno and moved it to src/common/stdc.  The idea is that druntime may eventually generate a lib for the stdc modules, and this definition is necessary.  The comparable function will have to be removed from Phobos as well.
* Moved the GC code into a package named 'gc', which is in accordance with the spec defined for druntime library integration (as yet unpublished).

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@29 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agofix support for file/line
walter [Mon, 13 Oct 2008 21:39:33 +0000 (21:39 +0000)]
fix support for file/line

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@28 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoFixed import path override for library build on posix.
sean [Mon, 13 Oct 2008 19:55:46 +0000 (19:55 +0000)]
Fixed import path override for library build on posix.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@27 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoFixed a potential issue with building druntime. src/core will now be a part of the...
sean [Mon, 13 Oct 2008 19:44:27 +0000 (19:44 +0000)]
Fixed a potential issue with building druntime.  src/core will now be a part of the import path.  This is necessary if any of the core modules import one another--not the case now, but better safe than sorry.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@26 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoFixed a build error on Linux.
sean [Mon, 13 Oct 2008 19:38:22 +0000 (19:38 +0000)]
Fixed a build error on Linux.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@25 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoadd hidden function error support
walter [Mon, 13 Oct 2008 17:19:53 +0000 (17:19 +0000)]
add hidden function error support

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@24 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoupdate readme.txt
walter [Mon, 13 Oct 2008 00:47:05 +0000 (00:47 +0000)]
update readme.txt

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@23 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agorestored Object.factory()
walter [Sun, 12 Oct 2008 20:03:44 +0000 (20:03 +0000)]
restored Object.factory()

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@22 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agorenamed output library
walter [Sun, 12 Oct 2008 19:53:43 +0000 (19:53 +0000)]
renamed output library

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@21 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agofix it so it compiles
walter [Sun, 12 Oct 2008 01:53:37 +0000 (01:53 +0000)]
fix it so it compiles

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@20 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoAdded _d_delarray_t and _d_allocmemory.
sean [Fri, 10 Oct 2008 21:49:12 +0000 (21:49 +0000)]
Added _d_delarray_t and _d_allocmemory.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@19 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoAdded Error alias for Exception as a placeholder until the exception hierarchy can...
sean [Fri, 10 Oct 2008 18:59:32 +0000 (18:59 +0000)]
Added Error alias for Exception as a placeholder until the exception hierarchy can be finalized.  This should facilitate a batch update later on.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@18 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoMerged in changes from Phobos SVN.
sean [Fri, 10 Oct 2008 18:57:31 +0000 (18:57 +0000)]
Merged in changes from Phobos SVN.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@17 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoFixed eol-style for all source files. This closes #1
sean [Wed, 8 Oct 2008 05:49:34 +0000 (05:49 +0000)]
Fixed eol-style for all source files.  This closes #1

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@16 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoFixed a few mistakes regarding invariance, etc, between D1 and D2.
sean [Mon, 6 Oct 2008 19:41:05 +0000 (19:41 +0000)]
Fixed a few mistakes regarding invariance, etc, between D1 and D2.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@15 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoFixed a few mistakes regarding invariance, etc, between D1 and D2.
sean [Mon, 6 Oct 2008 19:39:07 +0000 (19:39 +0000)]
Fixed a few mistakes regarding invariance, etc, between D1 and D2.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@14 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoApplied freebsd stdc changes from Tango.
sean [Sat, 4 Oct 2008 00:38:57 +0000 (00:38 +0000)]
Applied freebsd stdc changes from Tango.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@13 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoAdded "invariant" module to fix link issues because DMD generates references to an...
sean [Tue, 30 Sep 2008 19:50:33 +0000 (19:50 +0000)]
Added "invariant" module to fix link issues because DMD generates references to an extern (D) function it contains.  Hopefully, this is only temporary and the routine will be made extern (C), thus allowing the use of "invariant_" instead.  The rationale being that it's not a good thing to have modules with the same name as reserved words.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@12 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoRemoved an errant lib file.
sean [Tue, 23 Sep 2008 03:30:11 +0000 (03:30 +0000)]
Removed an errant lib file.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@11 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoApplied all D2 changes to trunk. It should now be a fully functional D2 runtime.
sean [Tue, 23 Sep 2008 03:29:18 +0000 (03:29 +0000)]
Applied all D2 changes to trunk.  It should now be a fully functional D2 runtime.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@10 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoFinished flattening D1/D2 differences. Except for one or two lines, all differences...
sean [Tue, 23 Sep 2008 03:21:04 +0000 (03:21 +0000)]
Finished flattening D1/D2 differences.  Except for one or two lines, all differences between the D1 and D2 runtimes is now strictly additive.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@7 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoThe next batch of updates towards D2 support. The lib should be pretty close to...
sean [Sat, 20 Sep 2008 02:53:43 +0000 (02:53 +0000)]
The next batch of updates towards D2 support.  The lib should be pretty close to compiling with D2 now, and the D2 runtime changes have been reduced to a compact set of pure additions (few/no alterations).  Next update will be aimed at finishing the process of getting the lib to build with -w set under D2, which will mean adding "override" where necessary to the compiler runtime as well as figuring out how to deal with the use of 'volatile' in the thread code.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@6 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoFirst commit of the D Runtime Project. This includes a fully functional runtime...
sean [Fri, 19 Sep 2008 02:35:12 +0000 (02:35 +0000)]
First commit of the D Runtime Project.  This includes a fully functional runtime for DMD/D1.  Support for DMD/D2 is next on the agenda.

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@5 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

16 years agoinitial repository setup
root [Wed, 10 Sep 2008 02:25:56 +0000 (02:25 +0000)]
initial repository setup

git-svn-id: http://svn.dsource.org/projects/druntime/trunk@3 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f