[Mono-bugs] [Bug 472845] Need proper support for __arglist keyword in compiler and P/Invoke

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Feb 5 08:53:47 EST 2009


https://bugzilla.novell.com/show_bug.cgi?id=472845

User msafar at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=472845#c1


Marek Safar <msafar at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |msafar at novell.com




--- Comment #1 from Marek Safar <msafar at novell.com>  2009-02-05 06:53:46 MST ---
The __arglist issue seems to be SRE bug.

When disassembling Main method here is what Mono SRE produces

    // method line 5
    .method private static  hidebysig 
           default void Main (string[] args)  cil managed 
    {
        // Method begins at RVA 0x2138
    .entrypoint
    // Code size 9 (0x9)
    .maxstack 8
    IL_0000:  ldc.i4.1 
    IL_0001:  ldc.i4.2 
    IL_0002:  ldc.i4.3 
    IL_0003:  call vararg void class NObjective.Program::printf(..., int32,
int32, int32)
    IL_0008:  ret 
    } // end of method Program::Main


but when using .NET SRE gmcs correctly emits

    IL_0003:  call       vararg void NObjective.Program::ArglistMethod(...,
                                                                       int32,
                                                                       int32,
                                                                       int32)

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list