summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-14 17:50:48 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-14 17:50:48 +0000
commit035eac0d126b4b8b18e31c7b4565acf6cb4786d5 (patch)
tree459645466df592271d8b79db86db6812117f1f79
parent62ede4837f265a37a713aa9c78b863e0197bb3af (diff)
downloadgcc-035eac0d126b4b8b18e31c7b4565acf6cb4786d5.tar.gz
Fix PR/7566
* c-semantics.c (genrtl_case_label): Don't (mis)use warning_with_decl. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56329 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/c-semantics.c3
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bb6158e06bd..7143413f998 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2002-08-14 Gabriel Dos Reis <gdr@nerim.net>
+
+ Fix PR/7566
+ * c-semantics.c (genrtl_case_label): Don't (mis)use
+ warning_with_decl.
+
2002-08-14 Dale Johannesen <dalej@apple.com>
* explow.c (emit_stack_restore): Emit memory clobbers
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c
index 32fae448210..90b3cc141ac 100644
--- a/gcc/c-semantics.c
+++ b/gcc/c-semantics.c
@@ -673,8 +673,7 @@ genrtl_case_label (case_label)
if (cleanup)
{
static int explained = 0;
- warning_with_decl (TREE_PURPOSE (cleanup),
- "destructor needed for `%#D'");
+ warning ("destructor needed for `%#D'", (TREE_PURPOSE (cleanup)));
warning ("where case label appears here");
if (!explained)
{