From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4890 invoked by alias); 11 Feb 2014 00:49:34 -0000 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 Received: (qmail 4862 invoked by uid 48); 11 Feb 2014 00:49:30 -0000 From: "shenhan at google dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/60141] New: ICE in i386.c distance_non_agu_define_in_bb Date: Tue, 11 Feb 2014 00:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 4.8.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: shenhan at google 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-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-02/txt/msg01014.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D60141 Bug ID: 60141 Summary: ICE in i386.c distance_non_agu_define_in_bb Product: gcc Version: 4.8.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: shenhan at google dot com CC: llozano at google dot com, tejohnson at google dot com This only fails for google/gcc-4_8 To reproduce -=20 configure: ~/gcc.git/configure --disable-bootstrap --enable-languages=3D'c,c++' --disable-multilib --disable-libatomic --disable-libmudflap --disable-libssp --enable-libgomp --enable-__cxa_atexit --enable-checking=3Drelease --disable-libquadmath --disable-libitm --enable-esp --with-arch=3Datom --with-tune=3Datom --enable-frame-pointer Build -=20 make -j40 Compile a testcase -=20 ./gcc/xgcc -B./gcc -g -O2 -fpic -c -m32 ~/SROA.pp.cpp Output -=20 SROA.cpp: In member function =E2=80=98void {anonymous}::AllocaPartitioning::UseBuilder::operator()()=E2=80=99: SROA.cpp:873:3: internal compiler error: Segmentation fault 0x8d0baf crash_signal ../../../gcc.git/gcc/toplev.c:346 0xa798c8 distance_non_agu_define_in_bb ../../../gcc.git/gcc/config/i386/i386.c:17506 0xa79cad distance_non_agu_define ../../../gcc.git/gcc/config/i386/i386.c:17564 0xa79cad ix86_lea_outperforms ../../../gcc.git/gcc/config/i386/i386.c:17730 0xb8e6ca output_89 ../../../gcc.git/gcc/config/i386/i386.md:2152 0x72a5c3 final_scan_insn(rtx_def*, _IO_FILE*, int, int, int*) ../../../gcc.git/gcc/final.c:2895 0x72ae84 final(rtx_def*, _IO_FILE*, int) ../../../gcc.git/gcc/final.c:1986 0x72b46d rest_of_handle_final ../../../gcc.git/gcc/final.c:4432 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Debugging shows that in distance_non_agu_define_in_bb (i386.c), BLOCK_FOR_INSN(start) returns zero, which caused this ICE. A preliminary bisecting in google/gcc-4_8 shows that the follow CL introduc= es=20 this ICE. (So I cc'ed Teresa Johnson) commit 907fca49eae2da51a328eb192c691cc24f69e6af Author: tejohnson Date: Mon Dec 2 18:28:19 2013 +0000 Backport the last few fixes for -freorder-blocks-and-partition from trunk to google/4_8: r204985, r205057 and r205243 ------------------------------------------------------------------------ r204985 | tejohnson | 2013-11-18 14:38:51 -0800 (Mon, 18 Nov 2013) = | 15 lines This patch fixes an lto profiledbootstrap failure with -freorder-blocks-and-partition enabled. Currently compgotos is the only pass that goes into cfglayout mode after bb reordering, which is undesireable (and in the case of -freorder-blocks-and-partition can cause illegal partitioning) because of the optimizations perfor= med on the cfg when going into cfglayout mode. Moved compgoto before bb reordering to avoid these problems. 2013-11-18 Teresa Johnson * gcc/cfgrtl.c (cfg_layout_initialize): Assert if we try to go into cfglayout after bb reordering. * gcc/passes.def: Move compgotos before bb reordering since it goes into cfglayout. ------------------------------------------------------------------------ ------------------------------------------------------------------------ r205057 | tmsriram | 2013-11-19 14:12:21 -0800 (Tue, 19 Nov 2013) |= 7 lines Emit a label for the split cold function part. Label name is forme= d by suffixing the original function name with "cold". Patch tested for bootstrap on all default languages on x86_64 and regression testsuite checked for parity with RUNTESTFLAGS -m32 and = m64. 2013-11-19 Sriraman Tallam * final.c (final_scan_insn): Emit a label for the split cold function part. Label name is formed by suffixing the original function name with "cold". 2013-11-19 Sriraman Tallam * gcc.dg/tree-prof/cold_partition_label.c: New testcase. ------------------------------------------------------------------------ ------------------------------------------------------------------------ r205243 | tejohnson | 2013-11-21 20:16:47 -0800 (Thu, 21 Nov 2013) = | 6 lines 2013-11-21 Teresa Johnson * cfgcleanup.c (outgoing_edges_match): Walk up past note instructio= ns not understood by old_insns_match_p. ------------------------------------------------------------------------ git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/google/gcc-4_8@205594 138bc75d-0d04-0410-961f-82ee72b054a4 >>From gcc-bugs-return-443258-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 11 01:13:20 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29406 invoked by alias); 11 Feb 2014 01:13:19 -0000 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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 29322 invoked by uid 55); 11 Feb 2014 01:13:10 -0000 From: "rth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/59927] [4.9 Regression] ICE sorry, unimplemented: ms_abi attribute requires -maccumulate-outgoing-args or subtarget optimization implying it Date: Tue, 11 Feb 2014 01:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: rth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-02/txt/msg01015.txt.bz2 Content-length: 773 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59927 --- Comment #9 from Richard Henderson --- Author: rth Date: Tue Feb 11 01:12:38 2014 New Revision: 207677 URL: http://gcc.gnu.org/viewcvs?rev=207677&root=gcc&view=rev Log: PR target/59927 * calls.c (expand_call): Don't double-push for reg_parm_stack_space. * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit ms-abi vs -mno-accumulate-outgoing-args. (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p. * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with respect to ms-abi. Modified: trunk/gcc/ChangeLog trunk/gcc/calls.c trunk/gcc/config/i386/i386.c trunk/gcc/config/i386/i386.h