Skip to content

Commit

Permalink
Disable tree-vrp in GCC 8
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Oct 7, 2020
1 parent c426d1f commit c884ea8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion OMCompiler/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,10 @@ if echo $CC | grep -v ccc-analyzer; then # ccc-analyzer calls gcc first and then
if $CC --version | grep -q gcc && $CC -dumpversion | grep -q "^5"; then
TRY_FLAGS="$TRY_FLAGS -fno-ipa-pure-const"
fi

# GCC 8.x generates bad code, too
if $CC --version | grep -q gcc && $CC -dumpversion | grep -q "^8"; then
TRY_FLAGS="$TRY_FLAGS -fno-tree-vrp"
fi
# GCC 7.x issues:
# - RUNPATH instead of RPATH, disable that via -Wl,--disable-new-dtags
# - sqrt from libcolamd is not found in -lm if -Wl,--no-as-needed is not specified
Expand Down

0 comments on commit c884ea8

Please sign in to comment.