On Friday 27 May 2011 11:02:14 Jonathan Wakely wrote:
> It's an additional maintenance burden.
For packagers? They have all required version information in their own
packaging setups already. All they need to implement is a way to automatically
convert that into a configure switch. Once this is implemented, it'll work
without further effort.
For GCC? It's not much different than the other predefined macros. Do they
pose a maintenance burden?
> And when a vendor doesn't use the macro
Then the compiler is identified as vanilla GCC and if it differs from it
there's not much I can do about it. I'd report a bug, possibly provide a
patch, and continue crying like I do these days. ;)
> or uses it "wrong" (for your purposes)
If just the #ifdef __GNUC_<vendor>__ is available, that would already go a
long way. Again, I'd report a bug, possibly provide a patch, and hope for
better days.
> you still need to rely on configure checks to see what
> actually works with a given compiler.
I agree. This will not be the silver bullet. But I believe it would still
improve things.
Regards,
Matthias
--
Dipl.-Phys. Matthias Kretz
http://compeng.uni-frankfurt.de/?mkretz
SIMD easy and portable: http://compeng.uni-frankfurt.de/?vc