[Bug c++/68407] New: Code generation failure, "rep ret" in .s file
bugzilla@poradnik-webmastera.com
gcc-bugzilla@gcc.gnu.org
Wed Nov 18 11:26:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68407
Bug ID: 68407
Summary: Code generation failure, "rep ret" in .s file
Product: gcc
Version: 4.8.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: bugzilla@poradnik-webmastera.com
Target Milestone: ---
Created attachment 36752
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36752&action=edit
Assembler output
Test code:
int testfunc(const char *src, int dstsize)
{
int dstlen = 0;
for (; '\0' != *src; ++dstlen, ++src)
{}
return dstlen;
}
int main()
{
return 0;
}
Compilation messages:
$ /path/gcc/4.8.2/bin/g++ -o test2 test2.c -O2 -save-temps -v
Using built-in specs.
COLLECT_GCC=/path/gcc/4.8.2/bin/g++
COLLECT_LTO_WRAPPER=/path/gcc/4.8.2/libexec/gcc/x86_64-unknown-linux-gnu/4.8.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.8.2/configure --prefix=/path/gcc/4.8.2
--enable-languages=c,c++ --disable-multilib
Thread model: posix
gcc version 4.8.2 (GCC)
COLLECT_GCC_OPTIONS='-o' 'test2' '-O2' '-save-temps' '-v' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'
/path/gcc/4.8.2/libexec/gcc/x86_64-unknown-linux-gnu/4.8.2/cc1plus -E -quiet
-v -D_GNU_SOURCE test2.c -mtune=generic -march=x86-64 -O2 -fpch-preprocess -o
test2.ii
ignoring nonexistent directory
"/path/gcc/4.8.2/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/path/gcc/4.8.2/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../include/c++/4.8.2
/path/gcc/4.8.2/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../include/c++/4.8.2/x86_64-unknown-linux-gnu
/path/gcc/4.8.2/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../include/c++/4.8.2/backward
/path/gcc/4.8.2/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include
/usr/local/include
/path/gcc/4.8.2/include
/path/gcc/4.8.2/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include-fixed
/usr/include
End of search list.
COLLECT_GCC_OPTIONS='-o' 'test2' '-O2' '-save-temps' '-v' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'
/path/gcc/4.8.2/libexec/gcc/x86_64-unknown-linux-gnu/4.8.2/cc1plus
-fpreprocessed test2.ii -quiet -dumpbase test2.c -mtune=generic -march=x86-64
-auxbase test2 -O2 -version -o test2.s
GNU C++ (GCC) version 4.8.2 (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.8.2, GMP version 4.3.2, MPFR version 2.4.2,
MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (GCC) version 4.8.2 (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.8.2, GMP version 4.3.2, MPFR version 2.4.2,
MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: f81a0520a752eb4b12c9eb77ebc16ba8
COLLECT_GCC_OPTIONS='-o' 'test2' '-O2' '-save-temps' '-v' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'
as -v --64 -o test2.o test2.s
GNU assembler version 2.20.51.0.2 (x86_64-redhat-linux) using BFD version
version 2.20.51.0.2-5.28.el6 20091009
test2.s: Assembler messages:
test2.s:19: Error: expecting string instruction after `rep'
test2.s:21: Error: expecting string instruction after `rep'
More information about the Gcc-bugs
mailing list