From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,db8cc6c7f9c6a4d9,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-08-20 16:50:20 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: mooney@zorak.(none) (Tim Mooney) Newsgroups: comp.unix.tru64 Subject: 5.1b cc optimizer problem? Date: Wed, 20 Aug 2003 23:50:19 -0000 Organization: Greymoon Consulting, LLC. Message-ID: X-Newsreader: trn 4.0-test74 (May 26, 2000) Originator: mooney@zorak.(none) (Tim Mooney) X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.unix.tru64:10717 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