From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28153 invoked by alias); 20 Jul 2011 16:18:55 -0000 Received: (qmail 28142 invoked by uid 22791); 20 Jul 2011 16:18:54 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 Jul 2011 16:18:41 +0000 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/49797] New: CLooG use of LANGUAGE_C conflicts with MIPS compilers X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Wed, 20 Jul 2011 16:18:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-07/txt/msg01678.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49797 Summary: CLooG use of LANGUAGE_C conflicts with MIPS compilers Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned@gcc.gnu.org ReportedBy: ro@gcc.gnu.org CC: spop@gcc.gnu.org Host: mips-sgi-irix6.5 Target: mips-sgi-irix6.5 Build: mips-sgi-irix6.5 When trying a mips-sgi-irix6.5 bootstrap with C++ in stages 2 and 3, I failed due to an issue that had been hidden previously: I'm building with ppl/cloog. Building ClooG initially failed since gcc (or any compiler on MIPS) predefines LANGUAGE_C, which is also used by . As a hack, I renamed those defines to CLOOG_LANGUAGE_C and CLOOG_LANGUAGE_FORTRAN, not noticing that graphite-clast-to-gimple.c has a use of LANGUAGE_C and now got the wrong value. When compiling with g++, LANGUAGE_C isn't defined any longer and the build breaks: /vol/gcc/src/hg/trunk/local/gcc/graphite-clast-to-gimple.c: In function 'CloogOptions* set_cloog_options()': /vol/gcc/src/hg/trunk/local/gcc/graphite-clast-to-gimple.c:1309:23: error: 'LANGUAGE_C' was not declared in this scope make[3]: *** [graphite-clast-to-gimple.o] Error 1 The question is how best to fix this? One might change upstream CLooG to use CLOOG_LANGUAGE_C instead to avoid the clash, test for that in graphite-clast-to-gimple.c and require MIPS users to upgrade or fix their local copies?