This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/29569] New: use function name as operand in asm inline statement


(stevenhu) / [159] > cat a.c
void func(){}
main(){
int a,b;
/*asm("aaaa %ecx %eax");*/
asm("add %0,%1,%2":"=r"(a):"m"(func),"m"(b));
}
(stevenhu) / [160] > gcc -S a.c
a.c: In function `main':
a.c:6: Internal compiler error in instantiate_virtual_regs_1, at
function.c:3972
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
(stevenhu) / [161] >


-- 
           Summary: use function name as operand in asm inline statement
           Product: gcc
           Version: 3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: stevenhuca at hotmail dot com


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]