public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/33380]  New: Internal compiler error: in gen_lowpart_general, at rtlhooks.c:62
@ 2007-09-10 16:16 longb at cray dot com
  2007-09-10 17:21 ` [Bug fortran/33380] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: longb at cray dot com @ 2007-09-10 16:16 UTC (permalink / raw)
  To: gcc-bugs

Gfortran terminates with an internal compiler error for this test:

> cat test.f90
subroutine sub(var,thread_num)
!   derived from RTED_OpenMP/FORTRAN/SECTION_B/F_B_7_1_k_Z_s.f90
!   derived from RTED_OpenMP/FORTRAN/SECTION_B/F_B_7_2_k_Z_s.f90
    COMPLEX, INTENT(OUT) :: var
    integer, INTENT(IN) :: thread_num
    if (thread_num == 0) then
    !$OMP ATOMIC
            var = var + 2
    end if
end subroutine sub

> gfortran -fopenmp -c test.f90
test.f90: In function 'sub':
test.f90:7: internal compiler error: in gen_lowpart_general, at rtlhooks.c:62
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

> gfortran -v
Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../xt-gcc-4.2.1/configure --prefix=/opt/gcc/4.2.1/snos
--disable-nls --libdir=/opt/gcc/4.2.1/snos/lib --enable-languages=c,c++,fortran
--with-gxx-include-dir=/opt/gcc/4.2.1/snos/include/g++
--with-slibdir=/opt/gcc/4.2.1/snos/lib --with-sy
Thread model: posix
gcc version 4.2.1 20070719 (rpm:3)
>


-- 
           Summary: Internal compiler error: in gen_lowpart_general, at
                    rtlhooks.c:62
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: longb at cray dot com
 GCC build triplet: x86_64-suse-linux
  GCC host triplet: x86_64-suse-linux
GCC target triplet: x86_64-suse-linux


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


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

* [Bug fortran/33380] Internal compiler error: in gen_lowpart_general, at rtlhooks.c:62
  2007-09-10 16:16 [Bug fortran/33380] New: Internal compiler error: in gen_lowpart_general, at rtlhooks.c:62 longb at cray dot com
@ 2007-09-10 17:21 ` pinskia at gcc dot gnu dot org
  2007-09-10 17:23 ` kargl at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-09-10 17:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-09-10 17:21 -------
This works on the trunk.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.3.0


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


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

* [Bug fortran/33380] Internal compiler error: in gen_lowpart_general, at rtlhooks.c:62
  2007-09-10 16:16 [Bug fortran/33380] New: Internal compiler error: in gen_lowpart_general, at rtlhooks.c:62 longb at cray dot com
  2007-09-10 17:21 ` [Bug fortran/33380] " pinskia at gcc dot gnu dot org
@ 2007-09-10 17:23 ` kargl at gcc dot gnu dot org
  2007-09-10 17:33 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: kargl at gcc dot gnu dot org @ 2007-09-10 17:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from kargl at gcc dot gnu dot org  2007-09-10 17:23 -------
(In reply to comment #1)
> This works on the trunk.
> 

Not for me.

troutmask:sgk[210] gfc4x --version
GNU Fortran (GCC) 4.3.0 20070906 (experimental)

troutmask:sgk[211] gfc4x -o z -fopenmp l1.f90                                   
l1.f90: In function 'sub':
l1.f90:7: internal compiler error: in gen_lowpart_general, at rtlhooks.c:61
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

I have opteron hardware as does I believe Bill.


-- 


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


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

* [Bug fortran/33380] Internal compiler error: in gen_lowpart_general, at rtlhooks.c:62
  2007-09-10 16:16 [Bug fortran/33380] New: Internal compiler error: in gen_lowpart_general, at rtlhooks.c:62 longb at cray dot com
  2007-09-10 17:21 ` [Bug fortran/33380] " pinskia at gcc dot gnu dot org
  2007-09-10 17:23 ` kargl at gcc dot gnu dot org
@ 2007-09-10 17:33 ` pinskia at gcc dot gnu dot org
  2007-09-10 17:38 ` [Bug middle-end/33380] " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-09-10 17:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2007-09-10 17:33 -------
(In reply to comment #2)
> (In reply to comment #1)
> > This works on the trunk.
> > 
> 
> Not for me.

I had forgot to add -fopenmp to the options.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|4.3.0                       |


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


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

* [Bug middle-end/33380] Internal compiler error: in gen_lowpart_general, at rtlhooks.c:62
  2007-09-10 16:16 [Bug fortran/33380] New: Internal compiler error: in gen_lowpart_general, at rtlhooks.c:62 longb at cray dot com
                   ` (2 preceding siblings ...)
  2007-09-10 17:33 ` pinskia at gcc dot gnu dot org
@ 2007-09-10 17:38 ` pinskia at gcc dot gnu dot org
  2008-12-31 19:06 ` pinskia at gcc dot gnu dot org
  2010-09-19 18:50 ` jakub at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-09-10 17:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2007-09-10 17:38 -------
Breakpoint 1, gen_lowpart_general (mode=3273328, x=0x31f420) at
/Users/apinski/src/local/gcc/gcc/rtlhooks.c:61
61            gcc_assert (MEM_P (x));
(gdb) y
Undefined command: "y".  Try "help".
(gdb) p debug_rtx(x)
(concat:SC (reg:SF 65 [ D.1421 ])
    (reg:SF 66 [ D.1421+4 ]))


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2007-09-10 17:38:19
               date|                            |


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


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

* [Bug middle-end/33380] Internal compiler error: in gen_lowpart_general, at rtlhooks.c:62
  2007-09-10 16:16 [Bug fortran/33380] New: Internal compiler error: in gen_lowpart_general, at rtlhooks.c:62 longb at cray dot com
                   ` (3 preceding siblings ...)
  2007-09-10 17:38 ` [Bug middle-end/33380] " pinskia at gcc dot gnu dot org
@ 2008-12-31 19:06 ` pinskia at gcc dot gnu dot org
  2010-09-19 18:50 ` jakub at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-31 19:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2008-12-31 19:05 -------
This works for me on the trunk now.


-- 


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


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

* [Bug middle-end/33380] Internal compiler error: in gen_lowpart_general, at rtlhooks.c:62
  2007-09-10 16:16 [Bug fortran/33380] New: Internal compiler error: in gen_lowpart_general, at rtlhooks.c:62 longb at cray dot com
                   ` (4 preceding siblings ...)
  2008-12-31 19:06 ` pinskia at gcc dot gnu dot org
@ 2010-09-19 18:50 ` jakub at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-09-19 18:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jakub at gcc dot gnu dot org  2010-09-19 18:50 -------
Can't reproduce with either current trunk nor 4.4.4.


-- 

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


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

end of thread, other threads:[~2010-09-19 18:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-10 16:16 [Bug fortran/33380] New: Internal compiler error: in gen_lowpart_general, at rtlhooks.c:62 longb at cray dot com
2007-09-10 17:21 ` [Bug fortran/33380] " pinskia at gcc dot gnu dot org
2007-09-10 17:23 ` kargl at gcc dot gnu dot org
2007-09-10 17:33 ` pinskia at gcc dot gnu dot org
2007-09-10 17:38 ` [Bug middle-end/33380] " pinskia at gcc dot gnu dot org
2008-12-31 19:06 ` pinskia at gcc dot gnu dot org
2010-09-19 18:50 ` 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).