c_value_print -- remove hack^2 from HP -- it causes testsuite losses with
no real gain.
This commit is contained in:
parent
2819d3d65f
commit
eceede3100
|
@ -1,5 +1,8 @@
|
||||||
Tue Jan 5 11:55:57 1999 David Taylor <taylor@texas.cygnus.com>
|
Tue Jan 5 11:55:57 1999 David Taylor <taylor@texas.cygnus.com>
|
||||||
|
|
||||||
|
* c-valprint.c (c_value_print): remove hack^2 from HP; it causes
|
||||||
|
testsuite losses with no real gain.
|
||||||
|
|
||||||
* inferior.h (START_INFERIOR_TRAPS_EXPECTED): restore, but only
|
* inferior.h (START_INFERIOR_TRAPS_EXPECTED): restore, but only
|
||||||
if tm-*.h hasn't overridden default value.
|
if tm-*.h hasn't overridden default value.
|
||||||
|
|
||||||
|
|
|
@ -468,17 +468,10 @@ c_value_print (val, stream, format, pretty)
|
||||||
{
|
{
|
||||||
/* Hack: remove (char *) for char strings. Their
|
/* Hack: remove (char *) for char strings. Their
|
||||||
type is indicated by the quoted string anyway. */
|
type is indicated by the quoted string anyway. */
|
||||||
/* Hack^2: ensure that const char *, const unsigned char *
|
|
||||||
come out without the type but the volatile variants
|
|
||||||
and the signed variants don't. */
|
|
||||||
if (TYPE_CODE (type) == TYPE_CODE_PTR &&
|
if (TYPE_CODE (type) == TYPE_CODE_PTR &&
|
||||||
TYPE_NAME (type) == NULL &&
|
TYPE_NAME (type) == NULL &&
|
||||||
TYPE_NAME (TYPE_TARGET_TYPE (type)) != NULL &&
|
TYPE_NAME (TYPE_TARGET_TYPE (type)) != NULL &&
|
||||||
STREQ (TYPE_NAME (TYPE_TARGET_TYPE (type)), "char") &&
|
STREQ (TYPE_NAME (TYPE_TARGET_TYPE (type)), "char"))
|
||||||
!TYPE_VOLATILE (TYPE_TARGET_TYPE (type)) &&
|
|
||||||
(TYPE_UNSIGNED (TYPE_TARGET_TYPE (type)) || TYPE_NOSIGN (TYPE_TARGET_TYPE (type))) &&
|
|
||||||
!TYPE_VOLATILE (type) &&
|
|
||||||
!TYPE_CONST (type))
|
|
||||||
{
|
{
|
||||||
/* Print nothing */
|
/* Print nothing */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue