16 Aug 2012 22:15
[RFA 2/3] c++/13356: set/show check type
Keith Seitz <keiths <at> redhat.com>
2012-08-16 20:15:09 GMT
2012-08-16 20:15:09 GMT
Hi, This patch is the real meat of the bug, in which the user yearns for a way to permit some specialized type conversions which violate the standard. I've introduced a new badness level for this conversion, and return it when strict type checking is disabled. Most of the rest of the patch is the "new" set/show check type command and tests. Documentation is in the next patch. Comments/questions/concerns? Keith ChangeLog 2012-08-16 Keith Seitz <keiths <at> redhat.com> PR c++/13356 * gdbtypes.c (strict_type_checking): New variable. (show_strict_type_checking): New function. (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS if strict type checking is disabled. (_initialize_gdbtypes): Add "check type" subcommand. * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct. teestuite/ChangeLog 2012-08-16 Keith Seitz <keiths <at> redhat.com> PR c++/13356 * gdb.base/default.exp: Update all "check type" tests. * gdb.base/help.exp: Likewise.(Continue reading)
RSS Feed