https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61577
--- Comment #119 from Peter Bisroev <peter.bisroev at groundlabs dot com> --- (In reply to dave.anglin from comment #116) > It's the stage1 compile flags, "-O0 -g", which generate the large binaries. > Later stages > are compiled with -O2. You could reduce the size of stage1 using "-Os" in > STAGE1_CFLAGS > and STAGE1_CXXFLAGS. Got it, that makes sense. However what I am still not sure about is why there is such as drastic difference between aCC being used as a host compiler to compiler 4.7.4 and using compiler 4.7.4 as a host compiler to bootstrap itself again. In the meantime, as per your suggestion, I have used the size tool to check the size of the text section, and it was much larger than maxtsiz. By making it larger, I was successfully able do a 3-stage self bootstrap of 4.7.4 with 4.7.4 that was initially compiled with aCC. I did not have to use "-Os" with STAGE1_CFLAGS. > I think it would be good to test 4.7.4 build with make check. I will try to get that done. Unfortunately I remember trying to get guile (required for "make check" based on the errors) to work on HPUX and not getting anywhere. Will try getting it running over the weekend. > Think your aCC build was probably fine apart from the maxtsiz issue. I > would focus on it > first. Got it, will stick to 4.7.4 bootstrapped with aCC as a host compiler. Thanks, --peter