diff options
author | Ziemowit Laski <zlaski@apple.com> | 2004-11-02 20:29:21 +0000 |
---|---|---|
committer | Ziemowit Laski <zlaski@gcc.gnu.org> | 2004-11-02 20:29:21 +0000 |
commit | 65958285a0d780258a51b32017ccce33ddd834c6 (patch) | |
tree | 5a4b016e43899a5b48fc6e95881c03a32063597f /gcc/c-objc-common.c | |
parent | bd80bd9b93b62fa5388caac9e7adf33c05de52be (diff) | |
download | gcc-65958285a0d780258a51b32017ccce33ddd834c6.zip gcc-65958285a0d780258a51b32017ccce33ddd834c6.tar.gz gcc-65958285a0d780258a51b32017ccce33ddd834c6.tar.bz2 |
c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
[gcc/ChangeLog]
2004-11-02 Ziemowit Laski <zlaski@apple.com>
* c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
(c_types_compatible_p): Move function definition...
* c-objc-common.c (c_types_compatible_p): ...here.
* c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
c-lang.c.
[gcc/cp/ChangeLog]
2004-11-02 Ziemowit Laski <zlaski@apple.com>
* cp-lang.c (cxx_types_compatible_p): Remove prototype and definition.
(LANG_HOOKS_TYPES_COMPATIBLE_P): Move to cp-objcp-common.h.
* cp-objcp-common.c (cxx_types_compatible_p): Moved definition here
from cp-lang.c.
* cp-objcp-common.h (cxx_types_compatible_p): Moved prototype here
from cp-lang.c.
(LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from cp-lang.c.
From-SVN: r89997
Diffstat (limited to 'gcc/c-objc-common.c')
-rw-r--r-- | gcc/c-objc-common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/c-objc-common.c b/gcc/c-objc-common.c index 278529e..d9e8b93 100644 --- a/gcc/c-objc-common.c +++ b/gcc/c-objc-common.c @@ -296,3 +296,9 @@ c_initialize_diagnostics (diagnostic_context *context) /* It is safe to free this object because it was previously XNEW()'d. */ XDELETE (base); } + +int +c_types_compatible_p (tree x, tree y) +{ + return comptypes (TYPE_MAIN_VARIANT (x), TYPE_MAIN_VARIANT (y)); +} |