"Tegge, Bernd" <tegge@repas-aeg.de> writes:
> Following up on my own message. The version with full debugging support
> works flawlessly. Compiling with partial debug gives:
>>> 0 interval_accum(fcinfo = 0x14019b140) ["timestamp.c":1575, 0x1201d7848]
Hmm. The "memcpy" at that line is intended specifically to get around
any possible misaligned-pointer problem. I have a nasty feeling that
Compaq's compiler is misoptimizing the memcpy into a
load-and-store-double kind of instruction sequence. Can you pull out
the generated assembly code for that routine so we can look?
> I have no idea what array code is buggy but for now that this does not
> work with Compaq's compiler at -O4. I will try to find out, what lower
> optimization level, if any, will hide the problem.
It could indeed be an overoptimization issue. We could certainly reduce
the -O4 in template/osf (is that the one your system uses?) if that
helps.
regards, tom lane