This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/78305] Wrong constant folding


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

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Nov 17 08:39:33 2016
New Revision: 242536

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

        PR middle-end/78305
        * fold-const.c (negate_expr_p): Fix multiplication case.

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

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]