re PR target/43662 (ICE in insert_save with ms_abi attribute)
PR target/43662 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false. testsuite/ PR target/43662 * gcc.target/i386/pr43662.c: New test. From-SVN: r158511
This commit is contained in:
parent
eacbe066c4
commit
54d1c7b60e
|
@ -1,3 +1,9 @@
|
|||
2010-04-19 Jie Zhang <jie@codesourcery.com>
|
||||
|
||||
PR target/43662
|
||||
* reginfo.c (reinit_regs): Set caller_save_initialized_p
|
||||
to false.
|
||||
|
||||
2010-04-19 Ira Rosen <irar@il.ibm.com>
|
||||
|
||||
PR tree-optimization/43771
|
||||
|
|
|
@ -667,6 +667,8 @@ void
|
|||
reinit_regs (void)
|
||||
{
|
||||
init_regs ();
|
||||
/* caller_save needs to be re-initialized. */
|
||||
caller_save_initialized_p = false;
|
||||
ira_init ();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2010-04-19 Jie Zhang <jie@codesourcery.com>
|
||||
|
||||
PR target/43662
|
||||
* gcc.target/i386/pr43662.c: New test.
|
||||
|
||||
2010-04-19 Ira Rosen <irar@il.ibm.com>
|
||||
|
||||
PR tree-optimization/43771
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target lp64 } */
|
||||
/* { dg-options "-O2" } */
|
||||
|
||||
void __attribute__ ((ms_abi)) foo (void)
|
||||
{
|
||||
}
|
||||
|
||||
typedef struct _IAVIStreamImpl
|
||||
{
|
||||
int sInfo;
|
||||
int has;
|
||||
} IAVIStreamImpl;
|
||||
|
||||
extern int __attribute__ ((ms_abi)) aso (void *);
|
||||
extern int sre (void *);
|
||||
|
||||
int AVIFILE_OpenCompressor (IAVIStreamImpl *This)
|
||||
{
|
||||
if (This->has != 0)
|
||||
aso (&This->has);
|
||||
sre (&This->sInfo);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue