⛏️ index : buildtools.git

author Jerome Duval <jerome.duval@gmail.com> 2013-04-06 14:43:25.0 +02:00:00
committer Jerome Duval <jerome.duval@gmail.com> 2013-04-06 14:43:25.0 +02:00:00
commit
df9ffb3a0f2d1a0a07f341c1598e677e1deffb12 [patch]
tree
6b0973b816f3a0774009c263deee3558c0672769
parent
f31d42dfd9d06087ae5b683174980d19779deb6f
download
df9ffb3a0f2d1a0a07f341c1598e677e1deffb12.tar.gz

gcc: cherry picked patch for support of current CLooG

* cloog now uses CLOOG_LANGUAGE_C instead of LANGUAGE_C.
* graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
        (set_cloog_options): Use it.

Diff

 gcc/gcc/graphite-clast-to-gimple.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gcc/gcc/graphite-clast-to-gimple.c b/gcc/gcc/graphite-clast-to-gimple.c
index 41356dc..9010f09 100644
--- a/gcc/gcc/graphite-clast-to-gimple.c
+++ b/gcc/gcc/graphite-clast-to-gimple.c
@@ -1,5 +1,5 @@
/* Translation of CLAST (CLooG AST) to Gimple.
   Copyright (C) 2009, 2010 Free Software Foundation, Inc.
   Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
   Contributed by Sebastian Pop <sebastian.pop@amd.com>.

This file is part of GCC.
@@ -40,6 +40,10 @@
#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 @@
  /* 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