svn commit: r328159 - head/sys/modules

Benjamin Kaduk bjkfbsd at gmail.com
Fri Jan 19 04:54:57 UTC 2018


On Thu, Jan 18, 2018 at 10:49 PM, Conrad Meyer <cem at freebsd.org> wrote:

> No.  It is the only logical result of a logical right shift larger
> than the left operand.  The C standard may claim that is undefined,
> but that does not change the only logical result (zero).
>
>
My point is that the compiler does not arbitrarily decide that this
behavior merits
a warning; the compiler is thoroughly grounded in the C language
specification
to do so.  The compiler does not adhere to our human standard of "logic";
it follows
the language spec, warts and all.

-Ben


More information about the svn-src-all mailing list