2003-02-04 David Carlton <carlton@math.stanford.edu>
* gdb.texinfo (C@t{++}): Recommend DWARF 2, then stabs+. (Variables): Recommend stabs+ and DWARF 2. (C plus plus expressions): Correct info about compiler versions, debug formats. (Contributors): Change 'DWARF2' to 'DWARF 2'. PR symtab/874. 2003-02-04 David Carlton <carlton@math.stanford.edu> * gdb.c++/overload.exp: Test intToChar(1). * gdb.c++/overload.cc (intToChar): New. (main): Call intToChar.
This commit is contained in:
parent
0179ffacc7
commit
1c5cb38e90
6 changed files with 34 additions and 16 deletions
|
@ -2591,7 +2591,7 @@ rank_one_type (struct type *parm, struct type *arg)
|
|||
if (TYPE_NOSIGN (arg)) /* plain char -> plain char */
|
||||
return 0;
|
||||
else
|
||||
return INTEGER_COERCION_BADNESS; /* signed/unsigned char -> plain char */
|
||||
return INTEGER_CONVERSION_BADNESS; /* signed/unsigned char -> plain char */
|
||||
}
|
||||
else if (TYPE_UNSIGNED (parm))
|
||||
{
|
||||
|
@ -2604,13 +2604,13 @@ rank_one_type (struct type *parm, struct type *arg)
|
|||
&& integer_types_same_name_p (TYPE_NAME (parm), "long"))
|
||||
return INTEGER_PROMOTION_BADNESS; /* unsigned int -> unsigned long */
|
||||
else
|
||||
return INTEGER_COERCION_BADNESS; /* unsigned long -> unsigned int */
|
||||
return INTEGER_CONVERSION_BADNESS; /* unsigned long -> unsigned int */
|
||||
}
|
||||
else
|
||||
{
|
||||
if (integer_types_same_name_p (TYPE_NAME (arg), "long")
|
||||
&& integer_types_same_name_p (TYPE_NAME (parm), "int"))
|
||||
return INTEGER_COERCION_BADNESS; /* signed long -> unsigned int */
|
||||
return INTEGER_CONVERSION_BADNESS; /* signed long -> unsigned int */
|
||||
else
|
||||
return INTEGER_CONVERSION_BADNESS; /* signed int/long -> unsigned int/long */
|
||||
}
|
||||
|
@ -2623,15 +2623,15 @@ rank_one_type (struct type *parm, struct type *arg)
|
|||
&& integer_types_same_name_p (TYPE_NAME (parm), "long"))
|
||||
return INTEGER_PROMOTION_BADNESS;
|
||||
else
|
||||
return INTEGER_COERCION_BADNESS;
|
||||
return INTEGER_CONVERSION_BADNESS;
|
||||
}
|
||||
else
|
||||
return INTEGER_COERCION_BADNESS;
|
||||
return INTEGER_CONVERSION_BADNESS;
|
||||
}
|
||||
else if (TYPE_LENGTH (arg) < TYPE_LENGTH (parm))
|
||||
return INTEGER_PROMOTION_BADNESS;
|
||||
else
|
||||
return INTEGER_COERCION_BADNESS;
|
||||
return INTEGER_CONVERSION_BADNESS;
|
||||
case TYPE_CODE_ENUM:
|
||||
case TYPE_CODE_CHAR:
|
||||
case TYPE_CODE_RANGE:
|
||||
|
@ -2653,7 +2653,7 @@ rank_one_type (struct type *parm, struct type *arg)
|
|||
case TYPE_CODE_RANGE:
|
||||
case TYPE_CODE_BOOL:
|
||||
case TYPE_CODE_ENUM:
|
||||
return INTEGER_COERCION_BADNESS;
|
||||
return INTEGER_CONVERSION_BADNESS;
|
||||
case TYPE_CODE_FLT:
|
||||
return INT_FLOAT_CONVERSION_BADNESS;
|
||||
default:
|
||||
|
@ -2666,12 +2666,12 @@ rank_one_type (struct type *parm, struct type *arg)
|
|||
case TYPE_CODE_RANGE:
|
||||
case TYPE_CODE_BOOL:
|
||||
case TYPE_CODE_ENUM:
|
||||
return INTEGER_COERCION_BADNESS;
|
||||
return INTEGER_CONVERSION_BADNESS;
|
||||
case TYPE_CODE_FLT:
|
||||
return INT_FLOAT_CONVERSION_BADNESS;
|
||||
case TYPE_CODE_INT:
|
||||
if (TYPE_LENGTH (arg) > TYPE_LENGTH (parm))
|
||||
return INTEGER_COERCION_BADNESS;
|
||||
return INTEGER_CONVERSION_BADNESS;
|
||||
else if (TYPE_LENGTH (arg) < TYPE_LENGTH (parm))
|
||||
return INTEGER_PROMOTION_BADNESS;
|
||||
/* >>> !! else fall through !! <<< */
|
||||
|
@ -2683,7 +2683,7 @@ rank_one_type (struct type *parm, struct type *arg)
|
|||
if (TYPE_NOSIGN (arg))
|
||||
return 0;
|
||||
else
|
||||
return INTEGER_COERCION_BADNESS;
|
||||
return INTEGER_CONVERSION_BADNESS;
|
||||
}
|
||||
else if (TYPE_UNSIGNED (parm))
|
||||
{
|
||||
|
@ -2695,7 +2695,7 @@ rank_one_type (struct type *parm, struct type *arg)
|
|||
else if (!TYPE_NOSIGN (arg) && !TYPE_UNSIGNED (arg))
|
||||
return 0;
|
||||
else
|
||||
return INTEGER_COERCION_BADNESS;
|
||||
return INTEGER_CONVERSION_BADNESS;
|
||||
default:
|
||||
return INCOMPATIBLE_TYPE_BADNESS;
|
||||
}
|
||||
|
@ -2708,7 +2708,7 @@ rank_one_type (struct type *parm, struct type *arg)
|
|||
case TYPE_CODE_RANGE:
|
||||
case TYPE_CODE_BOOL:
|
||||
case TYPE_CODE_ENUM:
|
||||
return INTEGER_COERCION_BADNESS;
|
||||
return INTEGER_CONVERSION_BADNESS;
|
||||
case TYPE_CODE_FLT:
|
||||
return INT_FLOAT_CONVERSION_BADNESS;
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue