mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
Support pointer to bool conversion.
2010-10-19 Sami Wagiaalla <swagiaal@redhat.com> * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS. * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS for conversion. Make all other conversions illegal. 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/converts.exp: Test pointer to bool conversion. Test pointer to long conversion. * gdb.cp/oranking.exp: Removed relevant kfail.
This commit is contained in:
@ -1415,12 +1415,10 @@ extern int is_unique_ancestor (struct type *, struct value *);
|
||||
#define FLOAT_CONVERSION_BADNESS 2
|
||||
/* Badness of integer<->floating conversions */
|
||||
#define INT_FLOAT_CONVERSION_BADNESS 2
|
||||
/* Badness of converting to a boolean */
|
||||
#define BOOLEAN_CONVERSION_BADNESS 2
|
||||
/* Badness of pointer conversion */
|
||||
#define POINTER_CONVERSION_BADNESS 2
|
||||
/* Badness of conversion of pointer to void pointer */
|
||||
#define VOID_PTR_CONVERSION_BADNESS 2
|
||||
/* Badness of conversion of pointer to boolean. */
|
||||
#define BOOL_PTR_CONVERSION_BADNESS 3
|
||||
/* Badness of converting derived to base class */
|
||||
#define BASE_CONVERSION_BADNESS 2
|
||||
/* Badness of converting from non-reference to reference */
|
||||
|
Reference in New Issue
Block a user