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

[perl #41173] [PATCH] Intel C++ is not really gcc

7 views
Skip to first unread message

Steve Peters

unread,
Jan 3, 2007, 11:40:18 PM1/3/07
to bugs-bi...@rt.perl.org
# New Ticket Created by Steve Peters
# Please include the string: [perl #41173]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=41173 >


The Intel C++ compile defines the __GNUC__ macro. This generally causes
lots of annoying problems since Intel C++ is not completely compatible
with gcc. To avoid this any problem with this, the following patch
should help both Linux and Mac OS X Intel compilers.

Steve Peters
st...@fisharerojo.org

--- config/auto/gcc/test_c.in.old 2007-01-03 22:28:24.000000000 -0600
+++ config/auto/gcc/test_c.in 2007-01-03 22:29:11.000000000 -0600
@@ -8,7 +8,7 @@
main(int argc, char **argv)
{
puts("(");
-#ifdef __GNUC__
+#if defined(__GNUC__) && ! defined(__INTEL_COMPILER)
printf("__GNUC__ => %d,\n", __GNUC__);
# ifdef __GNUC_MINOR__
printf("__GNUC_MINOR__ =>%d,\n", __GNUC_MINOR__);

Jonathan Worthington

unread,
Jan 4, 2007, 5:06:21 PM1/4/07
to perl6-i...@perl.org
Steve Peters (via RT) wrote:
> The Intel C++ compile defines the __GNUC__ macro. This generally causes lots of annoying problems since Intel C++ is not completely compatible with gcc. To avoid this any problem with this, the following patch should help both Linux and Mac OS X Intel compilers.
>
Thanks, applied in r16412.

Jonathan

0 new messages