Re: [git pull] x86 fixes

Adrian Bunk
2008-09-09T16:59:22Z

On Mon, Sep 08, 2008 at 11:04:30AM -0700, Linus Torvalds wrote:
>
>
> On Mon, 8 Sep 2008, H. Peter Anvin wrote:
> >
> > config X86_GENERIC
> > - bool "Generic x86 support"
> > + bool "Generic x86 support" if EMBEDDED
>
> Ok, so after having realized that this seems to be more about a bug with
> gcc, I'm really not as convinced any more.
>
> As far as I can tell, there are three issues:
>
> - "-mtune=core/core2/pentium4/.." is buggy in some gas/gcc versions on
> x86-32, and makes architectural choices.
>
> Any actual _released_ versions? Maybe it's just a current SVN issue?
>
> Workaround: don't use it. And yes, X86_GENERIC=y will do that, although
> quite frankly that seems to be dubious in itself.
>...

As far as I understood it it's a gas issue, and X86_GENERIC=y would
therefore *not* fix the bug with gcc < 4.2 and affected binutils
since we pass -mtune=i686 for gcc < 4.2 with X86_GENERIC=y.

Anything I miss?

> Linus

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed