ruby/ruby — pull request #147 by xiw (2012-07-17 14:52:46+00:00)
Title: intern.h: mark rb_num_zerodiv as NORETURN

Consider the following code in time.c (quo).

if (b == 0) rb_num_zerodiv();
c = a / b;

This patch informs the compiler that rb_num_zerodiv doesn't return.
Otherwise some compilers may conclude that the division a / b is always
reachable, leading to misoptimization.

https://bugs.ruby-lang.org/issues/6736