From 9dcc9b3b01f3bb19bf88f88ff3428c187c75ceb7 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 23 Jan 2012 09:43:25 -0500 Subject: [PATCH] re PR target/51934 (FAIL: g++.dg/torture/pr51344.C -O0 (test for excess errors) due to "cdecl attribute ignored" warning) PR target/51934 * g++.dg/torture/pr51344.C: Use noreturn instead of cdecl. From-SVN: r183434 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/torture/pr51344.C | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ca1ecdf5223b..ca7f6b00b3c2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-01-23 Jason Merrill + + PR target/51934 + * g++.dg/torture/pr51344.C: Use noreturn instead of cdecl. + 2012-01-23 Greta Yorsh * c-c++-common/tm/omp.c: Require target with pthread support. diff --git a/gcc/testsuite/g++.dg/torture/pr51344.C b/gcc/testsuite/g++.dg/torture/pr51344.C index 49018325e42a..b076fecea330 100644 --- a/gcc/testsuite/g++.dg/torture/pr51344.C +++ b/gcc/testsuite/g++.dg/torture/pr51344.C @@ -4,7 +4,7 @@ class A; template class B { - friend __attribute__((cdecl)) A& operator >>(A& a, B& b) + friend __attribute__((noreturn)) A& operator >>(A& a, B& b) { return a; }