https://issues.dlang.org/show_bug.cgi?id=6758
Andrei Alexandrescu changed:
What|Removed |Added
Version|D1 & D2 |D2
--
http://d.puremagic.com/issues/show_bug.cgi?id=6758
Walter Bright changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=6758
--- Comment #13 from github-bugzi...@puremagic.com 2012-04-18 00:17:24 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/f87c43317a97b75c69639499a6445b82415739a
/6b5485754868204358b1160b1a9515953d0ed6bc
fix Issue 6758 - std.c.stdarg problems with 8 or more integer arguments on
x86_64
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
/71c0d29d66c3fe946e1a714eef8098e6ad3dd373
fix Issue 6758 - std.c.stdarg problems with 8 or more integer arguments on
x86_64
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
http://d.puremagic.com/issues/show_bug.cgi?id=6758
--- Comment #10 from Don 2012-04-17 06:33:40 PDT ---
The problem is worse than I thought.
cod1.c, line 2450, cdfunc()
puts an array parameter into registers, instead of the stack, if there are
enough free registers.
Nothing that fits into a r
http://d.puremagic.com/issues/show_bug.cgi?id=6758
Don changed:
What|Removed |Added
CC||mathias.baumann@sociomantic
|
http://d.puremagic.com/issues/show_bug.cgi?id=6758
Don changed:
What|Removed |Added
Keywords||wrong-code
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=6758
Nick Sabalausky changed:
What|Removed |Added
CC||cbkbbej...@mailinator.com
--- Commen
http://d.puremagic.com/issues/show_bug.cgi?id=6758
--- Comment #6 from Graham 2011-10-04 16:29:52 PDT
---
Perhaps somebody can tell me if D-style variadic functions really should be
using the __va_argsave structure on x86_64 code or should that only be
applicable to C-style variadic functions
http://d.puremagic.com/issues/show_bug.cgi?id=6758
--- Comment #5 from Graham 2011-10-02 19:36:59 PDT
---
As suspected that change would cause other argument types to no longer work,
e.g. passing structures by value. It looks like a proper fix will require
dynamic arrays to be treated separate
http://d.puremagic.com/issues/show_bug.cgi?id=6758
--- Comment #4 from Graham 2011-10-02 15:59:44 PDT
---
Changing every .alignof to .sizeof in the stdarg module appears to be
sufficient to get this code to work in both D1 and D2. Whether this change is
strictly correct for all cases I do not
http://d.puremagic.com/issues/show_bug.cgi?id=6758
--- Comment #3 from Graham 2011-10-02 11:17:04 PDT
---
Doing a dump of the __va_argsave structure this looks like an alignment
issue. The compiler is aligning string arguments on 16 byte multiples,
so there is an 8 byte gap between the 8 (int)
http://d.puremagic.com/issues/show_bug.cgi?id=6758
--- Comment #2 from Graham 2011-10-02 05:23:12 PDT
---
The quantity 8 (number of int or uint arguments) is probably not particularly
significant. I have also seen seg faults on code with as few as 6 integer
arguments mixed with strings and flo
http://d.puremagic.com/issues/show_bug.cgi?id=6758
--- Comment #1 from Graham 2011-10-02 04:13:58 PDT
---
Created an attachment (id=1030)
Example code for this problem
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: -
15 matches
Mail list logo