aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-01-14 23:10:21 +0000
committerAlan Modra <amodra@gmail.com>2000-01-14 23:10:21 +0000
commit3dceb55b374a67ce1185ff7a3d637bda8affa785 (patch)
tree86f1f7a73fb6f7994b742b6a08532cd955c02752
parent28240dcd30bd657bf678cc62554794ca69ed3987 (diff)
downloadgdb-3dceb55b374a67ce1185ff7a3d637bda8affa785.zip
gdb-3dceb55b374a67ce1185ff7a3d637bda8affa785.tar.gz
gdb-3dceb55b374a67ce1185ff7a3d637bda8affa785.tar.bz2
Correct function return types for new and fussy gcc.
-rw-r--r--binutils/ChangeLog8
-rw-r--r--binutils/debug.c4
-rw-r--r--binutils/ieee.c2
-rw-r--r--binutils/stabs.c12
4 files changed, 17 insertions, 9 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index ba85356..af90dae 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,11 @@
+2000-01-15 Alan Modra <alan@spri.levels.unisa.edu.au>
+
+ * debug.c (debug_name_type): Return DEBUG_TYPE_NULL rather than
+ false.
+ (debug_tag_type): Here too.
+ * ieee.c (ieee_builtin_type): And here.
+ * stabs.c (parse_stab_type, parse_stab_array_type): And here.
+
2000-01-13 Nick Clifton <nickc@cygnus.com>
* readelf.c (get_machine_name): Change EM_S370 to return "IBM
diff --git a/binutils/debug.c b/binutils/debug.c
index dad4559..82a9094 100644
--- a/binutils/debug.c
+++ b/binutils/debug.c
@@ -1988,7 +1988,7 @@ debug_name_type (handle, name, type)
nm = debug_add_to_namespace (info, &info->current_file->globals, name,
DEBUG_OBJECT_TYPE, DEBUG_LINKAGE_NONE);
if (nm == NULL)
- return false;
+ return DEBUG_TYPE_NULL;
nm->u.type = t;
@@ -2044,7 +2044,7 @@ debug_tag_type (handle, name, type)
nm = debug_add_to_namespace (info, &info->current_file->globals, name,
DEBUG_OBJECT_TAG, DEBUG_LINKAGE_NONE);
if (nm == NULL)
- return false;
+ return DEBUG_TYPE_NULL;
nm->u.tag = t;
diff --git a/binutils/ieee.c b/binutils/ieee.c
index c036928..a3bb93b 100644
--- a/binutils/ieee.c
+++ b/binutils/ieee.c
@@ -779,7 +779,7 @@ ieee_builtin_type (info, p, indx)
case builtin_bcd_float:
ieee_error (info, p, _("BCD float type not supported"));
- return false;
+ return DEBUG_TYPE_NULL;
}
if (name != NULL)
diff --git a/binutils/stabs.c b/binutils/stabs.c
index 53e1070..8c20ed3 100644
--- a/binutils/stabs.c
+++ b/binutils/stabs.c
@@ -1639,7 +1639,7 @@ parse_stab_type (dhandle, info, typename, pp, slotp)
if (size != -1)
{
if (! debug_record_type_size (dhandle, dtype, (unsigned int) size))
- return false;
+ return DEBUG_TYPE_NULL;
}
return dtype;
@@ -3131,7 +3131,7 @@ parse_stab_array_type (dhandle, info, pp, stringp)
/* If the index type is type 0, we take it as int. */
p = *pp;
if (! parse_stab_type_number (&p, typenums))
- return false;
+ return DEBUG_TYPE_NULL;
if (typenums[0] == 0 && typenums[1] == 0 && **pp != '=')
{
index_type = debug_find_named_type (dhandle, "int");
@@ -3139,7 +3139,7 @@ parse_stab_array_type (dhandle, info, pp, stringp)
{
index_type = debug_make_int_type (dhandle, 4, false);
if (index_type == DEBUG_TYPE_NULL)
- return false;
+ return DEBUG_TYPE_NULL;
}
*pp = p;
}
@@ -3168,7 +3168,7 @@ parse_stab_array_type (dhandle, info, pp, stringp)
if (**pp != ';')
{
bad_stab (orig);
- return false;
+ return DEBUG_TYPE_NULL;
}
++*pp;
@@ -3182,14 +3182,14 @@ parse_stab_array_type (dhandle, info, pp, stringp)
if (**pp != ';')
{
bad_stab (orig);
- return false;
+ return DEBUG_TYPE_NULL;
}
++*pp;
element_type = parse_stab_type (dhandle, info, (const char *) NULL, pp,
(debug_type **) NULL);
if (element_type == DEBUG_TYPE_NULL)
- return false;
+ return DEBUG_TYPE_NULL;
if (adjustable)
{