aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Stott <grahams@redhat.com>2002-01-07 08:50:07 +0000
committerGraham Stott <grahams@gcc.gnu.org>2002-01-07 08:50:07 +0000
commit0b4d32c9641315d93eecacb138ba40e6d4d89ca8 (patch)
tree2341a9679b119922b6823aee7ca273d2d0fe8b92
parent6253d571fac307ce4a23a3d5a840ac58cceb6463 (diff)
downloadgcc-0b4d32c9641315d93eecacb138ba40e6d4d89ca8.zip
gcc-0b4d32c9641315d93eecacb138ba40e6d4d89ca8.tar.gz
gcc-0b4d32c9641315d93eecacb138ba40e6d4d89ca8.tar.bz2
diagnostic.h: Update copyright date.
* diagnostic.h: Update copyright date. (output_buffer_state): Add perenthesis. (output_buffer_format_args): Likewise. From-SVN: r48596
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/diagnostic.h6
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9036598..8e2852b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2002-01-07 Graham Stott <grahams@redhat.com>
+ * diagnostic.h: Update copyright date.
+ (output_buffer_state): Add parenthesis.
+ (output_buffer_format_args): Likewise.
+
* combine.c (combine_instructions): Replace XEXP (links, 0)
with link.
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h
index 377b0e9..c864405 100644
--- a/gcc/diagnostic.h
+++ b/gcc/diagnostic.h
@@ -1,5 +1,5 @@
/* Various declarations for language-independent diagnostics subroutines.
- Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
Contributed by Gabriel Dos Reis <gdr@codesourcery.com>
This file is part of GCC.
@@ -132,7 +132,7 @@ struct output_buffer
/* Current state of the diagnostic_context' output_buffer. This macro
accepts both `diagnostic_context *' and `output_buffer *'. */
-#define output_buffer_state(BUFFER) ((output_buffer *)BUFFER)->state
+#define output_buffer_state(BUFFER) ((output_buffer *)(BUFFER))->state
/* The stream attached to the output_buffer, where the formatted
diagnostics will ultimately go. Works only on `output_buffer *'. */
@@ -145,7 +145,7 @@ struct output_buffer
/* The rest of the `variable argument list' not yet processed.
This macro works on both `output_state *' and `output_buffer *'. */
#define output_buffer_format_args(BUFFER) \
- *(((output_state *)BUFFER)->format_args)
+ *(((output_state *)(BUFFER))->format_args)
/* In line-wrapping mode, whether we should start a new line. */
#define output_needs_newline(BUFFER) (BUFFER)->state.need_newline_p