This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: AIX I/O failures


>>>>> "Gabriel" == Gabriel Dos Reis <Gabriel.Dos-Reis@cmla.ens-cachan.fr> writes:

    Gabriel> Given that cout would be a global reference, we know (at
    Gabriel> worst) at link time which object it is refering to and
    Gabriel> treat it identical to the refered-to object.

I see, you're assuming the optimizer will remove the indirection.

I think the compiler won't do this because the definition of the
reference won't appear in the header file, in your proposal.

You're right that a link-time optimizer could in principle do this.

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]