This is the mail archive of the 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: V3 static data in classes vs AIX

>>>>> "David" == David Edelsohn <> writes:

    David> 	I agree with Jason.  I believe that the AIX linker
    David> -G/-brtl options may combine symbols.  Those options
    David> re-write the AIX TOC at runtime, mimicing SVR4 behavior.

There are two semi-independent questions:

  1. What to do to make AIX generate correct code?
  2. What is the right user interface for GCC on systems that support

If -G solves 1, then that's good -- we will not generate manifestly
incorrect code.

I'm still distressed by the confuse-the-user-by-helping-them-sometimes
approach.  That is, in my mind, woefully inconsistent.  The change to
2 that I am suggesting, implicitly fixes 1 because it eliminates the
use of COMMON.

(BTW, analogy with xlC here is sort of pointless; xlC instantiates
templates in a totally different way, so the storage classes it uses
are likely different than the ones gcc uses.)

Anyhow, for 3.0, which is my definite current focus, we don't have to
finish the battle on 2, which is about user interface.  Instead, we
just need to solve 1 -- and if -G does that, let's add it to the specs.

I'll certainly be happy to have solved the immediate correctness

Mark Mitchell         
CodeSourcery, LLC     

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