diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-07-12 00:01:09 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-07-12 00:01:09 +0000 |
commit | 2fa39ad859e59a5ad5796e522a4842717b2f6e0c (patch) | |
tree | 783acf11ed4625d6499f731501d984f25fa103fc /libgo/runtime/malloc.goc | |
parent | ca76ae5c35f58f0ea40f656d3e555f2c740cf4ec (diff) | |
download | gcc-2fa39ad859e59a5ad5796e522a4842717b2f6e0c.zip gcc-2fa39ad859e59a5ad5796e522a4842717b2f6e0c.tar.gz gcc-2fa39ad859e59a5ad5796e522a4842717b2f6e0c.tar.bz2 |
runtime: Merge master revision 19185.
This revision renames several files in the runtime directory
from .c to .goc.
From-SVN: r212472
Diffstat (limited to 'libgo/runtime/malloc.goc')
-rw-r--r-- | libgo/runtime/malloc.goc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libgo/runtime/malloc.goc b/libgo/runtime/malloc.goc index 798d875..9c8b8c1 100644 --- a/libgo/runtime/malloc.goc +++ b/libgo/runtime/malloc.goc @@ -905,10 +905,8 @@ runtime_mal(uintptr n) return runtime_mallocgc(n, 0, 0); } -void * -runtime_new(const Type *typ) -{ - return runtime_mallocgc(typ->__size, (uintptr)typ | TypeInfo_SingleObject, typ->kind&KindNoPointers ? FlagNoScan : 0); +func new(typ *Type) (ret *uint8) { + ret = runtime_mallocgc(typ->__size, (uintptr)typ | TypeInfo_SingleObject, typ->kind&KindNoPointers ? FlagNoScan : 0); } static void* |