smbfs bug introduced at smbfs_vnops.c:1.58
Chuck Swiger
cswiger at mac.com
Sun Apr 10 10:10:39 PDT 2005
Daniel Ellard wrote:
> On Sun, 10 Apr 2005, Dimitry Andric wrote:
[ ... ]
> At least the gcc folk now do detect this old chestnut:
>
> {
> int a;
>
> a /= 0;
> }
>
> which was used to provoke arguments in compiler
> classes for many years. (Optimized, nothing happens.
> Unoptimized, a division-by-zero error happens...)
Great example.
If the optimized code fails to generate a division-by-zero error here, the
optimizer is buggy. (I won't quote Aho, Sethi, and Ullman again.... :-)
--
-Chuck
More information about the freebsd-fs
mailing list