The following removes std::map use from genmatch, avoiding an AIX
issue (and also making the code more GCC-ish).  I had to add
an elements() member to hash_map and implement some GGC
stubs.  Not too bad I guess.

Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk.

Richard.

2014-10-30  Richard Biener  <rguent...@suse.de>

        * genmatch.c: Remove <map>, <utility> and <string> includes.
        Include ggc.h and hash-map.h.
        (ggc_internal_cleared_alloc): Provide stub definition.
        (ggc_free): Likewise.
        (struct capture_id_map_hasher): New traits for hash_map.
        (cid_map_t): New typedef.
        (everywhere else): Replace std::map use with cid_map_t.
        * hash-map.h (hash_map::elements): New member function.
        * Makefile.in (build/genmatch.o): Add $(HASH_TABLE_H),
        hash-map.h and $(GGC_H) as dependency.

Attachment: p10
Description: Binary data

Reply via email to