diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-20 10:43:45 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-20 10:43:45 +0000 |
commit | 024db6135a3b5410cdef4b33455a467a3694fce6 (patch) | |
tree | d52f51303885afd5b826b8def36df3e892c52422 | |
parent | 250b2c223b7215dd6a4e272d1b1cb8912aaa70e1 (diff) | |
download | gcc-024db6135a3b5410cdef4b33455a467a3694fce6.tar.gz |
PR target/63966
* lex.c [__i386__ || __x86_64__]: Include system <cpuid.h> for
GCC_VERSION < 5000.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217830 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libcpp/ChangeLog | 6 | ||||
-rw-r--r-- | libcpp/lex.c | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 5814dc4da18..66cc81a377d 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,9 @@ +2014-11-20 Uros Bizjak <ubizjak@gmail.com> + + PR target/63966 + * lex.c [__i386__ || __x86_64__]: Include system <cpuid.h> for + GCC_VERSION < 5000. + 2014-11-13 Manuel López-Ibáñez <manu@gcc.gnu.org> * include/line-map.h: Include EXPR, so that unused variable warnings diff --git a/libcpp/lex.c b/libcpp/lex.c index 2247386f829..298dd7fff3d 100644 --- a/libcpp/lex.c +++ b/libcpp/lex.c @@ -471,7 +471,11 @@ search_line_sse42 (const uchar *s, const uchar *end) /* Check the CPU capabilities. */ +#if (GCC_VERSION >= 5000) #include "../gcc/config/i386/cpuid.h" +#else +#include <cpuid.h> +#endif typedef const uchar * (*search_line_fast_type) (const uchar *, const uchar *); static search_line_fast_type search_line_fast; |