This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Segfault with SSE builtins


> I've been trying to get the builtin functions corresponding to SSE 
> instructions to work, and I keep getting segfaults on any code that 
> uses them. Example:
> 
> typedef float v4sf __attribute__ ((mode(V4SF)));
> int main() {
>   v4sf u, v, w;
>   w = __builtin_ia32_addps(u, v);
>   return 0;
> }
Most likely your runtime is broken and misaligns the entry stack for
main.
GCC aligns the outgoing stacks, but does not align the frame of main, so
you need to use the vector types only in other functions.

Honza


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]