forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past the insn to which the note was originally attached. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116906 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
ebotcazou
committed
Sep 12, 2006
1 parent
38b03d4
commit ac24e06
Showing
4 changed files
with
69 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
2006-09-12 Eric Botcazou <[email protected]> | ||
|
||
PR rtl-optimization/28243 | ||
* combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past | ||
the insn to which the note was originally attached. | ||
|
||
2006-09-12 Andrew Pinski <[email protected]> | ||
Roger Sayle <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
2006-09-12 Eric Botcazou <[email protected]> | ||
|
||
* gcc.dg/pr28243.c: New test. | ||
|
||
2006-09-12 Paul Thomas <[email protected]> | ||
|
||
PR fortran/28971 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* PR rtl-optimization/28243 */ | ||
/* Reported by Mike Frysinger <[email protected]> */ | ||
|
||
/* { dg-do compile } */ | ||
/* { dg-options "-O2 -ftracer -fPIC" } */ | ||
|
||
struct displayfuncs { | ||
void (*init) (); | ||
} funcs; | ||
|
||
struct gpsdisplay { | ||
struct displayfuncs *funcs; | ||
}; | ||
|
||
static void PSMyArc(double cx, double cy, double radx, double rady, double sa, | ||
double ta) | ||
{ | ||
double ea; | ||
double temp; | ||
ea = sa + ta; | ||
while (sa < ea) { | ||
temp = ((sa + 90) / 90) * 90; | ||
PSDoArc(cx, sa, ea < temp ? ea : temp); | ||
sa = temp; | ||
} | ||
} | ||
|
||
static void PSDrawElipse() | ||
{ | ||
float cx; | ||
float cy; | ||
float radx; | ||
float rady; | ||
if (radx != rady) | ||
PSMyArc(cx, cy, radx, rady, 0, 360); | ||
} | ||
|
||
static void PSDrawFillCircle() | ||
{ | ||
PSDrawElipse(); | ||
} | ||
|
||
static struct displayfuncs psfuncs[] = { | ||
PSDrawFillCircle | ||
}; | ||
|
||
void _GPSDraw_CreateDisplay() | ||
{ | ||
struct gpsdisplay *gdisp; | ||
gdisp->funcs = (void *)&psfuncs; | ||
} |