From 9b09bfac867d563cbd2ec6fdffc7b7e4239b51ad Mon Sep 17 00:00:00 2001 From: Oleg Endo Date: Sun, 21 Dec 2014 22:36:33 +0000 Subject: [PATCH] re PR target/17280 (-mrelax and -O cause .uses directives in assembler to refer to non-existent local labels) gcc/testsuite/ PR target/17280 * gcc.target/sh/torture/pr17280.c: New. From-SVN: r218998 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/sh/torture/pr17280.c | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 gcc/testsuite/gcc.target/sh/torture/pr17280.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 85d11d01507..dd103bb8fac 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-12-21 Oleg Endo + + PR target/17280 + * gcc.target/sh/torture/pr17280.c: New. + 2014-12-19 Edward Smith-Rowland <3dw4rd@verizon.net> * g++.dg/cpp1y/feat-cxx98-neg.C: Enable __cpp_sized_deallocation test. diff --git a/gcc/testsuite/gcc.target/sh/torture/pr17280.c b/gcc/testsuite/gcc.target/sh/torture/pr17280.c new file mode 100644 index 00000000000..9e4fb71796e --- /dev/null +++ b/gcc/testsuite/gcc.target/sh/torture/pr17280.c @@ -0,0 +1,13 @@ +/* Check that there are no problems with .uses labels when branch relaxation + is enabled. */ +/* { dg-do assemble } */ +/* { dg-additional-options "-mrelax" } */ + +extern void foo (int); + +int +main (void) +{ + foo (7); + return 0; +} -- 2.30.2