re PR target/45074 (GCC Segmentation fault - negating global register variables)
authorRichard Sandiford <rdsandiford@googlemail.com>
Wed, 1 Jun 2011 19:49:53 +0000 (19:49 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 1 Jun 2011 19:49:53 +0000 (19:49 +0000)
commit02972eafb03f823c9dcbe3ede3d1f96562afaa89
tree512555575631369514775396520cedb9467f1074
parent4d41c2d1ce6f01c53eb8941461b3047e8a6368f6
re PR target/45074 (GCC Segmentation fault - negating global register variables)

gcc/
PR target/45074
* optabs.h (valid_multiword_target_p): Declare.
* expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
doing multi-word operations.
* optabs.c (expand_binop): Likewise.
(expand_doubleword_bswap): Likewise.
(expand_absneg_bit): Likewise.
(expand_unop): Likewise.
(expand_copysign_bit): Likewise.
(multiword_target_p): New function.

gcc/testsuite/
PR target/45074
* gcc.target/mips/pr45074.c: New test.

From-SVN: r174541
gcc/ChangeLog
gcc/expmed.c
gcc/optabs.c
gcc/optabs.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/pr45074.c [new file with mode: 0644]