This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[3.2/3.3/mainline] fix compilation problems with DEFAULT_PCC_STRUCT_RETURN
- From: Jan Hubicka <jh at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 6 Feb 2003 16:04:32 +0100
- Subject: [3.2/3.3/mainline] fix compilation problems with DEFAULT_PCC_STRUCT_RETURN
Hi,
this should fix the compilation errors on targets not defining
DEFAULT_PCC_STRUCT_RETURN. I hope this time I got it finally right.
I've tested it just briefly as I can't access any of such targets.
I agree with Zack that we should move for killing
DEFAULT_PCC_STRUCT_RETURN on mainline, but for release branches this
looks like most safe approach.
Honza
Thu Feb 6 15:46:01 CET 2003 Jan Hubicka <jh@suse.cz>
* i386.c (override_options): Compile when DEFAULT_PCC_STRUCT_RETURN is
not set.
Index: i386.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.511
diff -c -3 -p -r1.511 i386.c
*** i386.c 17 Jan 2003 13:44:44 -0000 1.511
--- i386.c 6 Feb 2003 14:45:45 -0000
*************** override_options ()
*** 1103,1109 ****
--- 1107,1117 ----
if (flag_asynchronous_unwind_tables == 2)
flag_asynchronous_unwind_tables = 0;
if (flag_pcc_struct_return == 2)
+ #ifndef DEFAULT_PCC_STRUCT_RETURN
flag_pcc_struct_return = 1;
+ #else
+ flag_pcc_struct_return = DEFAULT_PCC_STRUCT_RETURN;
+ #endif
}
#ifdef SUBTARGET_OVERRIDE_OPTIONS