Re: [RFC][PATCH] Faster generic_fls

Chuck Ebbert (76306.1226@compuserve.com)
Fri, 2 May 2003 22:21:26 -0400


>> return conf->last_used = new_disk;
>>
>> (new_disk is a local variable, conf is a function arg.)
>
> Since new_disk is on the stack, is there something about 'conf'
> that guarenetes it is not on the stack too? F.e. what if
> &conf->last_used were one byte into 'new_disk' or something
> like that.

It could -- I had thought the -fno-strict-aliasing option
meant exactly the opposite of what it really means. Since the
compiler has been told to be pessimistic about possibilities
like this maybe that's what it has to do.
------
Chuck
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/