This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/29719] newlib targets ICEs in expand_builtin_int_roundingfn
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Nov 2006 16:16:23 -0000
- Subject: [Bug middle-end/29719] newlib targets ICEs in expand_builtin_int_roundingfn
- References: <bug-29719-5208@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from rguenth at gcc dot gnu dot org 2006-11-05 16:16 -------
The testcase explicitly calls __builtin_lceil which we then cannot expand at
all.
We can open-code lceil like I did for SSE expansion using
xi = (long)op1;
xi -= (double)xi > op1 ? 1 : 0;
which should be always ok as lceil and lfloor are GCC extensions, so we don't
need to worry about IEEE or errno setting.
I'm going to fix this.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu dot
| |org
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-11-05 16:16:22
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29719