aboutsummaryrefslogtreecommitdiff
path: root/gcc/reg-stack.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-06-24 15:55:28 +0200
committerJakub Jelinek <jakub@redhat.com>2021-06-24 15:55:28 +0200
commitfdc5522fb04b4a820b28c4d1f16f54897f5978de (patch)
tree2afc55a0c4f161758564e1acdd99faff0ffee43a /gcc/reg-stack.c
parent836328b2c99f5b8d45dcca5797f162af322e74da (diff)
downloadgcc-fdc5522fb04b4a820b28c4d1f16f54897f5978de.zip
gcc-fdc5522fb04b4a820b28c4d1f16f54897f5978de.tar.gz
gcc-fdc5522fb04b4a820b28c4d1f16f54897f5978de.tar.bz2
c: Fix C cast error-recovery [PR101171]
The following testcase ICEs during error-recovery, as build_c_cast calls note_integer_operands on error_mark_node and that wraps it into C_MAYBE_CONST_EXPR which is unexpected and causes ICE later on. Seems most other callers of note_integer_operands check early if something is error_mark_node and return before calling note_integer_operands on it. The following patch fixes it by not calling on error_mark_node, another possibility would be to handle error_mark_node in note_integer_operands and just return it. 2021-06-24 Jakub Jelinek <jakub@redhat.com> PR c/101171 * c-typeck.c (build_c_cast): Don't call note_integer_operands on error_mark_node. * gcc.dg/pr101171.c: New test.
Diffstat (limited to 'gcc/reg-stack.c')
0 files changed, 0 insertions, 0 deletions