public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/52983] [4.8 Regression] internal compiler error: in df_uses_record, at df-scan.c:3243
Date: Sun, 01 Jul 2012 09:22:00 -0000	[thread overview]
Message-ID: <bug-52983-4-xZZUwW0GDx@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-52983-4@http.gcc.gnu.org/bugzilla/>

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

Uros Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ubizjak at gmail dot com

--- Comment #6 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2012-06-28 07:39:33 UTC ---
Author: aoliva
Date: Thu Jun 28 07:39:25 2012
New Revision: 189036

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189036
Log:
PR debug/53740
PR debug/52983
PR debug/48866
* dce.c (word_dce_process_block): Check whether inserting debug
temps are needed even for needed insns.
(dce_process_block): Likewise.
* df-problems.c (dead_debug_add): Add comment about multi-regs.
(dead_debug_insert_temp): Likewise.  Don't subreg when we're
setting fewer regs than a multi-reg requires.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dce.c
    trunk/gcc/df-problems.c

--- Comment #7 from Uros Bizjak <ubizjak at gmail dot com> 2012-07-01 09:22:16 UTC ---
I have hit similar ICE on i64-linux-gnu:

(xgcc (GCC) 4.8.0 20120701 (experimental) [trunk revision 189100])

crosscompiler from x86_64-pc-linux-gnu to ia64-linux-gnu:

../../../gcc-svn/trunk/libgfortran/generated/iall_i2.c: In function ‘iall_i2’:
../../../gcc-svn/trunk/libgfortran/generated/iall_i2.c:187:1: internal compiler
error: in df_uses_record, at df-scan.c:3303
Please submit a full bug report,
with preprocessed source if appropriate.

Breakpoint 1, internal_error (gmsgid=gmsgid@entry=0xd958ea "in %s, at %s:%d")
at ../../gcc-svn/trunk/gcc/diagnostic.c:951
951     {
(gdb) bt
#0  internal_error (gmsgid=gmsgid@entry=0xd958ea "in %s, at %s:%d") at
../../gcc-svn/trunk/gcc/diagnostic.c:951
#1  0x0000000000bd8804 in fancy_abort (file=file@entry=0xc681c8
"../../gcc-svn/trunk/gcc/df-scan.c", line=line@entry=3303,
function=function@entry=0xc68bbe "df_uses_record")
    at ../../gcc-svn/trunk/gcc/diagnostic.c:1011
#2  0x00000000005ce81b in df_uses_record
(collection_rec=collection_rec@entry=0x7fffffffd780, loc=<optimized out>,
ref_type=DF_REF_REG_MEM_LOAD, ref_type@entry=DF_REF_REG_USE, 
    bb=bb@entry=0x7ffff12be380, insn_info=insn_info@entry=0x134d040,
flags=<optimized out>, flags@entry=0) at ../../gcc-svn/trunk/gcc/df-scan.c:3303
#3  0x00000000005ce96f in df_insn_refs_collect
(collection_rec=collection_rec@entry=0x7fffffffd780,
bb=bb@entry=0x7ffff12be380, insn_info=0x134d040)
    at ../../gcc-svn/trunk/gcc/df-scan.c:3510
#4  0x00000000005cf4f0 in df_insn_rescan (insn=insn@entry=0x7ffff0f3de58) at
../../gcc-svn/trunk/gcc/df-scan.c:1280
#5  0x000000000061a251 in add_insn_before (insn=0x7ffff0f3de58,
before=before@entry=0x7ffff0f30630, bb=<optimized out>, bb@entry=0x0) at
../../gcc-svn/trunk/gcc/emit-rtl.c:3883
#6  0x000000000061a3b2 in emit_pattern_before_noloc (x=0x7ffff0f3fae0,
before=0x7ffff0f30630, last=<optimized out>, bb=0x0, make_raw=<optimized out>)
    at ../../gcc-svn/trunk/gcc/emit-rtl.c:4161
#7  0x000000000061a42c in emit_pattern_before_setloc (pattern=0x7ffff0f3fae0,
before=<optimized out>, loc=112, insnp=<optimized out>, make_raw=<optimized
out>)
    at ../../gcc-svn/trunk/gcc/emit-rtl.c:4528
#8  0x00000000005c7367 in dead_debug_insert_temp
(debug=debug@entry=0x7fffffffd920, uregno=<optimized out>,
insn=insn@entry=0x7ffff0f30630, 
    where=where@entry=DEBUG_TEMP_BEFORE_WITH_VALUE) at
../../gcc-svn/trunk/gcc/df-problems.c:3349
#9  0x0000000000afef4e in dce_process_block (au=0x136a928, redo_out=<optimized
out>, bb=0x7ffff12be380) at ../../gcc-svn/trunk/gcc/dce.c:976
#10 fast_dce (word_level=word_level@entry=0 '\000') at
../../gcc-svn/trunk/gcc/dce.c:1044

(gdb) f 2
#2  0x00000000005ce81b in df_uses_record
(collection_rec=collection_rec@entry=0x7fffffffd780, loc=<optimized out>,
ref_type=DF_REF_REG_MEM_LOAD, ref_type@entry=DF_REF_REG_USE, 
    bb=bb@entry=0x7ffff12be380, insn_info=insn_info@entry=0x134d040,
flags=<optimized out>, flags@entry=0) at ../../gcc-svn/trunk/gcc/df-scan.c:3303
3303          gcc_assert (!DEBUG_INSN_P (insn_info->insn));
(gdb) p debug_rtx (insn_info->insn)
(debug_insn 685 441 442 36 (var_location:HI D#33 (mem:HI (post_modify:DI
(reg/v/f:DI 450 [ src ])
            (plus:DI (reg/v/f:DI 450 [ src ])
                (reg:DI 639 [ pretmp.129 ]))) [6 *src_178+0 S2 A16])) -1
     (nil))
$1 = void


  parent reply	other threads:[~2012-07-01  9:22 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-13 21:02 [Bug c++/52983] New: " redi at gcc dot gnu.org
2012-04-13 21:02 ` [Bug c++/52983] " redi at gcc dot gnu.org
2012-04-13 21:04 ` [Bug rtl-optimization/52983] [4.8 Regression] " pinskia at gcc dot gnu.org
2012-04-24 13:16 ` jakub at gcc dot gnu.org
2012-04-30 12:11 ` aoliva at gcc dot gnu.org
2012-04-30 12:16 ` aoliva at gcc dot gnu.org
2012-06-13 20:42 ` aoliva at gcc dot gnu.org
2012-06-28  7:39 ` aoliva at gcc dot gnu.org
2012-07-01  9:22 ` ubizjak at gmail dot com [this message]
2012-07-01  9:26 ` ubizjak at gmail dot com
2012-07-02 12:26 ` aoliva at gcc dot gnu.org
2012-07-15 10:58 ` mexas at bristol dot ac.uk
2012-07-30 23:16 ` gary at intrepid dot com
2012-08-02  0:35 ` aoliva at gcc dot gnu.org
2012-08-02  0:36 ` aoliva at gcc dot gnu.org
2012-08-02  0:36 ` aoliva at gcc dot gnu.org
2012-08-02  0:37 ` aoliva at gcc dot gnu.org
2012-08-02  0:37 ` aoliva at gcc dot gnu.org
2012-08-02  2:27 ` aoliva at gcc dot gnu.org
2012-08-04 12:31 ` [Bug debug/52983] " aoliva at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-52983-4-xZZUwW0GDx@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).