aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.in
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2011-10-19 16:02:30 +0000
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2011-10-19 16:02:30 +0000
commit5e954dd6bfb7cd3f5311a441b4c648ca9f6573a5 (patch)
treeff885ca14bd208f4f68df8f5bac6ccd4ad83387b /gcc/config.in
parenteeae329643c2a7be89e3f32d1a7429b88dc53178 (diff)
Properly test for madvise on Solaris 10 (PR bootstrap/50777)
PR bootstrap/50777 * configure.ac: Save and restore CXXFLAGS around gcc_AC_CHECK_DECLS uses. Check for madvise() declaration with g++ if --enable-build-with-cxx. * configure: Regenerate. * config.in: Regenerate. * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@180195 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config.in')
-rw-r--r--gcc/config.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config.in b/gcc/config.in
index e8148b6d571..3950e289b7c 100644
--- a/gcc/config.in
+++ b/gcc/config.in
@@ -753,6 +753,13 @@
#endif
+/* Define to 1 if we found a declaration for 'madvise', otherwise define to 0.
+ */
+#ifndef USED_FOR_TARGET
+#undef HAVE_DECL_MADVISE
+#endif
+
+
/* Define to 1 if we found a declaration for 'malloc', otherwise define to 0.
*/
#ifndef USED_FOR_TARGET