summaryrefslogtreecommitdiffstats
path: root/rtems/config/rtems-gcc-4.4.7-newlib-1.18.0-1.cfg
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2012-11-07 05:10:39 +1100
committerChris Johns <chrisj@rtems.org>2012-11-07 05:10:39 +1100
commit776070641437fa681656149c8a1f55b23064b356 (patch)
tree0a4f19a6a15ca97edb88a503743071f048b43ee1 /rtems/config/rtems-gcc-4.4.7-newlib-1.18.0-1.cfg
parentDisable C++ for AVR. (diff)
downloadrtems-source-builder-776070641437fa681656149c8a1f55b23064b356.tar.bz2
Disable C++ on M32C. Fix target to _target bug.
Diffstat (limited to 'rtems/config/rtems-gcc-4.4.7-newlib-1.18.0-1.cfg')
-rw-r--r--rtems/config/rtems-gcc-4.4.7-newlib-1.18.0-1.cfg16
1 files changed, 15 insertions, 1 deletions
diff --git a/rtems/config/rtems-gcc-4.4.7-newlib-1.18.0-1.cfg b/rtems/config/rtems-gcc-4.4.7-newlib-1.18.0-1.cfg
index aeb2a20..22ee2d8 100644
--- a/rtems/config/rtems-gcc-4.4.7-newlib-1.18.0-1.cfg
+++ b/rtems/config/rtems-gcc-4.4.7-newlib-1.18.0-1.cfg
@@ -19,15 +19,29 @@
# AVR C++ does not work.
# configure: error: unable to detect exception model
#
-%if %{target} == avr-rtems4.10
+%if %{_target} == avr-rtems4.10
%define enable_cxx 0
%endif
#
+# M32C C++ does not work.
+# gcc-4.4.7/libstdc++-v3/src/mt_allocator.cc:76: error: cast from 'void*' to 'size_t' loses precision
+#
+%if %{_target} == m32c-rtems4.10
+%define enable_cxx 0
+%endif
+
+%ifn %{defined enable_cxx}
+%define enable_cxx 1
+%endif
+
+#
# The RTEMS 4.10 patches
#
Patch0: gcc-core-4.4.7-rtems4.10-20120314.diff
+%if %{enable_cxx}
Patch1: gcc-g++-4.4.7-rtems4.10-20120314.diff
+%endif
Patch10: newlib-1.18.0-rtems4.10-20110518.diff
#