re PR bootstrap/64050 (r218009 causes LTO/PGO bootstrap failure: ICE: in inline_small...
authorMartin Liska <mliska@suse.cz>
Tue, 25 Nov 2014 15:16:27 +0000 (16:16 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 25 Nov 2014 15:16:27 +0000 (15:16 +0000)
commit8301b194d24cb01e54f36822740ed5b835358fd1
tree6eb6e13f7c1038e576c433fecfe7eea014d66df3
parent6b4b59fc6f4b555f81e70e82dd424be2e05b41fc
re PR bootstrap/64050 (r218009 causes LTO/PGO bootstrap failure: ICE: in inline_small_functions, at ipa-inline.c:1709)

2014-11-25  Martin Liska  <mliska@suse.cz>

PR bootstrap/64050
PR ipa/64060
* sreal.c (sreal::operator+): Addition fixed.
(sreal::signedless_plus): Negative numbers are
handled correctly.
(sreal::operator-): Subtraction is fixed.
(sreal::signedless_minus): Negative numbers are
handled correctly.
* sreal.h (sreal::operator<): Equal negative numbers
are compared correctly.
(sreal::shift): New checking asserts are introduced.
Operation is fixed.
* gcc.dg/plugin/plugin.exp: New plugin.
* gcc.dg/plugin/sreal-test-1.c: New test.
* gcc.dg/plugin/sreal_plugin.c: New test.

From-SVN: r218048
gcc/ChangeLog
gcc/sreal.c
gcc/sreal.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/plugin/plugin.exp
gcc/testsuite/gcc.dg/plugin/sreal-test-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/plugin/sreal_plugin.c [new file with mode: 0644]