abadona / qsimscan

Automatically exported from code.google.com/p/qsimscan
MIT License
13 stars 2 forks source link

Compile error on Ubuntu #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
 g++  -g0 -O2  -D__x86__ -I.  -c align.s
align.cpp: Assembler messages:                                       
align.cpp:428: Error: symbol `loop_1' is already defined             
align.cpp:444: Error: symbol `no_upd' is already defined             
align.cpp:473: Error: symbol `no_upd_1' is already defined           
align.cpp:502: Error: symbol `no_upd_2' is already defined           
align.cpp:531: Error: symbol `no_upd_3' is already defined           
align.cpp:428: Error: symbol `loop_1' is already defined             
align.cpp:444: Error: symbol `no_upd' is already defined             
align.cpp:473: Error: symbol `no_upd_1' is already defined           
align.cpp:502: Error: symbol `no_upd_2' is already defined           
align.cpp:531: Error: symbol `no_upd_3' is already defined       

Original issue reported on code.google.com by dkaznad...@gmail.com on 14 Jul 2009 at 4:45

GoogleCodeExporter commented 9 years ago
The error is caused by inlining the function with non-local labels in inline 
assembly.
Fixed by explicitely suppressing inlining with __attribute__ ((noinline))

Original comment by dkaznad...@gmail.com on 14 Jul 2009 at 4:46