Re: [PATCH 16/16] fix handling of integer constant expressions

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Wednesday, June 27, 2007 - 10:45 am

On Wed, 27 Jun 2007, Al Viro wrote:

Umm. But sparse is meant to parse C code. Which very much includes *other* 
projects.

The kernel, for example, has its own offsetof. And yes, these days we use 
"__compiler_offsetof()", but we used to do

	#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)

and I seriously doubt that the kernel is the only one doing things like 
that.

		Linus
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 16/16] fix handling of integer constant expressions, Segher Boessenkool, (Sun Jun 24, 11:18 am)
Re: [PATCH 16/16] fix handling of integer constant expressions, Segher Boessenkool, (Sun Jun 24, 12:09 pm)
Re: [PATCH 16/16] fix handling of integer constant expressions, Segher Boessenkool, (Sun Jun 24, 12:40 pm)
Re: [PATCH 16/16] fix handling of integer constant expressions, Segher Boessenkool, (Sun Jun 24, 11:13 pm)
Re: [PATCH 16/16] fix handling of integer constant expressions, Segher Boessenkool, (Sun Jun 24, 11:16 pm)
Re: [PATCH 16/16] fix handling of integer constant expressions, Linus Torvalds, (Wed Jun 27, 10:45 am)
Re: [PATCH 16/16] fix handling of integer constant expressions, Segher Boessenkool, (Thu Jun 28, 2:08 am)