aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2011-07-22 08:49:23 +0000
committerRainer Orth <ro@gcc.gnu.org>2011-07-22 08:49:23 +0000
commit7e2fe4887e4a8c2947a1990b2fa3ba1fc70607a3 (patch)
tree19651707212c1e1a69c72ed3d70d4b175d322d7b
parentd423df48237b2533a1781d177caf8419e1262d5b (diff)
downloadgcc-7e2fe4887e4a8c2947a1990b2fa3ba1fc70607a3.zip
gcc-7e2fe4887e4a8c2947a1990b2fa3ba1fc70607a3.tar.gz
gcc-7e2fe4887e4a8c2947a1990b2fa3ba1fc70607a3.tar.bz2
re PR bootstrap/49797 (CLooG use of LANGUAGE_C conflicts with MIPS compilers)
PR bootstrap/49797 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing. (set_cloog_options): Use it. From-SVN: r176618
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/graphite-clast-to-gimple.c8
2 files changed, 12 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d27b255..35fdce7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2011-07-22 Jakub Jelinek <jakub@redhat.com>
PR c++/49756
diff --git a/gcc/graphite-clast-to-gimple.c b/gcc/graphite-clast-to-gimple.c
index ddf6d3d..ee67020 100644
--- a/gcc/graphite-clast-to-gimple.c
+++ b/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 @@ 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;
@@ -1418,7 +1422,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