summaryrefslogtreecommitdiff
path: root/gcc/stub-objc.c
diff options
context:
space:
mode:
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-24 22:24:38 +0000
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-24 22:24:38 +0000
commit34d3c5ded6d7823cea390954b2093c1c65452d95 (patch)
treedcf9d3d9c6e1b321845950ca9b3634cdd447bcba /gcc/stub-objc.c
parentaa796005c0fcd8aa61d7920c8fa4b410fa4f0fef (diff)
downloadgcc-34d3c5ded6d7823cea390954b2093c1c65452d95.tar.gz
* c-common.h (objc_comptypes): Remove prototype.
(objc_compare_types): New prototype. (objc_volatilized_decl): Likewise. (objc_type_quals_match): Likewise. * c-decl.c (objc_mark_locals_volatile): Streamline by calling objc_volatilize_decl(). * c-typeck.c (comp_target_types): Remove third parameter; do not call objc_comptypes(). (comptypes): Remove calls to objc_comptypes(). (build_function_call): Extend compatible prototype check to ObjC. (build_conditional_expr): Adjust call to comp_target_types(). (convert_for_assignment): Call objc_compare_types() instead of objc_comptypes(); adjust calls to comp_target_types(); call objc_type_quals_match() before issuing qualifier mismatch warnings. (build_binary_op): Call objc_compare_types() before issuing pointer mismatch warnings; adjust calls to comp_target_types(). * stub-objc.c (objc_comptypes): Remove stub. (objc_compare_types): New stub. (objc_volatilized_decl): Likewise. (objc_type_quals_match): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100126 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stub-objc.c')
-rw-r--r--gcc/stub-objc.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/gcc/stub-objc.c b/gcc/stub-objc.c
index ed9ac97258f..f889bb9a941 100644
--- a/gcc/stub-objc.c
+++ b/gcc/stub-objc.c
@@ -63,11 +63,22 @@ objc_is_reserved_word (tree ARG_UNUSED (ident))
return 0;
}
-int
-objc_comptypes (tree ARG_UNUSED (lhs), tree ARG_UNUSED (rhs),
- int ARG_UNUSED (reflexive))
+bool
+objc_compare_types (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp),
+ int ARG_UNUSED (argno), tree ARG_UNUSED (callee))
+{
+ return false;
+}
+
+void
+objc_volatilize_decl (tree ARG_UNUSED (decl))
+{
+}
+
+bool
+objc_type_quals_match (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp))
{
- return -1;
+ return false;
}
tree