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: "kkojima 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 12:12:50 -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 #3 from kkojima at gcc dot gnu dot org 2006-11-05 12:12 -------
Sorry for adding duplicate PRs.
I had a slightly deeper look. The ceilf builtin is defined only
for C99 targets in builtins.def:
DEF_C99_C90RES_BUILTIN (BUILT_IN_CEILF, "ceilf", BT_FN_FLOAT_FLOAT,
ATTR_CONST_NOTHROW_LIST)
but the lceilf builtin is defined without any condition:
DEF_GCC_BUILTIN (BUILT_IN_LCEILF, "lceilf", BT_FN_LONG_FLOAT,
ATTR_MATHFN_FPROUNDING)
and it seems that expand_builtin_int_roundingfn function requires
implicit_built_in_decls[BUILT_IN_CEILF], which is null, as a fallback.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29719