https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65380 --- Comment #11 from Tobias Burnus --- Created attachment 35050 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35050&action=edit one.o.000i.cgraph: -fdump-ipa-cgraph for the LTO step for the unpatched GCC (r221482) (In reply to Jan Hubicka from comment #8, #9 and #10) First, I can still reproduce the issue with the unpatched GCC. In addition, the big program also compiles successfully with -fno-ipa-icf. Regarding "ld": As /usr/bin/ld is very old, that's with the current "ld" from the binutils-gdb GIT (via GCC's --with-plugin-ld=) - it fails identical when I replace the ld.bfd by ld.gold. Regarding -fdump-ipa-cgraph: If you prefer the dump of a patched version, please tell me. Regarding the patch in comment 8 (with "ExTERNAL" typo fixed): Unfortunately, it doesn't solve the problem - I still get the same ICE. Regarding the patch in comment 9: I had to change "alias" to "alias_item" due to ../../gcc/ipa-icf.c:1779:22: error: ‘alias’ was not declared in this scope if (DECL_EXTERNAL (alias->decl)) but afterwards: It no longer has an ICE! >From gcc-bugs-return-480624-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 18 08:22:24 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 101370 invoked by alias); 18 Mar 2015 08:22:23 -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 101299 invoked by uid 48); 18 Mar 2015 08:22:19 -0000 From: "ma.jiang at zte dot com.cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/65459] New: munaligned-access still produce split access codes Date: Wed, 18 Mar 2015 08:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ma.jiang at zte dot com.cn 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 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: 2015-03/txt/msg01768.txt.bz2 Content-length: 1221 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65459 Bug ID: 65459 Summary: munaligned-access still produce split access codes Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: ma.jiang at zte dot com.cn Hi all, The munaligned-access option on ARM can not stop gcc from producing split access codes. A very simple test char mt[20]; void main() { void *mm=&(mt[1]); *(( int *)mm)=4; } compiled with -O2 -munaligned-access could reproduce this problem.As we can see,"*(( int *)mm)=4;" cause gcc to emit 4 strb instructions not a unaligned stw . In my opinion, this bug is caused by the SLOW_UNALIGNED_ACCESS macro,which is defined to be 1 in arm.h. It is very strange that the munaligned-access option can affect neither SLOW_UNALIGNED_ACCESS nor STRICT_ALIGNMENT. On PPC,the mstrict-align can affect STRICT_ALIGNMENT, and SLOW_UNALIGNED_ACCESS is determined by STRICT_ALIGNMENT, ALIGN, and MODE(args of the SLOW_UNALIGNED_ACCESS macro). This is a good example for ARM, I think. >From gcc-bugs-return-480625-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 18 08:48:49 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 42555 invoked by alias); 18 Mar 2015 08:48:49 -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 42527 invoked by uid 48); 18 Mar 2015 08:48:45 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/65458] parloops transforms omp-thread functions Date: Wed, 18 Mar 2015 08:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: vries at gcc dot gnu.org 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: attachments.created 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: 2015-03/txt/msg01769.txt.bz2 Content-length: 214 https://gcc.gnu.org/bugzilla/show_bug.cgi?ide458 --- Comment #1 from vries at gcc dot gnu.org --- Created attachment 35051 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id5051&actioníit tentative patch