PR c/50459
commit3e5a8b001a11b968d2e2979f4092734fcd82bc37
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 May 2014 08:24:37 +0000 (9 08:24 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 May 2014 08:24:37 +0000 (9 08:24 +0000)
tree35edbf8e14134b0cba3c9df371c7f28c16b8e69b
parent4a3826df3424d00e12b0f3cc3a5d21f69051f793
PR c/50459
c-family/
* c-common.c (check_user_alignment): Return -1 if alignment is error
node.
(handle_aligned_attribute): Don't call default_conversion on
FUNCTION_DECLs.
(handle_vector_size_attribute): Likewise.
(handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
(handle_sentinel_attribute): Call default_conversion and allow even
integral types as an argument.
c/
* c-parser.c (c_parser_attributes): Parse the arguments as an
expression-list if the attribute takes identifier.
testsuite/
* c-c++-common/attributes-1.c: Move test line to a new test.
* c-c++-common/attributes-2.c: New test.
* c-c++-common/pr50459.c: New test.
* c-c++-common/pr59280.c: Add "undeclared" to dg-error.
* gcc.dg/nonnull-2.c: Likewise.
* gcc.dg/pr55570.c: Modify dg-error.
* gcc.dg/tm/wrap-2.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210262 138bc75d-0d04-0410-961f-82ee72b054a4
12 files changed:
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/attributes-1.c
gcc/testsuite/c-c++-common/attributes-2.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/pr50459.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/pr59280.c
gcc/testsuite/gcc.dg/nonnull-2.c
gcc/testsuite/gcc.dg/pr55570.c
gcc/testsuite/gcc.dg/tm/wrap-2.c