From 029cda0ee7311ee887adebccda82ec0da764a726 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 25 Mar 2020 12:15:49 +0100 Subject: msp430fr5994lp-256k: aspectc support AspectC++ is not aware of the type "__int20", so we need to map it to a type known to AspectC++ (only for ag++, not g++) and fix its autogenerated constructor signatures. --- src/arch/msp430fr5994lp-256k/g++wrap | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 src/arch/msp430fr5994lp-256k/g++wrap (limited to 'src/arch/msp430fr5994lp-256k/g++wrap') diff --git a/src/arch/msp430fr5994lp-256k/g++wrap b/src/arch/msp430fr5994lp-256k/g++wrap new file mode 100755 index 0000000..df8c7ab --- /dev/null +++ b/src/arch/msp430fr5994lp-256k/g++wrap @@ -0,0 +1,11 @@ +#!/bin/zsh + +echo "> $@" + +for i in {1..$#}; do + if [[ $argv[$i] == *_agxx_* && -f $argv[$i] ]]; then + sed -i 's/inline void \* operator new (unsigned int,/inline void * operator new(__int20 unsigned,/' $argv[$i] + fi +done + +exec /opt/msp430/ti/msp430-gcc-full-linux-5.1.2.0/bin/msp430-elf-g++ "$@" -- cgit v1.2.3