summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@redback.com>2001-03-01 21:56:35 +0000
committerJ.T. Conklin <jtc@redback.com>2001-03-01 21:56:35 +0000
commit72ec772793f6b7737f32a4c1901b00407d826988 (patch)
tree75b86b7dcea92927d1f23d0aedfa47f94398dd6f
parent339b8c9031cc3efcee9fe4052e61405424fa52f3 (diff)
downloadgdb-72ec772793f6b7737f32a4c1901b00407d826988.tar.gz
* gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
(MAX_OF_TYPE): Wrap macro definition in parenthesis. (MIN_OF_TYPE): Likewise. * memattr.h (mem_access_mode): Removed extraneous trailing comma.
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/gdbtypes.h11
-rw-r--r--gdb/memattr.h2
3 files changed, 14 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7714fd67d8a..216df55438a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
+2001-03-01 J.T. Conklin <jtc@redback.com>
+
+ * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
+ (MAX_OF_TYPE): Wrap macro definition in parenthesis.
+ (MIN_OF_TYPE): Likewise.
+
+ * memattr.h (mem_access_mode): Removed extraneous trailing comma.
+
2001-03-01 Andrew Cagney <ac131313@redhat.com>
* Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index b7a9a752974..15be2079795 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -905,11 +905,10 @@ extern struct type *builtin_type_chill_real;
extern struct type *builtin_type_f_character;
extern struct type *builtin_type_f_integer;
+extern struct type *builtin_type_f_integer_s2;
extern struct type *builtin_type_f_logical;
extern struct type *builtin_type_f_logical_s1;
extern struct type *builtin_type_f_logical_s2;
-extern struct type *builtin_type_f_integer;
-extern struct type *builtin_type_f_integer_s2;
extern struct type *builtin_type_f_real;
extern struct type *builtin_type_f_real_s8;
extern struct type *builtin_type_f_real_s16;
@@ -924,12 +923,12 @@ extern struct type *builtin_type_f_void;
/* Maximum and minimum values of built-in types */
#define MAX_OF_TYPE(t) \
- TYPE_UNSIGNED(t) ? UMAX_OF_SIZE(TYPE_LENGTH(t)) \
- : MAX_OF_SIZE(TYPE_LENGTH(t))
+ (TYPE_UNSIGNED(t) ? UMAX_OF_SIZE(TYPE_LENGTH(t)) \
+ : MAX_OF_SIZE(TYPE_LENGTH(t)))
#define MIN_OF_TYPE(t) \
- TYPE_UNSIGNED(t) ? UMIN_OF_SIZE(TYPE_LENGTH(t)) \
- : MIN_OF_SIZE(TYPE_LENGTH(t))
+ (TYPE_UNSIGNED(t) ? UMIN_OF_SIZE(TYPE_LENGTH(t)) \
+ : MIN_OF_SIZE(TYPE_LENGTH(t)))
/* Allocate space for storing data associated with a particular type.
We ensure that the space is allocated using the same mechanism that
diff --git a/gdb/memattr.h b/gdb/memattr.h
index 1af276b5169..75b5f781c1d 100644
--- a/gdb/memattr.h
+++ b/gdb/memattr.h
@@ -6,7 +6,7 @@ enum mem_access_mode
{
MEM_RW, /* read/write */
MEM_RO, /* read only */
- MEM_WO, /* write only */
+ MEM_WO /* write only */
};
enum mem_access_width