aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vrp.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2017-06-14 23:42:53 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2017-06-14 23:42:53 +0000
commitb901cf9dd9d20c6e0fe0b2eb32063a9b4930d1f6 (patch)
treeb5046d7e4b60ff1ae9c5a213b054d41dc1cd4f70 /gcc/tree-vrp.c
parent3466430f382b6adc2363721056b9abde3acd790a (diff)
downloadgcc-b901cf9dd9d20c6e0fe0b2eb32063a9b4930d1f6.zip
gcc-b901cf9dd9d20c6e0fe0b2eb32063a9b4930d1f6.tar.gz
gcc-b901cf9dd9d20c6e0fe0b2eb32063a9b4930d1f6.tar.bz2
compiler: avoid crash on erroneous type
If there is an error constructing the backend type, the GCC backend will report that the size is 1. That will then cause construction of the ptrmask to crash. Avoid that case by just generating an empty ptrmask. Noticed while compiling a broken package. The policy I've been following is to not commit a test case for a compiler crash on invalid code, so no test case. Reviewed-on: https://go-review.googlesource.com/45775 From-SVN: r249208
Diffstat (limited to 'gcc/tree-vrp.c')
0 files changed, 0 insertions, 0 deletions