Allow building with GCC 5

* Disable -freorder-blocks-and-partition, since it can override -fno-reorder-blocks
* Disable look-header copying, since it tends to cause early returns
* Disable argument pushing, we don't want to change esp
This commit is contained in:
Dave Vasilevsky 2015-12-28 23:26:19 -05:00
parent 7de64a6fce
commit c91ef547bd
1 changed files with 1 additions and 1 deletions

View File

@ -1575,7 +1575,7 @@ if [[ "x$EMULATED_PPC" = "xyes" ]]; then
fi
DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -finline-functions -finline-limit=10000 -fno-exceptions -g0"
if [[ "x$have_dyngen_gcc3" = "xyes" ]]; then
DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -fno-reorder-blocks -fno-optimize-sibling-calls"
DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -fno-reorder-blocks -fno-optimize-sibling-calls -fno-reorder-blocks-and-partition -fno-tree-ch -mno-push-args"
fi
if [[ "x$DYNGEN_CC" != "x$CXX" ]]; then
DYNGEN_CFLAGS="-O2 $CFLAGS"