Re: x86 code generation question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Servus Florian,

On Mon, Dec 13, 2021 at 2:04 PM Florian Weimer <fweimer@xxxxxxxxxx> wrote:
>
> * Manuel Lauss via Gcc-help:
>
> > Now the descriptions of "vmovdqa" I could find say that it generates a
> > #GP when the destination is not 16-byte aligned. Does this alignment
> > include the displacement, like above?  If yes, is this then a code
> > generation bug in gcc?
>
> If your build uses vector instructions, you need to build glibc with
> -mstackrealign for compatibility with legacy i386 applications.

-mstackrealign breaks with an error about invalid use of "bp".  I removed
the vectorization switches and it works now.


> This is still fallout from the i386 ABI break when SSE2 support with an
> increase in stack alignment was introduced some twenty years ago.

The application is part of the Steam client, so it's not that old, but
it is still 32bit x86.

Thanks for your help!
     Manuel



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux