[PATCH] [MSP430] Fix device name symbol defined for MSP430i series of devices
Jozef Lawrynowicz
jozef.l@mittosystems.com
Wed Jun 6 20:59:00 GMT 2018
On 06/06/18 21:38, DJ Delorie wrote:
>> + snprintf (mcu_name, sizeof (mcu_name) - 1, "__%s__", target_mcu);
>> + start_upper = 0;
> Can optimize this to 2 :-)
>
> Otherwise OK.
Ah yes. Could also do:
- for (i = start_upper; i < strlen (mcu_name); i++)
+ for (i = start_upper; i < strlen (mcu_name) - 2; i++)
More information about the Gcc-patches
mailing list