From 40c7254330088e605a544fe4ab0c25beb63fce20 Mon Sep 17 00:00:00 2001 From: Andrew Hsieh Date: Thu, 20 Dec 2012 16:50:56 +0800 Subject: Fix GCC 4.6 build with cloog-0.17.0 Backport r176618. 2011-07-22 Rainer Orth PR bootstrap/49797 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing. (set_cloog_options): Use it. Change-Id: I8fba41908ee8dd25c2407ec63f4b3b72a64deca4 --- gcc-4.6/gcc/graphite-clast-to-gimple.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc-4.6') 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 -- cgit v1.2.3