I can not see any connection between the pin definition and gcc version issue.
Looks like you have already defined software SPI and it works.
Most probably, you are actually, asking to define HW SPI there, for those pins.
diff --git a/src/rp2040/spi.c b/src/rp2040/spi.c
index 4cf2eb799..d2c8df951 100644
--- a/src/rp2040/spi.c
+++ b/src/rp2040/spi.c
@@ -29,6 +29,8 @@ DECL_ENUMERATION("spi_bus", "spi1_gpio12_gpio15_gpio14", 6);
DECL_CONSTANT_STR("BUS_PINS_spi1_gpio12_gpio15_gpio14", "gpio12,gpio15,gpio14");
DECL_ENUMERATION("spi_bus", "spi1_gpio24_gpio27_gpio26", 7);
DECL_CONSTANT_STR("BUS_PINS_spi1_gpio24_gpio27_gpio26", "gpio24,gpio27,gpio26");
+DECL_ENUMERATION("spi_bus", "spi1_gpio12_gpio11_gpio10", 8);
+DECL_CONSTANT_STR("BUS_PINS_spi1_gpio12_gpio11_gpio10", "gpio12,gpio11,gpio10");
//Deprecated "spi0a" style mappings
DECL_ENUMERATION("spi_bus", "spi0a", 0);
@@ -63,6 +65,7 @@ static const struct spi_info spi_bus[] = {
{spi1_hw, 8, 11, 10, RESETS_RESET_SPI1_BITS},
{spi1_hw, 12, 15, 14, RESETS_RESET_SPI1_BITS},
{spi1_hw, 24, 27, 26, RESETS_RESET_SPI1_BITS},
+ {spi1_hw, 12, 11, 10, RESETS_RESET_SPI1_BITS},
};
struct spi_config
I think it is possible.
Hope that helps.