decl.c (decls_match): Allow a redeclaration of a builtin to specify args while the builtin did not.
* decl.c (decls_match): Allow a redeclaration of a builtin to specify args while the builtin did not. From-SVN: r33195
This commit is contained in:
parent
acfc08f774
commit
11033ba522
|
@ -1,3 +1,8 @@
|
||||||
|
2000-04-16 Jason Merrill <jason@casey.cygnus.com>
|
||||||
|
|
||||||
|
* decl.c (decls_match): Allow a redeclaration of a builtin to
|
||||||
|
specify args while the builtin did not.
|
||||||
|
|
||||||
2000-04-15 Mark Mitchell <mark@codesourcery.com>
|
2000-04-15 Mark Mitchell <mark@codesourcery.com>
|
||||||
|
|
||||||
* cp-tree.def (THUNK_DECL): Add to documentation.
|
* cp-tree.def (THUNK_DECL): Add to documentation.
|
||||||
|
|
|
@ -2936,7 +2936,8 @@ decls_match (newdecl, olddecl)
|
||||||
|
|
||||||
if (same_type_p (TREE_TYPE (f1), TREE_TYPE (f2)))
|
if (same_type_p (TREE_TYPE (f1), TREE_TYPE (f2)))
|
||||||
{
|
{
|
||||||
if (! strict_prototypes_lang_c && DECL_LANGUAGE (olddecl) == lang_c
|
if ((! strict_prototypes_lang_c || DECL_BUILT_IN (olddecl))
|
||||||
|
&& DECL_LANGUAGE (olddecl) == lang_c
|
||||||
&& p2 == NULL_TREE)
|
&& p2 == NULL_TREE)
|
||||||
{
|
{
|
||||||
types_match = self_promoting_args_p (p1);
|
types_match = self_promoting_args_p (p1);
|
||||||
|
|
Loading…
Reference in New Issue