Skip to content

Instantly share code, notes, and snippets.

View dnadlinger's full-sized avatar

David Nadlinger dnadlinger

View GitHub Profile
mov rbx, rdi
data16
lea rdi, qword ptr [rip + _D4core6thread6Thread7sm_thisC4core6thread6Thread@TLSGD]
data16
data16
rex64
/home/aule/Build/Source/ldc/runtime/druntime/src/object_.d(202): Error: class object.TypeInfo base Object is forward referenced
/home/aule/Build/Source/ldc/runtime/druntime/src/object_.d(204): Error: function object.TypeInfo.toString does not override any function, did you mean to override 'object.Object.toString'?
0 ldc2 0x000000000149a442 llvm::sys::PrintStackTrace(_IO_FILE*) + 50
1 ldc2 0x0000000001499e9c
2 libpthread.so.0 0x00007f5ec23344b0
3 ldc2 0x0000000000687bfb FuncDeclaration::semantic(Scope*) + 6347
4 ldc2 0x000000000067d175 AttribDeclaration::semanticNewSc(Scope*, unsigned long, LINK, PROT, int, unsigned int) + 197
5 ldc2 0x000000000067d2af StorageClassDeclaration::semantic(Scope*) + 175
6 ldc2 0x0000000000666da2 ClassDeclaration::semantic(Scope*) + 3010
7 ldc2 0x000000000066658b ClassDeclaration::semantic(Scope*) + 939
It was created by configure, which was
generated by GNU Autoconf 2.64. Invocation command line was
$ ../gcc-4.9.0/configure --disable-bootstrap --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-multilib --disable-nls --enable-checking=release --enable-languages=d --prefix=/home/dash/work/gdc_main'
module thrift_vibe;
import std.range;
import thrift.codegen.base : isService;
import thrift.protocol.base;
import thrift.protocol.processor;
import thrift.transport.base;
import thrift.util.cancellation;
import vibe.core.log;
import vibe.core.net;
function reverse_voltages(data)
result = Array(Float64, size(data))
result[:, 1] = data[:, 1]
len = size(data)[2]
for i in 2:len
result[:, len + 2 - i] = data[:, i]
end
result
end
/**
* Checks if the peer is authorized after the SSL handshake has been
* completed on the given connection and throws an TSSLException if not.
*
* Params:
* ssl = The SSL connection to check.
* accessManager = The access manager to check the peer against.
* peerAddress = The (IP) address of the peer.
* hostName = The host name of the peer.
*/
aule@gustav:/Build/Work/ldc2-llvm3.4-release[130]$ ctest -j1 --output-on-failure
Test project /Build/Work/ldc2-llvm3.4-release
Start 1: druntime_src_core_math_debug_build
1/1124 Test #1: druntime_src_core_math_debug_build ....................... Passed 0.97 sec
Start 2: druntime_src_core_math_debug_run
2/1124 Test #2: druntime_src_core_math_debug_run ......................... Passed 0.01 sec
Start 3: druntime_src_core_math_release_build
3/1124 Test #3: druntime_src_core_math_release_build ..................... Passed 0.67 sec
Start 4: druntime_src_core_math_release_run
4/1124 Test #4: druntime_src_core_math_release_run ....................... Passed 0.01 sec
struct Node(T) {
T val;
Node!T[] children;
}
import std.range;
ForwardRange!T flatten(T)(Node!T root) {
import std.algorithm;
return only(root.val).chain(map!flatten(root.children).joiner).inputRangeObject;
}
diff --git a/src/ldc/arm_unwind.c b/src/ldc/arm_unwind.c
index f1ab5db..a847e2a 100644
--- a/src/ldc/arm_unwind.c
+++ b/src/ldc/arm_unwind.c
@@ -24,6 +24,11 @@ void _d_eh_SetIP(_Unwind_Context *context, _Unwind_Word new_value)
_Unwind_SetIP(context, new_value);
}
+_Unwind_Word _d_eh_GetGR(_Unwind_Context *context, int index)
+{
// _D4test6assignFKG3iiiZv:
// movl %esi, (%rdx)
// movl %esi, 4(%rdx)
// movl %edi, 8(%rdx)
// ret
void assign(ref int[3] a, int b, int c) {
a[] = [b, b, c];
}