summaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.h
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2010-05-05 17:07:39 +0000
committerJoel Brobecker <brobecker@gnat.com>2010-05-05 17:07:39 +0000
commit7dcd7a8714c7718ac2131d7a5ef612212f2b5667 (patch)
tree2154cdeabb25788d14592771d278e51781359251 /gdb/gdbtypes.h
parent182bca0ee80a3a070892e96158ca89424854e0b6 (diff)
downloadgdb-7dcd7a8714c7718ac2131d7a5ef612212f2b5667.tar.gz
Remove unused MAX_OF*/MIN_OF* macros.
FWIW: They can no longer work either, as they depend on other macros which have been missing for quite a while. ChangeLog: * 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.
Diffstat (limited to 'gdb/gdbtypes.h')
-rw-r--r--gdb/gdbtypes.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index 4d26f5a3bf7..3141857d94c 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.