[Issue 1013] Invalid code generated for naked functions with (u)long arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 5 00:18:04 PST 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1013





------- Comment #1 from madou at madou.org  2007-03-05 02:17 -------
The problem appears to be that the type information records for (u)long
arguments call for 64bit alignment even on architectures that do not have 64bit
memory access instructions (such as x86). I haven't had the chance to find out
whether the gcc "tree" structures that contain the relevant data are being
produced by gdc glue code, or whether they come from the gcc middle layer or
backend. David?

IMHO this should be fixed for non-naked functions as well, since copying around
64bit arguments even on architectures that do not benefit from 64bit alignment,
creates useless overhead.


-- 



More information about the D.gnu mailing list