cxx 6.4 optimizer problem

From: Tobias Ernst <tobi_at_physcip.uni-stuttgart.de>
Date: Fri, 27 Jul 2001 17:15:25 +0200

Hi!

I think I have encountered a bug in this compiler from CXX64T01.tar:

Compaq C++ T6.4-001 for Digital UNIX V5.0 (Rev. 910)
Compiler Driver T6.4-001 (cxx) cxx Driver

I thought this was the latest cxx compiler from Compaq, but now I am not so
sure, since I see that for version 6.32 there are newer tar files available
as for this 6.4 version !? Which one should I be using? Is T6.4-001 a beta
test version? If so, where to report bugs?

The bug is as follows: Use the .cc file found below and compile it using

cxx -fast -O4 -tune host -assume noaccuracy_sensitive -MD \
  -nopure_cname -noimplicit_include test.cc

The output of the program should be "7.7", but if compiled as shown above,
it is "NaNQ". The correct result of 7.7 is obtained when using -O3 instead
of -O4, or when removing the comment signs before the one "clog <<"
statement as seen in the source, or when using cxx V6.3-001 instead.

Kind Regards,
Tobias Ernst.

Received on Fri Jul 27 2001 - 15:16:28 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT