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
+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.
/* { 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