aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family/c-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-family/c-common.c')
-rw-r--r--gcc/c-family/c-common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c
index 0749361..c8e1f0d 100644
--- a/gcc/c-family/c-common.c
+++ b/gcc/c-family/c-common.c
@@ -5558,6 +5558,8 @@ parse_optimize_options (tree args, bool attr_p)
bool
attribute_fallthrough_p (tree attr)
{
+ if (attr == error_mark_node)
+ return false;
tree t = lookup_attribute ("fallthrough", attr);
if (t == NULL_TREE)
return false;