1 /* PR rtl-optimization/28243 */
2 /* Reported by Mike Frysinger <vapier@gentoo.org> */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target fpic } */
6 /* { dg-options "-O2 -ftracer -fPIC" } */
7 /* { dg-skip-if "requires unsupported run-time relocation" { spu-*-* } { "*" } { "" } } */
14 struct displayfuncs *funcs;
17 static void PSMyArc(double cx, double cy, double radx, double rady, double sa,
24 temp = ((sa + 90) / 90) * 90;
25 PSDoArc(cx, sa, ea < temp ? ea : temp);
30 static void PSDrawElipse()
37 PSMyArc(cx, cy, radx, rady, 0, 360);
40 static void PSDrawFillCircle()
45 static struct displayfuncs psfuncs[] = {
49 void _GPSDraw_CreateDisplay()
51 struct gpsdisplay *gdisp;
52 gdisp->funcs = (void *)&psfuncs;