[rtems-crossrpms commit] Regenerate.

Ralf Corsepius ralf at rtems.org
Thu May 8 11:05:00 UTC 2014


Module:    rtems-crossrpms
Branch:    master
Commit:    87a9380f266b8c795cb9f6f012ee6baf20fcb76b
Changeset: http://git.rtems.org/rtems-crossrpms/commit/?id=87a9380f266b8c795cb9f6f012ee6baf20fcb76b

Author:    Ralf Corsépius <ralf.corsepius at rtems.org>
Date:      Mon Feb 24 10:48:52 2014 +0100

Regenerate.

---

 autotools/rtems-4.11-autoconf.spec                 |   10 +++++++-
 autotools/rtems-4.11-automake.spec                 |   10 +++++++-
 .../arm/rtems-4.11-arm-rtems4.11-binutils.spec     |   10 +++++++-
 rtems4.11/arm/rtems-4.11-arm-rtems4.11-gcc.spec    |   24 ++++++++++++-------
 rtems4.11/arm/rtems-4.11-arm-rtems4.11-gdb.spec    |   10 +++++++-
 .../avr/rtems-4.11-avr-rtems4.11-binutils.spec     |   10 +++++++-
 rtems4.11/avr/rtems-4.11-avr-rtems4.11-gcc.spec    |   24 ++++++++++++-------
 rtems4.11/avr/rtems-4.11-avr-rtems4.11-gdb.spec    |   10 +++++++-
 .../bfin/rtems-4.11-bfin-rtems4.11-binutils.spec   |   10 +++++++-
 rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gcc.spec  |   24 ++++++++++++-------
 rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gdb.spec  |   10 +++++++-
 .../h8300/rtems-4.11-h8300-rtems4.11-binutils.spec |   10 +++++++-
 .../h8300/rtems-4.11-h8300-rtems4.11-gcc.spec      |   24 ++++++++++++-------
 .../h8300/rtems-4.11-h8300-rtems4.11-gdb.spec      |   10 +++++++-
 .../i386/rtems-4.11-i386-rtems4.11-binutils.spec   |   10 +++++++-
 rtems4.11/i386/rtems-4.11-i386-rtems4.11-gcc.spec  |   24 ++++++++++++-------
 rtems4.11/i386/rtems-4.11-i386-rtems4.11-gdb.spec  |   10 +++++++-
 .../lm32/rtems-4.11-lm32-rtems4.11-binutils.spec   |   10 +++++++-
 rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gcc.spec  |   24 ++++++++++++-------
 rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gdb.spec  |   10 +++++++-
 .../m32c/rtems-4.11-m32c-rtems4.11-binutils.spec   |   10 +++++++-
 rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gcc.spec  |   24 ++++++++++++-------
 rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gdb.spec  |   10 +++++++-
 .../m32r/rtems-4.11-m32r-rtems4.11-binutils.spec   |   10 +++++++-
 rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gcc.spec  |   24 ++++++++++++-------
 rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gdb.spec  |   10 +++++++-
 .../m68k/rtems-4.11-m68k-rtems4.11-binutils.spec   |   10 +++++++-
 rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gcc.spec  |   24 ++++++++++++-------
 rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gdb.spec  |   10 +++++++-
 .../rtems-4.11-microblaze-rtems4.11-binutils.spec  |   10 +++++++-
 .../rtems-4.11-microblaze-rtems4.11-gcc.spec       |   24 ++++++++++++-------
 .../rtems-4.11-microblaze-rtems4.11-gdb.spec       |   10 +++++++-
 .../mips/rtems-4.11-mips-rtems4.11-binutils.spec   |   10 +++++++-
 rtems4.11/mips/rtems-4.11-mips-rtems4.11-gcc.spec  |   24 ++++++++++++-------
 rtems4.11/mips/rtems-4.11-mips-rtems4.11-gdb.spec  |   10 +++++++-
 .../rtems-4.11-mipstx39-rtems4.11-gdb.spec         |   10 +++++++-
 .../rtems-4.11-powerpc-rtems4.11-binutils.spec     |   10 +++++++-
 .../powerpc/rtems-4.11-powerpc-rtems4.11-gcc.spec  |   24 ++++++++++++-------
 .../powerpc/rtems-4.11-powerpc-rtems4.11-gdb.spec  |   10 +++++++-
 rtems4.11/sh/rtems-4.11-sh-rtems4.11-binutils.spec |   10 +++++++-
 rtems4.11/sh/rtems-4.11-sh-rtems4.11-gcc.spec      |   24 ++++++++++++-------
 rtems4.11/sh/rtems-4.11-sh-rtems4.11-gdb.spec      |   10 +++++++-
 .../sparc/rtems-4.11-sparc-rtems4.11-binutils.spec |   10 +++++++-
 .../sparc/rtems-4.11-sparc-rtems4.11-gcc.spec      |   24 ++++++++++++-------
 .../sparc/rtems-4.11-sparc-rtems4.11-gdb.spec      |   10 +++++++-
 .../rtems-4.11-sparc64-rtems4.11-binutils.spec     |   10 +++++++-
 .../sparc64/rtems-4.11-sparc64-rtems4.11-gcc.spec  |   24 ++++++++++++-------
 .../sparc64/rtems-4.11-sparc64-rtems4.11-gdb.spec  |   10 +++++++-
 .../v850/rtems-4.11-v850-rtems4.11-binutils.spec   |   10 +++++++-
 rtems4.11/v850/rtems-4.11-v850-rtems4.11-gcc.spec  |   24 ++++++++++++-------
 rtems4.11/v850/rtems-4.11-v850-rtems4.11-gdb.spec  |   10 +++++++-
 51 files changed, 555 insertions(+), 179 deletions(-)

diff --git a/autotools/rtems-4.11-autoconf.spec b/autotools/rtems-4.11-autoconf.spec
index e5a05a8..4aa50e5 100644
--- a/autotools/rtems-4.11-autoconf.spec
+++ b/autotools/rtems-4.11-autoconf.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/autotools/rtems-4.11-automake.spec b/autotools/rtems-4.11-automake.spec
index dcc069a..d7ea2a8 100644
--- a/autotools/rtems-4.11-automake.spec
+++ b/autotools/rtems-4.11-automake.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/arm/rtems-4.11-arm-rtems4.11-binutils.spec b/rtems4.11/arm/rtems-4.11-arm-rtems4.11-binutils.spec
index 77055d9..6399b04 100644
--- a/rtems4.11/arm/rtems-4.11-arm-rtems4.11-binutils.spec
+++ b/rtems4.11/arm/rtems-4.11-arm-rtems4.11-binutils.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/arm/rtems-4.11-arm-rtems4.11-gcc.spec b/rtems4.11/arm/rtems-4.11-arm-rtems4.11-gcc.spec
index f98bcba..2bac591 100644
--- a/rtems4.11/arm/rtems-4.11-arm-rtems4.11-gcc.spec
+++ b/rtems4.11/arm/rtems-4.11-arm-rtems4.11-gcc.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
@@ -164,6 +172,12 @@ BuildRequires:  %{_host_rpmprefix}gcc-c++
 %global gmp_provided 4.3.2
 %endif
 
+%if 0%{?mingw64}
+%global mpc_provided 1.0.1
+%global mpfr_provided 3.1.2
+%global gmp_provided 5.1.1
+%endif
+
 %if "%{gcc_version}" >= "4.2.0"
 %endif
 
@@ -452,14 +466,6 @@ echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-30%{?dist}" >
   make DESTDIR=$RPM_BUILD_ROOT install-info
   cd ../../..
 
-%if "%{gcc_version}" <= "4.1.2"
-# Misplaced header file
-  if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
-    mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
-      $RPM_BUILD_ROOT%{_gcclibdir}/gcc/arm-rtems4.11/%{gcc_version}/include/
-  fi
-%endif
-
   # host library
 %if "%{gcc_version}" >= "4.2.0"
   # libiberty doesn't honor --libdir, but always installs to a
diff --git a/rtems4.11/arm/rtems-4.11-arm-rtems4.11-gdb.spec b/rtems4.11/arm/rtems-4.11-arm-rtems4.11-gdb.spec
index 2ffffa7..9f9da77 100644
--- a/rtems4.11/arm/rtems-4.11-arm-rtems4.11-gdb.spec
+++ b/rtems4.11/arm/rtems-4.11-arm-rtems4.11-gdb.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/avr/rtems-4.11-avr-rtems4.11-binutils.spec b/rtems4.11/avr/rtems-4.11-avr-rtems4.11-binutils.spec
index 2624079..038de73 100644
--- a/rtems4.11/avr/rtems-4.11-avr-rtems4.11-binutils.spec
+++ b/rtems4.11/avr/rtems-4.11-avr-rtems4.11-binutils.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/avr/rtems-4.11-avr-rtems4.11-gcc.spec b/rtems4.11/avr/rtems-4.11-avr-rtems4.11-gcc.spec
index e6fe88f..3a3148a 100644
--- a/rtems4.11/avr/rtems-4.11-avr-rtems4.11-gcc.spec
+++ b/rtems4.11/avr/rtems-4.11-avr-rtems4.11-gcc.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
@@ -164,6 +172,12 @@ BuildRequires:  %{_host_rpmprefix}gcc-c++
 %global gmp_provided 4.3.2
 %endif
 
+%if 0%{?mingw64}
+%global mpc_provided 1.0.1
+%global mpfr_provided 3.1.2
+%global gmp_provided 5.1.1
+%endif
+
 %if "%{gcc_version}" >= "4.2.0"
 %endif
 
@@ -444,14 +458,6 @@ echo "RTEMS gcc-%{gcc_version}-5%{?dist}/newlib-%{newlib_version}-27%{?dist}" >
   make DESTDIR=$RPM_BUILD_ROOT install-info
   cd ../../..
 
-%if "%{gcc_version}" <= "4.1.2"
-# Misplaced header file
-  if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
-    mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
-      $RPM_BUILD_ROOT%{_gcclibdir}/gcc/avr-rtems4.11/%{gcc_version}/include/
-  fi
-%endif
-
   # host library
 %if "%{gcc_version}" >= "4.2.0"
   # libiberty doesn't honor --libdir, but always installs to a
diff --git a/rtems4.11/avr/rtems-4.11-avr-rtems4.11-gdb.spec b/rtems4.11/avr/rtems-4.11-avr-rtems4.11-gdb.spec
index f00d3de..937cd5f 100644
--- a/rtems4.11/avr/rtems-4.11-avr-rtems4.11-gdb.spec
+++ b/rtems4.11/avr/rtems-4.11-avr-rtems4.11-gdb.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-binutils.spec b/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-binutils.spec
index 8aaba36..78a1a53 100644
--- a/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-binutils.spec
+++ b/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-binutils.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gcc.spec b/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gcc.spec
index 631d287..eaf58aa 100644
--- a/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gcc.spec
+++ b/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gcc.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
@@ -164,6 +172,12 @@ BuildRequires:  %{_host_rpmprefix}gcc-c++
 %global gmp_provided 4.3.2
 %endif
 
+%if 0%{?mingw64}
+%global mpc_provided 1.0.1
+%global mpfr_provided 3.1.2
+%global gmp_provided 5.1.1
+%endif
+
 %if "%{gcc_version}" >= "4.2.0"
 %endif
 
@@ -449,14 +463,6 @@ echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-30%{?dist}" >
   make DESTDIR=$RPM_BUILD_ROOT install-info
   cd ../../..
 
-%if "%{gcc_version}" <= "4.1.2"
-# Misplaced header file
-  if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
-    mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
-      $RPM_BUILD_ROOT%{_gcclibdir}/gcc/bfin-rtems4.11/%{gcc_version}/include/
-  fi
-%endif
-
   # host library
 %if "%{gcc_version}" >= "4.2.0"
   # libiberty doesn't honor --libdir, but always installs to a
diff --git a/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gdb.spec b/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gdb.spec
index 52a97de..65d21e7 100644
--- a/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gdb.spec
+++ b/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gdb.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-binutils.spec b/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-binutils.spec
index cf7dba7..7acff08 100644
--- a/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-binutils.spec
+++ b/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-binutils.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-gcc.spec b/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-gcc.spec
index 21088b0..bd1a0cf 100644
--- a/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-gcc.spec
+++ b/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-gcc.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
@@ -164,6 +172,12 @@ BuildRequires:  %{_host_rpmprefix}gcc-c++
 %global gmp_provided 4.3.2
 %endif
 
+%if 0%{?mingw64}
+%global mpc_provided 1.0.1
+%global mpfr_provided 3.1.2
+%global gmp_provided 5.1.1
+%endif
+
 %if "%{gcc_version}" >= "4.2.0"
 %endif
 
@@ -449,14 +463,6 @@ echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-30%{?dist}" >
   make DESTDIR=$RPM_BUILD_ROOT install-info
   cd ../../..
 
-%if "%{gcc_version}" <= "4.1.2"
-# Misplaced header file
-  if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
-    mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
-      $RPM_BUILD_ROOT%{_gcclibdir}/gcc/h8300-rtems4.11/%{gcc_version}/include/
-  fi
-%endif
-
   # host library
 %if "%{gcc_version}" >= "4.2.0"
   # libiberty doesn't honor --libdir, but always installs to a
diff --git a/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-gdb.spec b/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-gdb.spec
index 7fb874f..cfab649 100644
--- a/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-gdb.spec
+++ b/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-gdb.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/i386/rtems-4.11-i386-rtems4.11-binutils.spec b/rtems4.11/i386/rtems-4.11-i386-rtems4.11-binutils.spec
index c378107..2ccfbfb 100644
--- a/rtems4.11/i386/rtems-4.11-i386-rtems4.11-binutils.spec
+++ b/rtems4.11/i386/rtems-4.11-i386-rtems4.11-binutils.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/i386/rtems-4.11-i386-rtems4.11-gcc.spec b/rtems4.11/i386/rtems-4.11-i386-rtems4.11-gcc.spec
index a8a28a7..ace0106 100644
--- a/rtems4.11/i386/rtems-4.11-i386-rtems4.11-gcc.spec
+++ b/rtems4.11/i386/rtems-4.11-i386-rtems4.11-gcc.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
@@ -164,6 +172,12 @@ BuildRequires:  %{_host_rpmprefix}gcc-c++
 %global gmp_provided 4.3.2
 %endif
 
+%if 0%{?mingw64}
+%global mpc_provided 1.0.1
+%global mpfr_provided 3.1.2
+%global gmp_provided 5.1.1
+%endif
+
 %if "%{gcc_version}" >= "4.2.0"
 %endif
 
@@ -449,14 +463,6 @@ echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-30%{?dist}" >
   make DESTDIR=$RPM_BUILD_ROOT install-info
   cd ../../..
 
-%if "%{gcc_version}" <= "4.1.2"
-# Misplaced header file
-  if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
-    mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
-      $RPM_BUILD_ROOT%{_gcclibdir}/gcc/i386-rtems4.11/%{gcc_version}/include/
-  fi
-%endif
-
   # host library
 %if "%{gcc_version}" >= "4.2.0"
   # libiberty doesn't honor --libdir, but always installs to a
diff --git a/rtems4.11/i386/rtems-4.11-i386-rtems4.11-gdb.spec b/rtems4.11/i386/rtems-4.11-i386-rtems4.11-gdb.spec
index 02d1390..250e3a3 100644
--- a/rtems4.11/i386/rtems-4.11-i386-rtems4.11-gdb.spec
+++ b/rtems4.11/i386/rtems-4.11-i386-rtems4.11-gdb.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-binutils.spec b/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-binutils.spec
index 7fc2fa0..76d02fb 100644
--- a/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-binutils.spec
+++ b/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-binutils.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gcc.spec b/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gcc.spec
index 79feaed..4bdf3ed 100644
--- a/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gcc.spec
+++ b/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gcc.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
@@ -164,6 +172,12 @@ BuildRequires:  %{_host_rpmprefix}gcc-c++
 %global gmp_provided 4.3.2
 %endif
 
+%if 0%{?mingw64}
+%global mpc_provided 1.0.1
+%global mpfr_provided 3.1.2
+%global gmp_provided 5.1.1
+%endif
+
 %if "%{gcc_version}" >= "4.2.0"
 %endif
 
@@ -454,14 +468,6 @@ echo "RTEMS gcc-%{gcc_version}-12%{?dist}/newlib-%{newlib_version}-18%{?dist}" >
   make DESTDIR=$RPM_BUILD_ROOT install-info
   cd ../../..
 
-%if "%{gcc_version}" <= "4.1.2"
-# Misplaced header file
-  if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
-    mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
-      $RPM_BUILD_ROOT%{_gcclibdir}/gcc/lm32-rtems4.11/%{gcc_version}/include/
-  fi
-%endif
-
   # host library
 %if "%{gcc_version}" >= "4.2.0"
   # libiberty doesn't honor --libdir, but always installs to a
diff --git a/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gdb.spec b/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gdb.spec
index 331e6a3..fe9e7dc 100644
--- a/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gdb.spec
+++ b/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gdb.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-binutils.spec b/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-binutils.spec
index 399809d..e0d4858 100644
--- a/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-binutils.spec
+++ b/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-binutils.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gcc.spec b/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gcc.spec
index 6f39fb8..01e331a 100644
--- a/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gcc.spec
+++ b/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gcc.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
@@ -164,6 +172,12 @@ BuildRequires:  %{_host_rpmprefix}gcc-c++
 %global gmp_provided 4.3.2
 %endif
 
+%if 0%{?mingw64}
+%global mpc_provided 1.0.1
+%global mpfr_provided 3.1.2
+%global gmp_provided 5.1.1
+%endif
+
 %if "%{gcc_version}" >= "4.2.0"
 %endif
 
@@ -444,14 +458,6 @@ echo "RTEMS gcc-%{gcc_version}-5%{?dist}/newlib-%{newlib_version}-27%{?dist}" >
   make DESTDIR=$RPM_BUILD_ROOT install-info
   cd ../../..
 
-%if "%{gcc_version}" <= "4.1.2"
-# Misplaced header file
-  if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
-    mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
-      $RPM_BUILD_ROOT%{_gcclibdir}/gcc/m32c-rtems4.11/%{gcc_version}/include/
-  fi
-%endif
-
   # host library
 %if "%{gcc_version}" >= "4.2.0"
   # libiberty doesn't honor --libdir, but always installs to a
diff --git a/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gdb.spec b/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gdb.spec
index bfc033e..819979e 100644
--- a/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gdb.spec
+++ b/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gdb.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-binutils.spec b/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-binutils.spec
index e6dcb97..200c8c9 100644
--- a/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-binutils.spec
+++ b/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-binutils.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gcc.spec b/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gcc.spec
index bafbc3d..a3c284c 100644
--- a/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gcc.spec
+++ b/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gcc.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
@@ -164,6 +172,12 @@ BuildRequires:  %{_host_rpmprefix}gcc-c++
 %global gmp_provided 4.3.2
 %endif
 
+%if 0%{?mingw64}
+%global mpc_provided 1.0.1
+%global mpfr_provided 3.1.2
+%global gmp_provided 5.1.1
+%endif
+
 %if "%{gcc_version}" >= "4.2.0"
 %endif
 
@@ -449,14 +463,6 @@ echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-30%{?dist}" >
   make DESTDIR=$RPM_BUILD_ROOT install-info
   cd ../../..
 
-%if "%{gcc_version}" <= "4.1.2"
-# Misplaced header file
-  if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
-    mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
-      $RPM_BUILD_ROOT%{_gcclibdir}/gcc/m32r-rtems4.11/%{gcc_version}/include/
-  fi
-%endif
-
   # host library
 %if "%{gcc_version}" >= "4.2.0"
   # libiberty doesn't honor --libdir, but always installs to a
diff --git a/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gdb.spec b/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gdb.spec
index 514db7e..238ebd9 100644
--- a/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gdb.spec
+++ b/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gdb.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-binutils.spec b/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-binutils.spec
index 10a72ae..2331a77 100644
--- a/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-binutils.spec
+++ b/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-binutils.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gcc.spec b/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gcc.spec
index 90b88bc..3a121c9 100644
--- a/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gcc.spec
+++ b/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gcc.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
@@ -164,6 +172,12 @@ BuildRequires:  %{_host_rpmprefix}gcc-c++
 %global gmp_provided 4.3.2
 %endif
 
+%if 0%{?mingw64}
+%global mpc_provided 1.0.1
+%global mpfr_provided 3.1.2
+%global gmp_provided 5.1.1
+%endif
+
 %if "%{gcc_version}" >= "4.2.0"
 %endif
 
@@ -449,14 +463,6 @@ echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-30%{?dist}" >
   make DESTDIR=$RPM_BUILD_ROOT install-info
   cd ../../..
 
-%if "%{gcc_version}" <= "4.1.2"
-# Misplaced header file
-  if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
-    mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
-      $RPM_BUILD_ROOT%{_gcclibdir}/gcc/m68k-rtems4.11/%{gcc_version}/include/
-  fi
-%endif
-
   # host library
 %if "%{gcc_version}" >= "4.2.0"
   # libiberty doesn't honor --libdir, but always installs to a
diff --git a/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gdb.spec b/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gdb.spec
index 9d385aa..6920d6a 100644
--- a/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gdb.spec
+++ b/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gdb.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-binutils.spec b/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-binutils.spec
index c1e0cf6..c136351 100644
--- a/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-binutils.spec
+++ b/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-binutils.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-gcc.spec b/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-gcc.spec
index 54f674a..4499fe4 100644
--- a/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-gcc.spec
+++ b/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-gcc.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
@@ -164,6 +172,12 @@ BuildRequires:  %{_host_rpmprefix}gcc-c++
 %global gmp_provided 4.3.2
 %endif
 
+%if 0%{?mingw64}
+%global mpc_provided 1.0.1
+%global mpfr_provided 3.1.2
+%global gmp_provided 5.1.1
+%endif
+
 %if "%{gcc_version}" >= "4.2.0"
 %endif
 
@@ -449,14 +463,6 @@ echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-30%{?dist}" >
   make DESTDIR=$RPM_BUILD_ROOT install-info
   cd ../../..
 
-%if "%{gcc_version}" <= "4.1.2"
-# Misplaced header file
-  if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
-    mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
-      $RPM_BUILD_ROOT%{_gcclibdir}/gcc/microblaze-rtems4.11/%{gcc_version}/include/
-  fi
-%endif
-
   # host library
 %if "%{gcc_version}" >= "4.2.0"
   # libiberty doesn't honor --libdir, but always installs to a
diff --git a/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-gdb.spec b/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-gdb.spec
index 58a8891..3a47c07 100644
--- a/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-gdb.spec
+++ b/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-gdb.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/mips/rtems-4.11-mips-rtems4.11-binutils.spec b/rtems4.11/mips/rtems-4.11-mips-rtems4.11-binutils.spec
index 36cc281..be0874f 100644
--- a/rtems4.11/mips/rtems-4.11-mips-rtems4.11-binutils.spec
+++ b/rtems4.11/mips/rtems-4.11-mips-rtems4.11-binutils.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/mips/rtems-4.11-mips-rtems4.11-gcc.spec b/rtems4.11/mips/rtems-4.11-mips-rtems4.11-gcc.spec
index 87bf9ef..89bb1de 100644
--- a/rtems4.11/mips/rtems-4.11-mips-rtems4.11-gcc.spec
+++ b/rtems4.11/mips/rtems-4.11-mips-rtems4.11-gcc.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
@@ -164,6 +172,12 @@ BuildRequires:  %{_host_rpmprefix}gcc-c++
 %global gmp_provided 4.3.2
 %endif
 
+%if 0%{?mingw64}
+%global mpc_provided 1.0.1
+%global mpfr_provided 3.1.2
+%global gmp_provided 5.1.1
+%endif
+
 %if "%{gcc_version}" >= "4.2.0"
 %endif
 
@@ -449,14 +463,6 @@ echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-30%{?dist}" >
   make DESTDIR=$RPM_BUILD_ROOT install-info
   cd ../../..
 
-%if "%{gcc_version}" <= "4.1.2"
-# Misplaced header file
-  if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
-    mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
-      $RPM_BUILD_ROOT%{_gcclibdir}/gcc/mips-rtems4.11/%{gcc_version}/include/
-  fi
-%endif
-
   # host library
 %if "%{gcc_version}" >= "4.2.0"
   # libiberty doesn't honor --libdir, but always installs to a
diff --git a/rtems4.11/mips/rtems-4.11-mips-rtems4.11-gdb.spec b/rtems4.11/mips/rtems-4.11-mips-rtems4.11-gdb.spec
index cb44df5..2abf5fb 100644
--- a/rtems4.11/mips/rtems-4.11-mips-rtems4.11-gdb.spec
+++ b/rtems4.11/mips/rtems-4.11-mips-rtems4.11-gdb.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/mipstx39/rtems-4.11-mipstx39-rtems4.11-gdb.spec b/rtems4.11/mipstx39/rtems-4.11-mipstx39-rtems4.11-gdb.spec
index 45be7cb..15f5714 100644
--- a/rtems4.11/mipstx39/rtems-4.11-mipstx39-rtems4.11-gdb.spec
+++ b/rtems4.11/mipstx39/rtems-4.11-mipstx39-rtems4.11-gdb.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-binutils.spec b/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-binutils.spec
index a822514..d754ef7 100644
--- a/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-binutils.spec
+++ b/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-binutils.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-gcc.spec b/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-gcc.spec
index e20c740..104ffbd 100644
--- a/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-gcc.spec
+++ b/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-gcc.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
@@ -164,6 +172,12 @@ BuildRequires:  %{_host_rpmprefix}gcc-c++
 %global gmp_provided 4.3.2
 %endif
 
+%if 0%{?mingw64}
+%global mpc_provided 1.0.1
+%global mpfr_provided 3.1.2
+%global gmp_provided 5.1.1
+%endif
+
 %if "%{gcc_version}" >= "4.2.0"
 %endif
 
@@ -449,14 +463,6 @@ echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-30%{?dist}" >
   make DESTDIR=$RPM_BUILD_ROOT install-info
   cd ../../..
 
-%if "%{gcc_version}" <= "4.1.2"
-# Misplaced header file
-  if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
-    mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
-      $RPM_BUILD_ROOT%{_gcclibdir}/gcc/powerpc-rtems4.11/%{gcc_version}/include/
-  fi
-%endif
-
   # host library
 %if "%{gcc_version}" >= "4.2.0"
   # libiberty doesn't honor --libdir, but always installs to a
diff --git a/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-gdb.spec b/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-gdb.spec
index b0b3f3d..6faf5a0 100644
--- a/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-gdb.spec
+++ b/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-gdb.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/sh/rtems-4.11-sh-rtems4.11-binutils.spec b/rtems4.11/sh/rtems-4.11-sh-rtems4.11-binutils.spec
index c6ade62..352df55 100644
--- a/rtems4.11/sh/rtems-4.11-sh-rtems4.11-binutils.spec
+++ b/rtems4.11/sh/rtems-4.11-sh-rtems4.11-binutils.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/sh/rtems-4.11-sh-rtems4.11-gcc.spec b/rtems4.11/sh/rtems-4.11-sh-rtems4.11-gcc.spec
index 855bde8..f916791 100644
--- a/rtems4.11/sh/rtems-4.11-sh-rtems4.11-gcc.spec
+++ b/rtems4.11/sh/rtems-4.11-sh-rtems4.11-gcc.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
@@ -164,6 +172,12 @@ BuildRequires:  %{_host_rpmprefix}gcc-c++
 %global gmp_provided 4.3.2
 %endif
 
+%if 0%{?mingw64}
+%global mpc_provided 1.0.1
+%global mpfr_provided 3.1.2
+%global gmp_provided 5.1.1
+%endif
+
 %if "%{gcc_version}" >= "4.2.0"
 %endif
 
@@ -449,14 +463,6 @@ echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-30%{?dist}" >
   make DESTDIR=$RPM_BUILD_ROOT install-info
   cd ../../..
 
-%if "%{gcc_version}" <= "4.1.2"
-# Misplaced header file
-  if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
-    mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
-      $RPM_BUILD_ROOT%{_gcclibdir}/gcc/sh-rtems4.11/%{gcc_version}/include/
-  fi
-%endif
-
   # host library
 %if "%{gcc_version}" >= "4.2.0"
   # libiberty doesn't honor --libdir, but always installs to a
diff --git a/rtems4.11/sh/rtems-4.11-sh-rtems4.11-gdb.spec b/rtems4.11/sh/rtems-4.11-sh-rtems4.11-gdb.spec
index b9cafae..071574d 100644
--- a/rtems4.11/sh/rtems-4.11-sh-rtems4.11-gdb.spec
+++ b/rtems4.11/sh/rtems-4.11-sh-rtems4.11-gdb.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-binutils.spec b/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-binutils.spec
index 564fa22..084bf72 100644
--- a/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-binutils.spec
+++ b/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-binutils.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-gcc.spec b/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-gcc.spec
index d6cea61..0b5b1fd 100644
--- a/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-gcc.spec
+++ b/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-gcc.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
@@ -164,6 +172,12 @@ BuildRequires:  %{_host_rpmprefix}gcc-c++
 %global gmp_provided 4.3.2
 %endif
 
+%if 0%{?mingw64}
+%global mpc_provided 1.0.1
+%global mpfr_provided 3.1.2
+%global gmp_provided 5.1.1
+%endif
+
 %if "%{gcc_version}" >= "4.2.0"
 %endif
 
@@ -449,14 +463,6 @@ echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-30%{?dist}" >
   make DESTDIR=$RPM_BUILD_ROOT install-info
   cd ../../..
 
-%if "%{gcc_version}" <= "4.1.2"
-# Misplaced header file
-  if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
-    mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
-      $RPM_BUILD_ROOT%{_gcclibdir}/gcc/sparc-rtems4.11/%{gcc_version}/include/
-  fi
-%endif
-
   # host library
 %if "%{gcc_version}" >= "4.2.0"
   # libiberty doesn't honor --libdir, but always installs to a
diff --git a/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-gdb.spec b/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-gdb.spec
index c0fd6b2..40d4016 100644
--- a/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-gdb.spec
+++ b/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-gdb.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-binutils.spec b/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-binutils.spec
index aec8a5a..f8b3d1d 100644
--- a/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-binutils.spec
+++ b/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-binutils.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-gcc.spec b/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-gcc.spec
index a3c141f..28899f0 100644
--- a/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-gcc.spec
+++ b/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-gcc.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
@@ -164,6 +172,12 @@ BuildRequires:  %{_host_rpmprefix}gcc-c++
 %global gmp_provided 4.3.2
 %endif
 
+%if 0%{?mingw64}
+%global mpc_provided 1.0.1
+%global mpfr_provided 3.1.2
+%global gmp_provided 5.1.1
+%endif
+
 %if "%{gcc_version}" >= "4.2.0"
 %endif
 
@@ -449,14 +463,6 @@ echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-30%{?dist}" >
   make DESTDIR=$RPM_BUILD_ROOT install-info
   cd ../../..
 
-%if "%{gcc_version}" <= "4.1.2"
-# Misplaced header file
-  if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
-    mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
-      $RPM_BUILD_ROOT%{_gcclibdir}/gcc/sparc64-rtems4.11/%{gcc_version}/include/
-  fi
-%endif
-
   # host library
 %if "%{gcc_version}" >= "4.2.0"
   # libiberty doesn't honor --libdir, but always installs to a
diff --git a/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-gdb.spec b/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-gdb.spec
index 6e66126..deeb590 100644
--- a/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-gdb.spec
+++ b/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-gdb.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/v850/rtems-4.11-v850-rtems4.11-binutils.spec b/rtems4.11/v850/rtems-4.11-v850-rtems4.11-binutils.spec
index febd6c6..d9c5699 100644
--- a/rtems4.11/v850/rtems-4.11-v850-rtems4.11-binutils.spec
+++ b/rtems4.11/v850/rtems-4.11-v850-rtems4.11-binutils.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
diff --git a/rtems4.11/v850/rtems-4.11-v850-rtems4.11-gcc.spec b/rtems4.11/v850/rtems-4.11-v850-rtems4.11-gcc.spec
index be81852..6df039b 100644
--- a/rtems4.11/v850/rtems-4.11-v850-rtems4.11-gcc.spec
+++ b/rtems4.11/v850/rtems-4.11-v850-rtems4.11-gcc.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 
@@ -164,6 +172,12 @@ BuildRequires:  %{_host_rpmprefix}gcc-c++
 %global gmp_provided 4.3.2
 %endif
 
+%if 0%{?mingw64}
+%global mpc_provided 1.0.1
+%global mpfr_provided 3.1.2
+%global gmp_provided 5.1.1
+%endif
+
 %if "%{gcc_version}" >= "4.2.0"
 %endif
 
@@ -449,14 +463,6 @@ echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-30%{?dist}" >
   make DESTDIR=$RPM_BUILD_ROOT install-info
   cd ../../..
 
-%if "%{gcc_version}" <= "4.1.2"
-# Misplaced header file
-  if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
-    mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
-      $RPM_BUILD_ROOT%{_gcclibdir}/gcc/v850-rtems4.11/%{gcc_version}/include/
-  fi
-%endif
-
   # host library
 %if "%{gcc_version}" >= "4.2.0"
   # libiberty doesn't honor --libdir, but always installs to a
diff --git a/rtems4.11/v850/rtems-4.11-v850-rtems4.11-gdb.spec b/rtems4.11/v850/rtems-4.11-v850-rtems4.11-gdb.spec
index 64cf331..cf845fb 100644
--- a/rtems4.11/v850/rtems-4.11-v850-rtems4.11-gdb.spec
+++ b/rtems4.11/v850/rtems-4.11-v850-rtems4.11-gdb.spec
@@ -39,7 +39,15 @@
 %if %{defined _mingw32_cflags}
 %define optflags %{_mingw32_cflags}
 %else
-%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
+%endif
+%endif
+
+%ifos mingw mingw64
+%if %{defined _mingw64_cflags}
+%define optflags %{_mingw64_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4
 %endif
 %endif
 




More information about the vc mailing list