public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/50305] New: Inline asm reload failure when building Linux kernel
@ 2011-09-06 17:07 uweigand at gcc dot gnu.org
  2011-09-06 17:10 ` [Bug target/50305] " uweigand at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: uweigand at gcc dot gnu.org @ 2011-09-06 17:07 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50305
           Summary: Inline asm reload failure when building Linux kernel
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: uweigand@gcc.gnu.org
            Target: arm-linux-gnueabi


Created attachment 25204
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25204
Reduced test case

Building the Linux kernel with current mainline fails with certain sets of
options due to a reload failure on an atomic.h inline asm.

The attached test case reproduces the problem when compiled with
  -O2 -fno-omit-frame-pointer -marm -march=armv7-a

core.i: In function ‘event_alloc’:
core.i:34:2: error: ‘asm’ operand requires impossible reload
core.i:34:2: error: ‘asm’ operand requires impossible reload

Note that while the inline asm may be somewhat inefficient (enforcing a "+Qo"
constraint on an operand that is never used in the assembly), there is nothing
invalid about the set of constraints (and there are enough registers
available).

The problem seems instead to be caused by unfortunate interactions between
ARM's legitimize_reload_address routine and subsequent iterations through
find_reloads common code.


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

end of thread, other threads:[~2011-10-06 11:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-06 17:07 [Bug target/50305] New: Inline asm reload failure when building Linux kernel uweigand at gcc dot gnu.org
2011-09-06 17:10 ` [Bug target/50305] " uweigand at gcc dot gnu.org
2011-09-11 22:11 ` michael.hope at linaro dot org
2011-10-06 11:51 ` uweigand at gcc dot gnu.org
2011-10-06 11:53 ` uweigand 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).