public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/38726]  New: gfortran.dg/elemental_subroutine_7.f90 fail on Linux/ia64
@ 2009-01-05  2:23 hjl dot tools at gmail dot com
  2009-01-05 13:54 ` [Bug fortran/38726] " dominiq at lps dot ens dot fr
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-01-05  2:23 UTC (permalink / raw)
  To: gcc-bugs

On Linux/ia64, revision 143058 gave

FAIL: gfortran.dg/elemental_subroutine_7.f90  -O0  execution test


-- 
           Summary: gfortran.dg/elemental_subroutine_7.f90 fail on
                    Linux/ia64
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl dot tools at gmail dot com


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


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

* [Bug fortran/38726] gfortran.dg/elemental_subroutine_7.f90 fail on Linux/ia64
  2009-01-05  2:23 [Bug fortran/38726] New: gfortran.dg/elemental_subroutine_7.f90 fail on Linux/ia64 hjl dot tools at gmail dot com
@ 2009-01-05 13:54 ` dominiq at lps dot ens dot fr
  2009-01-05 13:57 ` dominiq at lps dot ens dot fr
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dominiq at lps dot ens dot fr @ 2009-01-05 13:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dominiq at lps dot ens dot fr  2009-01-05 13:54 -------
The executable aborts on powerpc-apple-darwin9 (r143074) when compiled with
-m32, but passes when compiled with -m64.


-- 


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


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

* [Bug fortran/38726] gfortran.dg/elemental_subroutine_7.f90 fail on Linux/ia64
  2009-01-05  2:23 [Bug fortran/38726] New: gfortran.dg/elemental_subroutine_7.f90 fail on Linux/ia64 hjl dot tools at gmail dot com
  2009-01-05 13:54 ` [Bug fortran/38726] " dominiq at lps dot ens dot fr
@ 2009-01-05 13:57 ` dominiq at lps dot ens dot fr
  2009-01-05 13:58 ` mikael at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dominiq at lps dot ens dot fr @ 2009-01-05 13:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from dominiq at lps dot ens dot fr  2009-01-05 13:57 -------
See also http://gcc.gnu.org/ml/gcc-testresults/2009-01/msg00421.html for
powerpc-apple-darwin8.5.0.


-- 


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


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

* [Bug fortran/38726] gfortran.dg/elemental_subroutine_7.f90 fail on Linux/ia64
  2009-01-05  2:23 [Bug fortran/38726] New: gfortran.dg/elemental_subroutine_7.f90 fail on Linux/ia64 hjl dot tools at gmail dot com
  2009-01-05 13:54 ` [Bug fortran/38726] " dominiq at lps dot ens dot fr
  2009-01-05 13:57 ` dominiq at lps dot ens dot fr
@ 2009-01-05 13:58 ` mikael at gcc dot gnu dot org
  2009-01-05 14:14 ` dominiq at lps dot ens dot fr
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mikael at gcc dot gnu dot org @ 2009-01-05 13:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from mikael at gcc dot gnu dot org  2009-01-05 13:58 -------
(In reply to comment #0)
> On Linux/ia64, revision 143058 gave
> 
> FAIL: gfortran.dg/elemental_subroutine_7.f90  -O0  execution test
> 

According to the gcc-testresults mailing list, this is confirmed on
powerpc-ibm-aix5.3.0.0, ia64-unknown-linux-gnu, powerpc-apple-darwin8.5.0. 

It's not really a regression though, as I introduced the failing testcase as
part of revision 143057.

Please can someone test on older revisions/provide more information?
Without access to such machines, it will be hard to find the culprit. 


-- 

mikael at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-01-05 13:58:50
               date|                            |


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


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

* [Bug fortran/38726] gfortran.dg/elemental_subroutine_7.f90 fail on Linux/ia64
  2009-01-05  2:23 [Bug fortran/38726] New: gfortran.dg/elemental_subroutine_7.f90 fail on Linux/ia64 hjl dot tools at gmail dot com
                   ` (2 preceding siblings ...)
  2009-01-05 13:58 ` mikael at gcc dot gnu dot org
@ 2009-01-05 14:14 ` dominiq at lps dot ens dot fr
  2009-01-05 14:24 ` [Bug fortran/38726] [4.3/4.4 Regression] " tkoenig at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dominiq at lps dot ens dot fr @ 2009-01-05 14:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from dominiq at lps dot ens dot fr  2009-01-05 14:14 -------
(In reply to comment #3)
> Please can someone test on older revisions/provide more information?

The test passes with gfortran 4.2.3, but not 4.3.2 on powerpc-apple-darwin9.
Hence it is a regression.


-- 


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


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

* [Bug fortran/38726] [4.3/4.4 Regression] gfortran.dg/elemental_subroutine_7.f90 fail on Linux/ia64
  2009-01-05  2:23 [Bug fortran/38726] New: gfortran.dg/elemental_subroutine_7.f90 fail on Linux/ia64 hjl dot tools at gmail dot com
                   ` (3 preceding siblings ...)
  2009-01-05 14:14 ` dominiq at lps dot ens dot fr
@ 2009-01-05 14:24 ` tkoenig at gcc dot gnu dot org
  2009-01-05 14:47 ` dominiq at lps dot ens dot fr
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2009-01-05 14:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from tkoenig at gcc dot gnu dot org  2009-01-05 14:24 -------
Marking as regression according to Dominique's comment.


-- 

tkoenig at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.3.2 4.4.0
      Known to work|                            |4.2.3
            Summary|gfortran.dg/elemental_subrou|[4.3/4.4 Regression]
                   |tine_7.f90 fail on          |gfortran.dg/elemental_subrou
                   |Linux/ia64                  |tine_7.f90 fail on
                   |                            |Linux/ia64
   Target Milestone|---                         |4.3.3


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


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

* [Bug fortran/38726] [4.3/4.4 Regression] gfortran.dg/elemental_subroutine_7.f90 fail on Linux/ia64
  2009-01-05  2:23 [Bug fortran/38726] New: gfortran.dg/elemental_subroutine_7.f90 fail on Linux/ia64 hjl dot tools at gmail dot com
                   ` (4 preceding siblings ...)
  2009-01-05 14:24 ` [Bug fortran/38726] [4.3/4.4 Regression] " tkoenig at gcc dot gnu dot org
@ 2009-01-05 14:47 ` dominiq at lps dot ens dot fr
  2009-01-05 15:08 ` mikael at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dominiq at lps dot ens dot fr @ 2009-01-05 14:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from dominiq at lps dot ens dot fr  2009-01-05 14:47 -------
If compiled with -fbounds-check, the executable yields:

At line 29 of file
/opt/gcc/_gcc_clean/gcc/testsuite/gfortran.dg/elemental_subroutine_7.f90
Fortran runtime error: Array reference out of bounds for array 'p', lower bound
of dimension 1 exceeded(-2 < 1)

The problem comes from 

...
  p = 20 * r - 10
...
  call tq_tvgh (q(k_lev:), (p(p(k_lev:))))
  if (any (p(p) /= q)) call abort

where min(p)=-10, outside the bounds of p(1:42).

If I use '  p = 41 * r + 1', the test passes.


-- 


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


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

* [Bug fortran/38726] [4.3/4.4 Regression] gfortran.dg/elemental_subroutine_7.f90 fail on Linux/ia64
  2009-01-05  2:23 [Bug fortran/38726] New: gfortran.dg/elemental_subroutine_7.f90 fail on Linux/ia64 hjl dot tools at gmail dot com
                   ` (5 preceding siblings ...)
  2009-01-05 14:47 ` dominiq at lps dot ens dot fr
@ 2009-01-05 15:08 ` mikael at gcc dot gnu dot org
  2009-01-05 18:44 ` mikael at gcc dot gnu dot org
  2009-01-06 13:45 ` mikael at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: mikael at gcc dot gnu dot org @ 2009-01-05 15:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from mikael at gcc dot gnu dot org  2009-01-05 15:08 -------
(In reply to comment #6)
> If compiled with -fbounds-check, the executable yields:
> 
> At line 29 of file
> /opt/gcc/_gcc_clean/gcc/testsuite/gfortran.dg/elemental_subroutine_7.f90
> Fortran runtime error: Array reference out of bounds for array 'p', lower bound
> of dimension 1 exceeded(-2 < 1)
> 
> The problem comes from 
> 
> ...
>   p = 20 * r - 10
> ...
>   call tq_tvgh (q(k_lev:), (p(p(k_lev:))))
>   if (any (p(p) /= q)) call abort
> 
> where min(p)=-10, outside the bounds of p(1:42).
> 
> If I use '  p = 41 * r + 1', the test passes.
> 
Yes, of course. Stupid me.
I started with the random thing, and I added the vector subscript later.
Thanks Dominique.


-- 

mikael at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.3                       |---


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


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

* [Bug fortran/38726] [4.3/4.4 Regression] gfortran.dg/elemental_subroutine_7.f90 fail on Linux/ia64
  2009-01-05  2:23 [Bug fortran/38726] New: gfortran.dg/elemental_subroutine_7.f90 fail on Linux/ia64 hjl dot tools at gmail dot com
                   ` (6 preceding siblings ...)
  2009-01-05 15:08 ` mikael at gcc dot gnu dot org
@ 2009-01-05 18:44 ` mikael at gcc dot gnu dot org
  2009-01-06 13:45 ` mikael at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: mikael at gcc dot gnu dot org @ 2009-01-05 18:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from mikael at gcc dot gnu dot org  2009-01-05 18:44 -------
Subject: Bug 38726

Author: mikael
Date: Mon Jan  5 18:44:09 2009
New Revision: 143084

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143084
Log:
2009-01-05  Mikael Morin  <mikael.morin@tele2.fr>

        PR fortran/38669
        PR fortran/38726
        * gfortran.dg/elemental_subroutine_7.f90: 
        Fix p values so that it can be used as vector subscript.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/elemental_subroutine_7.f90


-- 


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


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

* [Bug fortran/38726] [4.3/4.4 Regression] gfortran.dg/elemental_subroutine_7.f90 fail on Linux/ia64
  2009-01-05  2:23 [Bug fortran/38726] New: gfortran.dg/elemental_subroutine_7.f90 fail on Linux/ia64 hjl dot tools at gmail dot com
                   ` (7 preceding siblings ...)
  2009-01-05 18:44 ` mikael at gcc dot gnu dot org
@ 2009-01-06 13:45 ` mikael at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: mikael at gcc dot gnu dot org @ 2009-01-06 13:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from mikael at gcc dot gnu dot org  2009-01-06 13:45 -------
Looks like it's fixed now.
Thanks for the report.
Closing.


-- 

mikael at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.4.0


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


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

end of thread, other threads:[~2009-01-06 13:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-05  2:23 [Bug fortran/38726] New: gfortran.dg/elemental_subroutine_7.f90 fail on Linux/ia64 hjl dot tools at gmail dot com
2009-01-05 13:54 ` [Bug fortran/38726] " dominiq at lps dot ens dot fr
2009-01-05 13:57 ` dominiq at lps dot ens dot fr
2009-01-05 13:58 ` mikael at gcc dot gnu dot org
2009-01-05 14:14 ` dominiq at lps dot ens dot fr
2009-01-05 14:24 ` [Bug fortran/38726] [4.3/4.4 Regression] " tkoenig at gcc dot gnu dot org
2009-01-05 14:47 ` dominiq at lps dot ens dot fr
2009-01-05 15:08 ` mikael at gcc dot gnu dot org
2009-01-05 18:44 ` mikael at gcc dot gnu dot org
2009-01-06 13:45 ` mikael 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).