Re: [PATCHES] Building with Visual C++

2006-04-24 Thread Magnus Hagander
> > I've been working on getting the full backend to compile > and run using > > Visual C++ instead of mingw/gcc, and have made some good progress. > > > > This is great! Thanks. > > *) Add s_lock implementation based on InterlockedCompareExchange > > instead of assembly code (gcc style asm

Re: [PATCHES] Building with Visual C++

2006-04-24 Thread Magnus Hagander
> > *) Change where NaN is generated. Using 0.0/0.0 doesn't > work in VC++ > > because it detects it as a divide-by-zero at the compile stage. > > If they're going to be that anally uncooperative, why don't > they have the required-by-C99-spec macro for NAN? Or at > least some well-defined wa

Re: [PATCHES] Building with Visual C++

2006-04-24 Thread Tom Lane
"Magnus Hagander" <[EMAIL PROTECTED]> writes: >> If they're going to be that anally uncooperative, why don't >> they have the required-by-C99-spec macro for NAN? Or at >> least some well-defined way to generate a NaN? > They do have one way that's documented on MSDN, which is: > unsigned long n

Re: [PATCHES] Building with Visual C++

2006-04-24 Thread Magnus Hagander
> > > *) Add s_lock implementation based on InterlockedCompareExchange > > > instead of assembly code (gcc style asm not supported, and > > this should > > > probably be about as fast from what I hear) > > > > _InterlockedCompareExchange is even better IMHO ... > > I could've sworn the non-_ was

Re: [PATCHES] Building with Visual C++

2006-04-24 Thread Magnus Hagander
> >> If they're going to be that anally uncooperative, why > don't they have > >> the required-by-C99-spec macro for NAN? Or at least some > >> well-defined way to generate a NaN? > > > They do have one way that's documented on MSDN, which is: > > unsigned long nan[2]={0x, 0x7fff};

Re: [PATCHES] Building with Visual C++

2006-04-24 Thread Magnus Hagander
> I've done a similar thing myself (building the complete > backend with Visual Studio 2005). I got it to basically > work, but stopped due to lack of interest in the PostgreSQL community. Well, I'm one of those previously with lack of interest :-) The main difference between what I'm trying n

Re: [PATCHES] Building with Visual C++

2006-04-24 Thread Chuck McDevitt
I've done a similar thing myself (building the complete backend with Visual Studio 2005). I got it to basically work, but stopped due to lack of interest in the PostgreSQL community. But, I'd be happy to help out your effort in any way I can. > -Original Message- > From: [EMAIL PROTECTED

Re: [PATCHES] Building with Visual C++

2006-04-24 Thread Tom Lane
"Magnus Hagander" <[EMAIL PROTECTED]> writes: > The main difference between what I'm trying now from most of what I've > seen before is that I *don't* want to create a separate build > environment that needs to be maintained. Instead have a conversion > script from our current one to a VC compatibl

Re: [PATCHES] Building with Visual C++

2006-04-24 Thread Magnus Hagander
> BTW, has anyone looked at the possibility of driving VC from > gmake, so that we can continue to use the same Makefiles? Or > is that just out of the question? I tried. It really didn't work. There are just too many assumption of "unix cc style behaviour" in Make, and the VC compiler is just

Re: [PATCHES] Building with Visual C++

2006-04-24 Thread Chuck McDevitt
The Microsoft VC++ compiler can definitely be driven by gmake (I've done it at previous companies), but that involves a lot of platform-specific knowledge added to the makefiles (.obj instead of .o, .exe instead of no suffix, etc.). Two downsides: One, is it makes the makefiles ugly, the other is

Re: [PATCHES] Building with Visual C++

2006-04-24 Thread Magnus Hagander
> The Microsoft VC++ compiler can definitely be driven by gmake > (I've done it at previous companies), but that involves a lot > of platform-specific knowledge added to the makefiles (.obj > instead of .o, .exe instead of no suffix, etc.). It also requires major hackery to make all the command

Re: [PATCHES] Building with Visual C++

2006-04-24 Thread Dave Page
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Tom Lane > Sent: 24 April 2006 21:57 > To: Magnus Hagander > Cc: Chuck McDevitt; pgsql-patches@postgresql.org > Subject: Re: [PATCHES] Building with Visual C++ > > We'll need a VC buildfarm member

Re: [PATCHES] Building with Visual C++

2006-04-24 Thread Dave Page
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Dave Page > Sent: 24 April 2006 22:35 > To: Tom Lane; Magnus Hagander > Cc: Chuck McDevitt; pgsql-patches@postgresql.org > Subject: Re: [PATCHES] Building with Visual C++ > > > > > -Original

Re: [PATCHES] Building with Visual C++

2006-04-24 Thread Tom Lane
"Dave Page" writes: >>> We'll need a VC buildfarm member in place to catch us anytime we >>> change the Makefiles in a way that the script doesn't understand. >> >> Not a problem - Snake has VC++ 6, 2003 and 2005 installed. > Y'know I say that, but thinking about it I imagine the buildfarm is

Re: [PATCHES] Additional current timestamp values

2006-04-24 Thread Bruce Momjian
Patch applied, and catalog version updated. --- Bruce Momjian wrote: > > Here is an updated patch. I broke out the statement_timestamp and > statement_timeout handling into separate functions, initialize_command() > and fi

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

2006-04-24 Thread Jeremy Drake
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... Index: configure.in === RCS file: