Intel C++ identifies itself as gcc. Often this can lead to unusual failures
throughout a compile. The patch below helps to identify gcc compilers
correctly.
Steve Peters
st...@fisharerojo.org
Index: config/auto/gcc.pm
===================================================================
--- config/auto/gcc.pm (revision 17781)
+++ config/auto/gcc.pm (working copy)
@@ -53,7 +53,9 @@
my $major = $gnuc{__GNUC__};
my $minor = $gnuc{__GNUC_MINOR__};
- unless ( defined $major ) {
+ my $intel = $gnuc{__INTEL_COMPILER};
+
+ if (defined $intel || ! defined $major) {
print " (no) " if $verbose;
$self->set_result('no');
$conf->data->set( gccversion => undef );
> Intel C++ identifies itself as gcc. Often this can lead to unusual
> failures throughout a compile. The patch below helps to identify gcc
> compilers correctly.
Thanks, applied as r17789.
-- c