[lkml]   [2001]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC] gcc compile-time assertions
David Howells wrote:
> I've written a patch for gcc to implement compile-time assertions with an eye
> to making use of this in the kernel in the future (assuming I can get it to be
> accepted into gcc).


It seems that there needs to be a way of detecting the
presence of the feature at compile-time, so you
can do

#define __builtin_ct_assert(a, b) do{}while(0)

or whatever.

Apart from that, I'd suggest you fill out the FSF
damage waiver and see if you can make this part of
stock gcc.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:52    [W:0.041 / U:0.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site