From 4068377e7edc9f732278ad13a974409c332ba9b4 Mon Sep 17 00:00:00 2001 From: phessler Date: Sun, 15 Jan 2023 19:15:48 +0000 Subject: [PATCH] use USE_NOEXECONLY and disable jump tables so this gcc derivative builds --- devel/ti-msp430gcc/Makefile | 4 +++- .../patches/patch-sources_tools_gcc_common_opt | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 devel/ti-msp430gcc/patches/patch-sources_tools_gcc_common_opt diff --git a/devel/ti-msp430gcc/Makefile b/devel/ti-msp430gcc/Makefile index b8e48b8cd44..d1e44503626 100644 --- a/devel/ti-msp430gcc/Makefile +++ b/devel/ti-msp430gcc/Makefile @@ -1,9 +1,11 @@ BROKEN-alpha = relocation truncated to fit: GPRELHIGH against symbol default_target_hard_regs +USE_NOEXECONLY=Yes + COMMENT = TI's open source compiler for MSP430 microcontrollers#' V = 3_03_04_00 -REVISION = 6 +REVISION = 7 PKGNAME = ti-msp430gcc-${V:S/_/./g} GCC_V = 4.9.1 CATEGORIES = devel diff --git a/devel/ti-msp430gcc/patches/patch-sources_tools_gcc_common_opt b/devel/ti-msp430gcc/patches/patch-sources_tools_gcc_common_opt new file mode 100644 index 00000000000..22f78daf04b --- /dev/null +++ b/devel/ti-msp430gcc/patches/patch-sources_tools_gcc_common_opt @@ -0,0 +1,12 @@ +Index: sources/tools/gcc/common.opt +--- sources/tools/gcc/common.opt.orig ++++ sources/tools/gcc/common.opt +@@ -1468,7 +1468,7 @@ Common Report Var(flag_ivopts) Init(1) Optimization + Optimize induction variables on trees + + fjump-tables +-Common Var(flag_jump_tables) Init(1) Optimization ++Common Var(flag_jump_tables) Init(0) Optimization + Use jump tables for sufficiently large switch statements + + fkeep-inline-functions