aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2010-04-14 16:17:34 -0400
committerJason Merrill <jason@gcc.gnu.org>2010-04-14 16:17:34 -0400
commit943f82e7681224a36aadf743b6572ef55ec9e7ec (patch)
tree15fb63d52eb5842deac30924073c0b3cdfc5783f /gcc/c-common.h
parent17fb1a8ce7ef03fcd293c16fc2e5bf087b165802 (diff)
downloadgcc-943f82e7681224a36aadf743b6572ef55ec9e7ec.zip
gcc-943f82e7681224a36aadf743b6572ef55ec9e7ec.tar.gz
gcc-943f82e7681224a36aadf743b6572ef55ec9e7ec.tar.bz2
re PR c++/36625 (bogus error on __attribute__((aligned(N))) in template code)
PR c++/36625 * c-common.c (attribute_takes_identifier_p): New fn. * c-common.h: Declare it. cp/ * parser.c (cp_parser_parenthesized_expression_list): Change is_attribute_list parm to int to indicate whether or not to handle initial identifier specially. (cp_parser_attribute_list): Use attribute_takes_identifier_p. From-SVN: r158355
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index 6f8d832..6ed3849 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -822,6 +822,7 @@ extern void check_function_format (tree, int, tree *);
extern void set_Wformat (int);
extern tree handle_format_attribute (tree *, tree, tree, int, bool *);
extern tree handle_format_arg_attribute (tree *, tree, tree, int, bool *);
+extern bool attribute_takes_identifier_p (tree);
extern int c_common_handle_option (size_t code, const char *arg, int value);
extern bool c_common_missing_argument (const char *opt, size_t code);
extern tree c_common_type_for_mode (enum machine_mode, int);