diff options
author | Andrew Pinski <pinskia@gmail.com> | 2007-01-20 22:51:07 -0800 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2007-01-20 22:51:07 -0800 |
commit | d2f9f9a62d25b0d4f358952430664c76a86967e9 (patch) | |
tree | 082440aebef934d380dad11831fe7fc3c40506e4 /gcc/objc | |
parent | 78681dbdee7e724104d79eca9fc0e2eaeaf8eae2 (diff) | |
download | gcc-d2f9f9a62d25b0d4f358952430664c76a86967e9.zip gcc-d2f9f9a62d25b0d4f358952430664c76a86967e9.tar.gz gcc-d2f9f9a62d25b0d4f358952430664c76a86967e9.tar.bz2 |
re PR objc/30479 (Precompiled headers don't seem to work with GNU ObjC)
2007-01-20 Andrew Pinski <pinskia@gmail.com>
PR objc/30479
* objc-act.c (hash_interface): Use IDENTIFIER_HASH_VALUE instead
of htab_hash_pointer.
(lookup_interface): Likewise.
(add_class): Likewise.
2007-01-20 Andrew Pinski <pinskia@gmail.com>
PR objc/30479
* objc.dg/pch: New directory.
* objc.dg/pch/pch.exp: New file.
* objc.dg/pch/interface-1.m: New test.
* objc.dg/pch/interface-1.hs: New include file.
* lib/objc.exp (objc_target_compile): Add
"-x objective-c-header" in front of the sources if this is
a precompiled header being compiled.
From-SVN: r121024
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/objc/objc-act.c | 6 |
2 files changed, 11 insertions, 3 deletions
diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index 0759c8d..f3aeb9b 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,3 +1,11 @@ +2007-01-20 Andrew Pinski <pinskia@gmail.com> + + PR objc/30479 + * objc-act.c (hash_interface): Use IDENTIFIER_HASH_VALUE instead + of htab_hash_pointer. + (lookup_interface): Likewise. + (add_class): Likewise. + 2007-01-02 Douglas Gregor <doug.gregor@gmail.com> * objc-act.c (objc_build_volatilized_type): Keep track of diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index bd79796..86bfd37 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -3298,7 +3298,7 @@ static hashval_t hash_interface (const void *p) { const struct interface_tuple *d = p; - return htab_hash_pointer (d->id); + return IDENTIFIER_HASH_VALUE (d->id); } static int @@ -3327,7 +3327,7 @@ lookup_interface (tree ident) { slot = (struct interface_tuple **) htab_find_slot_with_hash (interface_htab, ident, - htab_hash_pointer (ident), + IDENTIFIER_HASH_VALUE (ident), NO_INSERT); if (slot && *slot) i = (*slot)->class_name; @@ -6997,7 +6997,7 @@ add_class (tree class_name, tree name) interface_htab = htab_create_ggc (31, hash_interface, eq_interface, NULL); slot = (struct interface_tuple **) htab_find_slot_with_hash (interface_htab, name, - htab_hash_pointer (name), + IDENTIFIER_HASH_VALUE (name), INSERT); if (!*slot) { |