public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/48648] New: internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123
@ 2011-04-17  9:47 bero at arklinux dot org
  2011-04-17  9:48 ` [Bug tree-optimization/48648] " bero at arklinux dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: bero at arklinux dot org @ 2011-04-17  9:47 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: internal compiler error: in translate_clast, at
                    graphite-clast-to-gimple.c:1123
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: bero@arklinux.org
              Host: i586-pc-linux-gnu
            Target: i586-pc-linux-gnu
             Build: i586-pc-linux-gnu


Trying to build postgresql 9.0.4 with gcc 4.6.0 with graphite optimizations
enabled results in

i586-pc-linux-gnu-gcc -O -fgraphite-identity -I../../../src/include
-D_GNU_SOURCE -I/usr/include/libxml2   -c -o ip.o ip.c
ip.c: In function ‘pg_sockaddr_cidr_mask’:
ip.c:343:1: internal compiler error: in translate_clast, at
graphite-clast-to-gimple.c:1123
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug tree-optimization/48648] internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123
  2011-04-17  9:47 [Bug tree-optimization/48648] New: internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123 bero at arklinux dot org
@ 2011-04-17  9:48 ` bero at arklinux dot org
  2011-04-17 10:09 ` bero at arklinux dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bero at arklinux dot org @ 2011-04-17  9:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from bero at arklinux dot org 2011-04-17 09:48:04 UTC ---
Created attachment 24015
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24015
Full preprocessed source


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

* [Bug tree-optimization/48648] internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123
  2011-04-17  9:47 [Bug tree-optimization/48648] New: internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123 bero at arklinux dot org
  2011-04-17  9:48 ` [Bug tree-optimization/48648] " bero at arklinux dot org
@ 2011-04-17 10:09 ` bero at arklinux dot org
  2011-04-17 10:34 ` bero at arklinux dot org
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bero at arklinux dot org @ 2011-04-17 10:09 UTC (permalink / raw)
  To: gcc-bugs

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

bero at arklinux dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #24015|0                           |1
        is obsolete|                            |

--- Comment #2 from bero at arklinux dot org 2011-04-17 10:08:36 UTC ---
Created attachment 24016
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24016
Somewhat reduced test case


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

* [Bug tree-optimization/48648] internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123
  2011-04-17  9:47 [Bug tree-optimization/48648] New: internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123 bero at arklinux dot org
  2011-04-17  9:48 ` [Bug tree-optimization/48648] " bero at arklinux dot org
  2011-04-17 10:09 ` bero at arklinux dot org
@ 2011-04-17 10:34 ` bero at arklinux dot org
  2011-04-17 10:35 ` bero at arklinux dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bero at arklinux dot org @ 2011-04-17 10:34 UTC (permalink / raw)
  To: gcc-bugs

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

bero at arklinux dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #24016|0                           |1
        is obsolete|                            |

--- Comment #3 from bero at arklinux dot org 2011-04-17 10:34:17 UTC ---
Created attachment 24017
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24017
Reduced test case


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

* [Bug tree-optimization/48648] internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123
  2011-04-17  9:47 [Bug tree-optimization/48648] New: internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123 bero at arklinux dot org
                   ` (2 preceding siblings ...)
  2011-04-17 10:34 ` bero at arklinux dot org
@ 2011-04-17 10:35 ` bero at arklinux dot org
  2011-04-18 10:24 ` rguenth at gcc dot gnu.org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bero at arklinux dot org @ 2011-04-17 10:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from bero at arklinux dot org 2011-04-17 10:34:52 UTC ---
void *foo(const void *a);

void bug48648()
{
        unsigned char a[2];
        long b;
        int i;

        for(i = 0; i < 2; i++) {
                if (b <= 0)
                        a[i] = 0;
                else if (b >= 8)
                        a[i] = 0;
                else
                        a[i] = 0;
                b -= 8;
        }
        foo(&a);
}


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

* [Bug tree-optimization/48648] internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123
  2011-04-17  9:47 [Bug tree-optimization/48648] New: internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123 bero at arklinux dot org
                   ` (3 preceding siblings ...)
  2011-04-17 10:35 ` bero at arklinux dot org
@ 2011-04-18 10:24 ` rguenth at gcc dot gnu.org
  2011-04-18 12:21 ` bero at arklinux dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-18 10:24 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |spop at gcc dot gnu.org

--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-18 10:23:10 UTC ---
Please also specify the ppl and cloog versions you are using.


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

* [Bug tree-optimization/48648] internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123
  2011-04-17  9:47 [Bug tree-optimization/48648] New: internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123 bero at arklinux dot org
                   ` (4 preceding siblings ...)
  2011-04-18 10:24 ` rguenth at gcc dot gnu.org
@ 2011-04-18 12:21 ` bero at arklinux dot org
  2011-04-18 16:52 ` sebpop at gmail dot com
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bero at arklinux dot org @ 2011-04-18 12:21 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from bero at arklinux dot org 2011-04-18 12:19:12 UTC ---
cloog 0.16.2 with isl 0.06 (I read somewhere ppl should be replaced with isl?)


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

* [Bug tree-optimization/48648] internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123
  2011-04-17  9:47 [Bug tree-optimization/48648] New: internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123 bero at arklinux dot org
                   ` (5 preceding siblings ...)
  2011-04-18 12:21 ` bero at arklinux dot org
@ 2011-04-18 16:52 ` sebpop at gmail dot com
  2011-06-18  9:56 ` bero at arklinux dot org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: sebpop at gmail dot com @ 2011-04-18 16:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from sebpop at gmail dot com <sebpop at gmail dot com> 2011-04-18 16:51:23 UTC ---
> (I read somewhere ppl should be replaced with isl?)

Not true: GCC still depends on PPL.
The use of cloog-ppl is deprecated: GCC will not use it in the future.
Using cloog-isl or cloog-parma is fine.


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

* [Bug tree-optimization/48648] internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123
  2011-04-17  9:47 [Bug tree-optimization/48648] New: internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123 bero at arklinux dot org
                   ` (6 preceding siblings ...)
  2011-04-18 16:52 ` sebpop at gmail dot com
@ 2011-06-18  9:56 ` bero at arklinux dot org
  2011-07-22 23:08 ` spop at gcc dot gnu.org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bero at arklinux dot org @ 2011-06-18  9:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from bero at arklinux dot org 2011-06-18 09:55:58 UTC ---
ppl 0.11.2


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

* [Bug tree-optimization/48648] internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123
  2011-04-17  9:47 [Bug tree-optimization/48648] New: internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123 bero at arklinux dot org
                   ` (7 preceding siblings ...)
  2011-06-18  9:56 ` bero at arklinux dot org
@ 2011-07-22 23:08 ` spop at gcc dot gnu.org
  2011-07-22 23:11 ` spop at gcc dot gnu.org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: spop at gcc dot gnu.org @ 2011-07-22 23:08 UTC (permalink / raw)
  To: gcc-bugs

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

Sebastian Pop <spop at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011.07.22 23:07:37
         AssignedTo|unassigned at gcc dot       |spop at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #9 from Sebastian Pop <spop at gcc dot gnu.org> 2011-07-22 23:07:37 UTC ---
Patch
http://gcc.gnu.org/ml/gcc-patches/2011-07/msg02020.html


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

* [Bug tree-optimization/48648] internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123
  2011-04-17  9:47 [Bug tree-optimization/48648] New: internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123 bero at arklinux dot org
                   ` (8 preceding siblings ...)
  2011-07-22 23:08 ` spop at gcc dot gnu.org
@ 2011-07-22 23:11 ` spop at gcc dot gnu.org
  2011-07-28 21:58 ` spop at gcc dot gnu.org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: spop at gcc dot gnu.org @ 2011-07-22 23:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Sebastian Pop <spop at gcc dot gnu.org> 2011-07-22 23:11:14 UTC ---
*** Bug 49040 has been marked as a duplicate of this bug. ***


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

* [Bug tree-optimization/48648] internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123
  2011-04-17  9:47 [Bug tree-optimization/48648] New: internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123 bero at arklinux dot org
                   ` (9 preceding siblings ...)
  2011-07-22 23:11 ` spop at gcc dot gnu.org
@ 2011-07-28 21:58 ` spop at gcc dot gnu.org
  2011-07-28 22:00 ` spop at gcc dot gnu.org
  2011-08-08 11:25 ` kilo at stierand dot com
  12 siblings, 0 replies; 14+ messages in thread
From: spop at gcc dot gnu.org @ 2011-07-28 21:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Sebastian Pop <spop at gcc dot gnu.org> 2011-07-28 21:57:15 UTC ---
Author: spop
Date: Thu Jul 28 21:57:10 2011
New Revision: 176901

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176901
Log:
Fix PR48648: Handle CLAST assignments.

The CLAST produced by CLooG-ISL contains an assignment and GCC chokes
on it.  The exact CLAST contains an assignment followed by an if:

scat_1 = max(0,ceild(T_4-7,8));
if (scat_1 <= min(1,floord(T_4-1,8))) {
  S7(scat_1);
}

This is equivalent to a loop that iterates only once, and so CLooG
generates an assignment followed by an if instead of a loop.  This is
an important optimization that was improved in ISL, that allows
if-conversion: imagine GCC having to figure out that a loop like the
following actually iterates only once, and can be converted to an if:

for (scat_1 = max(0,ceild(T_4-7,8)); scat_1 <= min(1,floord(T_4-1,8));
scat_1++)
  S7(scat_1);

This patch implements the translation of CLAST assignments.
Bootstrapped and tested on amd64-linux.

2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>

    PR middle-end/48648
    * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
    CLAST assignments.
    (translate_clast): Same.
    (translate_clast_assignment): New.

    * gcc.dg/graphite/id-pr48648.c: New.

Added:
    trunk/gcc/testsuite/gcc.dg/graphite/id-pr48648.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/graphite-clast-to-gimple.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug tree-optimization/48648] internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123
  2011-04-17  9:47 [Bug tree-optimization/48648] New: internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123 bero at arklinux dot org
                   ` (10 preceding siblings ...)
  2011-07-28 21:58 ` spop at gcc dot gnu.org
@ 2011-07-28 22:00 ` spop at gcc dot gnu.org
  2011-08-08 11:25 ` kilo at stierand dot com
  12 siblings, 0 replies; 14+ messages in thread
From: spop at gcc dot gnu.org @ 2011-07-28 22:00 UTC (permalink / raw)
  To: gcc-bugs

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

Sebastian Pop <spop at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #12 from Sebastian Pop <spop at gcc dot gnu.org> 2011-07-28 21:59:50 UTC ---
Fixed.


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

* [Bug tree-optimization/48648] internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123
  2011-04-17  9:47 [Bug tree-optimization/48648] New: internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123 bero at arklinux dot org
                   ` (11 preceding siblings ...)
  2011-07-28 22:00 ` spop at gcc dot gnu.org
@ 2011-08-08 11:25 ` kilo at stierand dot com
  12 siblings, 0 replies; 14+ messages in thread
From: kilo at stierand dot com @ 2011-08-08 11:25 UTC (permalink / raw)
  To: gcc-bugs

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

kiloalphaindia <kilo at stierand dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kilo at stierand dot com

--- Comment #13 from kiloalphaindia <kilo at stierand dot com> 2011-08-08 11:24:35 UTC ---
It seams like this is not yet merged into 4.6. branch.

gcc version 4.6.2 20110729 (prerelease) (GCC) 

still fails.


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

end of thread, other threads:[~2011-08-08 11:25 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-17  9:47 [Bug tree-optimization/48648] New: internal compiler error: in translate_clast, at graphite-clast-to-gimple.c:1123 bero at arklinux dot org
2011-04-17  9:48 ` [Bug tree-optimization/48648] " bero at arklinux dot org
2011-04-17 10:09 ` bero at arklinux dot org
2011-04-17 10:34 ` bero at arklinux dot org
2011-04-17 10:35 ` bero at arklinux dot org
2011-04-18 10:24 ` rguenth at gcc dot gnu.org
2011-04-18 12:21 ` bero at arklinux dot org
2011-04-18 16:52 ` sebpop at gmail dot com
2011-06-18  9:56 ` bero at arklinux dot org
2011-07-22 23:08 ` spop at gcc dot gnu.org
2011-07-22 23:11 ` spop at gcc dot gnu.org
2011-07-28 21:58 ` spop at gcc dot gnu.org
2011-07-28 22:00 ` spop at gcc dot gnu.org
2011-08-08 11:25 ` kilo at stierand dot com

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).