OSDN Git Service

Remove special x86 flag that disables tail call optimization.
authorChih-Hung Hsieh <chh@google.com>
Thu, 19 Mar 2015 00:18:20 +0000 (17:18 -0700)
committerChih-hung Hsieh <chh@google.com>
Wed, 25 Mar 2015 00:19:16 +0000 (00:19 +0000)
commit44fe7554c8ef813efde3ea7cc0063dd0ac219259
treed2b93d3494e48565c01585b83fbfaffb75e9b28d
parentd73696c1fefface6f3d2311d1dead3afae01b048
Remove special x86 flag that disables tail call optimization.

Clang's tail call optimization for position independent code
only works when the callee was called (bound in GOT) before
the jump through GOT.
It does not work for some lazy bound Android tail callee.
We used special flag to disable all tail call optimization.

This change removes that global flag and depends on
clang compiler fix from upstream or the temporary patch in
https://android-review.googlesource.com/#/c/142241

See proposed llvm changes and pointers to llvm bugs in
https://android-review.googlesource.com/#/c/142792

Change-Id: Idb6e98d6b5f0e4c3676884b69eb3e767eba2491a
core/clang/TARGET_x86.mk