public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/57909] New: [ARM] ICE with internal memcpy and -mno-unaligned-access
@ 2013-07-16 14:58 yvan.roux at linaro dot org
  2013-07-16 15:08 ` [Bug target/57909] " yvan.roux at linaro dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: yvan.roux at linaro dot org @ 2013-07-16 14:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57909

            Bug ID: 57909
           Summary: [ARM] ICE with internal memcpy and
                    -mno-unaligned-access
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: yvan.roux at linaro dot org

Created attachment 30510
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30510&action=edit
reduced test case

compilling the attached reduced test case with the following command line
produces an ICE.

arm-linux-gnueabi-gcc -marm -march=armv7-a -mtune=cortex-a15
-mno-unaligned-access -c -o panic.o panic.i

panic.i: In function 'bug':
panic.i:10:1: error: unrecognizable insn:
 }
 ^
(insn 9 8 10 2 (set (reg:SI 114)
        (zero_extend:SI (unspec:HI [
                    (mem/u/c:HI (reg:SI 113) [0 MEM[(void *)"aa"]+0 S2 A32])
                ] UNSPEC_UNALIGNED_LOAD))) panic.i:9 -1
     (nil))
panic.i:10:1: internal compiler error: in extract_insn, at recog.c:2150


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/57909] [ARM] ICE with internal memcpy and -mno-unaligned-access
  2013-07-16 14:58 [Bug target/57909] New: [ARM] ICE with internal memcpy and -mno-unaligned-access yvan.roux at linaro dot org
@ 2013-07-16 15:08 ` yvan.roux at linaro dot org
  2013-07-16 15:11 ` yvan.roux at linaro dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: yvan.roux at linaro dot org @ 2013-07-16 15:08 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57909

--- Comment #1 from Yvan Roux <yvan.roux at linaro dot org> ---
The issue is that an UNSPEC_UNALIGNED_LOAD insn is emitted whereas the flag
-mno-unaligned-access is passed, which implies that this insn is not
recognized.

The generation of the unaligned load is made in the gen_movmem_ldrd_strd
function introduced at rev198970, there is a test that prevent doing calls to
gen_unaligned_loadhiu when unaligned access are not authorized and src and dst
are unaligned, but if they are aligned the call is made. The attached patch
fixes the issue, but is still under validation.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/57909] [ARM] ICE with internal memcpy and -mno-unaligned-access
  2013-07-16 14:58 [Bug target/57909] New: [ARM] ICE with internal memcpy and -mno-unaligned-access yvan.roux at linaro dot org
  2013-07-16 15:08 ` [Bug target/57909] " yvan.roux at linaro dot org
@ 2013-07-16 15:11 ` yvan.roux at linaro dot org
  2013-07-17  7:48 ` yvan.roux at linaro dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: yvan.roux at linaro dot org @ 2013-07-16 15:11 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57909

--- Comment #2 from Yvan Roux <yvan.roux at linaro dot org> ---
Created attachment 30511
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30511&action=edit
a first fix


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/57909] [ARM] ICE with internal memcpy and -mno-unaligned-access
  2013-07-16 14:58 [Bug target/57909] New: [ARM] ICE with internal memcpy and -mno-unaligned-access yvan.roux at linaro dot org
  2013-07-16 15:08 ` [Bug target/57909] " yvan.roux at linaro dot org
  2013-07-16 15:11 ` yvan.roux at linaro dot org
@ 2013-07-17  7:48 ` yvan.roux at linaro dot org
  2013-07-17 13:33 ` yvan.roux at linaro dot org
  2013-07-17 15:28 ` yvan.roux at linaro dot org
  4 siblings, 0 replies; 6+ messages in thread
From: yvan.roux at linaro dot org @ 2013-07-17  7:48 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57909

--- Comment #3 from Yvan Roux <yvan.roux at linaro dot org> ---
Validation ends without any regression on ARM targets (armv5, a9, a9hf, a15).


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/57909] [ARM] ICE with internal memcpy and -mno-unaligned-access
  2013-07-16 14:58 [Bug target/57909] New: [ARM] ICE with internal memcpy and -mno-unaligned-access yvan.roux at linaro dot org
                   ` (2 preceding siblings ...)
  2013-07-17  7:48 ` yvan.roux at linaro dot org
@ 2013-07-17 13:33 ` yvan.roux at linaro dot org
  2013-07-17 15:28 ` yvan.roux at linaro dot org
  4 siblings, 0 replies; 6+ messages in thread
From: yvan.roux at linaro dot org @ 2013-07-17 13:33 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57909

Yvan Roux <yvan.roux at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Yvan Roux <yvan.roux at linaro dot org> ---
Fix committed at rev. 201005


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/57909] [ARM] ICE with internal memcpy and -mno-unaligned-access
  2013-07-16 14:58 [Bug target/57909] New: [ARM] ICE with internal memcpy and -mno-unaligned-access yvan.roux at linaro dot org
                   ` (3 preceding siblings ...)
  2013-07-17 13:33 ` yvan.roux at linaro dot org
@ 2013-07-17 15:28 ` yvan.roux at linaro dot org
  4 siblings, 0 replies; 6+ messages in thread
From: yvan.roux at linaro dot org @ 2013-07-17 15:28 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57909

--- Comment #6 from Yvan Roux <yvan.roux at linaro dot org> ---
Nice feature, I'll try to remember it ;)
Thanks


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-07-17 15:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-16 14:58 [Bug target/57909] New: [ARM] ICE with internal memcpy and -mno-unaligned-access yvan.roux at linaro dot org
2013-07-16 15:08 ` [Bug target/57909] " yvan.roux at linaro dot org
2013-07-16 15:11 ` yvan.roux at linaro dot org
2013-07-17  7:48 ` yvan.roux at linaro dot org
2013-07-17 13:33 ` yvan.roux at linaro dot org
2013-07-17 15:28 ` yvan.roux at linaro dot 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).