This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix PR target/24284
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 11 Oct 2005 00:30:38 +0200
- Subject: Fix PR target/24284
A bogus PATTERN in sparc_expand_prologue, left-over from a previous
version of a patch. I'm quite stunned that my RTL-checking builds didn't
catch the problem. Regression present in all 4.x compilers.
Tested on SPARC/Solaris 10, applied to mainline and 4.0 branch.
2005-10-10 Eric Botcazou <ebotcazou@libertysurf.fr>
PR target/24284
* config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
2005-10-10 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.dg/sparc-frame-1.c: New test.
--
Eric Botcazou
Index: config/sparc/sparc.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sparc/sparc.c,v
retrieving revision 1.381
diff -u -p -r1.381 sparc.c
--- config/sparc/sparc.c 6 Jul 2005 07:48:58 -0000 1.381
+++ config/sparc/sparc.c 10 Oct 2005 17:26:10 -0000
@@ -3918,7 +3918,7 @@ sparc_expand_prologue (void)
insn = emit_insn (gen_stack_pointer_inc (reg));
REG_NOTES (insn) =
gen_rtx_EXPR_LIST (REG_FRAME_RELATED_EXPR,
- PATTERN (gen_stack_pointer_inc (GEN_INT (-actual_fsize))),
+ gen_stack_pointer_inc (GEN_INT (-actual_fsize)),
REG_NOTES (insn));
}
/* PR target/24284 */
/* { dg-do compile { target sparc*-* } } */
/* { dg-options "-O -g" } */
void do_run(void *ip)
{
char dummy[8192];
__asm__("" : : "g"(dummy));
goto *ip;
}