This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: patch for PR 14882 (gcc 3.4.0 won't build with a non-gcc compiler)


On Wed, Apr 07, 2004 at 04:14:31PM -0400, Jakub Jelinek wrote:
> So if HP-UX compiler supports inline only when not static inline,
> this would explain the situation.

OK, mystery solved; the HP-UX compiler does take "inline".  However,
it does not take the combination of "inline" and a K&R style function.

So, it barfs on

static inline nls_uint32
SWAP (i)
     nls_uint32 i;
{
  return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24);
}

from the gettextP.h file.

It also rejects inline when followed by struct.

So, perhaps HP made a half-hearted attempt to botch "inline" into their
parser and didn't quite succeed.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]