search for: inlineassembly

Displaying 2 results from an estimated 2 matches for "inlineassembly".

2010 Jul 23
3
[LLVMdev] warnings in inline assembly with used labels and -Wunused-label
...round to avoid these warnings (without turning off -Wunused-label)? Here is a small sample code that exhibits the issue: int main() { __asm__ { MyLabel: sub ebx,8 jg MyLabel } return 0; } Compile with llvm-gcc 4.2 on MacOSX 10.6: llvm-gcc-4.2 -arch i386 -Wunused-label -fasm-blocks -o inlineassembly_llvm inlineassembly.c inlineassembly.c: In function ‘main’: inlineassembly.c:7: warning: label ‘LASM$MyLabel’ defined but not used Compile with gcc 4.2 on MacOSX 10.6: gcc -arch i386 -Wunused-label -fasm-blocks -o inlineassembly inlineassembly.c no warnings Thanks, Alexandre
2010 Jul 23
0
[LLVMdev] warnings in inline assembly with used labels and -Wunused-label
...mple code that exhibits the issue: > > int main() > { > __asm__ > { > MyLabel: > sub ebx,8 > jg MyLabel > } > > return 0; > } > > > Compile with llvm-gcc 4.2 on MacOSX 10.6: > > llvm-gcc-4.2 -arch i386 -Wunused-label -fasm-blocks -o > inlineassembly_llvm inlineassembly.c > inlineassembly.c: In function ‘main’: > inlineassembly.c:7: warning: label ‘LASM$MyLabel’ defined but not used > > Compile with gcc 4.2 on MacOSX 10.6: > > gcc -arch i386 -Wunused-label -fasm-blocks -o inlineassembly > inlineassembly.c > no warnings...