Re: testsuite: optimization dependent test

2013-04-01 Thread Kagamin
On Friday, 29 March 2013 at 13:24:42 UTC, Iain Buclaw wrote: https://github.com/D-Programming-Language/dmd/pull/1809 lol, put imports after test3.

Re: testsuite: optimization dependent test

2013-03-29 Thread Iain Buclaw
On 28 March 2013 04:47, Kagamin wrote: > core.memory.GC.addrOf(dg.ptr); > Done and already merged in. https://github.com/D-Programming-Language/dmd/pull/1809 Regards -- Iain Buclaw *(p < e ? p++ : p) = (c & 0x0f) + '0';

Re: testsuite: optimization dependent test

2013-03-27 Thread Kagamin
core.memory.GC.addrOf(dg.ptr);

Re: testsuite: optimization dependent test

2013-03-27 Thread Kagamin
Are you trying to get stack top? void test(scope void delegate() dg) { int[2] top; void* p=top.ptr; assert(p < dg.ptr); assert(dg.ptr !is null); //also check that ptr is not in heap assert(gc_addrOf(dg.ptr) is null); }

Re: testsuite: optimization dependent test

2013-03-26 Thread Iain Buclaw
On 26 March 2013 18:30, Johannes Pfau wrote: > Am Mon, 25 Mar 2013 19:26:10 + > schrieb Iain Buclaw : > > > On 25 March 2013 18:36, Johannes Pfau wrote: > > > > > In runnable/test42.d test7290 checks if a scope delegate is really > > > allocated on the stack. To verify this it obtains the EB

Re: testsuite: optimization dependent test

2013-03-26 Thread Johannes Pfau
Am Mon, 25 Mar 2013 19:26:10 + schrieb Iain Buclaw : > On 25 March 2013 18:36, Johannes Pfau wrote: > > > In runnable/test42.d test7290 checks if a scope delegate is really > > allocated on the stack. To verify this it obtains the EBP pointer > > and compares that to the delegates .ptr. > >

Re: testsuite: optimization dependent test

2013-03-25 Thread Iain Buclaw
On 25 March 2013 18:36, Johannes Pfau wrote: > In runnable/test42.d test7290 checks if a scope delegate is really > allocated on the stack. To verify this it obtains the EBP pointer and > compares that to the delegates .ptr. > > The problem is that as soon as we enable optimization gcc no > longe

testsuite: optimization dependent test

2013-03-25 Thread Johannes Pfau
In runnable/test42.d test7290 checks if a scope delegate is really allocated on the stack. To verify this it obtains the EBP pointer and compares that to the delegates .ptr. The problem is that as soon as we enable optimization gcc no longer adjusts the EBP pointer when calling the helper function