https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123976
--- Comment #198 from Peter Dyballa <Peter_Dyballa at web dot de> ---
The -Os did not really make it to the build. In the build log this word does
not appear. config.log logs:
$ ../gcc-16-branch-gcc-16-1-darwin/configure --disable-libgomp
--disable-multilib CC=powerpc-apple-darwin9-gcc CXX=powerpc-apple-darwin9-g++
STAGE1_CFLAGS=-Os -g -pipe STAGE1_CXXFLAGS=-Os -g -pipe
and GNU Emacs' configure log has recorded:
env PKG_CONFIG_PATH=/usr/lib/pkgconfig
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/opt/local/libexec/gcc10-bootstrap/bin
LANG=C ../gcc-16-branch-gcc-16-1-darwin/configure --disable-libgomp
--disable-multilib CC=powerpc-apple-darwin9-gcc CXX=powerpc-apple-darwin9-g++
STAGE1_CFLAGS="-Os -g -pipe" STAGE1_CXXFLAGS="-Os -g -pipe"
which is correct in my opinion…
The exact failure is:
powerpc-apple-darwin9-g++ -std=c++14 -fno-PIE -c -DIN_GCC_FRONTEND -g
-mdynamic-no-pic -DIN_GCC -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-error=narrowing -Wwrite-strings
-Wcast-qual -Wno-format -Wmissing-format-attribute -Wconditionally-supported
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -DHAVE_CONFIG_H -fno-PIE -I. -I.
-I../../gcc-16-branch-gcc-16-1-darwin/gcc
-I../../gcc-16-branch-gcc-16-1-darwin/gcc/.
-I../../gcc-16-branch-gcc-16-1-darwin/gcc/../include
-I../../gcc-16-branch-gcc-16-1-darwin/gcc/../libcpp/include
-I../../gcc-16-branch-gcc-16-1-darwin/gcc/../libcody
-I/Users/pete/Quellen/Objekte/./gmp
-I/Users/pete/Quellen/gcc-16-branch-gcc-16-1-darwin/gmp
-I/Users/pete/Quellen/Objekte/./mpfr/src
-I/Users/pete/Quellen/gcc-16-branch-gcc-16-1-darwin/mpfr/src
-I/Users/pete/Quellen/gcc-16-branch-gcc-16-1-darwin/mpc/src
-I../../gcc-16-branch-gcc-16-1-darwin/gcc/../libdecnumber
-I../../gcc-16-branch-gcc-16-1-darwin/gcc/../libdecnumber/dpd -I../libdecnumber
-I../../gcc-16-branch-gcc-16-1-darwin/gcc/../libbacktrace -o cc1-checksum.o
-MT cc1-checksum.o -MMD -MP -MF ./.deps/cc1-checksum.TPo cc1-checksum.cc
powerpc-apple-darwin9-g++ -std=c++14 -no-pie -g -mdynamic-no-pic -DIN_GCC
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall
-Wno-error=narrowing -Wwrite-strings -Wcast-qual -Wno-format
-Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-DHAVE_CONFIG_H -no-pie -static-libstdc++ -static-libgcc -o cc1 c/c-lang.o
c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o
c/c-convert.o c/c-aux-info.o c/c-objc-common.o c/c-parser.o c/c-fold.o
c/gimple-parser.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o
c-family/c-format.o c-family/c-gimplify.o c-family/c-indentation.o
c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o
c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o
c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-ubsan.o
c-family/known-headers.o c-family/c-attribs.o c-family/c-warn.o
c-family/c-spellcheck.o c-family/c-type-mismatch.o darwin-c.o rs6000-c.o \
cc1-checksum.o simple-diagnostic-path.o diagnostics/lazy-paths.o
libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a -liconv
../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a -L/Users/pete/Quellen/Objekte/./gmp/.libs
-L/Users/pete/Quellen/Objekte/./mpfr/src/.libs
-L/Users/pete/Quellen/Objekte/./mpc/src/.libs -lmpc -lmpfr -lgmp -L./../zlib
-lz
ld: bl out of range (-16824444 max is +/-16M) from
__ZSt21__throw_bad_exceptionv at 0x03AC2C7C in __text_cold of
/opt/local/libexec/gcc10-bootstrap/lib/gcc/powerpc-apple-darwin9/10.5.0/../../../libstdc++.a(functexcept.o)
to ___cxa_allocate_exception$island_2 at 0x02AB741C in __text of cc1 in
__ZSt21__throw_bad_exceptionv from
/opt/local/libexec/gcc10-bootstrap/lib/gcc/powerpc-apple-darwin9/10.5.0/../../../libstdc++.a(functexcept.o)
collect2: error: ld returned 1 exit status
make[3]: *** [cc1] Error 1
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2
I am able to play a few more weeks wth this issue.