re PR rtl-optimization/28062 (ICE in simplify_subreg, at simplify-rtx.c:4466)

PR rtl-optimization/28062
	* gcc.c-torture/compile/20071102-1.c: New test.

From-SVN: r129846
This commit is contained in:
Eric Botcazou 2007-11-02 12:57:05 +01:00 committed by Eric Botcazou
parent c4e622b658
commit 5625d7ca05
2 changed files with 37 additions and 0 deletions

View 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-11-01 Douglas Gregor <doug.gregor@gmail.com>
* g++.dg/cpp0x/pr33955.C: New.

View file

@ -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);
}