Message-Id: <1.5.4.32.19961003225301.00701b94@mail.interlog.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Thu, 03 Oct 1996 18:53:01 -0400 To: djgpp AT delorie DOT com From: Farhan Yousaf Subject: Optimization and Inline ASM Dear DJGPPers, I am puzzled at this error: c:/djgpp/tmp\cccaaaaa: Assembler messages: c:/djgpp/tmp\cccaaaaa:66: Fatal error:Symbol loc1 already defined. This error only occurs if I use the optimize switch: gcc myfile.cpp -O3 Compiles flawlessly if I use just: gcc myfile.cpp The code giving me the problem is: void myproc() { __asm__ __volatile__(" cli\n movw $0x3DA, %dx\n loc1:\n inb %dx, %al\n andb $8, %al\n jnz loc1\n loc2:\n inb %dx, %al\n andb $8, %al\n jz loc2\n"); } What am I doing wrong? Help me, or I'll be bold soon! This error has driven me NUTS!!! -- Farhan Yousaf "We were never feeling bored PSBFreak because we were never being boring." PSB, Hit Music: http://www.interlog.com/~farhany/