Skip site navigation (1) Skip section navigation (2)

Re: patch to have configure check if CC is intel C compiler

From: Jeremy Drake <pgsql-patches(at)jdrake(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>,pgsql-patches(at)postgresql(dot)org
Subject: Re: patch to have configure check if CC is intel C compiler
Date: 2006-04-25 06:07:10
Message-ID: Pine.LNX.4.64.0604242014380.13056@frousa (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
On Sat, 22 Apr 2006, Tom Lane wrote:

> Given that we've already got a test for ICC in there as of today, I'd
> vote for adding -mp1 to CFLAGS if we see it's ICC.

This patch seems to do the trick...

RCS file: /home/jeremyd/local/postgres/cvsuproot/pgsql/,v
retrieving revision 1.460
diff -c -r1.460
***        22 Apr 2006 00:29:41 -0000      1.460
---        25 Apr 2006 06:03:12 -0000
*** 263,268 ****
--- 263,273 ----
      # Check whether they are supported, and add them to CFLAGS if so.
+   else
+     # Intel compiler has a bug/misoptimization in checking for
+     # division by NAN (NaN == 0), -mp1 fixes it, so add it to the
+     # CFLAGS.

    # Disable strict-aliasing rules; needed for gcc 3.3+

A quarrel is quickly settled when deserted by one party; there is no battle
unless there be two.  -- Seneca

In response to


pgsql-patches by date

Next:From: Magnus HaganderDate: 2006-04-25 13:41:43
Subject: Re: Building with Visual C++
Previous:From: Bruce MomjianDate: 2006-04-25 00:25:05
Subject: Re: Additional current timestamp values

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group