[rtems commit] m32csim.cfg: GCC PR37665 is fixed but there is still a compiler error. Use -O0.

Joel Sherrill joel at rtems.org
Fri Mar 11 20:14:54 UTC 2016


Module:    rtems
Branch:    master
Commit:    7d80eea61e06108419de814adc2924863ff4d890
Changeset: http://git.rtems.org/rtems/commit/?id=7d80eea61e06108419de814adc2924863ff4d890

Author:    Joel Sherrill <joel at rtems.org>
Date:      Thu Mar 10 16:12:27 2016 -0600

m32csim.cfg: GCC PR37665 is fixed but there is still a compiler error. Use -O0.

---

 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
 



More information about the vc mailing list