------- Additional Comments From pcarlini at suse dot de 2005-04-26 14:52 ------- > Just about any 8 or 16 bit target with a 16-bits wide address, including avr, > etc. (so in general would expect sizeof(int) ~ sizeof(size_t) to be more > consistently true, or of course could be structured to rely on sizeof(size_t) > directly.)
As you imply in the last line, this is really a side-issue (in collate we have to return a long and there is nothing wrong with probing sizeof(long)). By the way, I would be curious to know whether the targets that you are mentioning do actually run well libstdc++-v3 in general (often my practical point of view is tied to that ;) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21193