diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-07-16 06:54:42 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-07-16 06:54:42 +0000 |
commit | be47d6eceffd2c5dbbc1566d5eea490527fb2bd4 (patch) | |
tree | 0e8fda573576bb4181dba29d0e88380a8c38fafd /libgo/runtime/mfixalloc.c | |
parent | efb30cdeb003fd7c585ee0d7657340086abcbd9e (diff) | |
download | gcc-be47d6eceffd2c5dbbc1566d5eea490527fb2bd4.zip gcc-be47d6eceffd2c5dbbc1566d5eea490527fb2bd4.tar.gz gcc-be47d6eceffd2c5dbbc1566d5eea490527fb2bd4.tar.bz2 |
libgo: Update to Go 1.1.1.
From-SVN: r200974
Diffstat (limited to 'libgo/runtime/mfixalloc.c')
-rw-r--r-- | libgo/runtime/mfixalloc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libgo/runtime/mfixalloc.c b/libgo/runtime/mfixalloc.c index 109cfe8..6e4f0c6 100644 --- a/libgo/runtime/mfixalloc.c +++ b/libgo/runtime/mfixalloc.c @@ -30,6 +30,11 @@ void* runtime_FixAlloc_Alloc(FixAlloc *f) { void *v; + + if(f->size == 0) { + runtime_printf("runtime: use of FixAlloc_Alloc before FixAlloc_Init\n"); + runtime_throw("runtime: internal error"); + } if(f->list) { v = f->list; |