diff options
author | Jason Merrill <jason@redhat.com> | 2002-09-12 10:23:42 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2002-09-12 10:23:42 -0400 |
commit | 236a2ac8cc1eab20a63faccee479169d6b0c6b6b (patch) | |
tree | da72ef63612fc2d981ca1767b62d379034aee120 | |
parent | db4c55f6934574f06f5c3c7af90c976453095501 (diff) | |
download | gcc-236a2ac8cc1eab20a63faccee479169d6b0c6b6b.zip gcc-236a2ac8cc1eab20a63faccee479169d6b0c6b6b.tar.gz gcc-236a2ac8cc1eab20a63faccee479169d6b0c6b6b.tar.bz2 |
diagnostic.c (output_add_identifier): New fn.
* diagnostic.c (output_add_identifier): New fn.
* diagnostic.h: Declare it.
From-SVN: r57066
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/diagnostic.c | 10 | ||||
-rw-r--r-- | gcc/diagnostic.h | 1 |
3 files changed, 14 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 11d2c28..5977a8d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2002-09-12 Jason Merrill <jason@redhat.com> + * diagnostic.c (output_add_identifier): New fn. + * diagnostic.h: Declare it. + * calls.c (store_one_arg): Use size_in_bytes to determine the amount of space to push. diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index bd115a8..3828d5e 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -463,6 +463,16 @@ output_add_string (buffer, str) maybe_wrap_text (buffer, str, str + (str ? strlen (str) : 0)); } +/* Append an identifier ID to BUFFER. */ +void +output_add_identifier (buffer, id) + output_buffer *buffer; + tree id; +{ + output_append (buffer, IDENTIFIER_POINTER (id), + IDENTIFIER_POINTER (id) + IDENTIFIER_LENGTH (id)); +} + /* Flush the content of BUFFER onto the attached stream, and reinitialize. */ diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index 4835a7a..ff24768 100644 --- a/gcc/diagnostic.h +++ b/gcc/diagnostic.h @@ -316,6 +316,7 @@ extern void output_add_character PARAMS ((output_buffer *, int)); extern void output_decimal PARAMS ((output_buffer *, int)); extern void output_add_string PARAMS ((output_buffer *, const char *)); +extern void output_add_identifier PARAMS ((output_buffer *, tree)); extern const char *output_finalize_message PARAMS ((output_buffer *)); extern void output_clear_message_text PARAMS ((output_buffer *)); extern void output_printf PARAMS ((output_buffer *, const char *, |