Commit Graph

585 Commits

Author SHA1 Message Date
Christian Kamm
4e0b6b4bf0 Make sure functions containing inline asm are never inlined to avoid
duplicated labels.
2008-09-08 20:38:55 +02:00
Tomas Lindquist Olsen
f411df11e3 Fixed choosing default target machine without needing to link in targets. 2008-09-07 17:44:25 -07:00
Christian Kamm
88f9ca75ad Don't link in any target code, was unnecessary. 2008-09-07 16:16:10 +02:00
Christian Kamm
640f21c493 Only link default native backend by default.
Use the new option --add-backend to link in additional targets.
2008-09-07 15:30:34 +02:00
Christian Kamm
d44f21687e Restructure path handling a bit. Fixes #66. 2008-09-06 12:27:27 +02:00
Christian Kamm
2f2987371f Basic support for runtime in shared library.
Needs to be built with runtime/build-sharedlibs.sh and activated manually by
providing -defaultlib=llvmdc-runtime-shared -defaultlib=tango-cc-tango-shared
-defaultlib=tango-gc-basic-shared on llvmdc call at the moment.

To support D shared libraries in non-D code, we need to remove the main() from
libllvmdc-runtime-shared.
2008-09-05 23:02:18 +02:00
Christian Kamm
a27b5c5684 Fix (?) rt_stackBottom for Windows. 2008-09-04 20:58:25 +02:00
Christian Kamm
e3691ffa19 Merge Dynamic_Ranges and Data_Proc_Maps from GDC runtime. 2008-09-04 18:57:03 +02:00
Christian Kamm
dde98f16f9 Add test for GC scanning data segment. 2008-09-04 17:59:01 +02:00
Tomas Lindquist Olsen
3a8125b7c8 Pointer comparisons were being treated as signed integers. Now they are handled as unsigned integers. 2008-09-04 17:24:10 +02:00
Tomas Lindquist Olsen
ee29f29659 Fixed pointer comparisons with differing types. 2008-09-04 17:17:40 +02:00
Tomas Lindquist Olsen
6bcf3c5126 merge 2008-09-04 17:05:51 +02:00
Tomas Lindquist Olsen
ccfa5218c3 merge 2008-09-04 17:05:35 +02:00
Christian Kamm
7e39328af4 Typo in runtime makefile. 2008-09-04 16:14:07 +02:00
Christian Kamm
3779b7c7d1 Split runtime into three parts again. 2008-09-03 22:07:04 +02:00
Tomas Lindquist Olsen
f3b3db7fa9 Changed all '#if linux || __APPLE__' to '#if POSIX' so we can support other platforms too, thanx for the suggestion anders. 2008-09-02 23:10:12 +02:00
Christian Kamm
d6e7a65b69 Automated merge with http://hg.dsource.org/projects/llvmdc 2008-09-02 19:14:37 +02:00
Christian Kamm
877da230a3 Get rid of runtime path. Allow defaultlib and debuglib switches to be given multiple times. 2008-09-02 19:14:25 +02:00
Tomas Lindquist Olsen
9f0633a7dd Added some sanity checks for target detection. 2008-08-31 18:51:14 +02:00
Tomas Lindquist Olsen
1565f00f85 Fixed toobj.cpp to compile with latest LLVM, seems a method overload was removed recently. 2008-08-31 18:38:16 +02:00
Tomas Lindquist Olsen
c44c04e004 merge 2008-08-31 17:29:52 +02:00
Christian Kamm
6916319f9f Automated merge with http://hg.dsource.org/projects/llvmdc 2008-08-30 10:31:04 +02:00
Christian Kamm
7963800bd6 Introducing template instantiation traces for static asserts and errors within templates. 2008-08-30 10:30:57 +02:00
Tomas Lindquist Olsen
9310134dfc Ok. last fix was wrong, PTHREAD_MUTEX_RECURSIVE_NP is only valid on linux... 2008-08-29 16:59:12 +02:00
Tomas Lindquist Olsen
6b423621d2 The latest patch broke things for non OS X 2008-08-29 16:35:46 +02:00
Christian Kamm
01b6538f6f Make rt_stackBottom return the right fixed value for darwin. 2008-08-29 15:01:48 +02:00
Christian Kamm
3e5a20cf6b Merge rest of patch from #72. 2008-08-29 14:48:40 +02:00
Christian Kamm
ba21d60706 Enable unwind code on darwin. 2008-08-29 14:16:18 +02:00
Christian Kamm
8efe20f5f9 Link in pthread, dl and m on OS X. 2008-08-29 14:11:20 +02:00
Christian Kamm
0ccd7270fb Add .DS_Store to .hgignore 2008-08-29 14:10:19 +02:00
Christian Kamm
b2b013d929 Always call finalizer for stack classes. Checking for the number of
destructors of the class type is not sufficient: we may be holding a derived
class with a destructor.

Fixes: run/auto_07
2008-08-28 20:17:21 +02:00
Christian Kamm
0f92afc5b9 Do not assert on non-existing supposed globals. (see nocompile/union_12,14) 2008-08-28 20:15:36 +02:00
Christian Kamm
7b07ddcbd8 Fix findregressions and makewebstatistics to adhere to our definition of
Improvement and Regression.
2008-08-28 08:37:47 +02:00
Tomas Lindquist Olsen
24de69fa76 removed use on removed switches in gc makefile 2008-08-26 21:06:12 +02:00
Tomas Lindquist Olsen
c65cd45966 Removed unimplemented switches. 2008-08-26 21:02:25 +02:00
Christian Kamm
e4a211838f Disable invariants for the gc. Makes collections not take ages again.
'Fixes' associative_array_19 by reducing runtime from a minute to a second.
2008-08-26 20:50:42 +02:00
Christian Kamm
2deaf9f238 Do not set Dversion to 1. Dversion = 2 means we use post 1.000 additions to D1. 2008-08-26 20:49:01 +02:00
Christian Kamm
54871f4ea7 Add -enable/-disable for specific features.
Allow setting target os with -t.
Clean up the help message.
2008-08-26 19:31:47 +02:00
Tomas Lindquist Olsen
d78677961b Removed D_InlineAsm and D_InlineAsm_X86 versions.
Made use of 'naked' in inline asm an error.
2008-08-25 19:36:27 +02:00
Christian Kamm
09532a4242 Automated merge with http://hg.dsource.org/projects/llvmdc 2008-08-24 18:25:45 +02:00
Christian Kamm
abee68ea54 Disable boehm gc by default. Use --enable-boehm-gc on premake to enable. 2008-08-24 18:25:34 +02:00
Tomas Lindquist Olsen
fc08ace210 missing || __APPLE__ in monitor.c 2008-08-24 18:11:08 +02:00
Tomas Lindquist Olsen
6cb325e2fa Missing 'break' in osx code path. 2008-08-24 17:57:53 +02:00
Tomas Lindquist Olsen
6cd4eda726 Fixed some osx mistakes. 2008-08-24 17:19:31 +02:00
Tomas Lindquist Olsen
f3269bf51e Gah, missed something still. I'll test properly next time ;) 2008-08-24 17:13:40 +02:00
Tomas Lindquist Olsen
6d2011394e Made a small mistake in the Tango patch 2008-08-24 17:11:02 +02:00
Christian Kamm
f183d7ce1d Automated merge with http://hg.dsource.org/projects/llvmdc 2008-08-24 17:02:03 +02:00
Christian Kamm
4e5cc8380f Don't use -u in build.sh; not all cp implementations support it. 2008-08-24 17:01:40 +02:00
Christian Kamm
8d95fc7b3e Add isnan for __APPLE__ and darwin version ident for OSX. 2008-08-24 16:59:08 +02:00
Jacob Carlborg
81de0c4b23 Add __APPLE__ to most #if linux compile time switches. 2008-08-24 16:54:06 +02:00