Bug 28790 - ICE in initialize_inlined_parameters
Summary: ICE in initialize_inlined_parameters
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.2.0
: P3 normal
Target Milestone: 4.2.0
Assignee: Jakub Jelinek
URL: http://gcc.gnu.org/ml/gcc-patches/200...
Keywords: openmp, patch
Depends on: 25261
Blocks:
  Show dependency treegraph
 
Reported: 2006-08-21 12:38 UTC by Jakub Jelinek
Modified: 2007-01-10 19:22 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2006-09-22 16:34:43


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Jelinek 2006-08-21 12:38:47 UTC
! { dg-do compile }
! { dg-options "-O2 -fopenmp" }

program nestomp
  integer :: j
  j = 8
  call bar
contains
  subroutine foo (i)
    integer :: i
  !$omp atomic
    j = j + 1
  end subroutine
  subroutine bar
  integer :: i
  i = 6
  !$omp parallel
    call foo(i)
  !$omp end parallel
  end subroutine
end

Guess this is related to 25261, tree-nested.c really needs work for OpenMP.
Comment 1 Andrew Pinski 2006-09-03 05:44:34 UTC
Confirmed, we don't add to the calls the chain decl.
Comment 2 Jakub Jelinek 2006-09-26 18:11:13 UTC
Subject: Bug 28790

Author: jakub
Date: Tue Sep 26 18:10:58 2006
New Revision: 117235

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117235
Log:
	PR middle-end/25261
	PR middle-end/28790
	* tree-nested.c (struct nesting_info): Added static_chain_added.
	(convert_call_expr): Set static_chain_added when adding static
	chain.  Handle OMP_PARALLEL and OMP_SECTION.

	* gcc.dg/gomp/nestedfn-1.c: New test.

	* testsuite/libgomp.c/nestedfn-4.c: New test.
	* testsuite/libgomp.c/nestedfn-5.c: New test.
	* testsuite/libgomp.fortran/nestedfn3.f90: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/gomp/nestedfn-1.c
    trunk/libgomp/testsuite/libgomp.c/nestedfn-4.c
    trunk/libgomp/testsuite/libgomp.c/nestedfn-5.c
    trunk/libgomp/testsuite/libgomp.fortran/nestedfn3.f90
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-nested.c
    trunk/libgomp/ChangeLog

Comment 3 Andrew Pinski 2006-09-27 02:51:45 UTC
Fixed.