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 debug/46893] [4.5 Regression] ICE: in trunc_int_for_mode, at explow.c:56 with -O -g


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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-16 20:20:24 UTC ---
Author: jakub
Date: Sun Jan 16 20:20:21 2011
New Revision: 168865

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168865
Log:
    Backport from mainline
    2010-12-16  Jakub Jelinek  <jakub@redhat.com>

    PR debug/46893
    * cfgexpand.c (expand_debug_expr): If GET_MODE (op0) is VOIDmode,
    use TYPE_MODE (TREE_TYPE (tem)) instead of mode1.

    * gcc.dg/pr46893.c: New test.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/pr46893.c
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/cfgexpand.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


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