egcs-2.95.1 on alphaev56-dec-osf4.0d has minor problems with stdargs.h

ABalmosan@orga.com ABalmosan@orga.com
Tue Oct 5 07:14:00 GMT 1999


Hello,

I just switched to egcs-2.95.1 and noticed warnings regarding va_list
redifinitions.

In file included from
/orga/local/lib/gcc-lib/alphaev56-dec-osf4.0d/2.95.1/include/stdarg.h:36,
                 from oust_spreadfifo.c:48:
/orga/local/lib/gcc-lib/alphaev56-dec-osf4.0d/2.95.1/include/va-alpha.h:36:
 warning: redefinition of `va_list'
/orga/local/lib/gcc-lib/alphaev56-dec-osf4.0d/2.95.1/include/va_list.h:8:
warning: `va_list' previously declared here

I check the header files and found out that va_list.h check for a set
define _VA_LIST but
va-alpha.h does not.

va_list.h is included by stdio.h directly. va_list.h includes va-alpha.h
but _STDARG_H or _VARARGS_H must
be defined to enter the section where _VA_LIST and va_list will be defined.
Since this is not the case in
stdio.h va_list.h enters the section where it defines it self the va_list.

>From my point of view either the va_list.h should be removed or the
restriction that va-alpha.h only defines va_list
when _STDARG_H or _VARGARGS_H are defined. Or we remove the include
va_list.h from stdio.h.

The egcs-2.95.1 was build on a Dec-Unix-4.0d with Patchkit-03 installed.

All the header files we are talking about were build and/or checked with
fix-includes and are stored

/orga/local/lib/gcc-lib/alphaev56-dec-osf4.0d/2.95.1/include

also the file stdio.h

Mybe there is already a fix for it.

Bye,

     Aurel.




More information about the Gcc-bugs mailing list