[PATCH] force -mno-string option on cell
Paul Mackerras
paulus at samba.org
Sat Mar 24 14:02:02 EST 2007
Segher Boessenkool writes:
> What your patch does is setting -mno-string for all files
> if your kernel is configured to support Cell. It would be
> better to set this option (and all other options needed,
> -mno-multiple and -mno-algebraic come to mind, and that last
> compiler option doesn't even exist yet) unconditionally on
> the few Cell-specific files that are affected, not on the
> whole kernel:
>
> CFLAGS_whatever.o := -msome-flags
Unless someone can show a measurable difference in performance between
a kernel compiled with -mno-string and one compiled without (with the
kernel compiled without being faster), then I would be inclined just
to add -mno-string everywhere, since there are some cpus (e.g. e500
cores) where string instructions aren't implemented.
Paul.
More information about the Linuxppc-dev
mailing list