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

Reply via email to