This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Final intermodule patch
> Hi,
>
> On 13 Jul 2003, Mark Mitchell wrote:
>
> > The flawed aspect of the patch, in my opinion, is the attempt to output
> > a single .s file from multiple input files.
>
> [i.e. really the then necessary mangling of static entities]
>
> In retrospective I must say that I agree with Mark here. From a gcc user
> perspective this would be quite surprising. OTOH this bites only users
> which actually use the intermodule capability. I think this is an
> optimization which is allowed to make debugging harder.
>
> So while ideally this problem would be solved (by emitting different .s
> files), I would also say that it's not that serious right now. But given
Emitting different .s files does not seem to be very workable to me.
Imagine that function A calls static B but itself gets inlined into C
comming from other module. Then the other module needs access the first
module static symbol. It is doable via globally visible aliases to
static symbols but it is, hmm, ugly.
ICC does such .x renaming and it does not appear to be that
inconvenient and it would be even easier if our tools were dealing with
this nicelly.
Honza
> that this also will affect C++ in the future, and make the mangling
> invalid, this must be solved somewhen.
>
>
> Ciao,
> Michael.