public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/45756] New: Multiple DECL for array valued PARAMETER (-fwhole-file issue)
@ 2010-09-23 9:57 burnus at gcc dot gnu dot org
2010-09-23 10:00 ` [Bug fortran/45756] " burnus at gcc dot gnu dot org
0 siblings, 1 reply; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-09-23 9:57 UTC (permalink / raw)
To: gcc-bugs
Currently, gfc_get_symbol_decl only deals with -fwhole-file issues of module
variable (FL_VARIABLE( but not with array-valued (or non-intrinsic-type)
parameters (FL_PARAMETER).
Thus, for the following program, multiple UIDs will be generated for the
program below:
module m
integer, parameter :: para(3) = [1, 2, 3]
end module m
subroutine one
use m
i = para(1)
end subroutine one
subroutine two
use m
j = para(1)
end subroutine two
-fdump-tree-original-uid shows:
extern integer(kind=4)D.8 paraD.1556[3];
extern integer(kind=4)D.8 paraD.1561[3];
--
Summary: Multiple DECL for array valued PARAMETER (-fwhole-file
issue)
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45756
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/45756] Multiple DECL for array valued PARAMETER (-fwhole-file issue)
2010-09-23 9:57 [Bug fortran/45756] New: Multiple DECL for array valued PARAMETER (-fwhole-file issue) burnus at gcc dot gnu dot org
@ 2010-09-23 10:00 ` burnus at gcc dot gnu dot org
0 siblings, 0 replies; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-09-23 10:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from burnus at gcc dot gnu dot org 2010-09-23 09:59 -------
Note: The implementation should honour PR 40571, i.e. array parameters from
intrinsic modules, which do not exist as .o file. My current idea is to
generate them per use association as local static variable - which would break
if uses gsym for them.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45756
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/45756] Multiple DECL for array valued PARAMETER (-fwhole-file issue)
[not found] <bug-45756-4@http.gcc.gnu.org/bugzilla/>
2010-09-28 18:22 ` burnus at gcc dot gnu.org
@ 2010-09-28 18:27 ` burnus at gcc dot gnu.org
1 sibling, 0 replies; 4+ messages in thread
From: burnus at gcc dot gnu.org @ 2010-09-28 18:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45756
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> 2010-09-28 15:34:37 UTC ---
FIXED for GCC 4.6.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/45756] Multiple DECL for array valued PARAMETER (-fwhole-file issue)
[not found] <bug-45756-4@http.gcc.gnu.org/bugzilla/>
@ 2010-09-28 18:22 ` burnus at gcc dot gnu.org
2010-09-28 18:27 ` burnus at gcc dot gnu.org
1 sibling, 0 replies; 4+ messages in thread
From: burnus at gcc dot gnu.org @ 2010-09-28 18:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45756
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2010-09-28 15:34:01 UTC ---
Author: burnus
Date: Tue Sep 28 15:33:56 2010
New Revision: 164686
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164686
Log:
2010-09-28 Tobias Burnus <burnus@net-b.de>
PR fortran/45756
* trans-decl.c (gfc_get_symbol_decl): Use gsym for decl of
module parameters.
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-decl.c
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-09-28 15:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-23 9:57 [Bug fortran/45756] New: Multiple DECL for array valued PARAMETER (-fwhole-file issue) burnus at gcc dot gnu dot org
2010-09-23 10:00 ` [Bug fortran/45756] " burnus at gcc dot gnu dot org
[not found] <bug-45756-4@http.gcc.gnu.org/bugzilla/>
2010-09-28 18:22 ` burnus at gcc dot gnu.org
2010-09-28 18:27 ` burnus at gcc dot gnu.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).