Commit 7c712dcc by Loren J. Rittle

re PR target/9506 (ABI breakage: structure return)

	PR c/9506
	* i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
	* gcc.dg/struct-ret-libc.c: New test.

From-SVN: r62204
parent 072b0db2
2003-01-31 Jan Hubicka <jh@suse.cz>
PR c/9506
* i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
2003-01-31 Loren J. Rittle <ljrittle@acm.org>
* gcc.dg/struct-ret-libc.c: New test.
2003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 2003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
......
...@@ -1118,7 +1118,7 @@ override_options () ...@@ -1118,7 +1118,7 @@ override_options ()
if (flag_asynchronous_unwind_tables == 2) if (flag_asynchronous_unwind_tables == 2)
flag_asynchronous_unwind_tables = 0; flag_asynchronous_unwind_tables = 0;
if (flag_pcc_struct_return == 2) if (flag_pcc_struct_return == 2)
flag_pcc_struct_return = 1; flag_pcc_struct_return = DEFAULT_PCC_STRUCT_RETURN;
} }
#ifdef SUBTARGET_OVERRIDE_OPTIONS #ifdef SUBTARGET_OVERRIDE_OPTIONS
......
/* Test evolved from source from Simona Perri <perri@mat.unical.it>
and Gerald Pfeifer<pfeifer@dbai.tuwien.ac.at>.
Copyright (C) 2003 Free Software Foundation */
/* { dg-do run } */
#include <stdlib.h>
int main ()
{
div_t d = div (20, 5);
if ((d.quot != 4) || (d.rem))
abort ();
exit (0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment