diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2012-12-20 16:50:56 +0800 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2012-12-20 16:50:56 +0800 |
commit | 40c7254330088e605a544fe4ab0c25beb63fce20 (patch) | |
tree | 64de4ddb71a5f37b541bfad05bc7cf2ecbafce33 | |
parent | 92da119a900b1f73fb7f23fbe1c044a237986741 (diff) | |
download | toolchain_gcc-40c7254330088e605a544fe4ab0c25beb63fce20.tar.gz toolchain_gcc-40c7254330088e605a544fe4ab0c25beb63fce20.tar.bz2 toolchain_gcc-40c7254330088e605a544fe4ab0c25beb63fce20.zip |
Fix GCC 4.6 build with cloog-0.17.0
Backport r176618.
2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR bootstrap/49797
* graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
(set_cloog_options): Use it.
Change-Id: I8fba41908ee8dd25c2407ec63f4b3b72a64deca4
-rw-r--r-- | gcc-4.6/gcc/graphite-clast-to-gimple.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc-4.6/gcc/graphite-clast-to-gimple.c b/gcc-4.6/gcc/graphite-clast-to-gimple.c index 41356dc81..872ea9155 100644 --- a/gcc-4.6/gcc/graphite-clast-to-gimple.c +++ b/gcc-4.6/gcc/graphite-clast-to-gimple.c @@ -40,6 +40,10 @@ along with GCC; see the file COPYING3. If not see #include "graphite-dependences.h" #include "graphite-cloog-compat.h" +#ifndef CLOOG_LANGUAGE_C +#define CLOOG_LANGUAGE_C LANGUAGE_C +#endif + /* This flag is set when an error occurred during the translation of CLAST to Gimple. */ static bool gloog_error; @@ -1367,7 +1371,7 @@ set_cloog_options (void) /* Change cloog output language to C. If we do use FORTRAN instead, cloog will stop e.g. with "ERROR: unbounded loops not allowed in FORTRAN.", if we pass an incomplete program to cloog. */ - options->language = LANGUAGE_C; + options->language = CLOOG_LANGUAGE_C; /* Enable complex equality spreading: removes dummy statements (assignments) in the generated code which repeats the |