]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/38621 (sh gcc unable to spill register when building ghostscript-gpl...
authorOleg Endo <olegendo@gcc.gnu.org>
Wed, 18 Jul 2012 07:56:57 +0000 (07:56 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Wed, 18 Jul 2012 07:56:57 +0000 (07:56 +0000)
PR target/38621
* gcc.c-torture/compile/pr38621.c: New.

From-SVN: r189605

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr38621.c [new file with mode: 0644]

index 4c95a402bd969a93e27edc67a86f741176c703ec..5477d4102e0b823eb237b2deef6cda5739ecad50 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-18  Oleg Endo  <olegendo@gcc.gnu.org>
+
+       PR target/38621
+       * gcc.c-torture/compile/pr38621.c: New.
+
 2012-07-18  Oleg Endo  <olegendo@gcc.gnu.org>
 
        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 (file)
index 0000000..746d328
--- /dev/null
@@ -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;
+}