* c-valprint.c (c_val_print): Handle TYPE_CODE_BOOLEAN.

* stabsread.c: Type -16 is 4 bytes.
This commit is contained in:
Jim Kingdon 1993-06-25 19:29:45 +00:00
parent a38b1233c2
commit 7e71985c9e
3 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,8 @@
Fri Jun 25 11:22:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* c-valprint.c (c_val_print): Handle TYPE_CODE_BOOLEAN.
* stabsread.c: Type -16 is 4 bytes.
* remote-udi.c: Improve docstring.
Fri Jun 25 11:16:31 1993 Fred Fish (fnf@cygnus.com)

View File

@ -319,6 +319,10 @@ c_val_print (type, valaddr, address, stream, format, deref_ref, recurse,
print_address_demangle (address, stream, demangle);
break;
case TYPE_CODE_BOOL:
/* Do something at least vaguely reasonable, for example if the
language is set wrong. */
case TYPE_CODE_INT:
format = format ? format : output_format;
if (format)

View File

@ -1687,8 +1687,7 @@ rs6000_builtin_type (typenum)
rettype = init_type (TYPE_CODE_INT, 4, 0, "integer", NULL);
break;
case 16:
/* What is the proper size of this type? */
rettype = init_type (TYPE_CODE_BOOL, 1, 0, "boolean", NULL);
rettype = init_type (TYPE_CODE_BOOL, 4, 0, "boolean", NULL);
break;
case 17:
rettype = init_type (TYPE_CODE_FLT, 4, 0, "short real", NULL);