re PR middle-end/21897 (Segementation fault in fold_ternary)
authorJakub Jelinek <jakub@redhat.com>
Mon, 6 Jun 2005 19:26:10 +0000 (21:26 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 6 Jun 2005 19:26:10 +0000 (21:26 +0200)
commit40182dbff7fe0f85becc57d2fb0009289558bd46
treef8dec15f06747cb517ab99e4b793261a5d46bec1
parentc8b622ff2d0a7c7e030c3e3a8f4a45a75c814227
re PR middle-end/21897 (Segementation fault in fold_ternary)

* fold-const.c (operand_equal_p): Don't return 1, if element
chains for 2 VECTOR_CSTs are not the same length.

PR regression/21897
* fold-const.c (fold_ternary) <case BIT_FIELD_REF>: Don't crash if
not all VECTOR_CST elements are given.

* gcc.c-torture/execute/20050604-1.c: New test.

From-SVN: r100674
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20050604-1.c [new file with mode: 0644]