Re: [PORTS] Patch for m68k architecture (fwd) - Mailing list pgsql-hackers

From Roman Hodek
Subject Re: [PORTS] Patch for m68k architecture (fwd)
Date
Msg-id 199906150705.JAA20341@faui22c.informatik.uni-erlangen.de
Whole thread Raw
In response to Re: [PORTS] Patch for m68k architecture (fwd)  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
Hi Bruce!

> Yes, we admit that we break the standard with fmgr_ptr, because we
> return a variety of values depending on what function they call.

Yep... the correct thing would be to cast all such return values to a
common type (e.g. long) and cast them back in the caller.

> It appears the egcs optimization on the powerpc or alpha cause a
> problem when optimization is -O2, but not -O.

Can be like this on those archs. On m68k, however, the registers for
function return values are the same independent of optimization level.

> We may see more platforms with problems as optimizers get smarter.

Yep...

Roman


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: important Re: [HACKERS] Open 6.5 items
Next
From: Roman Hodek
Date:
Subject: Re: Cleaning up function interface (was Re: Patch for m68k architecture)