Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #42107] [PATCH] Intel C++ is not gcc

3 views
Skip to first unread message

Steve Peters

unread,
Mar 26, 2007, 10:30:41 PM3/26/07
to bugs-bi...@rt.perl.org
# New Ticket Created by Steve Peters
# Please include the string: [perl #42107]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=42107 >


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 );

Chromatic

unread,
Mar 27, 2007, 2:05:27 PM3/27/07
to perl6-i...@perl.org, Steve Peters, bugs-bi...@rt.perl.org
On Monday 26 March 2007 19:30, Steve Peters wrote:

> 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

0 new messages