Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* 5.1b cc optimizer problem?
@ 2003-08-20 23:50 Tim Mooney
  2003-08-21 12:55 ` Andrew Duane USG
  0 siblings, 1 reply; 4+ messages in thread
From: Tim Mooney @ 2003-08-20 23:50 UTC (permalink / raw)


I use the Tru64 cc compiler exclusively for building open source
software, even stuff that isn't performance-sensitive (where cc
really beats a compiler like gcc, which I'm not knocking at all).

Since upgrading to 5.1b from 5.1, I've noted inexplicable application
crashes with several locally-compiled apps, and although it would be
difficult to prove, it seems to be an optimizer problem in the compiler.

Take for example pine, from UW (ftp://ftp.cac.washington.edu/pine).  If
I run version 4.53 compiled under 5.1 on my 5.1b box, it works fine.  If
I recompile 4.53 in the default way (build osf) on my 5.1b box, it segfaults
in libc's strlen(), called from the pine function format_keymenu().  If I
modify the necessary makefiles to remove the `-O2' and rebuild, it works
fine.

Same is true for the latest version of pine, 4.56.  I've seen otherwise
unexplainable crashes from other apps too, but most of them are larger and
harder to be certain where the problem is.

I realize that turning on optimization in the compiler can in some cases
trigger subtle bugs in the code of an app you're compiling, but my experience
and instincts tell me that isn't what's happening here.

I'm current with relevant OS patches, and cc says it's:

Compaq C V6.5-011 on Compaq Tru64 UNIX V5.1B (Rev. 2650)
Compiler Driver V6.5-003 (sys) cc Driver

What I'm wondering is if anyone has noticed similar problems with optimization
and the 5.1b C compiler?

Thanks!

Tim
-- 
Tim Mooney                              mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-09-02  4:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-20 23:50 5.1b cc optimizer problem? Tim Mooney
2003-08-21 12:55 ` Andrew Duane USG
2003-08-23 15:02   ` Jerry Feldman
2003-09-02  4:19   ` Tim Mooney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox