Re: What if?

From: H. Peter Anvin
Date: Thu Dec 16 2004 - 15:59:21 EST

Jan Engelhardt wrote:
g++ is still much slower. We don't know how many bugs it would show up
in the compiler and tools either, especially on embedded platforms.
Finally the current kernel won't go through a C++ compiler because we
use variables like "new" quite often.

-Dnew=_New, problem solved.

It's not that easy. Just when you expect it least, a few tiny sourcecode bits already use new (in the C++ sense) and whoops:
int *b = _New int[4];

Unlikely, since we'd already have caught it, but either way -- hat's a bug too. There shouldn't be any C++ code in the kernel, period.


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