This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r218048 - in /trunk/gcc: ChangeLog sreal.c srea...
- From: marxin at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 25 Nov 2014 15:16:28 -0000
- Subject: r218048 - in /trunk/gcc: ChangeLog sreal.c srea...
Author: marxin
Date: Tue Nov 25 15:16:27 2014
New Revision: 218048
URL: https://gcc.gnu.org/viewcvs?rev=218048&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/plugin/sreal-test-1.c
trunk/gcc/testsuite/gcc.dg/plugin/sreal_plugin.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/sreal.c
trunk/gcc/sreal.h
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/plugin/plugin.exp