https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61577
--- Comment #102 from EML <elowe at elowe dot com> --- > Can 4.7.4 rebuild itself? It not, it's probably somewhat broken. Need to > figure out whether it > is good enough to build stage1 at -O0. I think the early faults at -O2/-O1 > should be looked at to see > if they are problems in current code or problems with 4.7.4. Generally, we According to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64919 comment 6 "As far as I can tell all g++ versions available for download are broken, so you have to first download and build 4.7.4 or earlier, applying the same gcc/config/ia64/hpux.h as above. This version builds with gcc, not g++, so the bootstrap isn't a problem. Once you have a fixed 4.7.4 g++, you can then use that to bootstrap 4.9.2 - after again apply the hpux.h edit to the 4.9.2 sources." AFAIK, this is what we did. We did #undef MAKE_DECL_ONE_ONLY - rebuilt 4.7.2 with a downloaded 4.7.2, used that patched 4.7.2 to build 4.9.3 - again applying the "#undef MAKE_DECL_ONE_ONLY" to 4.9.3 So I'm starting from a position of having a possibly "bad" patch to start with if the undef is wrong as dave points out earlier