summaryrefslogtreecommitdiff
path: root/gcc/config/i386
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/i386')
-rw-r--r--gcc/config/i386/winnt.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c
index 10c0b003f8d..dd521331984 100644
--- a/gcc/config/i386/winnt.c
+++ b/gcc/config/i386/winnt.c
@@ -469,7 +469,7 @@ i386_pe_reloc_rw_mask (void)
unsigned int
i386_pe_section_type_flags (tree decl, const char *name, int reloc)
{
- static hash_table <pointer_hash <unsigned int> > htab;
+ static hash_table<pointer_hash<unsigned int> > *htab = NULL;
unsigned int flags;
unsigned int **slot;
@@ -480,8 +480,8 @@ i386_pe_section_type_flags (tree decl, const char *name, int reloc)
/* The names we put in the hashtable will always be the unique
versions given to us by the stringtable, so we can just use
their addresses as the keys. */
- if (!htab.is_created ())
- htab.create (31);
+ if (!htab)
+ htab = new hash_table<pointer_hash<unsigned int> > (31);
if (decl && TREE_CODE (decl) == FUNCTION_DECL)
flags = SECTION_CODE;
@@ -500,7 +500,7 @@ i386_pe_section_type_flags (tree decl, const char *name, int reloc)
flags |= SECTION_LINKONCE;
/* See if we already have an entry for this section. */
- slot = htab.find_slot ((const unsigned int *)name, INSERT);
+ slot = htab->find_slot ((const unsigned int *)name, INSERT);
if (!*slot)
{
*slot = (unsigned int *) xmalloc (sizeof (unsigned int));
@@ -771,7 +771,7 @@ static const char *
i386_find_on_wrapper_list (const char *target)
{
static char first_time = 1;
- static hash_table <wrapped_symbol_hasher> wrappers;
+ static hash_table<wrapped_symbol_hasher> *wrappers;
if (first_time)
{
@@ -784,7 +784,7 @@ i386_find_on_wrapper_list (const char *target)
char *bufptr;
/* Breaks up the char array into separated strings
strings and enter them into the hash table. */
- wrappers.create (8);
+ wrappers = new hash_table_c<wrapped_symbol_hasher> (8);
for (bufptr = wrapper_list_buffer; *bufptr; ++bufptr)
{
char *found = NULL;
@@ -797,12 +797,12 @@ i386_find_on_wrapper_list (const char *target)
if (*bufptr)
*bufptr = 0;
if (found)
- *wrappers.find_slot (found, INSERT) = found;
+ *wrappers->find_slot (found, INSERT) = found;
}
first_time = 0;
}
- return wrappers.find (target);
+ return wrappers->find (target);
}
#endif /* CXX_WRAP_SPEC_LIST */