public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/63442] New: [AArch64] ICE with ubsan/overflow-int128.c test
@ 2014-10-02 15:20 clyon at gcc dot gnu.org
2014-10-13 15:46 ` [Bug target/63442] " jiwang at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: clyon at gcc dot gnu.org @ 2014-10-02 15:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63442
Bug ID: 63442
Summary: [AArch64] ICE with ubsan/overflow-int128.c test
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: clyon at gcc dot gnu.org
testsuite/c-c++-common/ubsan/overflow-int128.c causes an ICE on AArch64:
/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64-none-linux-gnu/gcc3/gcc/xgcc
-B/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64-none-linux-gnu/gcc3/gcc/
/aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/testsuite/c-c++-common/ubsan/overflow-int128.c
gcc_tg.o
-B/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64-none-linux-gnu/gcc3/aarch64-none-linux-gnu/./libsanitizer/
-B/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64-none-linux-gnu/gcc3/aarch64-none-linux-gnu/./libsanitizer/ubsan/
-L/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64-none-linux-gnu/gcc3/aarch64-none-linux-gnu/./libsanitizer/ubsan/.libs
-fno-diagnostics-show-caret -fdiagnostics-color=never -O0
-fsanitize=signed-integer-overflow -DSTACK_SIZE=16384 -Wl,-wrap,exit
-Wl,-wrap,_exit -Wl,-wrap,main -Wl,-wrap,abort -lm -o ./overflow-int128.exe
(timeout = 800)
/aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/testsuite/c-c++-common/ubsan/overflow-int128.c:
In function 'main':
/aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/testsuite/c-c++-common/ubsan/overflow-int128.c:14:27:
internal compiler error: in copy_to_mode_reg, at explow.c:635
0x728188 copy_to_mode_reg(machine_mode, rtx_def*)
/aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/explow.c:635
0x95cafb prepare_cmp_insn
/aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/optabs.c:4206
0x95d863 emit_cmp_and_jump_insns(rtx_def*, rtx_def*, rtx_code, rtx_def*,
machine_mode, int, rtx_def*, int)
/aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/optabs.c:4381
0x86b8e6 ubsan_expand_si_overflow_addsub_check(tree_code,
gimple_statement_base*)
/aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/internal-fn.c:303
0x65da05 expand_gimple_stmt_1
/aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/cfgexpand.c:3218
0x65df3f expand_gimple_stmt
/aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/cfgexpand.c:3370
0x65e7df expand_gimple_basic_block
/aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/cfgexpand.c:5209
0x661a93 execute
/aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/cfgexpand.c:5815
Please submit a full bug report,
Where GCC is confired with --target aarch64-none-linux-gnu
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/63442] [AArch64] ICE with ubsan/overflow-int128.c test
2014-10-02 15:20 [Bug target/63442] New: [AArch64] ICE with ubsan/overflow-int128.c test clyon at gcc dot gnu.org
@ 2014-10-13 15:46 ` jiwang at gcc dot gnu.org
2014-10-13 16:24 ` jiwang at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jiwang at gcc dot gnu.org @ 2014-10-13 15:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63442
Jiong Wang <jiwang at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jiwang at gcc dot gnu.org
--- Comment #1 from Jiong Wang <jiwang at gcc dot gnu.org> ---
I noticed this also, my code base is 216144, quite new.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/63442] [AArch64] ICE with ubsan/overflow-int128.c test
2014-10-02 15:20 [Bug target/63442] New: [AArch64] ICE with ubsan/overflow-int128.c test clyon at gcc dot gnu.org
2014-10-13 15:46 ` [Bug target/63442] " jiwang at gcc dot gnu.org
@ 2014-10-13 16:24 ` jiwang at gcc dot gnu.org
2014-10-14 7:55 ` ramana at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jiwang at gcc dot gnu.org @ 2014-10-13 16:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63442
--- Comment #2 from Jiong Wang <jiwang at gcc dot gnu.org> ---
Have done a quick investigation, it's caused by the implementation of
TARGET_LIBGCC_CMP_RETURN_MODE
aarch64_libgcc_cmp_return_mode
AArch64 define the return mode to be SImode which seems broken gcc genric code
when expand builtin lib call
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/63442] [AArch64] ICE with ubsan/overflow-int128.c test
2014-10-02 15:20 [Bug target/63442] New: [AArch64] ICE with ubsan/overflow-int128.c test clyon at gcc dot gnu.org
2014-10-13 15:46 ` [Bug target/63442] " jiwang at gcc dot gnu.org
2014-10-13 16:24 ` jiwang at gcc dot gnu.org
@ 2014-10-14 7:55 ` ramana at gcc dot gnu.org
2014-10-27 22:00 ` jiwang at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: ramana at gcc dot gnu.org @ 2014-10-14 7:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63442
Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Target| |aarch64-linux-gnu
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-10-14
CC| |ramana at gcc dot gnu.org
Ever confirmed|0 |1
Build| |x86_64-none-linux-gnu
--- Comment #3 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
Update target for searches to actually work.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/63442] [AArch64] ICE with ubsan/overflow-int128.c test
2014-10-02 15:20 [Bug target/63442] New: [AArch64] ICE with ubsan/overflow-int128.c test clyon at gcc dot gnu.org
` (2 preceding siblings ...)
2014-10-14 7:55 ` ramana at gcc dot gnu.org
@ 2014-10-27 22:00 ` jiwang at gcc dot gnu.org
2014-10-27 23:48 ` jiwang at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jiwang at gcc dot gnu.org @ 2014-10-27 22:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63442
--- Comment #5 from Jiong Wang <jiwang at gcc dot gnu.org> ---
Author: jiwang
Date: Mon Oct 27 21:58:59 2014
New Revision: 216765
URL: https://gcc.gnu.org/viewcvs?rev=216765&root=gcc&view=rev
Log:
PR63442 libgcc_cmp_return_mode not always return word_mode
gcc/
PR target/63442
* optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
Modified:
trunk/gcc/ChangeLog
trunk/gcc/optabs.c
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/63442] [AArch64] ICE with ubsan/overflow-int128.c test
2014-10-02 15:20 [Bug target/63442] New: [AArch64] ICE with ubsan/overflow-int128.c test clyon at gcc dot gnu.org
` (3 preceding siblings ...)
2014-10-27 22:00 ` jiwang at gcc dot gnu.org
@ 2014-10-27 23:48 ` jiwang at gcc dot gnu.org
2014-12-04 17:55 ` yroux at gcc dot gnu.org
2014-12-28 20:49 ` david.abdurachmanov at gmail dot com
6 siblings, 0 replies; 8+ messages in thread
From: jiwang at gcc dot gnu.org @ 2014-10-27 23:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63442
Jiong Wang <jiwang at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Jiong Wang <jiwang at gcc dot gnu.org> ---
fixed by 216765.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/63442] [AArch64] ICE with ubsan/overflow-int128.c test
2014-10-02 15:20 [Bug target/63442] New: [AArch64] ICE with ubsan/overflow-int128.c test clyon at gcc dot gnu.org
` (4 preceding siblings ...)
2014-10-27 23:48 ` jiwang at gcc dot gnu.org
@ 2014-12-04 17:55 ` yroux at gcc dot gnu.org
2014-12-28 20:49 ` david.abdurachmanov at gmail dot com
6 siblings, 0 replies; 8+ messages in thread
From: yroux at gcc dot gnu.org @ 2014-12-04 17:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63442
--- Comment #7 from Yvan Roux <yroux at gcc dot gnu.org> ---
Author: yroux
Date: Thu Dec 4 17:55:00 2014
New Revision: 218387
URL: https://gcc.gnu.org/viewcvs?rev=218387&root=gcc&view=rev
Log:
2014-12-04 Yvan Roux <yvan.roux@linaro.org>
Backport from trunk r216765.
2014-10-27 Jiong Wang <jiong.wang@arm.com>
PR target/63442
* optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
Modified:
branches/linaro/gcc-4_9-branch/gcc/ChangeLog.linaro
branches/linaro/gcc-4_9-branch/gcc/optabs.c
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/63442] [AArch64] ICE with ubsan/overflow-int128.c test
2014-10-02 15:20 [Bug target/63442] New: [AArch64] ICE with ubsan/overflow-int128.c test clyon at gcc dot gnu.org
` (5 preceding siblings ...)
2014-12-04 17:55 ` yroux at gcc dot gnu.org
@ 2014-12-28 20:49 ` david.abdurachmanov at gmail dot com
6 siblings, 0 replies; 8+ messages in thread
From: david.abdurachmanov at gmail dot com @ 2014-12-28 20:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63442
David Abdurachmanov <david.abdurachmanov at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |david.abdurachmanov at gmail dot c
| |om
--- Comment #8 from David Abdurachmanov <david.abdurachmanov at gmail dot com> ---
*** Bug 64413 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-12-28 20:49 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-02 15:20 [Bug target/63442] New: [AArch64] ICE with ubsan/overflow-int128.c test clyon at gcc dot gnu.org
2014-10-13 15:46 ` [Bug target/63442] " jiwang at gcc dot gnu.org
2014-10-13 16:24 ` jiwang at gcc dot gnu.org
2014-10-14 7:55 ` ramana at gcc dot gnu.org
2014-10-27 22:00 ` jiwang at gcc dot gnu.org
2014-10-27 23:48 ` jiwang at gcc dot gnu.org
2014-12-04 17:55 ` yroux at gcc dot gnu.org
2014-12-28 20:49 ` david.abdurachmanov at gmail dot com
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).