http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57017
Bug #: 57017 Summary: «Error: expecting string instruction after `rep'» in code w/o inline assembly Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: ave...@email.arizona.edu Compiling code without inline assembly gives an error: libtool: compile: gcc -std=gnu99 -DPACKAGE_NAME=\"libblkmaker\" -DPACKAGE_TARNAME=\"libblkmaker\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"libblkmaker 0.1\"" -DPACKAGE_BUGREPORT=\"luke_libblkma...@dashjr.org\" -DPACKAGE_URL=\"http://gitorious.org/bitcoin/libblkmaker\" -DPACKAGE=\"libblkmaker\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -O3 -O3 -MT blkmaker.lo -MD -MP -MF .deps/blkmaker.Tpo -c blkmaker.c -fPIC -DPIC -o .libs/blkmaker.o /tmp/ccot8mMw.s: Assembler messages: /tmp/ccot8mMw.s:529: Error: expecting string instruction after `rep' However, disabling inline assembly "-fno-asm" only fixes the problem when "-O3" is not used. The error always occurs when not specifying "-fno-asm".