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 middle-end/58385] [4.7/4.8/4.9 Regression] likely wrong code bug


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58385

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Sep 11 11:35:51 2013
New Revision: 202494

URL: http://gcc.gnu.org/viewcvs?rev=202494&root=gcc&view=rev
Log:
    PR tree-optimization/58385
    * fold-const.c (build_range_check): If both low and high are NULL,
    use omit_one_operand_loc to preserve exp side-effects.

    * gcc.c-torture/execute/pr58385.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr58385.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]