summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2018-12-19 23:21:28 +0000
committerBen Gamari <ben@well-typed.com>2018-12-26 11:08:26 -0500
commit29ecb52033b951e09b6141aeb92460db2f4c3183 (patch)
tree46acf182f4e28aeb219b6426ed982ab9c7751c1f /aclocal.m4
parent942b501972139ed95b49b75cb8c0523b460f6d10 (diff)
downloadhaskell-29ecb52033b951e09b6141aeb92460db2f4c3183.tar.gz
aclocal.m4: drop obsolete -fno-stack-protector
Summary: Initially -fno-stack-protector was added for openbsd specifically for ghc-6.5: changeset:f638fdfe1d9de1307355c8074fbff9c28342c0ef (2006) and later it was extended to cover osx: changeset:c2cd83e7d85c11e6a33e1cde263eb2312566d535 (2009) None of the reports hint at exact breakage. I guess both happened in -fvia-C mode where GHC's Evil Mangler had a chance to mangle stack canaries generated by fstack-protector. ghc has no evil mangler anymore and the change is not needed at least for C codegen. validated the patch on OpenBSD-6.4. No new failures compared to clean master branch. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> Test Plan: validated on OpenBSD Reviewers: bgamari Subscribers: rwbarton, erikd, carter GHC Trac Issues: #16046 Differential Revision: https://phabricator.haskell.org/D5465
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m49
1 files changed, 0 insertions, 9 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 7aa3fb468a..03f43d18db 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -693,15 +693,6 @@ AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS],
esac
- # If gcc knows about the stack protector, turn it off.
- # Otherwise the stack-smash handler gets triggered.
- echo 'int main(void) {return 0;}' > conftest.c
- if $CC -c conftest.c -fno-stack-protector > /dev/null 2>&1
- then
- $2="$$2 -fno-stack-protector"
- fi
-
- rm -f conftest.c conftest.o
AC_MSG_RESULT([done])
])