public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug fortran/48624] New: gfrtran DECL issues in function declaration @ 2011-04-15 16:26 burnus at gcc dot gnu.org 2011-04-15 21:17 ` [Bug fortran/48624] gfortran " burnus at gcc dot gnu.org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: burnus at gcc dot gnu.org @ 2011-04-15 16:26 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48624 Summary: gfrtran DECL issues in function declaration Product: gcc Version: 4.7.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned@gcc.gnu.org ReportedBy: burnus@gcc.gnu.org Split off from 48286. Richard writes there: Btw, fndecl issue - if you build at least cray_pointers_8.f90 with -fwhole-program I get /tmp/ccBnfOGf.o: In function `main': cray_pointers_8.f90:(.text.startup+0x76): undefined reference to `euler_' collect2: ld returned 1 exit status which means the euler fn has a different decl than the one called from main. I can reproduce this with: gfortran -fcray-pointer -O2 -fwhole-program cray_pointers_8.f90 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/48624] gfortran DECL issues in function declaration 2011-04-15 16:26 [Bug fortran/48624] New: gfrtran DECL issues in function declaration burnus at gcc dot gnu.org @ 2011-04-15 21:17 ` burnus at gcc dot gnu.org 2011-04-16 8:01 ` burnus at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: burnus at gcc dot gnu.org @ 2011-04-15 21:17 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48624 --- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-04-15 21:16:20 UTC --- The reason for the issue can be found in trans-decl.c: gfc_get_extern_function_decl (gfc_symbol * sym) [...] /* Do not use procedures that have a procedure argument because this can result in problems of multiple decls during inlining. */ proc_formal_arg = false; if (gsym && gsym->ns && gsym->ns->proc_name) ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/48624] gfortran DECL issues in function declaration 2011-04-15 16:26 [Bug fortran/48624] New: gfrtran DECL issues in function declaration burnus at gcc dot gnu.org 2011-04-15 21:17 ` [Bug fortran/48624] gfortran " burnus at gcc dot gnu.org @ 2011-04-16 8:01 ` burnus at gcc dot gnu.org 2011-04-16 21:56 ` tkoenig at gcc dot gnu.org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: burnus at gcc dot gnu.org @ 2011-04-16 8:01 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48624 --- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-04-16 08:01:26 UTC --- Patch: http://gcc.gnu.org/ml/fortran/2011-04/msg00166.html The initial code was introduced for PR 45743 but does not seem to be needed any more. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/48624] gfortran DECL issues in function declaration 2011-04-15 16:26 [Bug fortran/48624] New: gfrtran DECL issues in function declaration burnus at gcc dot gnu.org 2011-04-15 21:17 ` [Bug fortran/48624] gfortran " burnus at gcc dot gnu.org 2011-04-16 8:01 ` burnus at gcc dot gnu.org @ 2011-04-16 21:56 ` tkoenig at gcc dot gnu.org 2011-04-17 7:35 ` burnus at gcc dot gnu.org 2011-04-17 7:37 ` burnus at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: tkoenig at gcc dot gnu.org @ 2011-04-16 21:56 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48624 Thomas Koenig <tkoenig at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tkoenig at gcc dot gnu.org --- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-04-16 21:55:18 UTC --- *** Bug 48644 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/48624] gfortran DECL issues in function declaration 2011-04-15 16:26 [Bug fortran/48624] New: gfrtran DECL issues in function declaration burnus at gcc dot gnu.org ` (2 preceding siblings ...) 2011-04-16 21:56 ` tkoenig at gcc dot gnu.org @ 2011-04-17 7:35 ` burnus at gcc dot gnu.org 2011-04-17 7:37 ` burnus at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: burnus at gcc dot gnu.org @ 2011-04-17 7:35 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48624 --- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-04-17 07:34:40 UTC --- Author: burnus Date: Sun Apr 17 07:34:35 2011 New Revision: 172604 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172604 Log: 2011-05-17 Tobias Burnus <burnus@net-b.de> PR fortran/48624 * trans-decl.c (gfc_get_extern_function_decl): Fix decl for external procedures with proc arguments. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-decl.c ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/48624] gfortran DECL issues in function declaration 2011-04-15 16:26 [Bug fortran/48624] New: gfrtran DECL issues in function declaration burnus at gcc dot gnu.org ` (3 preceding siblings ...) 2011-04-17 7:35 ` burnus at gcc dot gnu.org @ 2011-04-17 7:37 ` burnus at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: burnus at gcc dot gnu.org @ 2011-04-17 7:37 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48624 Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED --- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-04-17 07:36:35 UTC --- FIXED on the 4.7 trunk. Thanks Thomas for the review! ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-04-17 7:37 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-04-15 16:26 [Bug fortran/48624] New: gfrtran DECL issues in function declaration burnus at gcc dot gnu.org 2011-04-15 21:17 ` [Bug fortran/48624] gfortran " burnus at gcc dot gnu.org 2011-04-16 8:01 ` burnus at gcc dot gnu.org 2011-04-16 21:56 ` tkoenig at gcc dot gnu.org 2011-04-17 7:35 ` burnus at gcc dot gnu.org 2011-04-17 7:37 ` 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).