diff options
author | Richard Stallman <rms@gnu.org> | 1993-01-09 09:14:53 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-01-09 09:14:53 +0000 |
commit | c55dc79a596b1aada5c1e342b982e43c50cd13bb (patch) | |
tree | c62723a5db94202280cd15ae446ffd4b5fac51fa | |
parent | 58811315a132151e35e7b12d357dbffdd46a14d7 (diff) | |
download | gcc-c55dc79a596b1aada5c1e342b982e43c50cd13bb.zip gcc-c55dc79a596b1aada5c1e342b982e43c50cd13bb.tar.gz gcc-c55dc79a596b1aada5c1e342b982e43c50cd13bb.tar.bz2 |
(init_module_descriptor):
Use size_in_bytes to get size of `struct objc_module'.
From-SVN: r3168
-rw-r--r-- | gcc/objc/objc-act.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index edfc0b0..6b3b074 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -812,8 +812,7 @@ init_module_descriptor () /* size = { ..., sizeof (struct objc_module), ... } */ - expr = build_int_2 (TREE_INT_CST_LOW (TYPE_SIZE (objc_module_template)) / - BITS_PER_UNIT, 0); + expr = size_in_bytes (objc_module_template); initlist = tree_cons (NULLT, expr, initlist); /* name = { ..., "foo.m", ... } */ |