public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/46107] New: verify_loop_structure problem
@ 2010-10-20 21:56 dcb314 at hotmail dot com
  2010-10-20 23:05 ` [Bug c/46107] [4.6 Regression] -ftree-loop-distribute-patterns caused " hjl.tools at gmail dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: dcb314 at hotmail dot com @ 2010-10-20 21:56 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: verify_loop_structure problem
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dcb314@hotmail.com


Created attachment 22100
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22100
C source code

I just tried to compile package gambas2-2.21.0 with the latest 4.6
snapshot 20101016 on a Fedora Linux box. The compiler said

gbx_subr_math.c: In function 'SUBR_add_quick':
gbx_subr_math.c:295:6: error: edge from 7 to 9 should be marked irreducible
gbx_subr_math.c:295:6: internal compiler error: in verify_loop_structure, at
cfgloop.c:1562
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Source code attached. Flag -O3 required.


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

* [Bug c/46107] [4.6 Regression] -ftree-loop-distribute-patterns caused verify_loop_structure problem
  2010-10-20 21:56 [Bug c/46107] New: verify_loop_structure problem dcb314 at hotmail dot com
@ 2010-10-20 23:05 ` hjl.tools at gmail dot com
  2010-10-21  5:49 ` [Bug tree-optimization/46107] " pinskia at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hjl.tools at gmail dot com @ 2010-10-20 23:05 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.10.20 23:05:14
                 CC|                            |hjl.tools at gmail dot com
            Summary|verify_loop_structure       |[4.6 Regression]
                   |problem                     |-ftree-loop-distribute-patt
                   |                            |erns caused
                   |                            |verify_loop_structure
                   |                            |problem
     Ever Confirmed|0                           |1


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

* [Bug tree-optimization/46107] [4.6 Regression] -ftree-loop-distribute-patterns caused verify_loop_structure problem
  2010-10-20 21:56 [Bug c/46107] New: verify_loop_structure problem dcb314 at hotmail dot com
  2010-10-20 23:05 ` [Bug c/46107] [4.6 Regression] -ftree-loop-distribute-patterns caused " hjl.tools at gmail dot com
@ 2010-10-21  5:49 ` pinskia at gcc dot gnu.org
  2010-11-02 16:18 ` jakub at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2010-10-21  5:49 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.6.0


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

* [Bug tree-optimization/46107] [4.6 Regression] -ftree-loop-distribute-patterns caused verify_loop_structure problem
  2010-10-20 21:56 [Bug c/46107] New: verify_loop_structure problem dcb314 at hotmail dot com
  2010-10-20 23:05 ` [Bug c/46107] [4.6 Regression] -ftree-loop-distribute-patterns caused " hjl.tools at gmail dot com
  2010-10-21  5:49 ` [Bug tree-optimization/46107] " pinskia at gcc dot gnu.org
@ 2010-11-02 16:18 ` jakub at gcc dot gnu.org
  2010-11-02 16:33 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-02 16:18 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-02 16:18:16 UTC ---
Reduced testcase:

int foo (void) __attribute__ ((noreturn));

void
bar (int x, int *y, int z)
{
  static void *j[] = { &&l1, &&l2 };
l1:
  if (*y)
    goto *j[z];
  foo ();
l2:
  *y ^= (x & 1) ? -1 : 0;
  goto *j[x];
}


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

* [Bug tree-optimization/46107] [4.6 Regression] -ftree-loop-distribute-patterns caused verify_loop_structure problem
  2010-10-20 21:56 [Bug c/46107] New: verify_loop_structure problem dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2010-11-02 16:18 ` jakub at gcc dot gnu.org
@ 2010-11-02 16:33 ` jakub at gcc dot gnu.org
  2010-11-02 19:14 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-02 16:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-02 16:32:24 UTC ---
verify_loop_structure () passes before loop unswitching, but doesn't pass after
it.


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

* [Bug tree-optimization/46107] [4.6 Regression] -ftree-loop-distribute-patterns caused verify_loop_structure problem
  2010-10-20 21:56 [Bug c/46107] New: verify_loop_structure problem dcb314 at hotmail dot com
                   ` (3 preceding siblings ...)
  2010-11-02 16:33 ` jakub at gcc dot gnu.org
@ 2010-11-02 19:14 ` jakub at gcc dot gnu.org
  2010-11-03  9:49 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-02 19:14 UTC (permalink / raw)
  To: gcc-bugs

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

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 #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-02 19:14:43 UTC ---
Created attachment 22234
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22234
gcc46-pr46107.patch

Untested fix.


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

* [Bug tree-optimization/46107] [4.6 Regression] -ftree-loop-distribute-patterns caused verify_loop_structure problem
  2010-10-20 21:56 [Bug c/46107] New: verify_loop_structure problem dcb314 at hotmail dot com
                   ` (4 preceding siblings ...)
  2010-11-02 19:14 ` jakub at gcc dot gnu.org
@ 2010-11-03  9:49 ` jakub at gcc dot gnu.org
  2010-11-03  9:50 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-03  9:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-03 09:49:21 UTC ---
Author: jakub
Date: Wed Nov  3 09:49:16 2010
New Revision: 166234

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166234
Log:
    PR tree-optimization/46107
    * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
    if cfg_hook_duplicate_loop_to_header_edge failed.

    * gcc.c-torture/compile/pr46107.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr46107.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cfgloopmanip.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug tree-optimization/46107] [4.6 Regression] -ftree-loop-distribute-patterns caused verify_loop_structure problem
  2010-10-20 21:56 [Bug c/46107] New: verify_loop_structure problem dcb314 at hotmail dot com
                   ` (5 preceding siblings ...)
  2010-11-03  9:49 ` jakub at gcc dot gnu.org
@ 2010-11-03  9:50 ` jakub at gcc dot gnu.org
  2010-11-11 20:33 ` jakub at gcc dot gnu.org
  2010-11-12 11:43 ` jakub at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-03  9:50 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-03 09:50:00 UTC ---
Fixed.


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

* [Bug tree-optimization/46107] [4.6 Regression] -ftree-loop-distribute-patterns caused verify_loop_structure problem
  2010-10-20 21:56 [Bug c/46107] New: verify_loop_structure problem dcb314 at hotmail dot com
                   ` (6 preceding siblings ...)
  2010-11-03  9:50 ` jakub at gcc dot gnu.org
@ 2010-11-11 20:33 ` jakub at gcc dot gnu.org
  2010-11-12 11:43 ` jakub at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-11 20:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-11 20:33:21 UTC ---
Author: jakub
Date: Thu Nov 11 20:33:18 2010
New Revision: 166615

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166615
Log:
    Backport from mainline
    2010-11-03  Jakub Jelinek  <jakub@redhat.com>

    PR tree-optimization/46107
    * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
    if cfg_hook_duplicate_loop_to_header_edge failed.

    * gcc.c-torture/compile/pr46107.c: New test.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/gcc.c-torture/compile/pr46107.c
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/cfgloopmanip.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


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

* [Bug tree-optimization/46107] [4.6 Regression] -ftree-loop-distribute-patterns caused verify_loop_structure problem
  2010-10-20 21:56 [Bug c/46107] New: verify_loop_structure problem dcb314 at hotmail dot com
                   ` (7 preceding siblings ...)
  2010-11-11 20:33 ` jakub at gcc dot gnu.org
@ 2010-11-12 11:43 ` jakub at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-12 11:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-12 11:28:35 UTC ---
Author: jakub
Date: Fri Nov 12 11:28:32 2010
New Revision: 166649

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166649
Log:
    Backport from mainline
    2010-11-03  Jakub Jelinek  <jakub@redhat.com>

    PR tree-optimization/46107
    * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
    if cfg_hook_duplicate_loop_to_header_edge failed.

    * gcc.c-torture/compile/pr46107.c: New test.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr46107.c
Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/cfgloopmanip.c
    branches/gcc-4_4-branch/gcc/gimplify.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


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

end of thread, other threads:[~2010-11-12 11:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-20 21:56 [Bug c/46107] New: verify_loop_structure problem dcb314 at hotmail dot com
2010-10-20 23:05 ` [Bug c/46107] [4.6 Regression] -ftree-loop-distribute-patterns caused " hjl.tools at gmail dot com
2010-10-21  5:49 ` [Bug tree-optimization/46107] " pinskia at gcc dot gnu.org
2010-11-02 16:18 ` jakub at gcc dot gnu.org
2010-11-02 16:33 ` jakub at gcc dot gnu.org
2010-11-02 19:14 ` jakub at gcc dot gnu.org
2010-11-03  9:49 ` jakub at gcc dot gnu.org
2010-11-03  9:50 ` jakub at gcc dot gnu.org
2010-11-11 20:33 ` jakub at gcc dot gnu.org
2010-11-12 11:43 ` 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).