]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR rtl-optimization/28062 (ICE in simplify_subreg, at simplify-rtx.c:4466)
authorEric Botcazou <ebotcazou@libertysurf.fr>
Fri, 2 Nov 2007 11:57:51 +0000 (12:57 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 2 Nov 2007 11:57:51 +0000 (11:57 +0000)
PR rtl-optimization/28062
* gcc.c-torture/compile/20071102-1.c: New test.

From-SVN: r129848

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

index 3cfa69ee1353c7be3d22534884d845373e83297b..0b584fcac7cd045c7fa63e28ed1a56f5e960b95d 100644 (file)
@@ -1,3 +1,8 @@
+2007-11-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       PR rtl-optimization/28062
+       * gcc.c-torture/compile/20071102-1.c: New test.
+
 2007-10-26  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/33744
diff --git a/gcc/testsuite/gcc.c-torture/compile/20071102-1.c b/gcc/testsuite/gcc.c-torture/compile/20071102-1.c
new file mode 100644 (file)
index 0000000..03b0156
--- /dev/null
@@ -0,0 +1,32 @@
+/* PR rtl-optimization/28062 */
+/* Original testcase by Martin Michlmayr <tbm@cyrius.com> */
+/* C testcase by Andrew Pinski <pinskia@gcc.gnu.org> */
+
+struct _NSPoint
+{
+  float x;
+  float y;
+};
+
+typedef struct _NSPoint NSPoint;
+
+static inline NSPoint
+NSMakePoint (float x, float y)
+{
+  NSPoint point;
+  point.x = x;
+  point.y = y;
+  return point;
+}
+
+static inline NSPoint
+RelativePoint (NSPoint point, NSPoint refPoint)
+{
+  return NSMakePoint (refPoint.x + point.x, refPoint.y + point.y);
+}
+
+NSPoint g(NSPoint refPoint)
+{
+  float pointA, pointB;
+  return RelativePoint (NSMakePoint (0, pointA), refPoint);
+}