Commit 7e2fe488 by Rainer Orth Committed by Rainer Orth

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
parent d423df48
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> 2011-07-22 Jakub Jelinek <jakub@redhat.com>
PR c++/49756 PR c++/49756
......
/* Translation of CLAST (CLooG AST) to Gimple. /* 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>. Contributed by Sebastian Pop <sebastian.pop@amd.com>.
This file is part of GCC. This file is part of GCC.
...@@ -40,6 +40,10 @@ along with GCC; see the file COPYING3. If not see ...@@ -40,6 +40,10 @@ along with GCC; see the file COPYING3. If not see
#include "graphite-dependences.h" #include "graphite-dependences.h"
#include "graphite-cloog-compat.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 /* This flag is set when an error occurred during the translation of
CLAST to Gimple. */ CLAST to Gimple. */
static bool gloog_error; static bool gloog_error;
...@@ -1418,7 +1422,7 @@ set_cloog_options (void) ...@@ -1418,7 +1422,7 @@ set_cloog_options (void)
/* Change cloog output language to C. If we do use FORTRAN instead, cloog /* 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 will stop e.g. with "ERROR: unbounded loops not allowed in FORTRAN.", if
we pass an incomplete program to cloog. */ we pass an incomplete program to cloog. */
options->language = LANGUAGE_C; options->language = CLOOG_LANGUAGE_C;
/* Enable complex equality spreading: removes dummy statements /* Enable complex equality spreading: removes dummy statements
(assignments) in the generated code which repeats the (assignments) in the generated code which repeats the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment