This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] [MSP430] Fix device name symbol defined for MSP430i series of devices
- From: DJ Delorie <dj at redhat dot com>
- To: Jozef Lawrynowicz <jozef dot l at mittosystems dot com>
- Cc: gcc-patches at gcc dot gnu dot org, nickc at redhat dot com
- Date: Mon, 04 Jun 2018 13:26:07 -0400
- Subject: Re: [PATCH] [MSP430] Fix device name symbol defined for MSP430i series of devices
Jozef Lawrynowicz <jozef.l@mittosystems.com> writes:
> + if (strncmp (target_mcu, "msp430i", 7) == 0)
> + snprintf (mcu_name, sizeof (mcu_name) - 1, "__MSP430i%s__",
> + target_mcu + 7);
> + else
Do you need to TOUPPER the parts of target_mcu after char 7 ?