[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/codegen cg_decls.tc,1.42,1.43
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/codegen cg_decls.tc,1.42,1.43 |
Date: |
Mon, 25 Nov 2002 23:18:13 -0500 |
Update of /cvsroot/dotgnu-pnet/pnet/codegen
In directory subversions:/tmp/cvs-serv12467/codegen
Modified Files:
cg_decls.tc
Log Message:
ILNode_ClassDefn: output a ".size 1" declaration in empty "struct" types
to match C# requirements that a value type can never be zero-sized.
Index: cg_decls.tc
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/codegen/cg_decls.tc,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -r1.42 -r1.43
*** cg_decls.tc 20 Sep 2002 01:05:52 -0000 1.42
--- cg_decls.tc 26 Nov 2002 04:18:11 -0000 1.43
***************
*** 169,172 ****
--- 169,179 ----
}
}
+ else if(!ILClassNextMemberByKind
+ (classInfo, 0,
IL_META_MEMBERKIND_FIELD) &&
+ ILClassIsValueType(classInfo))
+ {
+ /* Make sure that "struct"'s are never zero-sized */
+ fprintf(info->asmOutput, ".size 1\n");
+ }
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/codegen cg_decls.tc,1.42,1.43,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System Boolean.cs,1.6,1.7 Byte.cs,1.7,1.8 Char.cs,1.5,1.6 DateTime.cs,1.15,1.16 Double.cs,1.7,1.8 Int16.cs,1.8,1.9 Int32.cs,1.8,1.9 Int64.cs,1.7,1.8 IntPtr.cs,1.6,1.7 RuntimeArgumentHandle.cs,1.2,1.3 RuntimeFieldHandle.cs,1.3,1.4 RuntimeMethodHandle.cs,1.5,1.6 RuntimeTypeHandle.cs,1.3,1.4 SByte.cs,1.8,1.9 Single.cs,1.7,1.8 TimeSpan.cs,1.6,1.7 UInt16.cs,1.7,1.8 UInt32.cs,1.7,1.8 UInt64.cs,1.7,1.8 UIntPtr.cs,1.7,1.8
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnet ChangeLog,1.1895,1.1896
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System Boolean.cs,1.6,1.7 Byte.cs,1.7,1.8 Char.cs,1.5,1.6 DateTime.cs,1.15,1.16 Double.cs,1.7,1.8 Int16.cs,1.8,1.9 Int32.cs,1.8,1.9 Int64.cs,1.7,1.8 IntPtr.cs,1.6,1.7 RuntimeArgumentHandle.cs,1.2,1.3 RuntimeFieldHandle.cs,1.3,1.4 RuntimeMethodHandle.cs,1.5,1.6 RuntimeTypeHandle.cs,1.3,1.4 SByte.cs,1.8,1.9 Single.cs,1.7,1.8 TimeSpan.cs,1.6,1.7 UInt16.cs,1.7,1.8 UInt32.cs,1.7,1.8 UInt64.cs,1.7,1.8 UIntPtr.cs,1.7,1.8
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnet ChangeLog,1.1895,1.1896
- Index(es):