Re: [PATCH] selftest.h: mark failure functions with "noreturn"

2016-08-26 Thread Eric Gallager
On 8/26/16, Bernd Schmidt wrote: > On 08/26/2016 06:05 PM, David Malcolm wrote: >> selftest::fail and selftest::fail_formatted call abort. Marking >> them as "noreturn" can help eliminate false warnings about unreachable >> code in selftests. >> >> Successfully bootstrapped®rtested on x86_64-pc-l

Re: [PATCH] selftest.h: mark failure functions with "noreturn"

2016-08-26 Thread Bernd Schmidt
On 08/26/2016 06:05 PM, David Malcolm wrote: selftest::fail and selftest::fail_formatted call abort. Marking them as "noreturn" can help eliminate false warnings about unreachable code in selftests. Successfully bootstrapped®rtested on x86_64-pc-linux-gnu. OK for trunk? Don't we want to wrap

[PATCH] selftest.h: mark failure functions with "noreturn"

2016-08-26 Thread David Malcolm
selftest::fail and selftest::fail_formatted call abort. Marking them as "noreturn" can help eliminate false warnings about unreachable code in selftests. Successfully bootstrapped®rtested on x86_64-pc-linux-gnu. OK for trunk? gcc/ChangeLog: * selftest.h (selftest::fail): Add __attribute