Files
ldc/gen
Frits van Bommel 59f9b35cea Count the sret register as well when keeping track of how many integer registers
are available for extern(C) functions on x86-64.
Interestingly, llvm-g++ seems to have a very similar bug: http://llvm.org/pr4242
(So this breaks ABI-compatibility with llvm-gcc for this corner case, but gains
it with gcc...)

To clarify, this is about code like this:
{{{
struct S { void*[3] data; }
struct T { void*[2] data; }

// The T should be passed in memory, and p in the last int register.
extern(C) S fail(int, int, int, int, T t, void* p) {
    S s;
    s.data[0] = t.data[0];
    s.data[1] = t.data[1];
    s.data[2] = p;
    return s;
}
}}}
which should generate code functionally equivalent to this:
{{{
extern(C) S* succeed(S* s, int, int, int, int, T t, void* p) {
    s.data[0] = t.data[0];
    s.data[1] = t.data[1];
    s.data[2] = p;
    return s;
}
}}}
(with the same definitions for S and T)
2009-05-22 13:17:06 +02:00
..
2009-05-16 13:50:44 +02:00
2008-10-06 22:54:08 +02:00
2009-04-15 20:06:25 +02:00
2009-04-15 20:06:25 +02:00
2008-10-06 22:54:08 +02:00
2009-03-12 20:37:27 +01:00
2009-04-12 12:52:01 +02:00
2009-05-07 15:33:06 +02:00
2009-05-07 15:33:06 +02:00
2009-03-29 19:19:32 +02:00
2009-05-17 16:31:23 +02:00
2009-05-17 04:41:10 +02:00
2009-05-17 04:41:10 +02:00
2009-05-02 11:58:50 +02:00
2009-04-25 18:26:54 +02:00