public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug inline-asm/34833]  New: rejects "i"(&var) with -fpic -m32
@ 2008-01-17 18:55 stsp at users dot sourceforge dot net
  2008-01-17 19:06 ` [Bug inline-asm/34833] " stsp at users dot sourceforge dot net
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: stsp at users dot sourceforge dot net @ 2008-01-17 18:55 UTC (permalink / raw)
  To: gcc-bugs

Hi.

Opening per suggestion in Bug 23200.
Not entirely sure if this is really a bug,
but it looks like the one.

The following program:
---
static char var;
int main()
{
    asm volatile ("" :: "i"(&var));
    return 0;
}
---

gives this when compiled with -fpic -m32:
---
asvar1.c: In function 'main':
asvar1.c:4: warning: asm operand 0 probably doesn't match constraints
asvar1.c:4: error: impossible constraint in 'asm'
---

Without -m32 it compiles.
On what targets the relocations are supported?


-- 
           Summary: rejects "i"(&var) with -fpic -m32
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: inline-asm
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: stsp at users dot sourceforge dot net
  GCC host triplet: x86_64


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


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

end of thread, other threads:[~2008-01-31 19:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-17 18:55 [Bug inline-asm/34833] New: rejects "i"(&var) with -fpic -m32 stsp at users dot sourceforge dot net
2008-01-17 19:06 ` [Bug inline-asm/34833] " stsp at users dot sourceforge dot net
2008-01-18 22:25 ` pinskia at gcc dot gnu dot org
2008-01-19 10:41 ` stsp at users dot sourceforge dot net
2008-01-19 12:48 ` pinskia at gcc dot gnu dot org
2008-01-19 15:32 ` stsp at users dot sourceforge dot net
2008-01-31 19:52 ` rth at gcc dot gnu 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).