* any function call which actually allocates a Curl_addrinfo struct.
*/
-#if defined(__INTEL_COMPILER) && (__INTEL_COMPILER == 910) && \
- defined(__unix__) && defined(__i386__)
-# pragma optimize("", off)
-#endif
-
void
Curl_freeaddrinfo(Curl_addrinfo *cahead)
{
+#if defined(__INTEL_COMPILER) && (__INTEL_COMPILER == 910) && \
+ defined(__unix__) && defined(__i386__)
+ /* workaround icc 9.1 optimizer issue */
+ volatile Curl_addrinfo * volatile canext;
+ Curl_addrinfo *ca;
+#else
Curl_addrinfo *ca, *canext;
+#endif
for(ca = cahead; ca != NULL; ca = canext) {
}
}
-#if defined(__INTEL_COMPILER) && (__INTEL_COMPILER == 910) && \
- defined(__unix__) && defined(__i386__)
-# pragma optimize("", on)
-#endif
#ifdef HAVE_GETADDRINFO
/*