public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/36802]  New: pop_gimplify_context ICE using openmp task construct
@ 2008-07-11  3:15 BlanchardJ at ieee dot org
  2008-07-11  3:16 ` [Bug middle-end/36802] " BlanchardJ at ieee dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: BlanchardJ at ieee dot org @ 2008-07-11  3:15 UTC (permalink / raw)
  To: gcc-bugs

I get the following error when compiling using gcc snapshot 4.4.0 20080704

main.c|18|internal compiler error: in pop_gimplify_context, at gimplify.c:194

See code at the end of the post and gcc configure options.

Obviously when removing the -fopenmp switch the ICE go away. Also removing
either the omp task or omp single directive make the error go away. The ICE
also vanish if the expression inside the while loop is a constant.

This error appear at all optimization level with or without debugging enabled. 

using the following code (reduced case...) :

int main()
{
int i = 0;
#pragma omp parallel
{
    #pragma omp single
    while( i < 1 )
    {
        #pragma omp task
        i++;
    }
}
  return 0;
}

gcc configure options :
$ gcc -v
Using built-in specs.
Target: mingw32
Configured with: ./gcc-4.4.0/configure --prefix=/mingw --enable-bootstrap
--build=mingw32 --program-prefix= --with-as=/mingw/bin/as.exe
--with-ld=/mingw/bin/ld.exe --with-gcc --with-gnu-ld --with-gnu-as
--enable-languages=c,c++,objc,fortran --disable-nls --disable-win32-registry
--disable-werror --enable-sjlj-exceptions --enable-threads=win32
--disable-symvers --disable-libstdcxx-pch
--enable-version-specific-runtime-libs
--enable-cxx-flags='-fno-function-sections -fno-data-sections'
--enable-fully-dynamic-string --enable-libgomp --enable-checking=release
Thread model: win32
gcc version 4.4.0 20080704 (experimental) (GCC)


-- 
           Summary: pop_gimplify_context ICE using openmp task construct
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: BlanchardJ at ieee dot org
 GCC build triplet: i686-pc-mingw


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


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

* [Bug middle-end/36802] pop_gimplify_context ICE using openmp task construct
  2008-07-11  3:15 [Bug middle-end/36802] New: pop_gimplify_context ICE using openmp task construct BlanchardJ at ieee dot org
@ 2008-07-11  3:16 ` BlanchardJ at ieee dot org
  2008-08-11  1:45 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: BlanchardJ at ieee dot org @ 2008-07-11  3:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from BlanchardJ at ieee dot org  2008-07-11 03:15 -------
Created an attachment (id=15896)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15896&action=view)
preprocessed file of the presented testcase


-- 


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


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

* [Bug middle-end/36802] pop_gimplify_context ICE using openmp task construct
  2008-07-11  3:15 [Bug middle-end/36802] New: pop_gimplify_context ICE using openmp task construct BlanchardJ at ieee dot org
  2008-07-11  3:16 ` [Bug middle-end/36802] " BlanchardJ at ieee dot org
@ 2008-08-11  1:45 ` pinskia at gcc dot gnu dot org
  2008-12-08 10:38 ` [Bug middle-end/36802] [4.4 Regression] " jakub at gcc dot gnu dot org
  2008-12-08 10:44 ` jakub at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-08-11  1:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2008-08-11 01:44 -------
Confirmed, this worked in 4.3.0.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
  GCC build triplet|i686-pc-mingw               |
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |4.4.0
      Known to work|                            |4.3.0
   Last reconfirmed|0000-00-00 00:00:00         |2008-08-11 01:44:23
               date|                            |
   Target Milestone|---                         |4.4.0


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


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

* [Bug middle-end/36802] [4.4 Regression] pop_gimplify_context ICE using openmp task construct
  2008-07-11  3:15 [Bug middle-end/36802] New: pop_gimplify_context ICE using openmp task construct BlanchardJ at ieee dot org
  2008-07-11  3:16 ` [Bug middle-end/36802] " BlanchardJ at ieee dot org
  2008-08-11  1:45 ` pinskia at gcc dot gnu dot org
@ 2008-12-08 10:38 ` jakub at gcc dot gnu dot org
  2008-12-08 10:44 ` jakub at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-12-08 10:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2008-12-08 10:37 -------
Subject: Bug 36802

Author: jakub
Date: Mon Dec  8 10:36:01 2008
New Revision: 142546

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142546
Log:
        PR middle-end/36802
        * omp-low.c (use_pointer_for_field): Only call maybe_lookup_decl
        on parallel and task contexts.

        * testsuite/libgomp.c/pr36802-1.c: New test.
        * testsuite/libgomp.c/pr36802-2.c: New test.
        * testsuite/libgomp.c/pr36802-3.c: New test.

Added:
    trunk/libgomp/testsuite/libgomp.c/pr36802-1.c
    trunk/libgomp/testsuite/libgomp.c/pr36802-2.c
    trunk/libgomp/testsuite/libgomp.c/pr36802-3.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/omp-low.c
    trunk/libgomp/ChangeLog


-- 


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


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

* [Bug middle-end/36802] [4.4 Regression] pop_gimplify_context ICE using openmp task construct
  2008-07-11  3:15 [Bug middle-end/36802] New: pop_gimplify_context ICE using openmp task construct BlanchardJ at ieee dot org
                   ` (2 preceding siblings ...)
  2008-12-08 10:38 ` [Bug middle-end/36802] [4.4 Regression] " jakub at gcc dot gnu dot org
@ 2008-12-08 10:44 ` jakub at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-12-08 10:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2008-12-08 10:42 -------
Your testcase has data races, but I came up with valid testcases.


-- 

jakub at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2008-12-08 10:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-11  3:15 [Bug middle-end/36802] New: pop_gimplify_context ICE using openmp task construct BlanchardJ at ieee dot org
2008-07-11  3:16 ` [Bug middle-end/36802] " BlanchardJ at ieee dot org
2008-08-11  1:45 ` pinskia at gcc dot gnu dot org
2008-12-08 10:38 ` [Bug middle-end/36802] [4.4 Regression] " jakub at gcc dot gnu dot org
2008-12-08 10:44 ` jakub 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).