From: Yang Tse Date: Fri, 5 Feb 2010 09:32:11 +0000 (+0000) Subject: - attempt to workaround icc 9.1 optimizer issue X-Git-Tag: upstream/7.37.1~5333 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc7615ae2d9b3cb32e2fb0798caf96f9c512a8dd;p=platform%2Fupstream%2Fcurl.git - attempt to workaround icc 9.1 optimizer issue --- diff --git a/lib/ftp.c b/lib/ftp.c index 862b340..87d5caf 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -2807,9 +2807,18 @@ static CURLcode ftp_easy_statemach(struct connectdata *conn) * Allocate and initialize the struct FTP for the current SessionHandle. If * need be. */ + +#if defined(__INTEL_COMPILER) && (__INTEL_COMPILER == 910) && \ + defined(__OPTIMIZE__) && defined(__unix__) && defined(__i386__) + /* workaround icc 9.1 optimizer issue */ +# define vqualifier volatile +#else +# define vqualifier +#endif + static CURLcode ftp_init(struct connectdata *conn) { - struct FTP *ftp; + struct FTP *vqualifier ftp; if(NULL == conn->data->state.proto.ftp) { conn->data->state.proto.ftp = malloc(sizeof(struct FTP));