diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-19 16:02:30 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-19 16:02:30 +0000 |
commit | f4245e06307672302a636632c76fe34aa89cbd73 (patch) | |
tree | ff885ca14bd208f4f68df8f5bac6ccd4ad83387b /gcc/config.in | |
parent | 72fdb379ede0df8e0da4c3a33a7a31957d1089c7 (diff) | |
download | ppe42-gcc-f4245e06307672302a636632c76fe34aa89cbd73.tar.gz ppe42-gcc-f4245e06307672302a636632c76fe34aa89cbd73.zip |
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: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180195 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config.in')
-rw-r--r-- | gcc/config.in | 7 |
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 |