patch for MIPS varargs

Donald Lindsay dlindsay@cygnus.com
Fri Apr 21 11:17:00 GMT 2000


On 21 Apr 2000, Andreas Jaeger wrote:

> 
> Hi Donald,
> 
> thanks for fixing this.  I do have a question about the ABI changes
> regarding MIPS-Linux.  On MIPS-Linux we do use shared libraries.  If I
> recompile libc which uses varargs, e.g. for printf, do I need to
> recompile each binary program with this new compiler?

If a va_list is passed across the boundary between libraries. then they
both have to use the "old" ABI, or else they both have to use the "new"
ABI.

Yeah, irritating. We certainly don't want to make ABI changes often. If
anyone sees a case that the new ABI can't handle, please say so REAL SOON.

A quick grep through /usr/include shows va_list mentioned in assorted I/O
things, curses.h, gtk/gtkarg.h, tcl.h, linux/kernel.h (vsprintf),..

On the good side, testing should catch any bugs introduced this way.
There isn't any subtlety about the differences.

> If this is the case, the change should be documented somewhere in a
> prominent place (NEWS file?) to avoid lots of bug reports later.

I'm open to suggestions about where to document this.

Don




More information about the Gcc-patches mailing list