public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/52429] New: [4.7 Regression] ICE in separate_decls_in_region_debug, at tree-parloops.c:914 with -ftree-parallelize-loops
@ 2012-02-29  9:41 Bernhard.Rosenkranzer at linaro dot org
  2012-02-29 11:10 ` [Bug tree-optimization/52429] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Bernhard.Rosenkranzer at linaro dot org @ 2012-02-29  9:41 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52429
           Summary: [4.7 Regression] ICE in
                    separate_decls_in_region_debug, at tree-parloops.c:914
                    with -ftree-parallelize-loops
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: Bernhard.Rosenkranzer@linaro.org


Created attachment 26778
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26778
Test case (Not yet reduced)

[bero@localhost imx6-4.7]$
/opt/android-toolchain-4.7/bin/arm-linux-androideabi-g++ -c -g -O
-ftree-parallelize-loops=4 -o test.o separate_decls_in_region_debug.i
In file included from frameworks/base/include/utils/KeyedVector.h:24:0,
                 from frameworks/base/opengl/libagl/TextureObjectManager.h:27,
                 from
frameworks/base/opengl/libagl/TextureObjectManager.cpp:20:
frameworks/base/include/utils/SortedVector.h: In member function 'void
android::SortedVector<TYPE>::do_construct(void*, size_t) const [with TYPE =
android::key_value_pair_t<unsigned int, android::sp<android::EGLTextureObject>
>; size_t = unsigned int]':
frameworks/base/include/utils/SortedVector.h:244:6: internal compiler error: in
separate_decls_in_region_debug, at tree-parloops.c:914

Current 4.6 branch is ok


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

* [Bug tree-optimization/52429] [4.7 Regression] ICE in separate_decls_in_region_debug, at tree-parloops.c:914 with -ftree-parallelize-loops
  2012-02-29  9:41 [Bug tree-optimization/52429] New: [4.7 Regression] ICE in separate_decls_in_region_debug, at tree-parloops.c:914 with -ftree-parallelize-loops Bernhard.Rosenkranzer at linaro dot org
@ 2012-02-29 11:10 ` rguenth at gcc dot gnu.org
  2012-02-29 11:31 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-02-29 11:10 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |arm-linux-androideabi
   Target Milestone|---                         |4.7.0

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-02-29 10:13:10 UTC ---
Works on x86_64 with -m32.


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

* [Bug tree-optimization/52429] [4.7 Regression] ICE in separate_decls_in_region_debug, at tree-parloops.c:914 with -ftree-parallelize-loops
  2012-02-29  9:41 [Bug tree-optimization/52429] New: [4.7 Regression] ICE in separate_decls_in_region_debug, at tree-parloops.c:914 with -ftree-parallelize-loops Bernhard.Rosenkranzer at linaro dot org
  2012-02-29 11:10 ` [Bug tree-optimization/52429] " rguenth at gcc dot gnu.org
@ 2012-02-29 11:31 ` jakub at gcc dot gnu.org
  2012-02-29 11:41 ` Bernhard.Rosenkranzer at linaro dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-29 11:31 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-29 11:09:55 UTC ---
Reducing.


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

* [Bug tree-optimization/52429] [4.7 Regression] ICE in separate_decls_in_region_debug, at tree-parloops.c:914 with -ftree-parallelize-loops
  2012-02-29  9:41 [Bug tree-optimization/52429] New: [4.7 Regression] ICE in separate_decls_in_region_debug, at tree-parloops.c:914 with -ftree-parallelize-loops Bernhard.Rosenkranzer at linaro dot org
  2012-02-29 11:10 ` [Bug tree-optimization/52429] " rguenth at gcc dot gnu.org
  2012-02-29 11:31 ` jakub at gcc dot gnu.org
@ 2012-02-29 11:41 ` Bernhard.Rosenkranzer at linaro dot org
  2012-02-29 12:09 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Bernhard.Rosenkranzer at linaro dot org @ 2012-02-29 11:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Bernhard Rosenkränzer <Bernhard.Rosenkranzer at linaro dot org> 2012-02-29 11:35:34 UTC ---
Created attachment 26781
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26781
(Mostly) reduced version of the testcase

Attaching reduced version


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

* [Bug tree-optimization/52429] [4.7 Regression] ICE in separate_decls_in_region_debug, at tree-parloops.c:914 with -ftree-parallelize-loops
  2012-02-29  9:41 [Bug tree-optimization/52429] New: [4.7 Regression] ICE in separate_decls_in_region_debug, at tree-parloops.c:914 with -ftree-parallelize-loops Bernhard.Rosenkranzer at linaro dot org
                   ` (2 preceding siblings ...)
  2012-02-29 11:41 ` Bernhard.Rosenkranzer at linaro dot org
@ 2012-02-29 12:09 ` jakub at gcc dot gnu.org
  2012-02-29 12:45 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-29 12:09 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-02-29
     Ever Confirmed|0                           |1

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-29 11:45:31 UTC ---
More reduced:

// PR tree-optimization/52429
// { dg-do compile }
// { dg-options "-O -g -ftree-parallelize-loops=4" }

struct B
{
  B () : b (__null) {}
  int *b;
};
void *
operator new (__SIZE_TYPE__, void *p)
{
  return p;
}
void
foo (B *x, unsigned y)
{
  while (y--)
    new (x) B;
}


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

* [Bug tree-optimization/52429] [4.7 Regression] ICE in separate_decls_in_region_debug, at tree-parloops.c:914 with -ftree-parallelize-loops
  2012-02-29  9:41 [Bug tree-optimization/52429] New: [4.7 Regression] ICE in separate_decls_in_region_debug, at tree-parloops.c:914 with -ftree-parallelize-loops Bernhard.Rosenkranzer at linaro dot org
                   ` (3 preceding siblings ...)
  2012-02-29 12:09 ` jakub at gcc dot gnu.org
@ 2012-02-29 12:45 ` jakub at gcc dot gnu.org
  2012-02-29 17:47 ` jakub at gcc dot gnu.org
  2012-02-29 17:54 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-29 12:45 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |jakub at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-29 12:42:38 UTC ---
Created attachment 26783
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26783
gcc47-pr52429.patch

Untested fix.


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

* [Bug tree-optimization/52429] [4.7 Regression] ICE in separate_decls_in_region_debug, at tree-parloops.c:914 with -ftree-parallelize-loops
  2012-02-29  9:41 [Bug tree-optimization/52429] New: [4.7 Regression] ICE in separate_decls_in_region_debug, at tree-parloops.c:914 with -ftree-parallelize-loops Bernhard.Rosenkranzer at linaro dot org
                   ` (4 preceding siblings ...)
  2012-02-29 12:45 ` jakub at gcc dot gnu.org
@ 2012-02-29 17:47 ` jakub at gcc dot gnu.org
  2012-02-29 17:54 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-29 17:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-29 17:44:01 UTC ---
Author: jakub
Date: Wed Feb 29 17:43:56 2012
New Revision: 184665

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184665
Log:
    PR tree-optimization/52429
    * tree-parloops.c (separate_decls_in_region_debug): Return early
    if var is LABEL_DECL.

    * gcc.dg/torture/pr52429.c: New test.
    * g++.dg/opt/pr52429.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/opt/pr52429.C
    trunk/gcc/testsuite/gcc.dg/torture/pr52429.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-parloops.c


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

* [Bug tree-optimization/52429] [4.7 Regression] ICE in separate_decls_in_region_debug, at tree-parloops.c:914 with -ftree-parallelize-loops
  2012-02-29  9:41 [Bug tree-optimization/52429] New: [4.7 Regression] ICE in separate_decls_in_region_debug, at tree-parloops.c:914 with -ftree-parallelize-loops Bernhard.Rosenkranzer at linaro dot org
                   ` (5 preceding siblings ...)
  2012-02-29 17:47 ` jakub at gcc dot gnu.org
@ 2012-02-29 17:54 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-29 17:54 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-29 17:52:18 UTC ---
Fixed.


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

end of thread, other threads:[~2012-02-29 17:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-29  9:41 [Bug tree-optimization/52429] New: [4.7 Regression] ICE in separate_decls_in_region_debug, at tree-parloops.c:914 with -ftree-parallelize-loops Bernhard.Rosenkranzer at linaro dot org
2012-02-29 11:10 ` [Bug tree-optimization/52429] " rguenth at gcc dot gnu.org
2012-02-29 11:31 ` jakub at gcc dot gnu.org
2012-02-29 11:41 ` Bernhard.Rosenkranzer at linaro dot org
2012-02-29 12:09 ` jakub at gcc dot gnu.org
2012-02-29 12:45 ` jakub at gcc dot gnu.org
2012-02-29 17:47 ` jakub at gcc dot gnu.org
2012-02-29 17:54 ` jakub at gcc dot gnu.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).