[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#100535: gcc-3.0-20010610 refuses to compile correct (?) code



Package: gcc-3.0
Version: 3.0-0pre010609

Hi,
  gcc_3.0-3.0-0pre010609 refuses to compile Linux kernel
because of it does not treat following code as correct
anymore. gcc-2.95.4-20010604 and gcc-3.0-20010426 both
compile this code without any complaints.

-------
#include <sys/time.h>

extern struct timeval xtime;

volatile struct timeval xtime;
-------

vana:~$ gcc -c -W -Wall xx.c
xx.c:5: conflicting types for `xtime'
xx.c:3: previous declaration of `xtime'
vana:~$ gcc-2.95 -c -W -Wall xx.c
vana:~$

				Thanks,
					Petr Vandrovec
					vandrove@vc.cvut.cz



Reply to: