[GCC-XML] Force simulated gcc version
Michaël BROUTIN
michael.broutin at gmail.com
Tue Jan 15 11:02:39 EST 2013
Hi,
I'm currently trying to run gccxml against a code which has the following
defines (pseudo-code)
# if COMPILER IS GCC AND GCC VERSION > 4.3.0# define HashMap
::std::tr1::unordered_map# define HashSet
::std::tr1::unordered_set# else# define HashMap
::__gnu_cxx::hash_map# define HashSet ::__gnu_cxx::hash_set#
endif
I've read that GCCXML doesn't support ::std::tr1::unordered_map, but
in this case it's not a problem, since there's a fallback to
::__gnu_cxx::hash_map
The issue is that GCCXML fails to parse this header, because the gcc
version defined is too high, so it tries to use std::tr1.
Of course, I can hack this code to force it to use
::__gnu_cxx::hash_map, but I'd rather find a cleaner way to do this.
Is there a command line switch to force __GNUC__ and __GNUC_MINOR__ ?
Thanks,
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20130115/1e79b17c/attachment-0001.html>
More information about the gccxml
mailing list