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: r158509
This commit is contained in:
parent
d38f6bc03e
commit
8d9b7be5f3
4 changed files with 37 additions and 0 deletions
|
@ -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/37027
|
||||
|
|
|
@ -666,6 +666,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 Dodji Seketeli <dodji@redhat.com>
|
||||
|
||||
PR c++/43704
|
||||
|
|
24
gcc/testsuite/gcc.target/i386/pr43662.c
Normal file
24
gcc/testsuite/gcc.target/i386/pr43662.c
Normal file
|
@ -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…
Add table
Reference in a new issue