aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-loop-manip.cc
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@gmail.com>2023-10-20 14:47:55 -0700
committerAndrew Pinski <pinskia@gmail.com>2023-10-23 03:54:54 -0700
commit13c0d052478bb45cc97869f5cc333f269aadb36f (patch)
tree1a208cc8fbf5ec8585b62b0dd6c9f99eea49d1cd /gcc/tree-vect-loop-manip.cc
parentd96bd4aade170fcd86f5f09b68b770dde798e631 (diff)
downloadgcc-13c0d052478bb45cc97869f5cc333f269aadb36f.zip
gcc-13c0d052478bb45cc97869f5cc333f269aadb36f.tar.gz
gcc-13c0d052478bb45cc97869f5cc333f269aadb36f.tar.bz2
convert_to_complex vs invalid_conversion [PR111903]
convert_to_complex when creating a COMPLEX_EXPR does not currently check if either the real or imag parts was not error_mark_node. This later on confuses the gimpilfier when there was a SAVE_EXPR wrapped around that COMPLEX_EXPR. The simple fix is after calling convert inside convert_to_complex_1, check that the either result was an error_operand and return an error_mark_node in that case. Bootstrapped and tested on x86_64-linux-gnu with no regressions. PR c/111903 gcc/ChangeLog: * convert.cc (convert_to_complex_1): Return error_mark_node if either convert was an error when converting from a scalar. gcc/testsuite/ChangeLog: * gcc.target/i386/float16-8.c: New test.
Diffstat (limited to 'gcc/tree-vect-loop-manip.cc')
0 files changed, 0 insertions, 0 deletions