1.1.2pre3 stdarg.h problems on Digital Unix

David Mazieres dm@reeducation-labor.lcs.mit.edu
Wed Mar 10 17:50:00 GMT 1999


This should be an easy problem to fix.  I am using egcs 1.1.2pre3 on
Digital unix V4.0:

% gcc -v
Reading specs from /u/dm/OSF1/lib/gcc-lib/alphaev56-dec-osf4.0c/egcs-2.91.63/specs
gcc version egcs-2.91.63 19990224 (egcs-1.1.2 pre-release-3)

In the fixed include files generated by the egcs installation
proceedure, <stdio.h> includes <stdarg.h>, but <stdarg.h> does not
protect against multiple inclusion.  Thus, the following simple
program generates needless warnings:

#include <stdio.h>
#include <stdarg.h>

int
main (void)
{
  return 0;
}

% gcc vamult.c
In file included from /u/dm/OSF1/lib/gcc-lib/alphaev56-dec-osf4.0c/egcs-2.91.63/include/stdarg.h:36,
                 from vamult.c:2:
/u/dm/OSF1/lib/gcc-lib/alphaev56-dec-osf4.0c/egcs-2.91.63/include/va-alpha.h:36: warning: redefinition of `va_list'
/u/dm/OSF1/lib/gcc-lib/alphaev56-dec-osf4.0c/egcs-2.91.63/include/va_list.h:7: warning: `va_list' previously declared here

David


More information about the Gcc-bugs mailing list