aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorMike Stump <mikestump@comcast.net>2015-11-06 20:16:06 +0000
committerMike Stump <mrs@gcc.gnu.org>2015-11-06 20:16:06 +0000
commita881fb0c2c9efa658270e6ba08fbcf4f02a0f057 (patch)
treef08a13e6d532e30dd7bd0b198bdf46530eddf820 /gcc/rtl.h
parent8a64515099e64564542cbd09be7c9a21c2f580f3 (diff)
downloadgcc-a881fb0c2c9efa658270e6ba08fbcf4f02a0f057.zip
gcc-a881fb0c2c9efa658270e6ba08fbcf4f02a0f057.tar.gz
gcc-a881fb0c2c9efa658270e6ba08fbcf4f02a0f057.tar.bz2
re PR debug/66728 (CONST_WIDE_INT causes corrupted DWARF debug info)
PR debug/66728 * dwarf2out.c (get_full_len): Return a value based upon the actual precision needed for the value. (add_const_value_attribute): Use a maximal wide-int for CONST_WIDE_INTs, not VOIDmode. (output_die): Don't ever output NULL with printf. * rtl.h (get_precision of rtx_mode_t): Ensure we never process BLKmode nor VOIDmode values. From-SVN: r229885
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index fe081ed..194ed9b 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -2086,6 +2086,7 @@ namespace wi
inline unsigned int
wi::int_traits <rtx_mode_t>::get_precision (const rtx_mode_t &x)
{
+ gcc_checking_assert (x.second != BLKmode && x.second != VOIDmode);
return GET_MODE_PRECISION (x.second);
}