public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/49797] New: CLooG use of LANGUAGE_C conflicts with MIPS compilers
@ 2011-07-20 16:18 ro at gcc dot gnu.org
  2011-07-22  8:49 ` [Bug bootstrap/49797] " ro at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ro at gcc dot gnu.org @ 2011-07-20 16:18 UTC (permalink / raw)
  To: gcc-bugs

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 <cloog/pprint.h>.  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?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/49797] CLooG use of LANGUAGE_C conflicts with MIPS compilers
  2011-07-20 16:18 [Bug bootstrap/49797] New: CLooG use of LANGUAGE_C conflicts with MIPS compilers ro at gcc dot gnu.org
@ 2011-07-22  8:49 ` ro at gcc dot gnu.org
  2011-07-22  8:50 ` ro at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu.org @ 2011-07-22  8:49 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49797

--- Comment #1 from Rainer Orth <ro at gcc dot gnu.org> 2011-07-22 08:49:27 UTC ---
Author: ro
Date: Fri Jul 22 08:49:23 2011
New Revision: 176618

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176618
Log:
    PR bootstrap/49797
    * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
    (set_cloog_options): Use it.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/graphite-clast-to-gimple.c


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/49797] CLooG use of LANGUAGE_C conflicts with MIPS compilers
  2011-07-20 16:18 [Bug bootstrap/49797] New: CLooG use of LANGUAGE_C conflicts with MIPS compilers ro at gcc dot gnu.org
  2011-07-22  8:49 ` [Bug bootstrap/49797] " ro at gcc dot gnu.org
@ 2011-07-22  8:50 ` ro at gcc dot gnu.org
  2012-04-23 22:20 ` matt at use dot net
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu.org @ 2011-07-22  8:50 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49797

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                URL|                            |http://gcc.gnu.org/ml/gcc-p
                   |                            |atches/2011-07/msg01747.htm
                   |                            |l
         Resolution|                            |FIXED
         AssignedTo|unassigned at gcc dot       |ro at gcc dot gnu.org
                   |gnu.org                     |
   Target Milestone|---                         |4.7.0

--- Comment #2 from Rainer Orth <ro at gcc dot gnu.org> 2011-07-22 08:50:40 UTC ---
Fixed for 4.7.0.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/49797] CLooG use of LANGUAGE_C conflicts with MIPS compilers
  2011-07-20 16:18 [Bug bootstrap/49797] New: CLooG use of LANGUAGE_C conflicts with MIPS compilers ro at gcc dot gnu.org
  2011-07-22  8:49 ` [Bug bootstrap/49797] " ro at gcc dot gnu.org
  2011-07-22  8:50 ` ro at gcc dot gnu.org
@ 2012-04-23 22:20 ` matt at use dot net
  2012-05-08 16:02 ` ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: matt at use dot net @ 2012-04-23 22:20 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49797

Matt Hargett <matt at use dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |matt at use dot net

--- Comment #3 from Matt Hargett <matt at use dot net> 2012-04-23 22:19:35 UTC ---
Can you please back port this to 4.6 as well? Running into this on Scientific
Linux 6.1 on x64 with GCC 4.6 trunk and latest cloog-isl and ppl. Thanks!


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/49797] CLooG use of LANGUAGE_C conflicts with MIPS compilers
  2011-07-20 16:18 [Bug bootstrap/49797] New: CLooG use of LANGUAGE_C conflicts with MIPS compilers ro at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2012-04-23 22:20 ` matt at use dot net
@ 2012-05-08 16:02 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2012-05-11 18:02 ` matt at use dot net
  2012-06-29 18:49 ` matt at use dot net
  5 siblings, 0 replies; 7+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2012-05-08 16:02 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49797

--- Comment #4 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2012-05-08 15:54:15 UTC ---
> --- Comment #3 from Matt Hargett <matt at use dot net> 2012-04-23 22:19:35 UTC ---
> Can you please back port this to 4.6 as well? Running into this on Scientific
> Linux 6.1 on x64 with GCC 4.6 trunk and latest cloog-isl and ppl. Thanks!

Why would this be relevant to Linux/x64?  AFAIK use of LANGUAGE_C is a
mips-only feature.

    Rainer


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/49797] CLooG use of LANGUAGE_C conflicts with MIPS compilers
  2011-07-20 16:18 [Bug bootstrap/49797] New: CLooG use of LANGUAGE_C conflicts with MIPS compilers ro at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2012-05-08 16:02 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2012-05-11 18:02 ` matt at use dot net
  2012-06-29 18:49 ` matt at use dot net
  5 siblings, 0 replies; 7+ messages in thread
From: matt at use dot net @ 2012-05-11 18:02 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49797

--- Comment #5 from Matt Hargett <matt at use dot net> 2012-05-11 17:58:27 UTC ---
It's not an IRIX-specific thing AFAICS, but rather that newer versions of
cloog/ppl renamed the macro to avoid conflicts on IRIX. 4.6 still checks for
the old macro name, which is no longer set. I have applied the patch locally to
work around the issue and can verify it solved the problem for me.

Let me know if there's anything else you'd like me to test/validate to get it
back ported.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/49797] CLooG use of LANGUAGE_C conflicts with MIPS compilers
  2011-07-20 16:18 [Bug bootstrap/49797] New: CLooG use of LANGUAGE_C conflicts with MIPS compilers ro at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2012-05-11 18:02 ` matt at use dot net
@ 2012-06-29 18:49 ` matt at use dot net
  5 siblings, 0 replies; 7+ messages in thread
From: matt at use dot net @ 2012-06-29 18:49 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49797

--- Comment #6 from Matt Hargett <matt at use dot net> 2012-06-29 18:49:35 UTC ---
Pinging on this again since this patch has been back ported to a couple of
4.6-based branches now. Anyone attempting to use a recent cloog release with
GCC 4.6 will run into this problem. It is incredibly low-risk in an of itself,
and I can verify that it works with both latest cloog and the previous release.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-06-29 18:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-20 16:18 [Bug bootstrap/49797] New: CLooG use of LANGUAGE_C conflicts with MIPS compilers ro at gcc dot gnu.org
2011-07-22  8:49 ` [Bug bootstrap/49797] " ro at gcc dot gnu.org
2011-07-22  8:50 ` ro at gcc dot gnu.org
2012-04-23 22:20 ` matt at use dot net
2012-05-08 16:02 ` ro at CeBiTec dot Uni-Bielefeld.DE
2012-05-11 18:02 ` matt at use dot net
2012-06-29 18:49 ` matt at use dot net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).