aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorJozef Lawrynowicz <jozef.l@mittosystems.com>2019-12-16 11:02:10 +0000
committerJozef Lawrynowicz <jozefl@gcc.gnu.org>2019-12-16 11:02:10 +0000
commite8aa9f55f6486a9503d4f9e6b88b8f81d1daab15 (patch)
tree7d8a497de23ddd18c6c1a5a753ff27c1d0f9e89d /libgcc
parent1edfb10a5aa9b8943ea9971dd8261b39327eeae2 (diff)
downloadgcc-e8aa9f55f6486a9503d4f9e6b88b8f81d1daab15.zip
gcc-e8aa9f55f6486a9503d4f9e6b88b8f81d1daab15.tar.gz
gcc-e8aa9f55f6486a9503d4f9e6b88b8f81d1daab15.tar.bz2
MSP430: Add new msp430-elfbare target
contrib/ChangeLog: 2019-12-16 Jozef Lawrynowicz <jozef.l@mittosystems.com> * config-list.mk: Add msp430-elfbare. gcc/ChangeLog: 2019-12-16 Jozef Lawrynowicz <jozef.l@mittosystems.com> * config.gcc: s/msp430*-*-*/msp430-*-*. Handle msp430-*-elfbare. * config/msp430/msp430-devices.c (TARGET_SUBDIR): Define. (_MSPMKSTR): Define. (__MSPMKSTR): Define. (rest_of_devices_path): Use TARGET_SUBDIR value in string. * config/msp430/msp430.c (msp430_option_override): Error if -fuse-cxa-atexit is used when it has been disabled at configure time. * config/msp430/t-msp430: Define TARGET_SUBDIR when building msp430-devices.o. * doc/install.texi: Document msp430-*-elf and msp430-*-elfbare. * doc/invoke.texi: Update documentation about which path devices.csv is searched for. gcc/testsuite/ChangeLog: 2019-12-16 Jozef Lawrynowicz <jozef.l@mittosystems.com> * g++.dg/init/dso_handle1.C: Require cxa_atexit support. * g++.dg/init/dso_handle2.C: Likewise. * g++.dg/other/cxa-atexit1.C: Likewise. * gcc.target/msp430/msp430.exp: Update csv-using-installed.c test to handle msp430-elfbare configuration. libgcc/ChangeLog: 2019-12-16 Jozef Lawrynowicz <jozef.l@mittosystems.com> * config.host: s/msp430*-*-elf/msp430-*-elf*. Override default "extra_parts" variable. * configure: Regenerate. * configure.ac: Disable TM clone registry by default for msp430-elfbare. From-SVN: r279442
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog8
-rw-r--r--libgcc/config.host4
-rwxr-xr-xlibgcc/configure9
-rw-r--r--libgcc/configure.ac8
4 files changed, 27 insertions, 2 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 90ea2a4..6faa4d3 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,11 @@
+2019-12-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
+
+ * config.host: s/msp430*-*-elf/msp430-*-elf*.
+ Override default "extra_parts" variable.
+ * configure: Regenerate.
+ * configure.ac: Disable TM clone registry by default for
+ msp430-elfbare.
+
2019-12-11 Jozef Lawrynowicz <jozef.l@mittosystems.com>
* config.host (msp430*-*-elf): Add crt{begin,end}_no_eh.o to
diff --git a/libgcc/config.host b/libgcc/config.host
index 5686871..efcf5f0 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -1043,9 +1043,9 @@ moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
;;
-msp430*-*-elf)
+msp430-*-elf*)
tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
- extra_parts="$extra_parts crtbegin_no_eh.o crtend_no_eh.o"
+ extra_parts="crtbegin.o crtend.o crtbegin_no_eh.o crtend_no_eh.o"
extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a"
;;
nds32*-linux*)
diff --git a/libgcc/configure b/libgcc/configure
index 117e9c9..97cbad3 100755
--- a/libgcc/configure
+++ b/libgcc/configure
@@ -4964,6 +4964,15 @@ if test "$enable_tm_clone_registry" = no; then
use_tm_clone_registry=-DUSE_TM_CLONE_REGISTRY=0
fi
+else
+
+use_tm_clone_registry=
+case $target in
+ msp430*elfbare)
+ use_tm_clone_registry=-DUSE_TM_CLONE_REGISTRY=0
+ ;;
+esac
+
fi
diff --git a/libgcc/configure.ac b/libgcc/configure.ac
index f63c5e7..2d22f05 100644
--- a/libgcc/configure.ac
+++ b/libgcc/configure.ac
@@ -268,6 +268,14 @@ use_tm_clone_registry=
if test "$enable_tm_clone_registry" = no; then
use_tm_clone_registry=-DUSE_TM_CLONE_REGISTRY=0
fi
+],
+[
+use_tm_clone_registry=
+case $target in
+ msp430*elfbare)
+ use_tm_clone_registry=-DUSE_TM_CLONE_REGISTRY=0
+ ;;
+esac
])
AC_SUBST([use_tm_clone_registry])