aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/ada-lang.c5
-rw-r--r--gdb/gdbtypes.h10
-rw-r--r--gdb/m2-exp.y16
4 files changed, 6 insertions, 31 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b5f75b4..d5cf363 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2010-05-05 Joel Brobecker <brobecker@adacore.com>
+ * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros.
+ * ada-lang.c: Remove comment mentioning these macros.
+ * m2-exp.y: Delete commented out code.
+
+2010-05-05 Joel Brobecker <brobecker@adacore.com>
+
* sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
for array types.
* sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 7238a44..f31d075 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -527,11 +527,6 @@ check_size (const struct type *type)
error (_("object size is larger than varsize-limit"));
}
-
-/* Note: would have used MAX_OF_TYPE and MIN_OF_TYPE macros from
- gdbtypes.h, but some of the necessary definitions in that file
- seem to have gone missing. */
-
/* Maximum value of a SIZE-byte signed integer type. */
static LONGEST
max_of_size (int size)
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index 4d26f5a..3141857 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -1185,16 +1185,6 @@ extern const struct floatformat *floatformats_vax_d[BFD_ENDIAN_UNKNOWN];
extern const struct floatformat *floatformats_ibm_long_double[BFD_ENDIAN_UNKNOWN];
-/* 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)))
-
-#define MIN_OF_TYPE(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
was used to allocate the space for the type structure itself. I.E.
diff --git a/gdb/m2-exp.y b/gdb/m2-exp.y
index 38bc7cc..3baff79 100644
--- a/gdb/m2-exp.y
+++ b/gdb/m2-exp.y
@@ -651,22 +651,6 @@ type
%%
-#if 0 /* FIXME! */
-int
-overflow(a,b)
- long a,b;
-{
- return (MAX_OF_TYPE(parse_m2_type->builtin_int) - b) < a;
-}
-
-int
-uoverflow(a,b)
- unsigned long a,b;
-{
- return (MAX_OF_TYPE(parse_m2_type->builtin_card) - b) < a;
-}
-#endif /* FIXME */
-
/* Take care of parsing a number (anything that starts with a digit).
Set yylval and return the token type; update lexptr.
LEN is the number of characters in it. */