Nits

Mark Mitchell mark at codesourcery.com
Thu Aug 10 18:53:31 UTC 2000


>>>>> "Jim" == Jim Dehnert <dehnert at baalbek.engr.sgi.com> writes:

    Jim> You inline the call to f() into the body of g(), and then,
    Jim> whether because it's declared inline or because you have an
    Jim> intelligent compiler with inter-file inlining capabilities,
    Jim> you inline calls to g() in some number of other files.  Now
    Jim> you have references to the same static int x in multiple
    Jim> files.  That requires COMDAT, unless we require that it be
    Jim> emitted in the file where originally defined even if no
    Jim> references to it remain there (with externs elsewhere).

But `f' can call other non-inline static functions in its original
module anyhow.  So, you already have the same problem with functions,
right?

--
Mark Mitchell                   mark at codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com




More information about the cxx-abi-dev mailing list