summaryrefslogtreecommitdiff
path: root/gcc/f
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2002-04-18 17:54:11 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-04-18 17:54:11 +0000
commit7a2289181e4c4c86c82ed0ce21b34bf985a46091 (patch)
tree2c3060e80ce73a06bb75372ce3f7e774c0ad1716 /gcc/f
parentf18664c1527ff43689bd98c594ce67a1a5d5840a (diff)
downloadgcc-7a2289181e4c4c86c82ed0ce21b34bf985a46091.tar.gz
c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
* c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine. * c-tree.h (c_incomplete_type_error): New. * c-typeck.c (require_complete_type, build_component_ref): Update. (incomplete_type_error): Rename. * langhooks-def.h (lhd_incomplete_type_error): New. (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New. (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update. * langhooks.c (lhd_incomplete_type_error): New. * langhooks.h (struct lang_hooks_for_types): New hook. * tree.c (size_in_bytes): Use new hook. * tree.h (incomplete_type_error): Remove. ada: * gigi.h (incomplete_type_error): Remove. * utils.c (incomplete_type_error): Remove. cp: * call.c (build_new_method_call): Update. * cp-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine. * cp-tree.h (cxx_incomplete_type_error): New. * decl.c (grokdeclarator, grokparms): Update. * decl2.c (check_classfn): Update. * pt.c (tsubst): Update. * typeck.c (complete_type_or_else, expr_sizeof, decay_conversion): Update. * typeck2.c (incomplete_type_error): Rename. (add_exception_specifier): Update. f: * com.c (incomplete_type_error): Remove. java: * typeck.c (incomplete_type_error): Remove. objc: * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine. From-SVN: r52480
Diffstat (limited to 'gcc/f')
-rw-r--r--gcc/f/ChangeLog4
-rw-r--r--gcc/f/com.c15
2 files changed, 4 insertions, 15 deletions
diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog
index f8eedebab79..ead0a581b00 100644
--- a/gcc/f/ChangeLog
+++ b/gcc/f/ChangeLog
@@ -1,3 +1,7 @@
+Thu Apr 18 19:10:44 2002 Neil Booth <neil@daikokuya.demon.co.uk>
+
+ * com.c (incomplete_type_error): Remove.
+
Tue Apr 16 14:55:47 2002 Mark Mitchell <mark@codesourcery.com>
* com.c (ffecom_expr_power_integer): Add has_scope argument to
diff --git a/gcc/f/com.c b/gcc/f/com.c
index d0257855b10..c100c2a12ac 100644
--- a/gcc/f/com.c
+++ b/gcc/f/com.c
@@ -14077,21 +14077,6 @@ global_bindings_p ()
return current_binding_level == global_binding_level;
}
-/* Print an error message for invalid use of an incomplete type.
- VALUE is the expression that was used (or 0 if that isn't known)
- and TYPE is the type that was invalid. */
-
-void
-incomplete_type_error (value, type)
- tree value UNUSED;
- tree type;
-{
- if (TREE_CODE (type) == ERROR_MARK)
- return;
-
- assert ("incomplete type?!?" == NULL);
-}
-
/* Mark ARG for GC. */
static void
mark_binding_level (void *arg)