public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/23177] New: internal compiler error with -O option
@ 2005-08-01 13:21 dir at lanl dot gov
  2005-08-01 13:30 ` [Bug tree-optimization/23177] [4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: dir at lanl dot gov @ 2005-08-01 13:21 UTC (permalink / raw)
  To: gcc-bugs

When I try to use the -O option, I get a internal compiler error -


[dranta:~/tests/gfortran-D] dir% gfortran -O -c s5main.f
s5main.f: In function 'mtlsc':
s5main.f:14: internal compiler error: tree check: expected ssa_name, have
var_decl in verify_ssa, at tree-ssa.c:746
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
[dranta:~/tests/gfortran-D] dir% cat s5main.f
      subroutine s5main(prop,sig,epx,ln)
c
      save
      common/bk56/c(6,6),ipt,nel,nelsub
      common/bk65/td1,td2,td3,td4,td5,td6
c
      dimension prop(*),sig(ln,*),epx(ln,*)
c
      data       third/.3333333333333/
c
      return
c
      end
      subroutine mtlsc(bulkld,p,a1,a2,gg)
c
      save
c
      common/bk56/c(6,6),ipt,nel,nelsub
      common/bk65/dsig(6)
      dimension d(6,6)
      data      tt/.6666666666667/,ot/.33333333333/
c
      xjb=dsig(1)**2+dsig(2)**2+dsig(3)**2+2.*(dsig(4)**2
     1   +dsig(5)*dsig(5)+dsig(6)*dsig(6))
      if(abs(xjb).lt.1.e-20) xjb=1.
      do 10 i=1,6
      do 10 j=1,6
      d(i,j)=-dsig(i)*dsig(j)/xjb
 10   continue
c
      return
      end

-- 
           Summary: internal compiler error with -O option
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dir at lanl dot gov
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: powerpc-apple-darwin7.9.0


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


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

* [Bug tree-optimization/23177] [4.1 Regression] internal compiler error with -O option
  2005-08-01 13:21 [Bug fortran/23177] New: internal compiler error with -O option dir at lanl dot gov
@ 2005-08-01 13:30 ` pinskia at gcc dot gnu dot org
  2005-08-01 13:32 ` rguenth at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-01 13:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-01 13:29 -------
Confirmed:
IV-OPTs is causing it:
  #   VUSE <bk65>;
  D.545_65 = MEM[symbol: bk65, index: D.685_81, step: 4B, offset: -4B];

Notice how the VUSE operand was not renamed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rakdver at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
          Component|fortran                     |tree-optimization
     Ever Confirmed|                            |1
   GCC host triplet|powerpc-apple-darwin7.9.0   |
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-01 13:29:07
               date|                            |
            Summary|internal compiler error with|[4.1 Regression] internal
                   |-O option                   |compiler error with -O
                   |                            |option
   Target Milestone|---                         |4.1.0
            Version|4.0.0                       |4.1.0


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


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

* [Bug tree-optimization/23177] [4.1 Regression] internal compiler error with -O option
  2005-08-01 13:21 [Bug fortran/23177] New: internal compiler error with -O option dir at lanl dot gov
  2005-08-01 13:30 ` [Bug tree-optimization/23177] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-08-01 13:32 ` rguenth at gcc dot gnu dot org
  2005-08-01 13:41 ` rguenth at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-08-01 13:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-08-01 13:32 -------
(A part of) http://gcc.gnu.org/ml/gcc-patches/2005-07/msg01882.html fixes this.

-- 


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


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

* [Bug tree-optimization/23177] [4.1 Regression] internal compiler error with -O option
  2005-08-01 13:21 [Bug fortran/23177] New: internal compiler error with -O option dir at lanl dot gov
  2005-08-01 13:30 ` [Bug tree-optimization/23177] [4.1 Regression] " pinskia at gcc dot gnu dot org
  2005-08-01 13:32 ` rguenth at gcc dot gnu dot org
@ 2005-08-01 13:41 ` rguenth at gcc dot gnu dot org
  2005-08-01 14:02 ` rguenth at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-08-01 13:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-08-01 13:41 -------
Fixing parts (maybe) identified.  Patch in testing.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-08-01 13:29:07         |2005-08-01 13:41:02
               date|                            |


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


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

* [Bug tree-optimization/23177] [4.1 Regression] internal compiler error with -O option
  2005-08-01 13:21 [Bug fortran/23177] New: internal compiler error with -O option dir at lanl dot gov
                   ` (2 preceding siblings ...)
  2005-08-01 13:41 ` rguenth at gcc dot gnu dot org
@ 2005-08-01 14:02 ` rguenth at gcc dot gnu dot org
  2005-08-02 11:47 ` cvs-commit at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-08-01 14:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-08-01 14:02 -------
http://gcc.gnu.org/ml/gcc-patches/2005-08/msg00028.html

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


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

* [Bug tree-optimization/23177] [4.1 Regression] internal compiler error with -O option
  2005-08-01 13:21 [Bug fortran/23177] New: internal compiler error with -O option dir at lanl dot gov
                   ` (3 preceding siblings ...)
  2005-08-01 14:02 ` rguenth at gcc dot gnu dot org
@ 2005-08-02 11:47 ` cvs-commit at gcc dot gnu dot org
  2005-08-02 11:48 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-02 11:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-02 11:47 -------
Subject: Bug 23177

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	rguenth@gcc.gnu.org	2005-08-02 11:46:46

Modified files:
	gcc            : ChangeLog tree-ssa-operands.c 

Log message:
	2005-08-02  Richard Guenther  <rguenther@suse.de>
	
	PR tree-optimization/23177
	* tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
	on TMR_TAG.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9634&r2=2.9635
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-operands.c.diff?cvsroot=gcc&r1=2.99&r2=2.100



-- 


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


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

* [Bug tree-optimization/23177] [4.1 Regression] internal compiler error with -O option
  2005-08-01 13:21 [Bug fortran/23177] New: internal compiler error with -O option dir at lanl dot gov
                   ` (4 preceding siblings ...)
  2005-08-02 11:47 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-02 11:48 ` rguenth at gcc dot gnu dot org
  2005-08-02 13:25 ` dir at lanl dot gov
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-08-02 11:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-08-02 11:48 -------
Fixed.

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


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


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

* [Bug tree-optimization/23177] [4.1 Regression] internal compiler error with -O option
  2005-08-01 13:21 [Bug fortran/23177] New: internal compiler error with -O option dir at lanl dot gov
                   ` (5 preceding siblings ...)
  2005-08-02 11:48 ` rguenth at gcc dot gnu dot org
@ 2005-08-02 13:25 ` dir at lanl dot gov
  2005-08-02 13:31 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: dir at lanl dot gov @ 2005-08-02 13:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dir at lanl dot gov  2005-08-02 13:25 -------
It is still crashing on me this morning on the Macintosh -

[dranta:~/tests/gfortran-D] dir% gfortran -O -c s5main.f
s5main.f: In function 'mtlsc':
s5main.f:14: internal compiler error: tree check: expected ssa_name, have
var_decl in verify_ssa, at tree-ssa.c:746
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
[dranta:~/tests/gfortran-D] dir% gfortran --v
Using built-in specs.
Target: powerpc-apple-darwin7.9.0
Configured with: ./configure --prefix=/Users/dir/gfortran --enable-languages=c,f95
Thread model: posix
gcc version 4.1.0 20050802 (experimental)
[dranta:~/tests/gfortran-D] dir% 
[dranta:~/tests/gfortran-D] dir% cat s5main.f
      subroutine s5main(prop,sig,epx,ln)
c
      save
      common/bk56/c(6,6),ipt,nel,nelsub
      common/bk65/td1,td2,td3,td4,td5,td6
c
      dimension prop(*),sig(ln,*),epx(ln,*)
c
      data       third/.3333333333333/
c
      return
c
      end
      subroutine mtlsc(bulkld,p,a1,a2,gg)
c
      save
c
      common/bk56/c(6,6),ipt,nel,nelsub
      common/bk65/dsig(6)
      dimension d(6,6)
      data      tt/.6666666666667/,ot/.33333333333/
c
      xjb=dsig(1)**2+dsig(2)**2+dsig(3)**2+2.*(dsig(4)**2
     1   +dsig(5)*dsig(5)+dsig(6)*dsig(6))
      if(abs(xjb).lt.1.e-20) xjb=1.
      do 10 i=1,6
      do 10 j=1,6
      d(i,j)=-dsig(i)*dsig(j)/xjb
 10   continue
c
      return
      end
[dranta:~/tests/gfortran-D] dir% 


-- 


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


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

* [Bug tree-optimization/23177] [4.1 Regression] internal compiler error with -O option
  2005-08-01 13:21 [Bug fortran/23177] New: internal compiler error with -O option dir at lanl dot gov
                   ` (6 preceding siblings ...)
  2005-08-02 13:25 ` dir at lanl dot gov
@ 2005-08-02 13:31 ` rguenth at gcc dot gnu dot org
  2005-08-02 14:23 ` pinskia at gcc dot gnu dot org
  2005-08-02 15:18 ` dir at lanl dot gov
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-08-02 13:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-08-02 13:31 -------
Please verify you have

2005-08-02  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/23177
        * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
        on TMR_TAG.

somewhere on top of gcc/gcc/ChangeLog

the testcase does no longer ICE for me on x86_64-unknown-linux-gnu.

-- 


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


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

* [Bug tree-optimization/23177] [4.1 Regression] internal compiler error with -O option
  2005-08-01 13:21 [Bug fortran/23177] New: internal compiler error with -O option dir at lanl dot gov
                   ` (7 preceding siblings ...)
  2005-08-02 13:31 ` rguenth at gcc dot gnu dot org
@ 2005-08-02 14:23 ` pinskia at gcc dot gnu dot org
  2005-08-02 15:18 ` dir at lanl dot gov
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-02 14:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-02 14:23 -------
I have verified that the patch which Richard references does fix it.

-- 


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


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

* [Bug tree-optimization/23177] [4.1 Regression] internal compiler error with -O option
  2005-08-01 13:21 [Bug fortran/23177] New: internal compiler error with -O option dir at lanl dot gov
                   ` (8 preceding siblings ...)
  2005-08-02 14:23 ` pinskia at gcc dot gnu dot org
@ 2005-08-02 15:18 ` dir at lanl dot gov
  9 siblings, 0 replies; 11+ messages in thread
From: dir at lanl dot gov @ 2005-08-02 15:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dir at lanl dot gov  2005-08-02 15:17 -------
It works now. Somehow, I missed getting it the first time that I refreshed the
gfortran tree this morning.

-- 


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


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

end of thread, other threads:[~2005-08-02 15:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-01 13:21 [Bug fortran/23177] New: internal compiler error with -O option dir at lanl dot gov
2005-08-01 13:30 ` [Bug tree-optimization/23177] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-08-01 13:32 ` rguenth at gcc dot gnu dot org
2005-08-01 13:41 ` rguenth at gcc dot gnu dot org
2005-08-01 14:02 ` rguenth at gcc dot gnu dot org
2005-08-02 11:47 ` cvs-commit at gcc dot gnu dot org
2005-08-02 11:48 ` rguenth at gcc dot gnu dot org
2005-08-02 13:25 ` dir at lanl dot gov
2005-08-02 13:31 ` rguenth at gcc dot gnu dot org
2005-08-02 14:23 ` pinskia at gcc dot gnu dot org
2005-08-02 15:18 ` dir at lanl dot gov

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