diff options
author | Tom de Vries <tom@codesourcery.com> | 2017-10-09 09:20:38 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2017-10-09 09:20:38 +0000 |
commit | b7807e11c4d56ffc299a15e727ab3bf670d0fb8e (patch) | |
tree | b9cda19334ec300df0b63ee6d862e396c40ebfc2 | |
parent | 86a6f91eec4dcfd084a4cf6d3eb9be9154443476 (diff) | |
download | gcc-b7807e11c4d56ffc299a15e727ab3bf670d0fb8e.zip gcc-b7807e11c4d56ffc299a15e727ab3bf670d0fb8e.tar.gz gcc-b7807e11c4d56ffc299a15e727ab3bf670d0fb8e.tar.bz2 |
Fix gcc.dg/cold-1.c
2017-10-09 Tom de Vries <tom@codesourcery.com>
* gcc.dg/cold-1.c (foo1): Fix warning line number. Make warning line
number relative.
(abort): Declare.
From-SVN: r253537
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cold-1.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c2a658c..37b33ef 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-10-09 Tom de Vries <tom@codesourcery.com> + + * gcc.dg/cold-1.c (foo1): Fix warning line number. Make warning line + number relative. + (abort): Declare. + 2017-10-08 Eric Botcazou <ebotcazou@adacore.com> * gcc.c-torture/execute/20171008-1.c: New test. diff --git a/gcc/testsuite/gcc.dg/cold-1.c b/gcc/testsuite/gcc.dg/cold-1.c index 8ea88dd..ba1cd3a 100644 --- a/gcc/testsuite/gcc.dg/cold-1.c +++ b/gcc/testsuite/gcc.dg/cold-1.c @@ -1,11 +1,12 @@ /* { dg-do compile { target nonpic } } */ /* { dg-options "-O2 -Wsuggest-attribute=cold" } */ +extern void abort (void); extern void do_something_interesting_and_never_return (); int foo1(int a) -{ /* { dg-warning "cold" "detect cold candidate" { target *-*-* } "8" } */ +{ /* { dg-warning "cold" "detect cold candidate" { target *-*-* } ".-1" } */ if (a) abort (); else |