[Bug 3533] HotSpot generates code with unaligned stack, crashes on SSE operations

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Sat May 12 11:09:42 UTC 2018


https://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3533

--- Comment #20 from Andrew John Hughes <gnu.andrew at redhat.com> ---
It seems this was already encountered on Mac OS X and worked around there with
-mstackrealign:

https://icedtea.classpath.org/hg/icedtea8-forest/file/aecf9f48f7b5/common/autoconf/toolchain.m4#l786

  #                                                                             
  # NOTE: check for -mstackrealign needs to be below potential addition of -m32 
  #                                                                             
  if test "x$OPENJDK_TARGET_CPU_BITS" = x32 && test "x$OPENJDK_TARGET_OS" =
xmacosx; then
    # On 32-bit MacOSX the OS requires C-entry points to be 16 byte aligned.    
    # While waiting for a better solution, the current workaround is to use
-mstackrealign                                 
    CFLAGS="$CFLAGS -mstackrealign"

so we can extend that to cover Linux as well

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20180512/6579011d/attachment.html>


More information about the distro-pkg-dev mailing list