PR middle-end/97879 - ICE on invalid mode in attribute access
authorMartin Sebor <msebor@redhat.com>
Fri, 20 Nov 2020 20:44:57 +0000 (13:44 -0700)
committerMartin Sebor <msebor@redhat.com>
Fri, 20 Nov 2020 20:46:42 +0000 (13:46 -0700)
commitdf90f070378583f295dd972db4400f324752a240
tree517fce4e670892715baeefb7f19cf09f1824cabe
parenta01dda3c23b836754814fab1cab949a1bbc641e8
PR middle-end/97879 - ICE on invalid mode in attribute access

gcc/c-family/ChangeLog:

PR middle-end/97879
* c-attribs.c (handle_access_attribute): Handle ATTR_FLAG_INTERNAL.
Error out on invalid modes.

gcc/c/ChangeLog:
PR middle-end/97879
* c-decl.c (start_function): Set ATTR_FLAG_INTERNAL in flags.

gcc/ChangeLog:

PR middle-end/97879
* tree-core.h (enum attribute_flags): Add ATTR_FLAG_INTERNAL.

gcc/testsuite/ChangeLog:

PR middle-end/97879
* gcc.dg/attr-access-3.c: New test.
gcc/c-family/c-attribs.c
gcc/c/c-decl.c
gcc/testsuite/gcc.dg/attr-access-3.c [new file with mode: 0644]
gcc/tree-core.h