aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-04-17 07:30:25 +0000
committerYang Tse <yangsita@gmail.com>2009-04-17 07:30:25 +0000
commitce7b5655954393e4d1d2ff64bafa0ba28cae336d (patch)
tree4108da1841d87a0bca489d6032548f7265b3d81b
parent41fd08bb0d7d81d607aa5886188bfb03a439f1f3 (diff)
further narrow the use of the icc 9.1 optimizer workaround
-rw-r--r--lib/curl_addrinfo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/curl_addrinfo.c b/lib/curl_addrinfo.c
index 515ddcfd2..d5a6bc712 100644
--- a/lib/curl_addrinfo.c
+++ b/lib/curl_addrinfo.c
@@ -74,7 +74,9 @@
void
Curl_freeaddrinfo(Curl_addrinfo *cahead)
{
-#if defined(__INTEL_COMPILER) && (__INTEL_COMPILER == 910)
+#if defined(__INTEL_COMPILER) && (__INTEL_COMPILER == 910) && \
+ defined(__unix__) && defined(__i386__)
+ /* workaround icc 9.1 optimizer issue */
volatile Curl_addrinfo * volatile ca;
volatile Curl_addrinfo * volatile canext;
#else