From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 92821 invoked by alias); 28 Jul 2015 04:41:33 -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 92796 invoked by uid 48); 28 Jul 2015 04:41:28 -0000 From: "ssaraswati at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/66062] under O2 optimization level , aarch64 compiler give informance : internal compiler error: in expand_assignment, at expr.c:4838 Date: Tue, 28 Jul 2015 04:41: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.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ssaraswati at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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: cc Message-ID: In-Reply-To: References: 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-07/txt/msg02412.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66062 Sujoy changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ssaraswati at gmail dot com --- Comment #1 from Sujoy --- (In reply to huangcunjian from comment #0) Hi, I can reproduce this on x86_64 as well. The test case as such has an issue that it does an out of bound access for an array. However, I believe gcc shouldn't crash in any case. This can be reproduced with a shorter test cas= e as shown below.=20 #include #include #include struct S0 { unsigned int i : 2; }; static struct S0 g[5] =3D {{0}, {1}, {0}, {1}, {0}}; static int64_t idx =3D 0x979516CD4BBA2AEDLL; int main() { struct S0 l =3D {0}; g[(idx + 1)] =3D l; return g[3].i; } $ gcc -O2 small_test.c small_test.c: In function =C3=A2main=C3=A2: small_test.c:15:16: internal compiler error: in expand_assignment, at expr.c:4721 g[(idx + 1)] =3D l; ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Preprocessed source stored into /tmp/ccueDw3V.out file, please attach this = to your bugreport. >>From gcc-bugs-return-493523-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 28 04:45:16 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 95014 invoked by alias); 28 Jul 2015 04:45:15 -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 94979 invoked by uid 48); 28 Jul 2015 04:45:11 -0000 From: "ssaraswati at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/66062] under O2 optimization level , aarch64 compiler give informance : internal compiler error: in expand_assignment, at expr.c:4838 Date: Tue, 28 Jul 2015 04:45: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.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ssaraswati at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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: 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-07/txt/msg02413.txt.bz2 Content-length: 250 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66062 --- Comment #2 from Sujoy --- This bug is in UNCONFIRMED state. Since I am new to gcc, just wanted to know if one should work for this fix only after it is confirmed.