This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/29719] newlib targets ICEs in expand_builtin_int_roundingfn



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]