Re: [PATCH] crc32: remove useless __pure modifier from functions

From: Thiago Galesi
Date: Mon Mar 02 2009 - 12:42:48 EST


>
> Hmm. They're not marked as pure in the header files. Does GCC look it up
> from the object file or something for this...?

I just tested this, the answer is No :(

It only works if it's marked in the header. But when it's marked, it
works, and redundant calls are optimized.

--
-
Thiago Galesi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/