From: Jan Hubicka Date: Sun, 27 Oct 2002 09:24:50 +0000 (+0100) Subject: * linux64.h (DEFAULT_PCC_STRUCT_RETURN): Define. X-Git-Tag: releases/gcc-3.2.1~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7493df34ac94ab3b38f89ed90b7922f0620d38d;p=thirdparty%2Fgcc.git * linux64.h (DEFAULT_PCC_STRUCT_RETURN): Define. From-SVN: r58580 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c5f7db3a8ce3..c7096d97cafd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Sun Oct 27 10:12:27 CET 2002 Jan Hubicka + + * linux64.h (DEFAULT_PCC_STRUCT_RETURN): Define. + 2002-10-25 Zack Weinberg PR middle-end/6994 diff --git a/gcc/config/i386/linux64.h b/gcc/config/i386/linux64.h index 8a0bfbe925ad..34c6d3cbd4d6 100644 --- a/gcc/config/i386/linux64.h +++ b/gcc/config/i386/linux64.h @@ -30,6 +30,12 @@ Boston, MA 02111-1307, USA. */ #undef CPP_SPEC #define CPP_SPEC "%(cpp_cpu) %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT} %{!m32:-D__LONG_MAX__=9223372036854775807L}" +/* The svr4 ABI for the i386 says that records and unions are returned + in memory. In the 64bit compilation we will turn this flag off in + override_options, as we never do pcc_struct_return scheme on this target. */ +#undef DEFAULT_PCC_STRUCT_RETURN +#define DEFAULT_PCC_STRUCT_RETURN 1 + /* Provide a LINK_SPEC. Here we provide support for the special GCC options -static and -shared, which allow us to link things in one of these three modes by applying the appropriate combinations of