public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/30410] New: Host association bug w/ EXTERNAL
@ 2007-01-08 22:03 anlauf at gmx dot de
2007-01-08 22:04 ` [Bug fortran/30410] " anlauf at gmx dot de
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: anlauf at gmx dot de @ 2007-01-08 22:03 UTC (permalink / raw)
To: gcc-bugs
The attached code demostrates a host association bug
with a declaration of an external function in a module.
The incorrect reference can be verified by looking at
the assembler or object files generated.
% gfc gfcbug53.f90
/tmp/ccDZrLiD.o(.text+0x37): In function `__mod2__foo':
: undefined reference to `__mod2__extfunc'
% gfc gfcbug53.f90 -c && nm gfcbug53.o |grep extfunc
U __mod2__extfunc
00000047 T extfunc_
See the lines
real, external :: extfunc ! This EXTERNAL refers to the wrong namespace
! Check with: nm gfcbug53.o |grep extfunc
and the attached code for details.
Cheers,
-ha
--
Summary: Host association bug w/ EXTERNAL
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: anlauf at gmx dot de
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30410
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/30410] Host association bug w/ EXTERNAL
2007-01-08 22:03 [Bug fortran/30410] New: Host association bug w/ EXTERNAL anlauf at gmx dot de
@ 2007-01-08 22:04 ` anlauf at gmx dot de
2007-01-08 22:34 ` burnus at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: anlauf at gmx dot de @ 2007-01-08 22:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from anlauf at gmx dot de 2007-01-08 22:04 -------
Created an attachment (id=12872)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12872&action=view)
Demo code
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30410
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/30410] Host association bug w/ EXTERNAL
2007-01-08 22:03 [Bug fortran/30410] New: Host association bug w/ EXTERNAL anlauf at gmx dot de
2007-01-08 22:04 ` [Bug fortran/30410] " anlauf at gmx dot de
@ 2007-01-08 22:34 ` burnus at gcc dot gnu dot org
2007-01-09 9:00 ` pault at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-01-08 22:34 UTC (permalink / raw)
To: gcc-bugs
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |wrong-code
Last reconfirmed|0000-00-00 00:00:00 |2007-01-08 22:33:48
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30410
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/30410] Host association bug w/ EXTERNAL
2007-01-08 22:03 [Bug fortran/30410] New: Host association bug w/ EXTERNAL anlauf at gmx dot de
2007-01-08 22:04 ` [Bug fortran/30410] " anlauf at gmx dot de
2007-01-08 22:34 ` burnus at gcc dot gnu dot org
@ 2007-01-09 9:00 ` pault at gcc dot gnu dot org
2007-01-09 9:10 ` patchapp at dberlin dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-01-09 9:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pault at gcc dot gnu dot org 2007-01-09 08:59 -------
I am just about to submit a patch.
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pault at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2007-01-08 22:33:48 |2007-01-09 08:59:54
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30410
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/30410] Host association bug w/ EXTERNAL
2007-01-08 22:03 [Bug fortran/30410] New: Host association bug w/ EXTERNAL anlauf at gmx dot de
` (2 preceding siblings ...)
2007-01-09 9:00 ` pault at gcc dot gnu dot org
@ 2007-01-09 9:10 ` patchapp at dberlin dot org
2007-01-14 14:43 ` pault at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: patchapp at dberlin dot org @ 2007-01-09 9:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from patchapp at dberlin dot org 2007-01-09 09:10 -------
Subject: Bug number PR30410
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-01/msg00647.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30410
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/30410] Host association bug w/ EXTERNAL
2007-01-08 22:03 [Bug fortran/30410] New: Host association bug w/ EXTERNAL anlauf at gmx dot de
` (3 preceding siblings ...)
2007-01-09 9:10 ` patchapp at dberlin dot org
@ 2007-01-14 14:43 ` pault at gcc dot gnu dot org
2007-01-14 14:50 ` pault at gcc dot gnu dot org
2007-01-14 14:55 ` pault at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-01-14 14:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pault at gcc dot gnu dot org 2007-01-14 14:43 -------
Subject: Bug 30410
Author: pault
Date: Sun Jan 14 14:43:08 2007
New Revision: 120771
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120771
Log:
2007-01-14 Paul Thomas <pault@gcc.gnu.org>
PR fortran/30410
* trans-decl.c (gfc_sym_mangled_function_id): Module, external
symbols must not have the module name prepended.
2007-01-14 Paul Thomas <pault@gcc.gnu.org>
PR fortran/30410
* gfortran.dg/external_procedures_2.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/external_procedures_2.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-decl.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30410
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/30410] Host association bug w/ EXTERNAL
2007-01-08 22:03 [Bug fortran/30410] New: Host association bug w/ EXTERNAL anlauf at gmx dot de
` (4 preceding siblings ...)
2007-01-14 14:43 ` pault at gcc dot gnu dot org
@ 2007-01-14 14:50 ` pault at gcc dot gnu dot org
2007-01-14 14:55 ` pault at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-01-14 14:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pault at gcc dot gnu dot org 2007-01-14 14:50 -------
Subject: Bug 30410
Author: pault
Date: Sun Jan 14 14:49:50 2007
New Revision: 120772
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120772
Log:
2007-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
Paul Thomas <pault@gcc.gnu.org>
Back port from trunk
PR fortran/30408
* lang.opt: Add Wcharacter_truncation option.
* options.c (gfc_init_options): Initialize
gfc_option.warn_character_truncation to zero.
(gfc_handle_option): Add case for OPT_Wcharacter_truncation.
PR fortran/30408
* resolve.c (resolve_code): Use the code->expr character length
directly to set length of llen.
2007-01-14 Paul Thomas <pault@gcc.gnu.org>
Backports from trunk
PR fortran/23232
* decl.c (gfc_in_match_data, gfc_set_in_match_data): New
functions to signal that a DATA statement is being matched.
(gfc_match_data): Call gfc_set_in_match_data on entry and on
exit.
* gfortran.h : Add prototypes for above.
* expr.c (check_init_expr): Avoid check on parameter or
variable if gfc_in_match_data is true.
(gfc_match_init_expr): Do not call error on non-reduction of
expression if gfc_in_match_data is true.
PR fortran/27996
PR fortran/27998
* decl.c (gfc_set_constant_character_len): Add boolean arg to
flag array constructor resolution. Warn if string is being
truncated. Standard dependent error if string is padded. Set
new arg to false for all three calls to
gfc_set_constant_character_len.
* match.h : Add boolean arg to prototype for
gfc_set_constant_character_len.
* gfortran.h : Add warn_character_truncation to gfc_options.
* options.c (set_Wall): Set warn_character_truncation if -Wall
is set.
* resolve.c (resolve_code): Warn if rhs string in character
assignment has to be truncated.
* array.c (gfc_resolve_character_array_constructor): Set new
argument to true for call to gfc_set_constant_character_len.
PR fortran/30410
* trans-decl.c (gfc_sym_mangled_function_id): Module, external
symbols must not have the module name prepended.
2007-01-14 Paul Thomas <pault@gcc.gnu.org>
PR fortran/23232
* gfortran.dg/data_implied_do_1.f90: New test.
PR fortran/27996
PR fortran/27998
* gfortran.dg/char_length_1.f90: New test.
PR fortran/30410
* gfortran.dg/external_procedures_2.f90: New test.
Added:
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/char_length_1.f90
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/data_implied_do_1.f90
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/external_procedures_2.f90
Modified:
branches/gcc-4_2-branch/gcc/fortran/ChangeLog
branches/gcc-4_2-branch/gcc/fortran/array.c
branches/gcc-4_2-branch/gcc/fortran/decl.c
branches/gcc-4_2-branch/gcc/fortran/expr.c
branches/gcc-4_2-branch/gcc/fortran/gfortran.h
branches/gcc-4_2-branch/gcc/fortran/lang.opt
branches/gcc-4_2-branch/gcc/fortran/match.h
branches/gcc-4_2-branch/gcc/fortran/options.c
branches/gcc-4_2-branch/gcc/fortran/resolve.c
branches/gcc-4_2-branch/gcc/fortran/trans-decl.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30410
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/30410] Host association bug w/ EXTERNAL
2007-01-08 22:03 [Bug fortran/30410] New: Host association bug w/ EXTERNAL anlauf at gmx dot de
` (5 preceding siblings ...)
2007-01-14 14:50 ` pault at gcc dot gnu dot org
@ 2007-01-14 14:55 ` pault at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-01-14 14:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pault at gcc dot gnu dot org 2007-01-14 14:55 -------
Fixed on trunk and 4.2
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30410
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-01-14 14:55 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-08 22:03 [Bug fortran/30410] New: Host association bug w/ EXTERNAL anlauf at gmx dot de
2007-01-08 22:04 ` [Bug fortran/30410] " anlauf at gmx dot de
2007-01-08 22:34 ` burnus at gcc dot gnu dot org
2007-01-09 9:00 ` pault at gcc dot gnu dot org
2007-01-09 9:10 ` patchapp at dberlin dot org
2007-01-14 14:43 ` pault at gcc dot gnu dot org
2007-01-14 14:50 ` pault at gcc dot gnu dot org
2007-01-14 14:55 ` pault 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).