public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/57586] New: ICE when expanding volatile asm using unaligned pointer
@ 2013-06-11 14:24 jgreenhalgh at gcc dot gnu.org
  2013-06-11 14:25 ` [Bug target/57586] " jgreenhalgh at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: jgreenhalgh at gcc dot gnu.org @ 2013-06-11 14:24 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 57586
           Summary: ICE when expanding volatile asm using unaligned
                    pointer
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jgreenhalgh at gcc dot gnu.org

Created attachment 30290
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30290&action=edit
Reduced testcase

Using built-in specs.
COLLECT_GCC=../build-arm-none-eabi/install/bin/arm-none-eabi-gcc
COLLECT_LTO_WRAPPER=/work/build-arm-none-eabi/install/libexec/gcc/arm-none-eabi/4.9.0/lto-wrapper
Target: arm-none-eabi
Configured with: /work/src/gcc/configure --target=arm-none-eabi
--prefix=/work/build-arm-none-eabi/install
--with-gmp=/work/build-arm-none-eabi/host-tools
--with-mpfr=/work/build-arm-none-eabi/host-tools
--with-mpc=/work/build-arm-none-eabi/host-tools --with-pkgversion=unknown
--disable-shared --disable-nls --disable-threads --disable-tls
--enable-checking=yes --enable-languages=c,c++ --with-newlib
Thread model: single
gcc version 4.9.0 20130326 (experimental) (unknown)

../build-arm-none-eabi/install/bin/arm-none-eabi-gcc ../testcases/pr-reduced.c
-O1
../testcases/pr-reduced.c: In function 'foo':
../testcases/pr-reduced.c:12:3: error: output number 0 not directly addressable
   __asm__ __volatile__("": "+m" (c->x) : "r" (&c->x) : );
   ^
../testcases/pr-reduced.c:12:3: internal compiler error: in
expand_asm_operands, at stmt.c:910
0x8c1be8 expand_asm_operands
    /work/oban-dev/src/gcc/gcc/stmt.c:910
0x8c28a7 expand_asm_stmt(gimple_statement_d*)
    /work/oban-dev/src/gcc/gcc/stmt.c:1151
0x5dfe5f expand_gimple_stmt_1
    /work/oban-dev/src/gcc/gcc/cfgexpand.c:2154
0x5dfe5f expand_gimple_stmt
    /work/oban-dev/src/gcc/gcc/cfgexpand.c:2309
0x5e1b69 expand_gimple_basic_block
    /work/oban-dev/src/gcc/gcc/cfgexpand.c:4143
0x5e4a33 gimple_expand_cfg
    /work/oban-dev/src/gcc/gcc/cfgexpand.c:4662
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.

No difference with -mno-unaligned-access or -maligned-access.

A manifestation of this bug prevents a Linux Kernel build.


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

end of thread, other threads:[~2013-10-01  6:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-11 14:24 [Bug target/57586] New: ICE when expanding volatile asm using unaligned pointer jgreenhalgh at gcc dot gnu.org
2013-06-11 14:25 ` [Bug target/57586] " jgreenhalgh at gcc dot gnu.org
2013-06-11 14:53 ` jgreenhalgh at gcc dot gnu.org
2013-06-11 14:56 ` rguenth at gcc dot gnu.org
2013-06-11 15:25 ` jgreenhalgh at gcc dot gnu.org
2013-06-11 15:28 ` rguenther at suse dot de
2013-06-14  6:43 ` [Bug middle-end/57586] " amodra at gmail dot com
2013-09-24 11:32 ` amodra at gcc dot gnu.org
2013-09-24 11:34 ` amodra at gmail dot com
2013-09-29 22:12 ` bernd.edlinger at hotmail dot de
2013-10-01  6:40 ` amodra 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).