public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/40140]  New: [4.5 Regression] ICE with -ftree-parallelize-loops
@ 2009-05-14  7:16 reichelt at gcc dot gnu dot org
  2009-05-14  7:17 ` [Bug tree-optimization/40140] " reichelt at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-05-14  7:16 UTC (permalink / raw)
  To: gcc-bugs

The attached valid code snippet triggers an ICE on the trunk when compiled with
"-O2 -ftree-parallelize-loops=2":

g++: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report. [etc.]


-- 
           Summary: [4.5 Regression] ICE with -ftree-parallelize-loops
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug tree-optimization/40140] [4.5 Regression] ICE with -ftree-parallelize-loops
  2009-05-14  7:16 [Bug tree-optimization/40140] New: [4.5 Regression] ICE with -ftree-parallelize-loops reichelt at gcc dot gnu dot org
  2009-05-14  7:17 ` [Bug tree-optimization/40140] " reichelt at gcc dot gnu dot org
@ 2009-05-14  7:17 ` reichelt at gcc dot gnu dot org
  2009-05-21 11:04 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-05-14  7:17 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.5.0


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


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

* [Bug tree-optimization/40140] [4.5 Regression] ICE with -ftree-parallelize-loops
  2009-05-14  7:16 [Bug tree-optimization/40140] New: [4.5 Regression] ICE with -ftree-parallelize-loops reichelt at gcc dot gnu dot org
@ 2009-05-14  7:17 ` reichelt at gcc dot gnu dot org
  2009-05-14  7:17 ` reichelt at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-05-14  7:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from reichelt at gcc dot gnu dot org  2009-05-14 07:17 -------
Created an attachment (id=17862)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17862&action=view)
Testcase (about 90 lines)


-- 


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


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

* [Bug tree-optimization/40140] [4.5 Regression] ICE with -ftree-parallelize-loops
  2009-05-14  7:16 [Bug tree-optimization/40140] New: [4.5 Regression] ICE with -ftree-parallelize-loops reichelt at gcc dot gnu dot org
  2009-05-14  7:17 ` [Bug tree-optimization/40140] " reichelt at gcc dot gnu dot org
  2009-05-14  7:17 ` reichelt at gcc dot gnu dot org
@ 2009-05-21 11:04 ` rguenth at gcc dot gnu dot org
  2009-06-06 22:54 ` reichelt at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-05-21 11:04 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug tree-optimization/40140] [4.5 Regression] ICE with -ftree-parallelize-loops
  2009-05-14  7:16 [Bug tree-optimization/40140] New: [4.5 Regression] ICE with -ftree-parallelize-loops reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2009-05-21 11:04 ` rguenth at gcc dot gnu dot org
@ 2009-06-06 22:54 ` reichelt at gcc dot gnu dot org
  2009-11-09 13:44 ` rguenth at gcc dot gnu dot org
  2009-11-09 21:59 ` reichelt at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-06-06 22:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from reichelt at gcc dot gnu dot org  2009-06-06 22:54 -------
The original testcase doesn't crash anymore, but now an even simpler version
crashes:

============================================================================
double sqrt(double x) { double d; asm("" : "=t"(d) : "0"(x)); return d; }

struct A
{
  A();
  int i;
  int* p;
};

int foo(const A& a)
{
  int s = 0;
  for (int i = 0; i < a.i; ++i)
    s += a.p[i];
  return s;
}

template<int> struct B
{
  static const bool b = true;
};

template<int N, bool = B<N>::b> struct C {};

template<int> void bar(const C<0>&, const A& a, bool b = true)
{
  A x;
  int d = sqrt(foo(a));
  if (b) d = 1;
}

void baz()
{
  A a;
  bar<0>(C<0>(), a);
  bar<0>(C<0>(), a);
}
============================================================================


-- 


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


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

* [Bug tree-optimization/40140] [4.5 Regression] ICE with -ftree-parallelize-loops
  2009-05-14  7:16 [Bug tree-optimization/40140] New: [4.5 Regression] ICE with -ftree-parallelize-loops reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2009-06-06 22:54 ` reichelt at gcc dot gnu dot org
@ 2009-11-09 13:44 ` rguenth at gcc dot gnu dot org
  2009-11-09 21:59 ` reichelt at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-11-09 13:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2009-11-09 13:44 -------
Neither testcase crashes for me anymore (x86-64, with and without -m32).


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


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

* [Bug tree-optimization/40140] [4.5 Regression] ICE with -ftree-parallelize-loops
  2009-05-14  7:16 [Bug tree-optimization/40140] New: [4.5 Regression] ICE with -ftree-parallelize-loops reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2009-11-09 13:44 ` rguenth at gcc dot gnu dot org
@ 2009-11-09 21:59 ` reichelt at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-11-09 21:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from reichelt at gcc dot gnu dot org  2009-11-09 21:59 -------
The second testcase stopped crashing in August or September. Because the first
testcase stopped crashing although the bug wasn't really fixed, I thought it
would maybe pop up again. But apparently it didn't. So let's close the bug for
good.


-- 

reichelt at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2009-11-09 21:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-14  7:16 [Bug tree-optimization/40140] New: [4.5 Regression] ICE with -ftree-parallelize-loops reichelt at gcc dot gnu dot org
2009-05-14  7:17 ` [Bug tree-optimization/40140] " reichelt at gcc dot gnu dot org
2009-05-14  7:17 ` reichelt at gcc dot gnu dot org
2009-05-21 11:04 ` rguenth at gcc dot gnu dot org
2009-06-06 22:54 ` reichelt at gcc dot gnu dot org
2009-11-09 13:44 ` rguenth at gcc dot gnu dot org
2009-11-09 21:59 ` reichelt at gcc dot gnu dot org

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