public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/60682] New: [4.9 Regression][OpenMP] ICE on an assignment of local variable inside SIMD loop
@ 2014-03-27 10:08 izamyatin at gmail dot com
  2014-03-27 13:19 ` [Bug middle-end/60682] " jakub at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: izamyatin at gmail dot com @ 2014-03-27 10:08 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60682
           Summary: [4.9 Regression][OpenMP] ICE on an assignment of local
                    variable inside SIMD loop
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: izamyatin at gmail dot com

Seems r207629 (fix for PR59984) introduces given issue.

Test is 

class V3
{
public:
    float v[1];

    V3() {}

    V3(const V3 &x)
      {
       v[0] = x.v[0];
      }
};

struct CCC
{
  V3 a[16];
};

void foo(int num, CCC &cc) 
{

#pragma omp simd
  for(int i = 0; i < num; ++i)
    {
      V3 v3;
      cc.a[i] = v3; 
    }
}

compilation flags: -O1  -fopenmp

ICE:
internal compiler error: in create_tmp_var, at gimple-expr.c:506
       cc.a[i] = v3;
                   ^
0x97ab03 create_tmp_var(tree_node*, char const*)

Note that v3's privatization makes ICE disappear.


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

* [Bug middle-end/60682] [4.9 Regression][OpenMP] ICE on an assignment of local variable inside SIMD loop
  2014-03-27 10:08 [Bug middle-end/60682] New: [4.9 Regression][OpenMP] ICE on an assignment of local variable inside SIMD loop izamyatin at gmail dot com
@ 2014-03-27 13:19 ` jakub at gcc dot gnu.org
  2014-03-27 13:24 ` jakub at gcc dot gnu.org
  2014-03-28  9:09 ` izamyatin at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-03-27 13:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Mar 27 13:18:52 2014
New Revision: 208864

URL: http://gcc.gnu.org/viewcvs?rev=208864&root=gcc&view=rev
Log:
    PR middle-end/60682
    * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
    if they need regimplification, just drop them instead of
    calling gimple_regimplify_operands on them.

    * g++.dg/gomp/pr60682.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/gomp/pr60682.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/omp-low.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug middle-end/60682] [4.9 Regression][OpenMP] ICE on an assignment of local variable inside SIMD loop
  2014-03-27 10:08 [Bug middle-end/60682] New: [4.9 Regression][OpenMP] ICE on an assignment of local variable inside SIMD loop izamyatin at gmail dot com
  2014-03-27 13:19 ` [Bug middle-end/60682] " jakub at gcc dot gnu.org
@ 2014-03-27 13:24 ` jakub at gcc dot gnu.org
  2014-03-28  9:09 ` izamyatin at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-03-27 13:24 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.


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

* [Bug middle-end/60682] [4.9 Regression][OpenMP] ICE on an assignment of local variable inside SIMD loop
  2014-03-27 10:08 [Bug middle-end/60682] New: [4.9 Regression][OpenMP] ICE on an assignment of local variable inside SIMD loop izamyatin at gmail dot com
  2014-03-27 13:19 ` [Bug middle-end/60682] " jakub at gcc dot gnu.org
  2014-03-27 13:24 ` jakub at gcc dot gnu.org
@ 2014-03-28  9:09 ` izamyatin at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: izamyatin at gmail dot com @ 2014-03-28  9:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Igor Zamyatin <izamyatin at gmail dot com> ---
Thanks for the quick fix!


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

end of thread, other threads:[~2014-03-28  9:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-27 10:08 [Bug middle-end/60682] New: [4.9 Regression][OpenMP] ICE on an assignment of local variable inside SIMD loop izamyatin at gmail dot com
2014-03-27 13:19 ` [Bug middle-end/60682] " jakub at gcc dot gnu.org
2014-03-27 13:24 ` jakub at gcc dot gnu.org
2014-03-28  9:09 ` izamyatin at gmail 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).