[Dwarf-Discuss] name lookup w/ using directives
dberlin at dberlin.org
Fri Aug 22 14:09:40 PDT 2008
On Fri, Aug 22, 2008 at 3:28 PM, Daniel Jacobowitz <drow at false.org> wrote:
> On Fri, Aug 22, 2008 at 03:19:15PM -0400, John DelSignore wrote:
>> > Taking a simpler case, where there is no parameter on the function call:
>> > a C++ function has inlined a Fortran function. In the debug
>> > information, data structures used by both functions are brought together
>> > into a single compilation unit. The compilation unit is now made up of
>> > two different languages.
>> Wait a tick... How the heck can that happen? It implies that a
>> single compilation unit can contain multiple languages, which I
>> though was not possible.
>> What is bringing things together? Do you have a compiler that is
>> capable of compiling multiple languages in the same compilation
>> unit? Or do you have a smart linker that is capable of inlining
>> functions at link time? IIRC, the AIX linker could do this with C++
>> code, and it got it right most of the time.
> I assume xlC can do this -
xlC can definitely do this.
More particularly, TPO (the interprocedural middle end) can do this.
More information about the Dwarf-Discuss