From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18083 invoked by alias); 27 Jun 2012 21:18:18 -0000 Received: (qmail 18072 invoked by uid 22791); 27 Jun 2012 21:18:17 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 Jun 2012 21:18:04 +0000 From: "samueldotj at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/53790] ICE on dereferencing a extern union in asm statement Date: Wed, 27 Jun 2012 21:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: samueldotj at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-06/txt/msg01821.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53790 --- Comment #1 from Samuel Jacob 2012-06-27 21:18:03 UTC --- Adding back trace just in case if it is needed.. (gdb) bt #0 0x00000000005b999e in expand_expr_real_1 (exp=0x7ffff70b9580, target=, tmode=VOIDmode, modifier=EXPAND_NORMAL, alt_rtl=) at ../.././gcc/expr.c:9187 #1 0x00000000005bb50d in expand_expr_real (alt_rtl=, modifier=, tmode=, target=, exp=0x7ffff70b9580) at ../.././gcc/expr.c:7383 #2 expand_expr_real (exp=0x7ffff70b9580, target=, tmode=, modifier=, alt_rtl=) at ../.././gcc/expr.c:7351 #3 0x00000000005b8e20 in expand_expr (modifier=EXPAND_NORMAL, mode=VOIDmode, target=0x0, exp=) at ../.././gcc/expr.h:424 #4 expand_expr_real_1 (exp=0x7ffff70ba528, target=, tmode=VOIDmode, modifier=EXPAND_NORMAL, alt_rtl=) at ../.././gcc/expr.c:8992 #5 0x000000000070d4c3 in expand_expr (modifier=, mode=VOIDmode, target=0x0, exp=0x7ffff70ba528) at ../.././gcc/expr.h:424 #6 expand_asm_operands (string=0x7ffff70bd168, outputs=, inputs=, clobbers=0x7ffff70bd438, labels=0x0, vol=1, locus=1486) at ../.././gcc/stmt.c:898 #7 0x000000000070e20a in expand_asm_stmt (stmt=) at ../.././gcc/stmt.c:1187 #8 0x0000000000531b68 in expand_gimple_stmt_1 (stmt=0x7ffff70a33c0) at ../.././gcc/cfgexpand.c:1922 #9 expand_gimple_stmt (stmt=0x7ffff70a33c0) at ../.././gcc/cfgexpand.c:2084 #10 0x0000000000532ca8 in expand_gimple_basic_block (bb=0x7ffff709a1a0) at ../.././gcc/cfgexpand.c:3626 #11 0x000000000053664e in gimple_expand_cfg () at ../.././gcc/cfgexpand.c:4109 #12 0x0000000000688ee9 in execute_one_pass (pass=0x1084cc0) at ../.././gcc/passes.c:1556 #13 0x0000000000689195 in execute_pass_list (pass=0x1084cc0) at ../.././gcc/passes.c:1611 #14 0x00000000007553c1 in tree_rest_of_compilation (fndecl=0x7ffff709c800) at ../.././gcc/tree-optimize.c:422 #15 0x00000000008955af in cgraph_expand_function (node=0x7ffff7e926e0) at ../.././gcc/cgraphunit.c:1576 #16 0x000000000089720a in cgraph_expand_all_functions () at ../.././gcc/cgraphunit.c:1635 #17 cgraph_optimize () at ../.././gcc/cgraphunit.c:1899 #18 0x000000000089760a in cgraph_finalize_compilation_unit () at ../.././gcc/cgraphunit.c:1096 #19 0x000000000049ffd5 in c_write_global_declarations () at ../.././gcc/c-decl.c:9878 #20 0x000000000071a1a8 in compile_file () at ../.././gcc/toplev.c:591 #21 do_compile () at ../.././gcc/toplev.c:1900 #22 toplev_main (argc=13, argv=0x7fffffffe318) at ../.././gcc/toplev.c:1963 #23 0x00007ffff71b1c4d in __libc_start_main () from /lib/libc.so.6 #24 0x000000000048f971 in _start ()