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];
(self-explanatory)
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.
-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/