[Bug libgcc/123976] GCC 15.2.0 (libgcc) does not build on PPC Mac OS X 10.5.8, Leopard, because of missing "md-unwind-def.h"

iains at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 3 09:34:54 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123976

--- Comment #191 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Peter Dyballa from comment #190)
> (In reply to Iain Sandoe from comment #189)
> > in the short-term leave everything configuration-wise as it is.. 
> > 
> > ... but change your make command to:
> > 
> > make -jN STAGE1_CFLAGS="-Os -g -pipe" STAGE1_CXXFLAGS="-Os -g -pipe"
> > >bld.txt 2>&1
> > 
> I continued where build stopped:


that's not going to solve the problem, unfortunately - the problem is caused by
code size growing until reaching between two points cannot be done with a
single branch instruction - and needs stepping stones (or islands) to get
there.

The use of -Os is intended to make the overall code smaller increasing the
probability that all destinations will be reachable - it is NOT a fix and the
problem does not lie with GCC (other than then compiler gets bigger on each
release because it does more stuff).  We are still trying to solve a different
problem .. let's try to avoid another rabbit hole ...

you would need to rebuild all the code to take advantage of the Os .. repeating
the link is not going to do anything.


More information about the Gcc-bugs mailing list