From: Mark Wielaard Date: Wed, 10 Sep 2014 00:52:30 +0000 (+0000) Subject: Handle gcc version 5.x.y. X-Git-Tag: svn/VALGRIND_3_11_0~1017 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7a75abf867940f415ad7f005ef8dcf9d7bdd902;p=thirdparty%2Fvalgrind.git Handle gcc version 5.x.y. Recognize the future versions of gcc will be called 5.x.y. Ignore line directives in glibc version configure test (newer gcc/cpp will mark system macros with an extra line comment). Patch from Dmitry Djachenko (dimhen@gmail.com). Fixes #338932. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14507 --- diff --git a/NEWS b/NEWS index 440529972f..d467258932 100644 --- a/NEWS +++ b/NEWS @@ -327,6 +327,7 @@ where XXXXXX is the bug number as listed below. 338703 helgrind on arm-linux gets false positives in dynamic loader 338791 alt dwz files can be relative of debug/main file 338878 on MacOS: assertion 'VG_IS_PAGE_ALIGNED(clstack_end+1)' failed +338932 build V-trunk with gcc-trunk n-i-bz Fix KVM_CREATE_IRQCHIP ioctl handling n-i-bz s390x: Fix memory corruption for multithreaded applications n-i-bz vex arm->IR: allow PC as basereg in some LDRD cases diff --git a/configure.ac b/configure.ac index 336445cb21..8e16bdaf3a 100644 --- a/configure.ac +++ b/configure.ac @@ -138,6 +138,9 @@ case "${is_clang}-${gcc_version}" in notclang-4.*) AC_MSG_RESULT([ok (${gcc_version})]) ;; + notclang-5.*) + AC_MSG_RESULT([ok (${gcc_version})]) + ;; clang-2.9|clang-3.*|clang-4.*) AC_MSG_RESULT([ok (clang-${gcc_version})]) ;; @@ -855,7 +858,7 @@ if test x$ac_cv_header_features_h = xyes; then glibc version is: __GLIBC__ __GLIBC_MINOR__ #endif _ACEOF - GLIBC_VERSION="`$CPP conftest.$ac_ext | $SED -n 's/^glibc version is: //p' | $SED 's/ /./g'`" + GLIBC_VERSION="`$CPP -P conftest.$ac_ext | $SED -n 's/^glibc version is: //p' | $SED 's/ /./g'`" fi # not really a version check