This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: target/5505: Doubts about a patch for OSF
Richard B. Kreckel writes:
> Rainer, you probably know by now that this whole issue has nothing to do
> at all with CLN? It seems like your patch breaks anything when using
most likely, yes.
> -fno-exceptions. Attached is a trial program that only uses doubles and
Only in combination with -O2, it seems.
> some STL containers. (Sorry for not boiling it down from 100 to 10 lines,
> I have unfortunately very little time right now.)
Please try to do so: my knowledge of C++ is close to zero, so a minimal
testcase would help enormously.
> Can you confirm this? Otherwise we are back with the theory that my boxen
> are broken / patched wrongly...
Not yet: I get a SEGV even if compiling without any special options:
> g++ -o minor minor.cc
> ./minor
permanent of 6x6-matrix
c==4Segmentation fault
The crash happens in minor.c, l. 80:
80 Pkey[j] = Pkey[j-1]+1;
j = 0 at this point, so Pkey[j-1] is out of bounds. The crash happens when
compiling with Compaq cxx as well.
Rainer