summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m32c/m32cbsp/make/custom/m32csim.cfg
blob: 491f000597cc36f0a54d024a2fd364c26f2c94c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
#  Config file for the M32C GDB Simulator
#

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
CFLAGS_OPTIMIZE_V = -O0 -g
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections

LDFLAGS = -Wl,--gc-sections