From 81fea426da8c4687bb32e6894dc26f00ae211822 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Mon, 26 Sep 2016 09:42:50 +0000 Subject: Implement -Wimplicit-fallthrough. Co-Authored-By: Jakub Jelinek From-SVN: r240485 --- gcc/internal-fn.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gcc/internal-fn.c') diff --git a/gcc/internal-fn.c b/gcc/internal-fn.c index c269ca6..029a534 100644 --- a/gcc/internal-fn.c +++ b/gcc/internal-fn.c @@ -244,6 +244,15 @@ expand_TSAN_FUNC_EXIT (internal_fn, gcall *) gcc_unreachable (); } +/* This should get expanded in the lower pass. */ + +static void +expand_FALLTHROUGH (internal_fn, gcall *call) +{ + error_at (gimple_location (call), + "invalid use of attribute %"); +} + /* Helper function for expand_addsub_overflow. Return 1 if ARG interpreted as signed in its precision is known to be always positive or 2 if ARG is known to be always negative, or 3 if ARG may -- cgit v1.1