On Wed, 13 Jul 2016, Marek Polacek wrote:

Does "__attribute__((fallthrough));" have any advantages over "__builtin_fallthrough()"?

Not a strong argument, but compilers that don't know the construct will give an error on the builtin, and just a warning on the attribute (and ignore the comment, which makes both other versions less relevant).

Unrelated question: are there cases where __builtin_fallthrough() has any impact on code generation?

--
Marc Glisse

Reply via email to