Re: gcc 4.0 build failures on m68k, mips, and mipsel - Mailing list pgsql-ports

From Tom Lane
Subject Re: gcc 4.0 build failures on m68k, mips, and mipsel
Date
Msg-id 21648.1122226765@sss.pgh.pa.us
Whole thread Raw
In response to gcc 4.0 build failures on m68k, mips, and mipsel  (Martin Pitt <martin@piware.de>)
List pgsql-ports
Martin Pitt <martin@piware.de> writes:
> I noticed that PostgreSQL does not build any more with gcc 4.0 on
> m68k, mips, and mipsel because of bugs/incompatibilities in
> src/include/storage/s_lock.h.

> Fixing m68k was easy, I attach the patch.

This patch unquestionably breaks whatever platforms are using the
out-of-line m68k code in s_lock.c.  Internal evidence there suggests
that at least netbsd will be affected.

Perhaps adding "if !defined(__linux__)" to the m68k tests would be better?

            regards, tom lane

pgsql-ports by date:

Previous
From: Martin Pitt
Date:
Subject: gcc 4.0 build failures on m68k, mips, and mipsel
Next
From: "Clark, Andrew"
Date:
Subject: Solaris SPARC - Sun compiler 5.5 - 64 bit