[Issue 1013] New: Invalid code generated for naked functions with (u)long arguments
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 28 23:50:41 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1013
Summary: Invalid code generated for naked functions with (u)long
arguments
Product: DGCC aka GDC
Version: unspecified
Platform: PC
URL: http://minah.aziz.am/Programming/d-naked-bug.html
OS/Version: Linux
Status: NEW
Keywords: wrong-code
Severity: normal
Priority: P2
Component: glue layer
AssignedTo: dvdfrdmn at users.sf.net
ReportedBy: madou at madou.org
On x86 systems, gdc creates nonsensical code at the beginning of naked
functions taking long or ulong arguments. It reserves space on the stack, and
copies any long arguments to that space, thus defeating assembler code that
would work in any function without long arguments. See URL for an example.
--
More information about the D.gnu
mailing list