PATCH for va_list type on IRIX6

Mark Mitchell
Sun Oct 31 23:33:00 GMT 1999

>>>>> "Richard" == Richard Henderson <> writes:

    Richard> Hmm.  A nasty thought: this probably affects name
    Richard> mangling, doesn't it?

Well, there's a special mangling for `ellipsis'.  So `void f(int,
...)' isn't changed.  But, yes, a function that takes an explict
`va_list' argument will get a different mangling if we've changed the
type of `va_list'.

    Richard> In any case, I would think the best solution is to fix
    Richard> <stdio.h>.

Why's that?  Matching the expect va_list takes a two-line change to
iris6.h, and will work even if SGI changes their headers, so long as
they don't change the type of `va_list'.  Note that their stdarg.h

  typedef char *va_list;

Fixing stdio.h takes a bit of fixinclude hackery, and isn't guaranteed
to work if stdio.h changes in some way.

I don't see the problem with my change, but, then again, I don't have
any objection (other than the one above) if people want to go with the
fixincludes solution.

Mark Mitchell         
CodeSourcery, LLC     

More information about the Gcc-patches mailing list