This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/29569] New: use function name as operand in asm inline statement
- From: "stevenhuca at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Oct 2006 18:55:36 -0000
- Subject: [Bug c/29569] New: use function name as operand in asm inline statement
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
(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