[Bug middle-end/42029] New: [4.5 Regression] ICE with complex data type and openmp for reduction clause

View: New views
6 Messages — Rating Filter:   Alert me  

[Bug middle-end/42029] New: [4.5 Regression] ICE with complex data type and openmp for reduction clause

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The following valid code snippet triggers in ICE on trunk:

======================================================
void foo()
{
  int i;
  _Complex int c = 0;

#pragma omp parallel for private(i) reduction(+:c)
  for (i = 0; i < 8; ++i)
    c += 0;
}
======================================================

bug.c: In function 'foo.omp_fn.0':
bug.c:8:7: error: invalid rhs for gimple memory store
D.2747

*D.2746_13;

D.2747 = *D.2746_13;

bug.c:8:7: internal compiler error: verify_stmts failed
Please submit a full bug report, [etc.]


--
           Summary: [4.5 Regression] ICE with complex data type and openmp
                    for reduction clause
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored, openmp
          Severity: normal
          Priority: P3
         Component: middle-end
        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=42029


[Bug middle-end/42029] [4.5 Regression] ICE with complex data type and openmp for reduction clause

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



--

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=42029


[Bug middle-end/42029] [4.5 Regression] ICE with complex data type and openmp for reduction clause

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



------- Comment #1 from rguenth at gcc dot gnu dot org  2009-11-13 13:52 -------
some DECL_GIMPLE_REG_P is missing.


--


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


[Bug middle-end/42029] [4.5 Regression] ICE with complex data type and openmp for reduction clause

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



------- Comment #2 from jakub at gcc dot gnu dot org  2009-11-13 18:38 -------
Subject: Bug 42029

Author: jakub
Date: Fri Nov 13 18:38:36 2009
New Revision: 154161

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154161
Log:
        PR middle-end/42029
        * gimplify.c (gimplify_omp_atomic): Set DECL_GIMPLE_REG_P on
        tmp_load if needed.

        * libgomp.c/pr42029.c: New test.

Added:
    trunk/libgomp/testsuite/libgomp.c/pr42029.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimplify.c
    trunk/libgomp/ChangeLog


--


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


[Bug middle-end/42029] [4.5 Regression] ICE with complex data type and openmp for reduction clause

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



------- Comment #3 from jakub at gcc dot gnu dot org  2009-11-13 18:42 -------
Subject: Bug 42029

Author: jakub
Date: Fri Nov 13 18:42:32 2009
New Revision: 154162

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154162
Log:
        PR middle-end/42029
        * gimplify.c (gimplify_omp_atomic): Set DECL_GIMPLE_REG_P on
        tmp_load if needed.

        * libgomp.c/pr42029.c: New test.

Added:
    branches/gcc-4_4-branch/libgomp/testsuite/libgomp.c/pr42029.c
Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/gimplify.c
    branches/gcc-4_4-branch/libgomp/ChangeLog


--


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


[Bug middle-end/42029] [4.5 Regression] ICE with complex data type and openmp for reduction clause

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



------- Comment #4 from reichelt at gcc dot gnu dot org  2009-11-14 03:31 -------
Fixed.


--

reichelt at gcc dot gnu dot org changed:

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


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