Google Groups không còn hỗ trợ đăng ký sử dụng hoặc đăng nội dung mới trên Usenet. Bạn vẫn có thể xem nội dung cũ.

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

8 lượt xem
Chuyển tới thư đầu tiên chưa đọc

Steve Peters

chưa đọc,
23:40:18 3 thg 1, 20073/1/07
đến 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

chưa đọc,
17:06:21 4 thg 1, 20074/1/07
đến 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 tin nhắn mới