From: Oleg Endo Date: Wed, 18 Jul 2012 07:56:57 +0000 (+0000) Subject: re PR target/38621 (sh gcc unable to spill register when building ghostscript-gpl... X-Git-Tag: releases/gcc-4.8.0~4421 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dad57b685cc668f11a70649b83e6317edd22194a;p=thirdparty%2Fgcc.git re PR target/38621 (sh gcc unable to spill register when building ghostscript-gpl with -O2) PR target/38621 * gcc.c-torture/compile/pr38621.c: New. From-SVN: r189605 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4c95a402bd96..5477d4102e0b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-07-18 Oleg Endo + + PR target/38621 + * gcc.c-torture/compile/pr38621.c: New. + 2012-07-18 Oleg Endo PR target/33135 diff --git a/gcc/testsuite/gcc.c-torture/compile/pr38621.c b/gcc/testsuite/gcc.c-torture/compile/pr38621.c new file mode 100644 index 000000000000..746d32836be3 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr38621.c @@ -0,0 +1,16 @@ +/* PR target/38621 */ +struct s +{ + char a[512]; + int b; + int c; +}; + +long long +foo (struct s *p, int m, int r) +{ + if (r == m) + p->b = 3; + p->c = 1; + return m; +}