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
;
19 static void PSMyArc(double cx
, double cy
, double radx
, double rady
, double sa
,
26 temp
= ((sa
+ 90) / 90) * 90;
27 PSDoArc(cx
, sa
, ea
< temp
? ea
: temp
);
32 static void PSDrawElipse()
39 PSMyArc(cx
, cy
, radx
, rady
, 0, 360);
42 static void PSDrawFillCircle()
47 static struct displayfuncs psfuncs
[] = {
51 void _GPSDraw_CreateDisplay()
53 struct gpsdisplay
*gdisp
;
54 gdisp
->funcs
= (void *)&psfuncs
;