This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Tweak an error msg a little
- From: Marek Polacek <polacek at redhat dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Richard Henderson <rth at redhat dot com>, Aldy Hernandez <aldyh at redhat dot com>
- Date: Wed, 23 Apr 2014 12:22:48 +0200
- Subject: [PATCH] Tweak an error msg a little
- Authentication-results: sourceware.org; auth=none
I think it's better to be consistent and always quote the
"transaction_wrap" name, it even looks nicer.
I ran tm.exp tests, ok for trunk?
2014-04-23 Marek Polacek <polacek@redhat.com>
* c-common.c (handle_tm_wrap_attribute): Tweak error message.
diff --git gcc/c-family/c-common.c gcc/c-family/c-common.c
index 0b5ded8..a08c873 100644
--- gcc/c-family/c-common.c
+++ gcc/c-family/c-common.c
@@ -8421,7 +8421,7 @@ handle_tm_wrap_attribute (tree *node, tree name, tree args,
error ("%qD is not compatible with %qD", wrap_decl, decl);
}
else
- error ("transaction_wrap argument is not a function");
+ error ("%qE argument is not a function", name);
}
}
Marek