bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gold: problems with mixed C++/Fortran program


From: Ian Lance Taylor
Subject: Re: gold: problems with mixed C++/Fortran program
Date: Tue, 24 Mar 2009 10:42:53 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

address@hidden writes:

> Not being a linking expert, I assume the object code of fortran
> subroutines is compatible to objects derived from C code. Am I wrong?

Yes, the object code should be compatible.


> ===========================================
> And now for the details: You will find
>
> 1) file list
> 2) Makefile
> 3/4) C++ test class source and header
> 5/6) Fortran test routine source and header
> 7) main routine in test.C
> 8) version strings of the compilers and linkers used
> 9) compile and run log using GNU ld (--> this output is what I expected!)
> 10) compile and run log using GNU gold 
>  (--> search for "Hi guys..." strange,isn't it? I think it isn't just a C/F90 
> problem.)

Thanks for the detailed bug report.  Unfortunately, I can't do anything
with it as I don't have the icpc or ifort programs.  Also unfortunately,
in order to get a reproducible test case I would most likely need to
have the libraries, which you are probably not allowed to send me.

The difference in the output appears to be in the strings.  This
suggests that your compilers are behaving differently than I expect with
respect to references to entries in string merge sections.  Can you send
me just the file TestClass.o?  That might be enough for me to see the
problem.

Ian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]