summaryrefslogtreecommitdiff
path: root/gcc/diagnostic.h
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-26 05:42:06 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-26 05:42:06 +0000
commit631fae11e8fb137a4f3c4d364a3e400ec44503a1 (patch)
tree1cdbbb10c514c9c9c20452da89c958b0e84f5bf7 /gcc/diagnostic.h
parent6bc019e85f12b15545b7838843eee01a9829be91 (diff)
downloadgcc-631fae11e8fb137a4f3c4d364a3e400ec44503a1.tar.gz
* diagnostic.c (digit_buffer): Remove as global. Move to...
* diagnostic.h (struct output_buffer): ... here. * diagnostic.c (output_formatted_integer): Adjust use of digit_buffer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43567 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r--gcc/diagnostic.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h
index 02029ea59c7..7ef812a1a35 100644
--- a/gcc/diagnostic.h
+++ b/gcc/diagnostic.h
@@ -108,6 +108,10 @@ struct output_buffer
/* The amount of characters output so far. */
int line_length;
+
+ /* This must be large enough to hold any printed integer or
+ floating-point value. */
+ char digit_buffer[128];
};
#define output_buffer_state(BUFFER) (BUFFER)->state