public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/66062] New: under O2 optimization level , aarch64 compiler give informance : internal compiler error: in expand_assignment, at expr.c:4838
@ 2015-05-08 3:25 huangcunjian at huawei dot com
2015-07-28 4:41 ` [Bug target/66062] " ssaraswati at gmail dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: huangcunjian at huawei dot com @ 2015-05-08 3:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66062
Bug ID: 66062
Summary: under O2 optimization level , aarch64 compiler give
informance : internal compiler error: in
expand_assignment, at expr.c:4838
Product: gcc
Version: 4.9.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: huangcunjian at huawei dot com
Target Milestone: ---
Created attachment 35493
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35493&action=edit
testcase context
gcc version:
Target: aarch64-linux-gnu
Configured with:
/usr1/code/CODE_SDKV1R5C00/code/current/V1R5/build/script/cpu_hcc/p660/p660_build_dir/src/gcc-4.9/configure
--build=x86_64-suse-linux --host=x86_64-suse-linux --target=aarch64-linux-gnu
--with-arch=armv8-a
--prefix=/usr1/code/CODE_SDKV1R5C00/code/current/V1R5/build/script/cpu_hcc/p660/p660_build_dir/install
--disable-multilib --enable-__cxa_atexit --with-gnu-as --with-gnu-ld
--disable-libmudflap --disable-libgomp --disable-libssp --enable-threads
--enable-plugin --enable-c99 --enable-long-long --disable-nls --enable-shared
--enable-poison-system-directories --enable-symvers=gnu --with-pkgversion='SDK
V100R005C00B101' --enable-languages=c,c++
command:
aarch64-linux-gnu-gcc -w -O2 EMI_61144035_2_rd.i
compiler actual output :
./testsuite/gcc.target/hidsp/emi/20150428_151230_normal1/output/2015-4-29_6-46-13_17379704/EMI_61144035_2_rd.c:
In function 'func_1':
./testsuite/gcc.target/hidsp/emi/20150428_151230_normal1/output/2015-4-29_6-46-13_17379704/EMI_61144035_2_rd.c:747:56:
internal compiler error: in expand_assignment, at expr.c:4838
0x670942 expand_assignment(tree_node*, tree_node*, bool)
/usr1/code/CODE_SDKV1R5C00/code/current/V1R5/build/script/cpu_hcc/p660/p660_build_dir/src/gcc-4.9/gcc/expr.c:4838
0x5b4416 expand_gimple_stmt_1
/usr1/code/CODE_SDKV1R5C00/code/current/V1R5/build/script/cpu_hcc/p660/p660_build_dir/src/gcc-4.9/gcc/cfgexpand.c:3226
0x5b4a70 expand_gimple_stmt
/usr1/code/CODE_SDKV1R5C00/code/current/V1R5/build/script/cpu_hcc/p660/p660_build_dir/src/gcc-4.9/gcc/cfgexpand.c:3322
0x5b5588 expand_gimple_basic_block
/usr1/code/CODE_SDKV1R5C00/code/current/V1R5/build/script/cpu_hcc/p660/p660_build_dir/src/gcc-4.9/gcc/cfgexpand.c:5162
0x5b93b6 gimple_expand_cfg
/usr1/code/CODE_SDKV1R5C00/code/current/V1R5/build/script/cpu_hcc/p660/p660_build_dir/src/gcc-4.9/gcc/cfgexpand.c:5741
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/66062] under O2 optimization level , aarch64 compiler give informance : internal compiler error: in expand_assignment, at expr.c:4838
2015-05-08 3:25 [Bug c/66062] New: under O2 optimization level , aarch64 compiler give informance : internal compiler error: in expand_assignment, at expr.c:4838 huangcunjian at huawei dot com
@ 2015-07-28 4:41 ` ssaraswati at gmail dot com
2015-07-28 6:22 ` trippels at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: ssaraswati at gmail dot com @ 2015-07-28 4:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66062
Sujoy <ssaraswati at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ssaraswati at gmail dot com
--- Comment #1 from Sujoy <ssaraswati at gmail dot com> ---
(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 case as
shown below.
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
struct S0 {
unsigned int i : 2;
};
static struct S0 g[5] = {{0}, {1}, {0}, {1}, {0}};
static int64_t idx = 0x979516CD4BBA2AEDLL;
int main()
{
struct S0 l = {0};
g[(idx + 1)] = l;
return g[3].i;
}
$ gcc -O2 small_test.c
small_test.c: In function âmainâ:
small_test.c:15:16: internal compiler error: in expand_assignment, at
expr.c:4721
g[(idx + 1)] = l;
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> 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: <gcc-bugs-return-493523-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
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: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
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" <gcc-bugzilla@gcc.gnu.org>
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: <bug-66062-4-NeuQuBtvHl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66062-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66062-4@http.gcc.gnu.org/bugzilla/>
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?idf062
--- Comment #2 from Sujoy <ssaraswati at gmail dot com> ---
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/66062] under O2 optimization level , aarch64 compiler give informance : internal compiler error: in expand_assignment, at expr.c:4838
2015-05-08 3:25 [Bug c/66062] New: under O2 optimization level , aarch64 compiler give informance : internal compiler error: in expand_assignment, at expr.c:4838 huangcunjian at huawei dot com
2015-07-28 4:41 ` [Bug target/66062] " ssaraswati at gmail dot com
@ 2015-07-28 6:22 ` trippels at gcc dot gnu.org
2015-07-28 10:20 ` ssaraswati at gmail dot com
2015-07-28 10:31 ` trippels at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-07-28 6:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66062
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |trippels at gcc dot gnu.org
--- Comment #3 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
gcc-4.8 isn't supported anymore.
I cannot reproduce the issue with 4.9.3 or above.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/66062] under O2 optimization level , aarch64 compiler give informance : internal compiler error: in expand_assignment, at expr.c:4838
2015-05-08 3:25 [Bug c/66062] New: under O2 optimization level , aarch64 compiler give informance : internal compiler error: in expand_assignment, at expr.c:4838 huangcunjian at huawei dot com
2015-07-28 4:41 ` [Bug target/66062] " ssaraswati at gmail dot com
2015-07-28 6:22 ` trippels at gcc dot gnu.org
@ 2015-07-28 10:20 ` ssaraswati at gmail dot com
2015-07-28 10:31 ` trippels at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: ssaraswati at gmail dot com @ 2015-07-28 10:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66062
--- Comment #4 from Sujoy <ssaraswati at gmail dot com> ---
(In reply to Markus Trippelsdorf from comment #3)
> gcc-4.8 isn't supported anymore.
> I cannot reproduce the issue with 4.9.3 or above.
Thanks for checking. Yes, looks like this got fixed with PR65680.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/66062] under O2 optimization level , aarch64 compiler give informance : internal compiler error: in expand_assignment, at expr.c:4838
2015-05-08 3:25 [Bug c/66062] New: under O2 optimization level , aarch64 compiler give informance : internal compiler error: in expand_assignment, at expr.c:4838 huangcunjian at huawei dot com
` (2 preceding siblings ...)
2015-07-28 10:20 ` ssaraswati at gmail dot com
@ 2015-07-28 10:31 ` trippels at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-07-28 10:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66062
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Closing.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-07-28 10:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-08 3:25 [Bug c/66062] New: under O2 optimization level , aarch64 compiler give informance : internal compiler error: in expand_assignment, at expr.c:4838 huangcunjian at huawei dot com
2015-07-28 4:41 ` [Bug target/66062] " ssaraswati at gmail dot com
2015-07-28 6:22 ` trippels at gcc dot gnu.org
2015-07-28 10:20 ` ssaraswati at gmail dot com
2015-07-28 10:31 ` trippels at gcc dot gnu.org
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).