Jamie Lokier writes:
> This is generally true, though there are a few situations where x86 GCC
> makes some decisions about which instruction pattern to use before it
> realises that `this_cpu' is constant. It probably makes no difference
> in this example.
>
> Of course, it knows the array has only one element so in principle it
> could always just optimise away the index ;-)
Since "this_cpu" is constant, shouldn't it be declared as a const auto
variable?
_____
|_____| ------------------------------------------------- ---+---+-
| | Russell King rmk@arm.linux.org.uk --- ---
| | | | http://www.arm.linux.org.uk/~rmk/aboutme.html / / |
| +-+-+ --- -+-
/ | THE developer of ARM Linux |+| /|\
/ | | | --- |
+-+-+ ------------------------------------------------- /\\\ |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Mon Jul 31 2000 - 21:00:27 EST