Bug#100535: gcc-3.0-20010610 refuses to compile correct (?) code
On Mon, Jun 11, 2001 at 10:33:33PM +0200, Petr Vandrovec wrote:
> 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:~$
I'd call that a kernel bug. The extern definition is substantially
worse than useless without the volatile keyword present in it!
--
Daniel Jacobowitz Debian GNU/Linux Developer
Monta Vista Software Debian Security Team
Reply to: