Commit 587a9854 by Roger Sayle Committed by Roger Sayle

re PR target/10467 ([arm] [3.3/3.4 regression] ICE in pre_insert_copy_insn,)


	PR optimization/10467
	* gcc.dg/20031108-1.c: New test case.

From-SVN: r73362
parent edf6d50b
2003-11-08 Roger Sayle <roger@eyesopen.com>
PR optimization/10467
* gcc.dg/20031108-1.c: New test case.
2003-11-07 Geoffrey Keating <geoffk@apple.com>
* gcc.dg/pch/warn-1.c: Allow for more helpful error message.
......
/* PR optimization/10467 */
/* { dg-do compile { target arm*-*-* xscale*-*-* strongarm*-*-* } } */
/* { dg-options "-O2 -mthumb" } */
typedef enum {Ident_1} Enumeration;
typedef struct record
{
struct record *Ptr_Comp;
Enumeration Discr;
union {
struct {
Enumeration Enum_Comp;
int Int_Comp;
char Str_Comp [31];
} var_1;
} variant;
} *Rec_Pointer;
Rec_Pointer Ptr_Glob;
Proc_1 (Ptr_Val_Par)
Rec_Pointer Ptr_Val_Par;
{
Rec_Pointer Next_Record = Ptr_Val_Par->Ptr_Comp;
*Ptr_Val_Par->Ptr_Comp = *Ptr_Glob;
if (Next_Record->Discr == Ident_1)
{
Proc_7 (Next_Record->variant.var_1.Int_Comp, 10,
&Next_Record->variant.var_1.Int_Comp);
}
}
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