diff --git a/source-builder/config/gcc-common-1.cfg b/source-builder/config/gcc-common-1.cfg
index dd0cf4c..663fe16 100644
--- a/source-builder/config/gcc-common-1.cfg
+++ b/source-builder/config/gcc-common-1.cfg
@@ -147,6 +147,7 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
     --disable-win32-registry \
     --enable-version-specific-runtime-libs \
     --disable-lto \
+    --enable-target-optspace \
     --enable-newlib-io-c99-formats \
     %{?with_iconv:--enable-newlib-iconv} \
     %{?with_iconv:--enable-newlib-iconv-encodings=%{_newlib_iconv_encodings}} \

diff --git a/source-builder/config/gcc-common-1.cfg b/source-builder/config/gcc-common-1.cfg
index dd0cf4c..8a56b57 100644
--- a/source-builder/config/gcc-common-1.cfg
+++ b/source-builder/config/gcc-common-1.cfg
@@ -146,8 +146,11 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
     --disable-nls --without-included-gettext \
     --disable-win32-registry \
     --enable-version-specific-runtime-libs \
-    --disable-lto \
     --enable-newlib-io-c99-formats \
+    --enable-lto \
+    --enable-target-optspace \
+    --disable-newlib-atexit-dynamic-alloc \
+    --enable-lite-exit \
     %{?with_iconv:--enable-newlib-iconv} \
     %{?with_iconv:--enable-newlib-iconv-encodings=%{_newlib_iconv_encodings}} \
     %{?with_threads:--enable-threads}%{!?with_threads:--disable-threads} \

Revert "RTEMS size optimization patch: only --enable-target-optspace"
Revert "RTEMS size optimization patch: only --enable-target-optspace"

This reverts commit c9d1a1305096f7f62ca3f9edfcd8c7df9093c1da.
