* config/i386/tm-i386.h (STORE_STRUCT_RETURN): Make it

work on hosts of any endianness.
	* config/i386/tm-i386v.h: Ditto.
This commit is contained in:
Mark Alexander 1998-07-24 20:44:47 +00:00
parent bd06c4e4d3
commit 4448ace242
2 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,7 @@ Fri Jul 24 13:32:46 1998 Mark Alexander <marka@cygnus.com>
* config/i386/tm-i386.h (STORE_STRUCT_RETURN): Make it
work on hosts of any endianness.
* config/i386/tm-i386v.h: Ditto.
Fri Jul 24 07:41:12 1998 Mark Alexander <marka@cygnus.com>

View File

@ -100,8 +100,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#undef STORE_STRUCT_RETURN
#define STORE_STRUCT_RETURN(ADDR, SP) \
{ (SP) -= sizeof (ADDR); \
write_memory ((SP), (char *) &(ADDR), sizeof (ADDR)); }
{ char buf[REGISTER_SIZE]; \
(SP) -= sizeof (ADDR); \
store_address (buf, sizeof (ADDR), ADDR); \
write_memory ((SP), buf, sizeof (ADDR)); }
/* Extract from an array REGBUF containing the (raw) register state
a function return value of type TYPE, and copy that, in virtual format,