Changeset 868


Ignore:
Timestamp:
May 24, 2011, 4:04:59 PM (9 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Fixed 4.7.3 regression: Forced stack alignment for SSE code on OS/2 was lost in update.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/gui.pro

    r855 r868  
    139139                    sse3dnow_compiler.commands += -Xarch_i386 -m3dnow -Xarch_i386 -msse
    140140                    sse3dnow_compiler.commands += -Xarch_x86_64 -m3dnow -Xarch_x86_64 -msse
     141                } else:os2 {
     142                    # SSE data types (__m128i etc.) don't get 16-byte alignment on stack with GCC 4.4.4
     143                    # (compiler bug?), force it with -mstackrealign to avoid spontaneous SIGSEGVs
     144                    sse3dnow_compiler.commands += -m3dnow -msse -mstackrealign
    141145                } else {
    142146                    sse3dnow_compiler.commands += -m3dnow -msse
     
    161165                sse_compiler.commands += -Xarch_i386 -msse
    162166                sse_compiler.commands += -Xarch_x86_64 -msse
     167            } else:os2 {
     168                # SSE data types (__m128i etc.) don't get 16-byte alignment on stack with GCC 4.4.4
     169                # (compiler bug?), force it with -mstackrealign to avoid spontaneous SIGSEGVs
     170                sse_compiler.commands += -msse -mstackrealign
    163171            } else {
    164172                sse_compiler.commands += -msse
     
    182190                sse2_compiler.commands += -Xarch_i386 -msse2
    183191                sse2_compiler.commands += -Xarch_x86_64 -msse2
     192            } else:os2 {
     193                # SSE data types (__m128i etc.) don't get 16-byte alignment on stack with GCC 4.4.4
     194                # (compiler bug?), force it with -mstackrealign to avoid spontaneous SIGSEGVs
     195                sse2_compiler.commands += -msse2 -mstackrealign
    184196            } else {
    185197                sse2_compiler.commands += -msse2
Note: See TracChangeset for help on using the changeset viewer.