[backport from gcc-4.7/trunk r176618 <mikpe@it.uu.se>]

gcc/

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.

--- gcc-4.6.3/gcc/graphite-clast-to-gimple.c.~1~	2011-03-12 23:05:38.000000000 +0100
+++ gcc-4.6.3/gcc/graphite-clast-to-gimple.c	2012-09-09 12:07:51.000000000 +0200
@@ -40,6 +40,10 @@ along with GCC; see the file COPYING3.  
 #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
