This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH RFA: Add -static-libstdc++ option to g++


David Edelsohn <dje.gcc@gmail.com> writes:

> I fully agree with the concept.  The options on AIX are -bstatic and
> -bdynamic with lowercase "-b", so I will need to generalize the patch
> slightly.

OK--I stole the idea from fortran/gfortranspec.c so you may want to look
at that while you're at it.

> Is there a potential problem of mixing static libstdc++ and dynamic
> libgcc with different exception handling versions?

No.  The exception handling issues only arise when using a static
libgcc: with a static libgcc, on some systems, you can not throw and
catch exceptions across shared library boundaries.  This limitation has
been fixed on current GNU/Linux systems anyhow, with the use of the
linker's --eh-frame-hdr option.

Ian


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