[Bug target/70941] [5/6/7 Regression] Test miscompiled with -O2.

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 6 07:39:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70941

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Fri May  6 07:38:27 2016
New Revision: 235943

URL: https://gcc.gnu.org/viewcvs?rev=235943&root=gcc&view=rev
Log:
2016-05-06  Richard Biener  <rguenther@suse.de>

        PR middle-end/70941
        * fold-const.c (split_tree): Always convert to the original type
        before negating.

        * gcc.dg/torture/pr70941.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr70941.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list