This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
IRIX 5 needs a fixincludes hack
- To: Bruce Korb <bkorb at allegronetworks dot com>
- Subject: IRIX 5 needs a fixincludes hack
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 11 Mar 2001 16:07:32 -0300
- Cc: gcc-bugs at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
IRIX 5.2's stdio.h declares the following functions:
/usr/include/stdio.h:extern int vfprintf(FILE *, const char *, /* va_list */ char *);
/usr/include/stdio.h:extern int vprintf(const char *, /* va_list */ char *);
/usr/include/stdio.h:extern int vsprintf(char *, const char *, /* va_list */ char *);
I believe at least IRIX 5.3 is similar. The idea seems to be to avoid
depending on va_list.
This is fine in C, because void* and char* are interchangeable, but
not in C++, because va_list is void*, that can't be implicitly
converted to char*.
I suggest that we arrange for fixincl to modify these headers, instead
of arranging for gcc to set va_list to char* on IRIX 5. Bruce, might
I ask you to come up with such a fixincl hack? I'm sure it would take
you just a minute, whereas for me it would take a while :-(
Thanks in advance :-)
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me