public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/56655] New: Associate construct with OpenMP triggers ICE
@ 2013-03-20  0:55 townsend at astro dot wisc.edu
  2013-03-20  9:47 ` [Bug fortran/56655] " janus at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: townsend at astro dot wisc.edu @ 2013-03-20  0:55 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56655
           Summary: Associate construct with OpenMP triggers ICE
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: townsend@astro.wisc.edu


Created attachment 29692
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29692
Test source file to reproduce the error

Attempting to compile the attached file with

gfortran -fopenmp -c openmp_ice.f90

...gives the following result:

openmp_ice.f90: In function ‘sub’:
openmp_ice.f90:8:0: internal compiler error: in omp_add_variable, at
gimplify.c:5894
   associate(x_a => x)
 ^

openmp_ice.f90:8:0: internal compiler error: Abort trap: 6
gfortran.exec: internal compiler error: Abort trap: 6 (program f951)
/Applications/madsdk/bin/gfortran: line 7: 16428 Abort trap: 6          
/Applications/madsdk/bin/gfortran.exec -fopenmp -c openmp_ice.f90

This may be related to PR 56062. My system:

Using built-in specs.
COLLECT_GCC=/Applications/madsdk/bin/gfortran.exec
COLLECT_LTO_WRAPPER=/Applications/madsdk/libexec/gcc/x86_64-apple-darwin11.4.2/4.8.0/lto-wrapper
Target: x86_64-apple-darwin11.4.2
Configured with: ./configure CC='gcc -D_FORTIFY_SOURCE=0'
--build=x86_64-apple-darwin11.4.2 --prefix=/Applications/madsdk
--with-gmp=/Applications/madsdk --with-mpfr=/Applications/madsdk
--with-mpc=/Applications/madsdk --enable-languages=c,c++,fortran
--disable-multilib
Thread model: posix
gcc version 4.8.0 20130307 (experimental) (GCC)
>From gcc-bugs-return-417911-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 01:46:53 2013
Return-Path: <gcc-bugs-return-417911-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20081 invoked by alias); 20 Mar 2013 01:46:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 20024 invoked by uid 48); 20 Mar 2013 01:46:45 -0000
From: "townsend at astro dot wisc.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/56656] New: Suffix or operands invalid for 'movq'
Date: Wed, 20 Mar 2013 01:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgcc
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: townsend at astro dot wisc.edu
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields:
Message-ID: <bug-56656-4@http.gcc.gnu.org/bugzilla/>
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
Content-Type: text/plain; charset="UTF-8"
MIME-Version: 1.0
X-SW-Source: 2013-03/txt/msg01352.txt.bz2
Content-length: 1971


http://gcc.gnu.org/bugzilla/show_bug.cgi?idV656

             Bug #: 56656
           Summary: Suffix or operands invalid for 'movq'
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: townsend@astro.wisc.edu


When attempting to compile the svn-fetched 4.8.0, I get the following error
during configuration:

/Volumes/Kleiner-Data/madsdk-src/gcc/host-x86_64-apple-darwin11.4.2/gcc/xgcc
-B/Volumes/Kleiner-Data/madsdk-src/gcc/host-x86_64-apple-darwin11.4.2/gcc/   -g
-O2 -O2  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
./include   -pipe -fno-common -g -DIN_LIBGCC2 -fbuilding-libgcc
-fno-stack-protector   -pipe -fno-common -I. -I.
-I../../host-x86_64-apple-darwin11.4.2/gcc -I../.././libgcc -I../.././libgcc/.
-I../.././libgcc/../gcc -I../.././libgcc/../include  -DHAVE_CC_TLS -DUSE_EMUTLS
-o extenddftf2_s.o -MT extenddftf2_s.o -MD -MP -MF extenddftf2_s.dep -DSHARED
-c ../.././libgcc/soft-fp/extenddftf2.c
../.././libgcc/soft-fp/extenddftf2.c:35:8: warning: no previous prototype for
'__extenddftf2' [-Wmissing-prototypes]
 TFtype __extenddftf2(DFtype a)
        ^
:47:suffix or operands invalid for `movq'
:50:suffix or operands invalid for `movq'
make[3]: *** [extenddftf2_s.o] Error 1
make[2]: *** [all-stage1-target-libgcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2

The configure uses the following:

./configure CC="gcc -D_FORTIFY_SOURCE=0" --build=x86_64-apple-darwin11.4.2
--prefix=/Applications/madsdk --with-gmp=/Applications/madsdk
--with-mpfr=/Applications/madsdk --with-mpc=/Applications/madsdk
--enable-languages=c,c++,fortran --disable-multilib

This is running on OS X Lion (10.7.5).


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

* [Bug fortran/56655] Associate construct with OpenMP triggers ICE
  2013-03-20  0:55 [Bug fortran/56655] New: Associate construct with OpenMP triggers ICE townsend at astro dot wisc.edu
@ 2013-03-20  9:47 ` janus at gcc dot gnu.org
  2013-03-20 13:25 ` townsend at astro dot wisc.edu
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: janus at gcc dot gnu.org @ 2013-03-20  9:47 UTC (permalink / raw)
  To: gcc-bugs


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

janus at gcc dot gnu.org changed:

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

--- Comment #1 from janus at gcc dot gnu.org 2013-03-20 09:47:22 UTC ---
(In reply to comment #0)
> Created attachment 29692 [details]
> Test source file to reproduce the error
> 
> Attempting to compile the attached file with
> 
> gfortran -fopenmp -c openmp_ice.f90

The file in the attachment is called 'test_h5_attr.f90' and I don't find any
ASSOCIATE construct in there. Wrong file attached?


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

* [Bug fortran/56655] Associate construct with OpenMP triggers ICE
  2013-03-20  0:55 [Bug fortran/56655] New: Associate construct with OpenMP triggers ICE townsend at astro dot wisc.edu
  2013-03-20  9:47 ` [Bug fortran/56655] " janus at gcc dot gnu.org
@ 2013-03-20 13:25 ` townsend at astro dot wisc.edu
  2013-03-20 14:28 ` [Bug fortran/56655] [F03] ASSOCIATE " janus at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: townsend at astro dot wisc.edu @ 2013-03-20 13:25 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from Rich Townsend <townsend at astro dot wisc.edu> 2013-03-20 13:25:15 UTC ---
(In reply to comment #1)
> (In reply to comment #0)
> > Created attachment 29692 [details]
> > Test source file to reproduce the error
> > 
> > Attempting to compile the attached file with
> > 
> > gfortran -fopenmp -c openmp_ice.f90
> 
> The file in the attachment is called 'test_h5_attr.f90' and I don't find any
> ASSOCIATE construct in there. Wrong file attached?

(In reply to comment #1)
> (In reply to comment #0)
> > Created attachment 29692 [details]
> > Test source file to reproduce the error
> > 
> > Attempting to compile the attached file with
> > 
> > gfortran -fopenmp -c openmp_ice.f90
> 
> The file in the attachment is called 'test_h5_attr.f90' and I don't find any
> ASSOCIATE construct in there. Wrong file attached?

Ooops -- wrong test case. Here it is:

subroutine sub (x)

  implicit none

  real, intent(in) :: x

  !$omp single
  associate(x_a => x)
  end associate
  !$omp end single 

end subroutine sub


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

* [Bug fortran/56655] [F03] ASSOCIATE construct with OpenMP triggers ICE
  2013-03-20  0:55 [Bug fortran/56655] New: Associate construct with OpenMP triggers ICE townsend at astro dot wisc.edu
  2013-03-20  9:47 ` [Bug fortran/56655] " janus at gcc dot gnu.org
  2013-03-20 13:25 ` townsend at astro dot wisc.edu
@ 2013-03-20 14:28 ` janus at gcc dot gnu.org
  2013-08-12 12:50 ` janus at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: janus at gcc dot gnu.org @ 2013-03-20 14:28 UTC (permalink / raw)
  To: gcc-bugs


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

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Associate construct with    |[F03] ASSOCIATE construct
                   |OpenMP triggers ICE         |with OpenMP triggers ICE

--- Comment #3 from janus at gcc dot gnu.org 2013-03-20 14:27:55 UTC ---
Note: OpenMP 3.1 does not handle any of Fortran 2003.

In the current draft of OpenMP 4.0 (RC2), cf.
http://openmp.org/wp/openmp-specifications/, many F03 features are still not
supported. However, ASSOCIATE actually seems to be supported.


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

* [Bug fortran/56655] [F03] ASSOCIATE construct with OpenMP triggers ICE
  2013-03-20  0:55 [Bug fortran/56655] New: Associate construct with OpenMP triggers ICE townsend at astro dot wisc.edu
                   ` (2 preceding siblings ...)
  2013-03-20 14:28 ` [Bug fortran/56655] [F03] ASSOCIATE " janus at gcc dot gnu.org
@ 2013-08-12 12:50 ` janus at gcc dot gnu.org
  2014-01-07 10:01 ` dominiq at lps dot ens.fr
  2014-05-02 10:29 ` dominiq at lps dot ens.fr
  5 siblings, 0 replies; 7+ messages in thread
From: janus at gcc dot gnu.org @ 2013-08-12 12:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from janus at gcc dot gnu.org ---
The final specification of OpenMP 4.0 has been published by now and apparently
supports the ASSOCIATE construct.


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

* [Bug fortran/56655] [F03] ASSOCIATE construct with OpenMP triggers ICE
  2013-03-20  0:55 [Bug fortran/56655] New: Associate construct with OpenMP triggers ICE townsend at astro dot wisc.edu
                   ` (3 preceding siblings ...)
  2013-08-12 12:50 ` janus at gcc dot gnu.org
@ 2014-01-07 10:01 ` dominiq at lps dot ens.fr
  2014-05-02 10:29 ` dominiq at lps dot ens.fr
  5 siblings, 0 replies; 7+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-01-07 10:01 UTC (permalink / raw)
  To: gcc-bugs

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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2014-01-07
                 CC|                            |jakub at gcc dot gnu.org
     Ever confirmed|0                           |1
      Known to fail|                            |4.8.2

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
The test in comment 2 compiles with r206348. I doubt the fix (OpenMP 4.0?) will
be back ported to 4.8. Closing as FIXED?


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

* [Bug fortran/56655] [F03] ASSOCIATE construct with OpenMP triggers ICE
  2013-03-20  0:55 [Bug fortran/56655] New: Associate construct with OpenMP triggers ICE townsend at astro dot wisc.edu
                   ` (4 preceding siblings ...)
  2014-01-07 10:01 ` dominiq at lps dot ens.fr
@ 2014-05-02 10:29 ` dominiq at lps dot ens.fr
  5 siblings, 0 replies; 7+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-05-02 10:29 UTC (permalink / raw)
  To: gcc-bugs

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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
      Known to work|                            |4.10.0, 4.9.0
         Resolution|---                         |FIXED

--- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
>The test in comment 2 compiles with r206348. I doubt the fix (OpenMP 4.0?)
> will be back ported to 4.8. Closing as FIXED?

The original test also compiles and runs with 4.9.0 and trunk (4.10, r210000).
No answer for more than three months. Closing as FIXED.


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

end of thread, other threads:[~2014-05-02 10:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-20  0:55 [Bug fortran/56655] New: Associate construct with OpenMP triggers ICE townsend at astro dot wisc.edu
2013-03-20  9:47 ` [Bug fortran/56655] " janus at gcc dot gnu.org
2013-03-20 13:25 ` townsend at astro dot wisc.edu
2013-03-20 14:28 ` [Bug fortran/56655] [F03] ASSOCIATE " janus at gcc dot gnu.org
2013-08-12 12:50 ` janus at gcc dot gnu.org
2014-01-07 10:01 ` dominiq at lps dot ens.fr
2014-05-02 10:29 ` dominiq at lps dot ens.fr

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).