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/78742] [5/6/7 Regression] internal compiler error: in int_cst_value, at tree.c:10782


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

--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Tue Dec 13 09:17:42 2016
New Revision: 243598

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

        PR middle-end/78742
        * tree.c (cst_and_fits_in_hwi): Look if the actual value fits.
        * tree-object-size.c (compute_builtin_object_size): Use
        tree_fits_shwi_p.
        * tree-data-ref.c (initialize_matrix_A): Remove excess assert.

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

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr78742.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-data-ref.c
    trunk/gcc/tree-object-size.c
    trunk/gcc/tree.c

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