This is the mail archive of the gcc-patches@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] |
+ if (TREE_CODE (TREE_TYPE (decl)) != LANG_TYPE) + argtypes = TYPE_ARG_TYPES (TREE_TYPE (decl));
+ if (argtypes != NULL_TREE + && TREE_VALUE (argtypes) != TREE_TYPE (value))
if (argtypes == NULL_TREE || !same_type_p (TREE_VALUE (argtypes), TREE_TYPE (value)))
+ if (TREE_CODE (TREE_TYPE (value)) == INTEGER_TYPE) + { + if (argtypes != NULL_TREE + && TREE_CODE (TREE_VALUE (argtypes)) == REAL_TYPE) + { + error ("unable to find %qD with %<unsigned long long int%> argument", + name); + return error_mark_node; + } + } + else if (TREE_CODE (TREE_TYPE (value)) == REAL_TYPE) + { + if (argtypes != NULL_TREE + && TREE_CODE (TREE_VALUE (argtypes)) == INTEGER_TYPE) + { + error ("unable to find %qD with %<long double%> argument", name); + return error_mark_node; + } + }
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |