public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/40737]  New: Pointer references sometimes fail to define "span" symbols
@ 2009-07-13 21:37 dh458 at oakapple dot net
  2009-07-13 21:39 ` [Bug fortran/40737] " dh458 at oakapple dot net
                   ` (10 more replies)
  0 siblings, 11 replies; 16+ messages in thread
From: dh458 at oakapple dot net @ 2009-07-13 21:37 UTC (permalink / raw)
  To: gcc-bugs

This bug appears in gfortran 4.4.0 on sparc-solaris, x86-solaris, and
x86-linux.
The attached test case is extracted from SPECmpi 2007 129.tera_tf

The two test files testmod.F90 and testuse.F90 define and use pointer types.
With -DBIGMOD certain variables are defined in the module; with -UBIGMOD,
in the user.   Correct results are obtained with the latter; the code generated
for the lines

         Ro => Hydro_vars( first_cell:last_cell, j, k)%cell_var( ro_var)
         Ets => Hydro_vars( first_cell:last_cell, j, k)%cell_var( ets_var)
         Um => Hydro_vars( first_cell:last_cell, j, k)%cell_var( u_var)
         Um_p1 => Hydro_vars( first_cell:last_cell, j, k)%cell_var( up1_var)
         Um_p2 => Hydro_vars( first_cell:last_cell, j, k)%cell_var( up2_var)

both uses and defines various symbols like

testuse.s:      sethi   %h44(span.1.696), %g1
testuse.s:      or      %g1, %m44(span.1.696), %g1
testuse.s:      or      %g1, %l44(span.1.696), %g1

testuse.s:      .local  span.1.696
testuse.s:      .common span.1.696,8,8


but with -UBIGMOD, the symbols are referred to but nowhere defined.

Compile e.g.

gfortran -S testmod.F90 testuse.F90 -UBIGMOD -m64
or
gfortran -S testmod.F90 testuse.F90 -DBIGMOD -m64

Same results for -m32


-- 
           Summary: Pointer references sometimes fail to define "span"
                    symbols
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dh458 at oakapple dot net
  GCC host triplet: sparc-sun-solaris2.10


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


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

end of thread, other threads:[~2015-08-30 10:26 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-40737-4@http.gcc.gnu.org/bugzilla/>
2010-12-28 22:31 ` [Bug fortran/40737] Pointer references sometimes fail to define "span" symbols dfranke at gcc dot gnu.org
2011-01-22 23:46 ` dominiq at lps dot ens.fr
2011-06-23  7:37 ` kenneth.hoste at elis dot ugent.be
2013-01-06 14:56 ` burnus at gcc dot gnu.org
2015-08-30 10:26 ` dominiq at lps dot ens.fr
2009-07-13 21:37 [Bug fortran/40737] New: " dh458 at oakapple dot net
2009-07-13 21:39 ` [Bug fortran/40737] " dh458 at oakapple dot net
2009-07-13 21:40 ` dh458 at oakapple dot net
2009-07-14  7:50 ` burnus at gcc dot gnu dot org
2009-07-21 15:19 ` dh458 at oakapple dot net
2009-07-22  7:11 ` burnus at gcc dot gnu dot org
2009-07-22  7:13 ` burnus at gcc dot gnu dot org
2009-07-22  9:21 ` burnus at gcc dot gnu dot org
2009-10-06 22:04 ` bergner at gcc dot gnu dot org
2009-10-06 23:10 ` kargl at gcc dot gnu dot org
2009-10-07  8:20 ` burnus at gcc dot gnu dot org
2009-10-07 22:42 ` dh458 at oakapple dot net

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