Other Parts Discussed in Thread: MSP430F2618
I get the following link errors when compiling with -O4 and --small_enum options. Note: the build succeeds with -O3 and --small_enum.
<Linking>
remark #10205-D: automatic RTS selection: linking in "rts430x.lib" in place of
index library "libc.a"
remark #10371-D: (ULP 1.1) Detected no uses of low power mode state changes
using LPMx or _bis_SR_register() or __low_power_mode_x() in this project.
error: option --enum_type=unpacked is set in "copy_decompress_none.c", and is
>> Compilation failure
incompatible with the previously seen option --enum_type=packed
error: option --enum_type=unpacked is set in "copy_decompress_rle.c", and is
incompatible with the previously seen option --enum_type=packed
error: option --enum_type=unpacked is set in "copy_zero_init.c", and is
incompatible with the previously seen option --enum_type=packed
error: option --enum_type=unpacked is set in "delete.cpp", and is incompatible
with the previously seen option --enum_type=packed
error: option --enum_type=unpacked is set in "_lock.c", and is incompatible
>> Compilation failure
>> Compilation failure
with the previously seen option --enum_type=packed
error: option --enum_type=unpacked is set in "memory.c", and is incompatible
with the previously seen option --enum_type=packed
error: option --enum_type=unpacked is set in "pre_init.c", and is incompatible
with the previously seen option --enum_type=packed
error: option --enum_type=unpacked is set in "sinit.c", and is incompatible
with the previously seen option --enum_type=packed
error: option --enum_type=unpacked is set in "atexit.c", and is incompatible
with the previously seen option --enum_type=packed
error: option --enum_type=unpacked is set in "memcpy.c", and is incompatible
with the previously seen option --enum_type=packed
fatal error #10192: Failed linktime optimization
gmake: *** [ccs-hello-world.out] Error 1
**** Build Finished ****
Shouldn't the run-time library get rebuilt with the --small_enum option ?? Would that fix the problem ??