[Bug tree-optimization/26570] -fprofile-generate -fprofile-use cause memory corruption immediately
nmiell at comcast dot net
gcc-bugzilla@gcc.gnu.org
Sun Mar 5 23:31:00 GMT 2006
------- Comment #1 from nmiell at comcast dot net 2006-03-05 23:31 -------
On FC4 AMD64, compiling:
#include <algorithm>
void rotate(int x[3])
{
std::rotate(&x[0], &x[1], &x[2]);
}
int main(int argc, char* argv[])
{
int x[3] = { 0, 1, 2 };
rotate(x);
return 0;
}
with: g++ -O2 -fprofile-use rotate.cpp -o rotate
using: g++ (GCC) 4.0.2 20051125 (Red Hat 4.0.2-8)
results in:
/usr/lib/gcc/x86_64-redhat-linux/4.0.2/../../../../include/c++/4.0.2/bits/stl_algo.h:
In function Â_EuclideanRingElement std::__gcd(_EuclideanRingElement,
_EuclideanRingElement) [with _EuclideanRingElement = long int]Â:
/usr/lib/gcc/x86_64-redhat-linux/4.0.2/../../../../include/c++/4.0.2/bits/stl_algo.h:1523:
internal compiler error: Floating point exception
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/cctkWvyt.out file, please attach this to
your bugreport.
--
nmiell at comcast dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nmiell at comcast dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26570
More information about the Gcc-bugs
mailing list