[Bug middle-end/61010] [4.8/4.9 Regression] Infinite recursion in fold

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 5 09:24:00 GMT 2014


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

--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon May  5 09:23:31 2014
New Revision: 210066

URL: http://gcc.gnu.org/viewcvs?rev=210066&root=gcc&view=rev
Log:
2014-05-05  Richard Biener  <rguenther@suse.de>

    PR middle-end/61010
    * fold-const.c (fold_binary_loc): Consistently avoid
    canonicalizing X & CST away from a CST that is the mask
    of a mode.

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

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



More information about the Gcc-bugs mailing list