objc-act.c (get_static_reference): Use NULL_TREE.

* objc/objc-act.c (get_static_reference): Use NULL_TREE.
        (get_object_reference): Ditto.
        (error_with_ivar): Use error_with_file_and_line.
        (warn_with_method): Use warning_with_file_and_line.

From-SVN: r40672
This commit is contained in:
Stan Shebs 2001-03-20 22:01:49 +00:00 committed by Stan Shebs
parent 2ba5f9b134
commit e44949e91c
2 changed files with 24 additions and 11 deletions

View File

@ -1,3 +1,10 @@
2001-03-20 Stan Shebs <shebs@apple.com>
* objc/objc-act.c (get_static_reference): Use NULL_TREE.
(get_object_reference): Ditto.
(error_with_ivar): Use error_with_file_and_line.
(warn_with_method): Use warning_with_file_and_line.
2001-03-20 Tom Tromey <tromey@redhat.com> 2001-03-20 Tom Tromey <tromey@redhat.com>
* libgcc-std.ver: Added __fixunssfsi and __fixunsdfsi. * libgcc-std.ver: Added __fixunssfsi and __fixunsdfsi.

View File

@ -1126,7 +1126,7 @@ get_static_reference (interface, protocols)
(in build_pointer_type)...so that the new template (in build_pointer_type)...so that the new template
we just created will actually be used...what a hack! */ we just created will actually be used...what a hack! */
if (TYPE_POINTER_TO (t)) if (TYPE_POINTER_TO (t))
TYPE_POINTER_TO (t) = 0; TYPE_POINTER_TO (t) = NULL_TREE;
type = t; type = t;
} }
@ -1176,7 +1176,7 @@ get_object_reference (protocols)
(in build_pointer_type)...so that the new template (in build_pointer_type)...so that the new template
we just created will actually be used...what a hack! */ we just created will actually be used...what a hack! */
if (TYPE_POINTER_TO (t)) if (TYPE_POINTER_TO (t))
TYPE_POINTER_TO (t) = NULL; TYPE_POINTER_TO (t) = NULL_TREE;
type = t; type = t;
} }
@ -3616,10 +3616,13 @@ error_with_ivar (message, decl, rawdecl)
report_error_function (DECL_SOURCE_FILE (decl)); report_error_function (DECL_SOURCE_FILE (decl));
fprintf (stderr, "%s:%d: ", strcpy (errbuf, message);
DECL_SOURCE_FILE (decl), DECL_SOURCE_LINE (decl)); strcat (errbuf, " `");
memset (errbuf, 0, BUFSIZE); gen_declaration (rawdecl, errbuf + strlen (errbuf));
fprintf (stderr, "%s `%s'\n", message, gen_declaration (rawdecl, errbuf)); strcat (errbuf, "'");
error_with_file_and_line (DECL_SOURCE_FILE (decl),
DECL_SOURCE_LINE (decl),
errbuf);
} }
#define USERTYPE(t) \ #define USERTYPE(t) \
@ -7043,11 +7046,14 @@ warn_with_method (message, mtype, method)
report_error_function (DECL_SOURCE_FILE (method)); report_error_function (DECL_SOURCE_FILE (method));
fprintf (stderr, "%s:%d: warning: ", /* Add a readable method name to the warning. */
DECL_SOURCE_FILE (method), DECL_SOURCE_LINE (method)); sprintf (errbuf, "%s `%c", message, mtype);
memset (errbuf, 0, BUFSIZE); gen_method_decl (method, errbuf + strlen (errbuf));
fprintf (stderr, "%s `%c%s'\n", strcat (errbuf, "'");
message, mtype, gen_method_decl (method, errbuf));
warning_with_file_and_line (DECL_SOURCE_FILE (method),
DECL_SOURCE_LINE (method),
errbuf);
} }
/* Return 1 if METHOD is consistent with PROTO. */ /* Return 1 if METHOD is consistent with PROTO. */