From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fred Eisele To: Paul Koning Cc: egcs@cygnus.com Subject: Re: need for flag for incompatible-changes Date: Thu, 29 Jan 1998 14:41:00 -0000 Message-id: <34D0C7EB.340C35F6@diecas.gmr.com> References: <199801282302.PAA21023@atrus.synopsys.com> <9801291424.AA25971@kona.> X-SW-Source: 1998-01/msg01114.html Paul Koning wrote: > >>>>> "Joe" == Joe Buck writes: > > >> I wonder about the comment that even GNU ld often would only be > >> able to say "sorry, incompatible object files". Some things, like > >> naming (namespace support) clearly aren't like that. > > Joe> We not only plan to add namespace support to the compiler, but > Joe> we then need to redo libstdc++ to put the whole standard library > Joe> in the std namespace. That's what breaks compatibility, and it > Joe> doesn't show up at the level of object file version -- it is a > Joe> change in the API. > > Then maybe you need more version numbers. > > Clearly, if the names of the functions change (due to namespaces) but > their calling conventions did not (same argument types etc.) then the > linker can map old names to new names if it is told to do so. Isn't this the kind of de(re)mangling that was invented for?