Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69792a41 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh Committed by Android Git Automerger
Browse files

am d40a53b4: am 9a75b4ec: am d408e607: Merge "Disable tail call optimization...

am d40a53b4: am 9a75b4ec: am d408e607: Merge "Disable tail call optimization and use -mstackrealign to boot up on fugu."

* commit 'd40a53b4':
  Disable tail call optimization and use -mstackrealign to boot up on fugu.
parents adc7e831 d40a53b4
Loading
Loading
Loading
Loading
+9 −1
Original line number Original line Diff line number Diff line
@@ -18,7 +18,15 @@ CLANG_CONFIG_x86_TARGET_EXTRA_CFLAGS := \
  $(CLANG_CONFIG_EXTRA_CFLAGS) \
  $(CLANG_CONFIG_EXTRA_CFLAGS) \
  $(CLANG_CONFIG_TARGET_EXTRA_CFLAGS) \
  $(CLANG_CONFIG_TARGET_EXTRA_CFLAGS) \
  $(CLANG_CONFIG_x86_EXTRA_CFLAGS) \
  $(CLANG_CONFIG_x86_EXTRA_CFLAGS) \
  $(CLANG_CONFIG_x86_TARGET_EXTRA_ASFLAGS)
  $(CLANG_CONFIG_x86_TARGET_EXTRA_ASFLAGS) \
  -fno-optimize-sibling-calls \
  -mstackrealign

# http://llvm.org/bugs/show_bug.cgi?id=15086,
# llvm tail call optimization is wrong for x86.
# -mstackrealign is needed to realign stack in native code
# that could be called from JNI, so that movaps instruction
# will work on assumed stack aligned local variables.


CLANG_CONFIG_x86_TARGET_EXTRA_CONLYFLAGS := \
CLANG_CONFIG_x86_TARGET_EXTRA_CONLYFLAGS := \
  $(CLANG_CONFIG_EXTRA_CONLYFLAGS) \
  $(CLANG_CONFIG_EXTRA_CONLYFLAGS) \