Qt, GCC, SSE and stack alignment

前端 未结 2 907
一整个雨季
一整个雨季 2020-12-17 23:12

I\'m trying to make a program compiled with GCC and using Qt and SSE intrinsics. It seems that when one of my functions is called by Qt, the stack alignment is not preserved

2条回答
  •  不思量自难忘°
    2020-12-17 23:52

    __attribute__((force_align_arg_pointer)) void paintEvent(QPaintEvent *);
    

    made it work! Does anybody have a better solution?

提交回复
热议问题