Support pointer to bool conversion.
authorSami Wagiaalla <swagiaal@redhat.com>
Tue, 19 Oct 2010 16:07:25 +0000 (16:07 +0000)
committerSami Wagiaalla <swagiaal@redhat.com>
Tue, 19 Oct 2010 16:07:25 +0000 (16:07 +0000)
commit026ffab798b81c8b752a5b277361efec7b96b564
tree780fd99d7b027c2a30c25d95101a430aa2476207
parent20f5cfbdeace664dca0f967e4f20fa45e37947d5
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.
gdb/ChangeLog
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/converts.cc
gdb/testsuite/gdb.cp/converts.exp
gdb/testsuite/gdb.cp/oranking.exp