Christian Kamm
42006b2d9c
Add testcase for with(symbol) fix.
2008-12-07 16:06:10 +01:00
Christian Kamm
b83afa9eca
Fix with(symbol) statement.
2008-12-07 16:02:43 +01:00
Christian Kamm
fe71199772
Only run unittests contained directly in the module.
2008-12-07 14:12:39 +01:00
elrood
0085c9409c
.. and fixed the install target (hopefully)
2008-12-05 22:01:50 +01:00
elrood
5321c34637
added install target and possibility to pre- and suffix ldc's executable name to cmake scripts
2008-12-04 22:09:24 +01:00
Tomas Lindquist Olsen
5ae0f3a934
... and fixed that test case :P ...
2008-12-04 16:13:40 +01:00
Tomas Lindquist Olsen
a5616feceb
Added testcase for fix in rev [825]
2008-12-04 16:12:47 +01:00
Tomas Lindquist Olsen
2532856f1c
Commented some logging that could be '''very''' long, cuts -vv output size of a gtkd gl sample down 1.2GB by 3/4.
...
Fixed wrong pointer type for multidimension "deep" slicing.
2008-12-04 16:11:09 +01:00
Tomas Lindquist Olsen
a012859bae
Fixed problem with moduleinfo thinking it imports itself, causing assertion failure, fixes #138
2008-12-04 14:36:11 +01:00
Tomas Lindquist Olsen
3111ff1fc4
Fixed non-static struct initializers.
2008-12-03 01:40:28 +01:00
Tomas Lindquist Olsen
6997919627
Removed PAGESIZE part of Tango patch, it works for me when the check is removed.
...
Updated Tango patch to latest Tango revision.
2008-12-02 02:45:31 +01:00
Tomas Lindquist Olsen
879bed7df6
Added CMake option to disable generation of ClassInfo.offTi arrays, defaults to OFF.
2008-12-02 01:44:17 +01:00
Tomas Lindquist Olsen
91a2c257b0
Implemented allocating storage for a slice if its address is taken, fixes #115
2008-12-02 01:20:22 +01:00
Tomas Lindquist Olsen
c62b31a357
Fixed taking address of global static array element as constant expression.
2008-12-02 01:07:22 +01:00
Christian Kamm
5657e53c49
Fix fibers in tango patch
2008-12-01 20:26:32 +01:00
Tomas Lindquist Olsen
e5d688834d
Fixed printf formatting flag problem on mingw (missed one)
2008-12-01 19:51:45 +01:00
Tomas Lindquist Olsen
2788a2a0f1
Made ClassInfo.interfaces generation consistent with DMD, fixes #134
...
Removed unneeded includes from dmd/attrib.c
2008-12-01 18:34:02 +01:00
Tomas Lindquist Olsen
649b860d2b
Added error when gcc cannot be found.
2008-12-01 15:21:33 +01:00
Tomas Lindquist Olsen
d3ae488730
Added error when invoking gcc fails
2008-12-01 15:18:22 +01:00
Tomas Lindquist Olsen
cd8f12ed35
Forgot to add AnonDeclaration::toObjFile for D2
2008-12-01 14:54:06 +01:00
Tomas Lindquist Olsen
8ee1fbca26
Fixed a nasty bug with how interface vtables for class initializers were output, causing some class fields to be skipped.
...
Fixed a problem in definition of ClassInfos where an invalid constant was potentially used. This needs to be looked into proper as it might happen again in the future.
2008-12-01 04:37:54 +01:00
Tomas Lindquist Olsen
e0972b0793
Fixed ModuleInfo generation to no longer use the ModuleInfo class' default initializer for types/defaults, it's unsafe as initializers don't necesarily match the "formal" type. There might be explicit padding.
...
Changed -g switch to emit DW_LANG_D debug info, make demangling work with a patched GDB, still more work to do for full support of D's Dwarf extensions.
Added getNullValue helper method.
2008-12-01 02:10:16 +01:00
Tomas Lindquist Olsen
8553fc9aa0
Fixed ModuleInfo patch check, failed on 64bit
2008-11-30 20:41:17 +01:00
Tomas Lindquist Olsen
577237e073
Changed some hardcoded offset/alignment for classes in DMD, broke offsets for 64bits.
...
Changed ClassInfo generation to no longer access the default initializer of ClassInfo, fixes problems with index mismatch.
2008-11-30 20:22:09 +01:00
elrood
81eded2ece
when building the runtime pass -fPIC for shared libs and -disable-invariants for gc
2008-11-30 19:19:39 +01:00
Christian Kamm
c451f100f5
Add interface minitest, rework s.d.
2008-11-30 11:54:18 +01:00
Christian Kamm
f14d97d786
Move storage of final vtbl from BaseClass to IrInterface: BaseClass instances are shared!
...
Always use the target's irstruct interfaceMap when building the const initializer.
Tango helloworld works again.
2008-11-30 11:25:40 +01:00
Tomas Lindquist Olsen
dcf3c96f65
Ensure all logging of llvm values/types is only called when -vv is passed
2008-11-29 23:39:04 +01:00
Tomas Lindquist Olsen
d522fef71f
Removed use of DMD's toPrettyChars function for providing llvm value names.
2008-11-29 22:37:36 +01:00
Tomas Lindquist Olsen
5d1366d27f
Removed DtoConstFieldInitializer, it's no longer needed and was buggy.
2008-11-29 21:26:50 +01:00
Tomas Lindquist Olsen
4da2cf066e
Fixed some problems with the addZeros forward declarations having type mismatches.
2008-11-29 20:57:52 +01:00
Tomas Lindquist Olsen
3a2e29d434
merge
2008-11-29 18:28:32 +01:00
Tomas Lindquist Olsen
13e0399ab0
Changed aggregate field initializers to be created lazily, fixes problem with static void arrays in aggregates.
2008-11-29 18:28:17 +01:00
Tomas Lindquist Olsen
f46f865375
Removed KDevelop3 project files, CMake can generate them just fine!
...
Fixed function literals in static initializers.
Changed alignment of delegates from 2*PTRSIZE to just PTRSIZE.
Changed errors to go to stderr instead of stdout.
Fairly major rewriting of struct/union/class handling, STILL A BIT BUGGY !!!
2008-11-29 21:25:43 +01:00
Christian Kamm
497c7e87df
Do put zero in vtable initializer for function without body in abstract class.
2008-11-29 17:13:38 +01:00
Christian Kamm
ca91c52c5a
Use toParent instead of toParent2 to determine whether inside a function body.
2008-11-29 17:06:36 +01:00
Christian Kamm
049e24cef8
Error instead of assert when trying to build a default initializer for void[n].
2008-11-29 12:28:10 +01:00
Christian Kamm
1b16f2234e
Adjust Tango patch for Tango rev 4134.
2008-11-28 23:29:00 +01:00
Christian Kamm
cdbc4f84d2
Fix warnings on x86-64. By fvbommel.
2008-11-28 21:24:08 +01:00
Christian Kamm
cc6bde46f9
Attempt at fixing #126 .
2008-11-27 18:31:09 +01:00
Christian Kamm
18e51d1c3f
Automated merge with http://hg.dsource.org/projects/ldc
2008-11-27 17:43:20 +01:00
Christian Kamm
fed06d6de8
Apply Elrood's CMake patch from #132 .
2008-11-27 17:41:49 +01:00
Tomas Lindquist Olsen
6ed62218db
Updated tango patch, the object.di changes are now in tango trunk
2008-11-27 02:16:55 +01:00
Christian Kamm
910280a3e8
Use LLVM package string for llvm version info in D2 frontend too.
2008-11-26 19:44:06 +01:00
Christian Kamm
d260cab7e9
Print llvm package string in version header. See #128 .
2008-11-26 19:40:11 +01:00
Christian Kamm
5b2a380680
Fix StdCall selection.
2008-11-25 17:15:02 +01:00
Christian Kamm
b905f290ba
Add missing CMakeList, apply conf changes to dmd2 frontend.
2008-11-24 20:02:59 +01:00
Christian Kamm
375b6cd888
Apply Elrood's CMake changes from #124 . Thanks a lot!
2008-11-24 18:17:58 +01:00
Christian Kamm
0120dd767c
Fix float->bool, #130 . Thanks fvbommel.
2008-11-23 21:57:11 +01:00
Christian Kamm
ed8199384d
hgignore updates for CMake.
2008-11-22 21:11:26 +01:00