From b292ed86c372a999d476c3bc3b9040c24bcb099a Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Tue, 23 Mar 1993 11:41:54 -0800 Subject: [PATCH] (DEFAULT_PCC_STRUCT_RETURN): Define to 0. From-SVN: r3858 --- gcc/config/m68k/hp3bsd44.h | 4 ++++ gcc/config/m68k/next.h | 4 ++++ gcc/config/m68k/sun3mach.h | 4 ++++ gcc/config/m88k/m88k.h | 4 ++++ gcc/config/ns32k/pc532-mach.h | 4 ++++ gcc/config/pa/pa-osf.h | 3 +++ gcc/config/rs6000/mach.h | 4 ++++ 7 files changed, 27 insertions(+) diff --git a/gcc/config/m68k/hp3bsd44.h b/gcc/config/m68k/hp3bsd44.h index 08ea13aea7c5..bdb627d7cfd6 100644 --- a/gcc/config/m68k/hp3bsd44.h +++ b/gcc/config/m68k/hp3bsd44.h @@ -48,3 +48,7 @@ doesn't support it. */ #define DBX_NO_XREFS + +/* Don't default to pcc-struct-return, because gcc is the only compiler, and + we want to retain compatibility with older gcc versions. */ +#define DEFAULT_PCC_STRUCT_RETURN 0 diff --git a/gcc/config/m68k/next.h b/gcc/config/m68k/next.h index 792e81d5e190..60e9ad2813a2 100644 --- a/gcc/config/m68k/next.h +++ b/gcc/config/m68k/next.h @@ -457,3 +457,7 @@ SECTION_FUNCTION (objc_module_info_section, \ For NeXT's Mach-O format, this is 2^15. */ #define MAX_OFILE_ALIGNMENT 0x8000 + +/* Don't default to pcc-struct-return, because gcc is the only compiler, and + we want to retain compatibility with older gcc versions. */ +#define DEFAULT_PCC_STRUCT_RETURN 0 diff --git a/gcc/config/m68k/sun3mach.h b/gcc/config/m68k/sun3mach.h index 9bc4fb38b316..3d954e545654 100644 --- a/gcc/config/m68k/sun3mach.h +++ b/gcc/config/m68k/sun3mach.h @@ -9,3 +9,7 @@ /* LINK_SPEC is needed only for Sunos 4. */ #undef LINK_SPEC + +/* Don't default to pcc-struct-return, because gcc is the only compiler, and + we want to retain compatibility with older gcc versions. */ +#define DEFAULT_PCC_STRUCT_RETURN 0 diff --git a/gcc/config/m88k/m88k.h b/gcc/config/m88k/m88k.h index 9e8ceb7e23d6..031ca54e2f5c 100644 --- a/gcc/config/m88k/m88k.h +++ b/gcc/config/m88k/m88k.h @@ -1006,6 +1006,10 @@ enum reg_class { NO_REGS, AP_REG, XRF_REGS, GENERAL_REGS, AGRF_REGS, && TYPE_ALIGN (TYPE) == BITS_PER_WORD \ && int_size_in_bytes (TYPE) == UNITS_PER_WORD)))) +/* Don't default to pcc-struct-return, because we have already specified + exactly how to return structures in the RETURN_IN_MEMORY macro. */ +#define DEFAULT_PCC_STRUCT_RETURN 0 + /* Define how to find the value returned by a library function assuming the value has mode MODE. */ #define LIBCALL_VALUE(MODE) gen_rtx (REG, MODE, 2) diff --git a/gcc/config/ns32k/pc532-mach.h b/gcc/config/ns32k/pc532-mach.h index af0f28bd7cf4..e59f131378e1 100644 --- a/gcc/config/ns32k/pc532-mach.h +++ b/gcc/config/ns32k/pc532-mach.h @@ -22,3 +22,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #undef CPP_PREDEFINES #define CPP_PREDEFINES "-Dns32532 -DPC532 -DMACH=1" + +/* Don't default to pcc-struct-return, because gcc is the only compiler, and + we want to retain compatibility with older gcc versions. */ +#define DEFAULT_PCC_STRUCT_RETURN 0 diff --git a/gcc/config/pa/pa-osf.h b/gcc/config/pa/pa-osf.h index d6784d1c2606..37f4b97a7a22 100644 --- a/gcc/config/pa/pa-osf.h +++ b/gcc/config/pa/pa-osf.h @@ -29,3 +29,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #undef CPP_PREDEFINES #define CPP_PREDEFINES "-Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -Dunix -D_HPUX_SOURCE -Dhp9000 -Dhp800 -Dspectrum -DREVARGV -Dhp700 -DHP700 -Dparisc -D__pa_risc -DPARISC -DBYTE_MSF -DBIT_MSF" +/* Don't default to pcc-struct-return, because gcc is the only compiler, and + we want to retain compatibility with older gcc versions. */ +#define DEFAULT_PCC_STRUCT_RETURN 0 diff --git a/gcc/config/rs6000/mach.h b/gcc/config/rs6000/mach.h index d458a31cec92..a2d942f6e468 100644 --- a/gcc/config/rs6000/mach.h +++ b/gcc/config/rs6000/mach.h @@ -34,3 +34,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* MACH doesn't have atexit. */ #undef HAVE_ATEXIT + +/* Don't default to pcc-struct-return, because gcc is the only compiler, and + we want to retain compatibility with older gcc versions. */ +#define DEFAULT_PCC_STRUCT_RETURN 0 -- 2.43.5