From: Oleg Endo Date: Sun, 21 Dec 2014 22:36:33 +0000 (+0000) Subject: re PR target/17280 (-mrelax and -O cause .uses directives in assembler to refer to... X-Git-Tag: releases/gcc-5.1.0~2205 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b09bfac867d563cbd2ec6fdffc7b7e4239b51ad;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 85d11d015071..dd103bb8fac8 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 000000000000..9e4fb71796e2 --- /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; +}