re PR rtl-optimization/18928 (ice on valid code with -O2 -fPIC)
authorRoger Sayle <roger@eyesopen.com>
Mon, 13 Dec 2004 23:49:28 +0000 (23:49 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Mon, 13 Dec 2004 23:49:28 +0000 (23:49 +0000)
commit5ac20c1a831f603d5e46e3e2938f0bbf6c8b0423
tree610abc1c82d439c98e13f70c11d153d2004220e4
parent04482133da7cc90eb44c16e1abe6223e2014fc1e
re PR rtl-optimization/18928 (ice on valid code with -O2 -fPIC)

PR rtl-optimization/18928
* simplify_rtx.c (plus_minus_operand_p): New function to encode
the test for suitable operands for calls to simplify_plus_minus.
Only allow (CONST (PLUS x y)) if both x and y are CONSTANT_P.
(simplify_binary_operation): Use plus_minus_operand_p.

* gcc.dg/pr18928-1.c: New test case.

From-SVN: r92109
gcc/ChangeLog
gcc/simplify-rtx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr18928-1.c [new file with mode: 0644]