[PATCH 21/32] m32csim.cfg: GCC PR37665 is fixed but there is still a compiler error. Use -O0.
Joel Sherrill
joel at rtems.org
Fri Mar 11 00:15:26 UTC 2016
---
c/src/lib/libbsp/m32c/m32cbsp/make/custom/m32csim.cfg | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/c/src/lib/libbsp/m32c/m32cbsp/make/custom/m32csim.cfg b/c/src/lib/libbsp/m32c/m32cbsp/make/custom/m32csim.cfg
index 491f000..9629e48 100644
--- a/c/src/lib/libbsp/m32c/m32cbsp/make/custom/m32csim.cfg
+++ b/c/src/lib/libbsp/m32c/m32cbsp/make/custom/m32csim.cfg
@@ -7,13 +7,10 @@ include $(RTEMS_ROOT)/make/custom/default.cfg
RTEMS_CPU=m32c
RTEMS_CPU_MODEL=m32c
-# This contains the compiler options necessary to select the CPU model
-# and (hopefully) optimize for it.
CPU_CFLAGS = -mcpu=m32cm
-# optimize flag: typically -O2
-# see GCC PR37665
-#CFLAGS_OPTIMIZE_V = -Os -g
+# Unreported GCC Bug results in ICE in cpu.c. Use -O0
+# CFLAGS_OPTIMIZE_V = -Os -g
CFLAGS_OPTIMIZE_V = -O0 -g
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
--
1.8.3.1
More information about the devel
mailing list