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 "-std=gnu17 -O2 -ftracer -fPIC" } */
13 struct displayfuncs
*funcs
;
18 static void PSMyArc(double cx
, double cy
, double radx
, double rady
, double sa
,
25 temp
= ((sa
+ 90) / 90) * 90;
26 PSDoArc(cx
, sa
, ea
< temp
? ea
: temp
);
31 static void PSDrawElipse()
38 PSMyArc(cx
, cy
, radx
, rady
, 0, 360);
41 static void PSDrawFillCircle()
46 static struct displayfuncs psfuncs
[] = {
50 void _GPSDraw_CreateDisplay()
52 struct gpsdisplay
*gdisp
;
53 gdisp
->funcs
= (void *)&psfuncs
;