aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-05-02 19:22:42 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:01:41 -0700
commit1ff960b29aace99f69979fc78cf5ef204e1262a6 (patch)
treeaf3616af10dc862638c0dc51717358c7f7f0159d /symbol.c
parentNow that BITS_IN_XXXX aren't defined contstants any more, (diff)
downloadsparse-1ff960b29aace99f69979fc78cf5ef204e1262a6.tar.gz
sparse-1ff960b29aace99f69979fc78cf5ef204e1262a6.tar.bz2
sparse-1ff960b29aace99f69979fc78cf5ef204e1262a6.zip
Initialize C type system after parsing the command line arguments.
This makes "-m64" actually work.
Diffstat (limited to 'symbol.c')
-rw-r--r--symbol.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/symbol.c b/symbol.c
index c4bef50..cb9b47f 100644
--- a/symbol.c
+++ b/symbol.c
@@ -524,7 +524,6 @@ void init_symbols(void)
{
int stream = init_stream("builtin", -1);
struct sym_init *ptr;
- struct ctype_declare *ctype;
hash_ident(&sizeof_ident);
hash_ident(&alignof_ident);
@@ -570,6 +569,11 @@ void init_symbols(void)
sym->ctype.modifiers = ptr->modifiers;
sym->op = ptr->op;
}
+}
+
+void init_ctype(void)
+{
+ struct ctype_declare *ctype;
ptr_ctype.type = SYM_PTR;
string_ctype.type = SYM_PTR;