From dc372d7d1f1efc1a4e60339ed1842b0353fee46b Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Tue, 19 May 2020 14:49:14 +0300 Subject: [PATCH] BareMetal: Add support for Renesas M32C architecture in GCC toolchain This commit adds support for the M32C atchitecture: * https://www.renesas.com/us/en/products/microcontrollers-microprocessors/m16c.html using GCC toolchains. Tested auto-detection on Windows using the GCC v4.7.3 toolchain provided from the following URL: * https://gnutoolchains.com/m32c-elf/ Change-Id: Iaddd69e3109a4bd81d094dcb4edab29c8b398f01 Reviewed-by: hjk --- src/plugins/projectexplorer/abi.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/projectexplorer/abi.cpp b/src/plugins/projectexplorer/abi.cpp index ee310020f15..131c739bbd7 100644 --- a/src/plugins/projectexplorer/abi.cpp +++ b/src/plugins/projectexplorer/abi.cpp @@ -523,6 +523,12 @@ Abi Abi::abiFromTargetTriplet(const QString &triple) flavor = GenericFlavor; format = ElfFormat; width = 16; + } else if (p == "m32c") { + arch = M32CArchitecture; + os = BareMetalOS; + flavor = GenericFlavor; + format = ElfFormat; + width = 16; } else if (p.startsWith("riscv")) { arch = RiscVArchitecture; os = BareMetalOS;