public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/41403]  New: Optimization: NIST test FM013.f fails at -O1 and above
@ 2009-09-19  5:42 jvdelisle at gcc dot gnu dot org
  2009-09-19  5:44 ` [Bug fortran/41403] " jvdelisle at gcc dot gnu dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2009-09-19  5:42 UTC (permalink / raw)
  To: gcc-bugs

This test case passes with no optimization. It hangs in a loop with -O1, -O2,
or -O3.

Fails also on 4.3, and 4.4. Attachment to follow.


-- 
           Summary: Optimization: NIST test FM013.f fails at -O1 and above
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jvdelisle at gcc dot gnu dot org
  GCC host triplet: x86_64-unknown-linux-gnu


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


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

* [Bug fortran/41403] Optimization: NIST test FM013.f fails at -O1 and above
  2009-09-19  5:42 [Bug fortran/41403] New: Optimization: NIST test FM013.f fails at -O1 and above jvdelisle at gcc dot gnu dot org
@ 2009-09-19  5:44 ` jvdelisle at gcc dot gnu dot org
  2009-09-19  5:47 ` jvdelisle at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2009-09-19  5:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jvdelisle at gcc dot gnu dot org  2009-09-19 05:44 -------
Created an attachment (id=18605)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18605&action=view)
NIST test case that is failing

I will try to reduce this.


-- 


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


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

* [Bug fortran/41403] Optimization: NIST test FM013.f fails at -O1 and above
  2009-09-19  5:42 [Bug fortran/41403] New: Optimization: NIST test FM013.f fails at -O1 and above jvdelisle at gcc dot gnu dot org
  2009-09-19  5:44 ` [Bug fortran/41403] " jvdelisle at gcc dot gnu dot org
@ 2009-09-19  5:47 ` jvdelisle at gcc dot gnu dot org
  2009-09-19  6:15 ` jvdelisle at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2009-09-19  5:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jvdelisle at gcc dot gnu dot org  2009-09-19 05:47 -------
Its ugly code so remember to compile with -w and save the attachment as a .f
file so that fixed form is used. This will turn off all of the warnings.


-- 


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


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

* [Bug fortran/41403] Optimization: NIST test FM013.f fails at -O1 and above
  2009-09-19  5:42 [Bug fortran/41403] New: Optimization: NIST test FM013.f fails at -O1 and above jvdelisle at gcc dot gnu dot org
  2009-09-19  5:44 ` [Bug fortran/41403] " jvdelisle at gcc dot gnu dot org
  2009-09-19  5:47 ` jvdelisle at gcc dot gnu dot org
@ 2009-09-19  6:15 ` jvdelisle at gcc dot gnu dot org
  2009-09-19 18:27 ` [Bug middle-end/41403] " jv244 at cam dot ac dot uk
                   ` (13 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2009-09-19  6:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jvdelisle at gcc dot gnu dot org  2009-09-19 06:15 -------
Reduced case:

Expected result:

$ ./a.out 
                    0 ERRORS ENCOUNTERED

Wrong result:

$ ./a.out 
                    1 ERRORS ENCOUNTERED

      PROGRAM FM013
      I01 = 5                                                           
      I02 = 6                                                           
      IVPASS=0                                                          
      IVFAIL=0                                                          
      IVDELE=0                                                          
      ICZERO=0                                                          
      IVTNUM = 126                                                      
C                                                                       
      IF (ICZERO) 31260, 1260, 31260                                    
 1260 CONTINUE                                                          
      ASSIGN 1263 TO I                                                  
      GO TO I, (1262,1263,1264)                                         
 1262 ICON01 = 1262                                                     
      GO TO 1265                                                        
 1263 ICON01 = 1263                                                     
      GO TO 1265                                                        
 1264 ICON01 = 1264                                                     
 1265 CONTINUE                                                          
      GO TO 41260                                                       
31260 IVDELE = IVDELE + 1                                               
      IF (ICZERO) 41260, 1271, 41260                                    
41260 IF ( ICON01 - 1263 )  21260, 11260, 21260                         
11260 IVPASS = IVPASS + 1                                               
      GO TO 1271                                                        
21260 IVFAIL = IVFAIL + 1                                               
      IVCOMP=ICON01                                                     
      IVCORR = 1263                                                     
 1271 CONTINUE                                                          
      IVTNUM = 127                                                      
99999 CONTINUE                                                          
      WRITE (I02,90008)  IVFAIL                                         
      STOP                                                              
90008 FORMAT (" ",15X,I5," ERRORS ENCOUNTERED" )                        
      END                                                               


-- 


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


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

* [Bug middle-end/41403] Optimization: NIST test FM013.f fails at -O1 and above
  2009-09-19  5:42 [Bug fortran/41403] New: Optimization: NIST test FM013.f fails at -O1 and above jvdelisle at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2009-09-19  6:15 ` jvdelisle at gcc dot gnu dot org
@ 2009-09-19 18:27 ` jv244 at cam dot ac dot uk
  2009-09-19 18:48 ` [Bug middle-end/41403] miscompilation of goto/label using code jv244 at cam dot ac dot uk
                   ` (12 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jv244 at cam dot ac dot uk @ 2009-09-19 18:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jv244 at cam dot ac dot uk  2009-09-19 18:27 -------
further reduced, looks more like a middle end issue to me:

      IVFAIL=0
      ASSIGN 1263 TO I
      GO TO I, (1262,1263,1264)
 1262 ICON01 = 1262
      GO TO 1265
 1263 ICON01 = 1263
      GO TO 1265
 1264 ICON01 = 1264
 1265 CONTINUE
41260 IF ( ICON01 - 1263 )  21260, 11260, 21260
11260 IVPASS = IVPASS + 1
      GO TO 1271
21260 IVFAIL = IVFAIL + 1
 1271 CONTINUE
      WRITE (6,*)  IVFAIL
      END


-- 

jv244 at cam dot ac dot uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|fortran                     |middle-end
     Ever Confirmed|0                           |1
      Known to fail|                            |4.3.1 4.4.2 4.5.0
   Last reconfirmed|0000-00-00 00:00:00         |2009-09-19 18:27:18
               date|                            |


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


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

* [Bug middle-end/41403] miscompilation of goto/label using code
  2009-09-19  5:42 [Bug fortran/41403] New: Optimization: NIST test FM013.f fails at -O1 and above jvdelisle at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2009-09-19 18:27 ` [Bug middle-end/41403] " jv244 at cam dot ac dot uk
@ 2009-09-19 18:48 ` jv244 at cam dot ac dot uk
  2009-09-19 18:54 ` jv244 at cam dot ac dot uk
                   ` (11 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jv244 at cam dot ac dot uk @ 2009-09-19 18:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jv244 at cam dot ac dot uk  2009-09-19 18:48 -------
and also fails in C

#include <stdio.h>
main()
{
  int i;
  int i0;
  void * i1;
  int icon01;
  int ivfail;
  int ivpass;
  int D1545;

  ivfail = 0;
  i0 = -1;
  i1 = &&label_001263;
  if (i1 == &&label_001262) goto label_001262;
  if (i1 == &&label_001263) goto label_001263;
  if (i1 == &&label_001264) goto label_001264;
  label_001262:
  icon01 = 1262;
  goto label_001265;
  label_001263:
  icon01 = 1263;
  goto label_001265;
  label_001264:
  icon01 = 1264;
  label_001265:
  label_041260:

    D1545 = icon01 + -1263;
    if (D1545 != 0) goto label_021260; else goto label_011260;
  label_011260:;
  ivpass = ivpass + 1;
  goto label_001271;
  label_021260:
  ivfail = ivfail + 1;
  label_001271:
  printf("%d\n",ivfail);
}


-- 

jv244 at cam dot ac dot uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
            Summary|Optimization: NIST test     |miscompilation of goto/label
                   |FM013.f fails at -O1 and    |using code
                   |above                       |


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


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

* [Bug middle-end/41403] miscompilation of goto/label using code
  2009-09-19  5:42 [Bug fortran/41403] New: Optimization: NIST test FM013.f fails at -O1 and above jvdelisle at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2009-09-19 18:48 ` [Bug middle-end/41403] miscompilation of goto/label using code jv244 at cam dot ac dot uk
@ 2009-09-19 18:54 ` jv244 at cam dot ac dot uk
  2009-09-20 13:18 ` [Bug middle-end/41403] [4.3/4.4/4.5 Regression] " jv244 at cam dot ac dot uk
                   ` (10 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jv244 at cam dot ac dot uk @ 2009-09-19 18:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jv244 at cam dot ac dot uk  2009-09-19 18:54 -------
and smaller C testcase:
main()
{
  void * i1;
  int icon01;
  int ivfail;
  int D1545;
  ivfail = 0;
  i1 = &&label_001263;
  if (i1 == &&label_001262) goto label_001262;
  if (i1 == &&label_001263) goto label_001263;
  label_001262:
  icon01 = 1262;
  goto label_001265;
  label_001263:
  icon01 = 1263;
  label_001265:
    D1545 = icon01 + -1263;
    if (D1545 != 0) goto label_021260; else goto label_011260;
  label_011260:;
  goto label_001271;
  label_021260:
  ivfail = ivfail + 1;
  label_001271:
  printf("%d\n",ivfail);
}


-- 


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


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

* [Bug middle-end/41403] [4.3/4.4/4.5 Regression] miscompilation of goto/label using code
  2009-09-19  5:42 [Bug fortran/41403] New: Optimization: NIST test FM013.f fails at -O1 and above jvdelisle at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2009-09-19 18:54 ` jv244 at cam dot ac dot uk
@ 2009-09-20 13:18 ` jv244 at cam dot ac dot uk
  2009-09-20 14:05 ` [Bug fortran/41403] " rguenth at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jv244 at cam dot ac dot uk @ 2009-09-20 13:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jv244 at cam dot ac dot uk  2009-09-20 13:18 -------
Not easy to find a machine that old, but it works with 3.3.3 and it fails
already with 4.1.2. Pretty old regression thus [tested with the C code].


-- 

jv244 at cam dot ac dot uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|4.3.1 4.4.2 4.5.0           |4.1.2 4.3.1 4.4.2 4.5.0
      Known to work|                            |3.3.3
            Summary|miscompilation of goto/label|[4.3/4.4/4.5 Regression]
                   |using code                  |miscompilation of goto/label
                   |                            |using code
   Target Milestone|---                         |4.3.5


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


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

* [Bug fortran/41403] [4.3/4.4/4.5 Regression] miscompilation of goto/label using code
  2009-09-19  5:42 [Bug fortran/41403] New: Optimization: NIST test FM013.f fails at -O1 and above jvdelisle at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2009-09-20 13:18 ` [Bug middle-end/41403] [4.3/4.4/4.5 Regression] " jv244 at cam dot ac dot uk
@ 2009-09-20 14:05 ` rguenth at gcc dot gnu dot org
  2009-09-20 14:18 ` jv244 at cam dot ac dot uk
                   ` (8 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-09-20 14:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from rguenth at gcc dot gnu dot org  2009-09-20 14:05 -------
On the tree level we end up with the correct (but unfortunately unfolded)

main ()
{
  int icon01;

<bb 2>:
  if (&label_001263 == &label_001262)
    goto <bb 5> (label_001265);
  else
    goto <bb 3> (label_001262);

label_001262:
  if (&label_001263 == &label_001263)
    goto <bb 5> (label_001265);
  else
    goto <bb 4> (label_001263);

label_001263:

  # icon01_1 = PHI <1262(4), 1263(3), 1262(2)>
label_001265:

label_001271:
  if (icon01_1 != 1263)
    goto <bb 7>;
  else
    goto <bb 8>;

<bb 7>:
  abort ();

<bb 8>:
  return 0;


Note that comparing addresses of labels is inherently fragile as they may
collapse to a single location (like it happens here):

main:
        pushl   %ebp
        movl    %esp, %ebp
        andl    $-16, %esp
.L4:
.L3:
.L2:
.L5:
        movl    $.L3, %eax
        cmpl    $.L4, %eax
        jne     .L6
        call    abort
.L6:
        movl    $0, %eax
        movl    %ebp, %esp
        popl    %ebp
        ret

forcing addresses of non-equivalent labels to compare non-equal would be
a way out here, but I think the Fortran frontend relies on a
fragile area of label address comparisons - labels are supposed to be
jumped to only.

That is, the Frontend presents us with

  i.0 = -2;
  ivfail = 0;
  i.0 = -1;
  i.1 = &__label_001263;
  if ((logical(kind=4)) __builtin_expect (i.0 != -1, 0))
    {
      _gfortran_runtime_error_at (&"At line 3 of file t.f"[1]{lb: 1 sz: 1},
&"Assigned label is not a target label"[1]{lb: 1 sz: 1});
    }
  if (i.1 == &__label_001262) goto __label_001262;
  if (i.1 == &__label_001263) goto __label_001263;
  if (i.1 == &__label_001264) goto __label_001264;
...

but instead it should have used a computed goto, like

  C.0 = { &__label_001262, &__label_001263, &__label_001264 };
  goto *C.0[i - 1262];

for assigned goto.

Thus, this is a frontend issue with assigned goto (a deleted feature btw).


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|middle-end                  |fortran


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


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

* [Bug fortran/41403] [4.3/4.4/4.5 Regression] miscompilation of goto/label using code
  2009-09-19  5:42 [Bug fortran/41403] New: Optimization: NIST test FM013.f fails at -O1 and above jvdelisle at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2009-09-20 14:05 ` [Bug fortran/41403] " rguenth at gcc dot gnu dot org
@ 2009-09-20 14:18 ` jv244 at cam dot ac dot uk
  2009-09-20 14:44 ` rguenth at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jv244 at cam dot ac dot uk @ 2009-09-20 14:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jv244 at cam dot ac dot uk  2009-09-20 14:18 -------
(In reply to comment #8)
> Thus, this is a frontend issue with assigned goto (a deleted feature btw).

so just for my curiosity, is the C code thus invalid?


-- 


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


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

* [Bug fortran/41403] [4.3/4.4/4.5 Regression] miscompilation of goto/label using code
  2009-09-19  5:42 [Bug fortran/41403] New: Optimization: NIST test FM013.f fails at -O1 and above jvdelisle at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2009-09-20 14:18 ` jv244 at cam dot ac dot uk
@ 2009-09-20 14:44 ` rguenth at gcc dot gnu dot org
  2009-09-20 17:04 ` jvdelisle at verizon dot net
                   ` (6 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-09-20 14:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from rguenth at gcc dot gnu dot org  2009-09-20 14:44 -------
No, the C code is valid, but it's results depend on optimization level
(just like if you would compare the addresses of stack locals).


-- 


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


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

* [Bug fortran/41403] [4.3/4.4/4.5 Regression] miscompilation of goto/label using code
  2009-09-19  5:42 [Bug fortran/41403] New: Optimization: NIST test FM013.f fails at -O1 and above jvdelisle at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2009-09-20 14:44 ` rguenth at gcc dot gnu dot org
@ 2009-09-20 17:04 ` jvdelisle at verizon dot net
  2009-09-20 17:09 ` rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jvdelisle at verizon dot net @ 2009-09-20 17:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from jvdelisle at verizon dot net  2009-09-20 17:04 -------
Subject: Re:  [4.3/4.4/4.5 Regression] miscompilation of
 goto/label using code

rguenth at gcc dot gnu dot org wrote:
> but instead it should have used a computed goto, like
> 
>   C.0 = { &__label_001262, &__label_001263, &__label_001264 };
>   goto *C.0[i - 1262];
> 
> for assigned goto.
> 
> Thus, this is a frontend issue with assigned goto (a deleted feature btw).
> 

I was confused by the parenthetical statement.

Is this:

C.0 = { &__label_001262, &__label_001263, &__label_001264 };
        goto *C.0[i - 1262];

OK to use or not?  Computed goto in Fortran is a legacy feature we must
support.


-- 


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


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

* [Bug fortran/41403] [4.3/4.4/4.5 Regression] miscompilation of goto/label using code
  2009-09-19  5:42 [Bug fortran/41403] New: Optimization: NIST test FM013.f fails at -O1 and above jvdelisle at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2009-09-20 17:04 ` jvdelisle at verizon dot net
@ 2009-09-20 17:09 ` rguenth at gcc dot gnu dot org
  2009-10-02 16:26 ` domob at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-09-20 17:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from rguenth at gcc dot gnu dot org  2009-09-20 17:09 -------
Yes that's ok.  What is not ok is to compare addresses of labels and to rely
on different labels having different addresses.


-- 


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


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

* [Bug fortran/41403] [4.3/4.4/4.5 Regression] miscompilation of goto/label using code
  2009-09-19  5:42 [Bug fortran/41403] New: Optimization: NIST test FM013.f fails at -O1 and above jvdelisle at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2009-09-20 17:09 ` rguenth at gcc dot gnu dot org
@ 2009-10-02 16:26 ` domob at gcc dot gnu dot org
  2009-10-03 14:13 ` domob at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: domob at gcc dot gnu dot org @ 2009-10-02 16:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from domob at gcc dot gnu dot org  2009-10-02 16:26 -------
I'll work on this.


-- 

domob at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |domob at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2009-09-19 18:27:18         |2009-10-02 16:26:32
               date|                            |


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


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

* [Bug fortran/41403] [4.3/4.4/4.5 Regression] miscompilation of goto/label using code
  2009-09-19  5:42 [Bug fortran/41403] New: Optimization: NIST test FM013.f fails at -O1 and above jvdelisle at gcc dot gnu dot org
                   ` (12 preceding siblings ...)
  2009-10-02 16:26 ` domob at gcc dot gnu dot org
@ 2009-10-03 14:13 ` domob at gcc dot gnu dot org
  2009-10-05 13:16 ` domob at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: domob at gcc dot gnu dot org @ 2009-10-03 14:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from domob at gcc dot gnu dot org  2009-10-03 14:13 -------
Here's a patch and some comments for this:
http://gcc.gnu.org/ml/fortran/2009-10/msg00017.html


-- 


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


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

* [Bug fortran/41403] [4.3/4.4/4.5 Regression] miscompilation of goto/label using code
  2009-09-19  5:42 [Bug fortran/41403] New: Optimization: NIST test FM013.f fails at -O1 and above jvdelisle at gcc dot gnu dot org
                   ` (13 preceding siblings ...)
  2009-10-03 14:13 ` domob at gcc dot gnu dot org
@ 2009-10-05 13:16 ` domob at gcc dot gnu dot org
  2009-10-05 13:19 ` domob at gcc dot gnu dot org
  2009-10-05 13:26 ` [Bug fortran/41403] [4.3/4.4 " rguenth at gcc dot gnu dot org
  16 siblings, 0 replies; 18+ messages in thread
From: domob at gcc dot gnu dot org @ 2009-10-05 13:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from domob at gcc dot gnu dot org  2009-10-05 13:15 -------
Subject: Bug 41403

Author: domob
Date: Mon Oct  5 13:15:35 2009
New Revision: 152448

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152448
Log:
2009-10-05  Daniel Kraft  <d@domob.eu>

        PR fortran/41403
        * trans-stmt.c (gfc_trans_goto): Ignore statement list on assigned goto
        if it is present.

2009-10-05  Daniel Kraft  <d@domob.eu>

        PR fortran/41403
        * gfortran.dg/goto_6.f: New test.
        * gfortran.dg/goto_7.f: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/goto_6.f
    trunk/gcc/testsuite/gfortran.dg/goto_7.f
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-stmt.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/41403] [4.3/4.4/4.5 Regression] miscompilation of goto/label using code
  2009-09-19  5:42 [Bug fortran/41403] New: Optimization: NIST test FM013.f fails at -O1 and above jvdelisle at gcc dot gnu dot org
                   ` (14 preceding siblings ...)
  2009-10-05 13:16 ` domob at gcc dot gnu dot org
@ 2009-10-05 13:19 ` domob at gcc dot gnu dot org
  2009-10-05 13:26 ` [Bug fortran/41403] [4.3/4.4 " rguenth at gcc dot gnu dot org
  16 siblings, 0 replies; 18+ messages in thread
From: domob at gcc dot gnu dot org @ 2009-10-05 13:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from domob at gcc dot gnu dot org  2009-10-05 13:19 -------
Fixed on trunk.  I won't backport, as this is no real regression.

I still volunteer to rework the assigned/computed goto implementation (and have
some ideas for that) in case we deem it worth the effort, but as both are
deleted/obsolete features I don't think we should go for it.


-- 

domob at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/41403] [4.3/4.4 Regression] miscompilation of goto/label using code
  2009-09-19  5:42 [Bug fortran/41403] New: Optimization: NIST test FM013.f fails at -O1 and above jvdelisle at gcc dot gnu dot org
                   ` (15 preceding siblings ...)
  2009-10-05 13:19 ` domob at gcc dot gnu dot org
@ 2009-10-05 13:26 ` rguenth at gcc dot gnu dot org
  16 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-10-05 13:26 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|4.1.2 4.3.1 4.4.2 4.5.0     |4.1.2 4.3.1 4.4.2
      Known to work|3.3.3                       |3.3.3 4.5.0
            Summary|[4.3/4.4/4.5 Regression]    |[4.3/4.4 Regression]
                   |miscompilation of goto/label|miscompilation of goto/label
                   |using code                  |using code
   Target Milestone|4.3.5                       |4.5.0


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


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

end of thread, other threads:[~2009-10-05 13:26 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-19  5:42 [Bug fortran/41403] New: Optimization: NIST test FM013.f fails at -O1 and above jvdelisle at gcc dot gnu dot org
2009-09-19  5:44 ` [Bug fortran/41403] " jvdelisle at gcc dot gnu dot org
2009-09-19  5:47 ` jvdelisle at gcc dot gnu dot org
2009-09-19  6:15 ` jvdelisle at gcc dot gnu dot org
2009-09-19 18:27 ` [Bug middle-end/41403] " jv244 at cam dot ac dot uk
2009-09-19 18:48 ` [Bug middle-end/41403] miscompilation of goto/label using code jv244 at cam dot ac dot uk
2009-09-19 18:54 ` jv244 at cam dot ac dot uk
2009-09-20 13:18 ` [Bug middle-end/41403] [4.3/4.4/4.5 Regression] " jv244 at cam dot ac dot uk
2009-09-20 14:05 ` [Bug fortran/41403] " rguenth at gcc dot gnu dot org
2009-09-20 14:18 ` jv244 at cam dot ac dot uk
2009-09-20 14:44 ` rguenth at gcc dot gnu dot org
2009-09-20 17:04 ` jvdelisle at verizon dot net
2009-09-20 17:09 ` rguenth at gcc dot gnu dot org
2009-10-02 16:26 ` domob at gcc dot gnu dot org
2009-10-03 14:13 ` domob at gcc dot gnu dot org
2009-10-05 13:16 ` domob at gcc dot gnu dot org
2009-10-05 13:19 ` domob at gcc dot gnu dot org
2009-10-05 13:26 ` [Bug fortran/41403] [4.3/4.4 " rguenth 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).