From 4701fba31cd2c7d5d6cd0af9a971ef802afc89e3 Mon Sep 17 00:00:00 2001 From: Joe Seymour Date: Wed, 18 Jan 2017 03:56:10 +0000 Subject: t-msp430 (LIB2ADD): Remove mpy.c libgcc/ * config/msp430/t-msp430 (LIB2ADD): Remove mpy.c (mpy.o): New rule. (libmul_none.a): Add mpy.o gcc/testsuite/ * gcc.target/msp430/mul_f5_muldef.c: New test. From-SVN: r244564 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.target/msp430/mul_f5_muldef.c | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 gcc/testsuite/gcc.target/msp430/mul_f5_muldef.c (limited to 'gcc') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0628f49..738afb6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2017-01-17 Joe Seymour + + * gcc.target/msp430/mul_f5_muldef.c: New test. + 2017-01-17 Michael Meissner PR target/79004 diff --git a/gcc/testsuite/gcc.target/msp430/mul_f5_muldef.c b/gcc/testsuite/gcc.target/msp430/mul_f5_muldef.c new file mode 100644 index 0000000..da1b1bb --- /dev/null +++ b/gcc/testsuite/gcc.target/msp430/mul_f5_muldef.c @@ -0,0 +1,15 @@ +/* { dg-do link } */ +/* { dg-options "-mhwmult=f5series" } */ + +/* This program used to result in a multiple definition error: + +libmul_f5.a(lib2hw_mul_f5.o): In function `__mulhi2_f5': +(.text.__mulhi2_f5+0x0): multiple definition of `__mspabi_mpyi' +libgcc.a(mpy.o):mpy.c:(.text.__mulhi3+0x0): first defined here */ + +#include + +int main (void) +{ + printf ("%d", 430); +} -- cgit v1.1