Commit 52b6a22f by Richard Stallman

(duplicate_decls):

If redeclaring builtin function, use new declaration's types.

From-SVN: r1228
parent e841f997
...@@ -1202,7 +1202,11 @@ duplicate_decls (newdecl, olddecl) ...@@ -1202,7 +1202,11 @@ duplicate_decls (newdecl, olddecl)
return 0; return 0;
} }
else if (!types_match) else if (!types_match)
warning_with_decl (newdecl, "conflicting types for built-in function `%s'"); {
/* If types don't match for a built-in, throw away the built-in. */
warning_with_decl (newdecl, "conflicting types for built-in function `%s'");
return 0;
}
} }
else if (TREE_CODE (olddecl) == FUNCTION_DECL else if (TREE_CODE (olddecl) == FUNCTION_DECL
&& DECL_SOURCE_LINE (olddecl) == 0) && DECL_SOURCE_LINE (olddecl) == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment