summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2016-03-10 16:12:27 -0600
committerJoel Sherrill <joel@rtems.org>2016-03-10 18:10:17 -0600
commit7d80eea61e06108419de814adc2924863ff4d890 (patch)
tree7cc59695effd511b6f5f55457b3b6912a479ec45
parentm32c/m32csim: Add per-section compilation and linking support (diff)
downloadrtems-7d80eea61e06108419de814adc2924863ff4d890.tar.bz2
m32csim.cfg: GCC PR37665 is fixed but there is still a compiler error. Use -O0.
-rw-r--r--c/src/lib/libbsp/m32c/m32cbsp/make/custom/m32csim.cfg7
1 files 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 491f000597..9629e485c0 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