From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,a419216ae0b39f62 X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,a419216ae0b39f62 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-04-23 15:03:27 PST Xref: gmd.de comp.unix.osf.osf1:306 comp.sys.dec:7237 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!usc!sdd.hp.com!decwrl!pa.dec.com!det.dec.com!charette From: charette@ultoe.det.dec.com (Mark Charette) Newsgroups: comp.unix.osf.osf1,comp.sys.dec Subject: Re: DEC AXP OSF/1 C compilers Followup-To: comp.unix.osf.osf1,comp.sys.dec Date: 23 Apr 1993 21:54:31 GMT Organization: Digital Equipment Corporation Farmington Hills, MI Message-ID: <1r9oinINNvu@lemans.det.dec.com> References: NNTP-Posting-Host: hippy.det.dec.com X-Newsreader: TIN [version 1.1 PL9] Ajay Shekhawat (ajay@cs.buffalo.edu) wrote: : : > On a similar note: Why does the linker give a seg. fault when using the : : > -O4 or -O3 options? This is with the "cc" compiler, on a 3000/500. : : : : Fatal error in: /usr/lib/cmplrs/cc/umerge Segmentation fault Try compiling using the -c option and use ld with a -O of less than 2 for the final link. The -O option is also passed to ld, which will seg fault on large programs if it is larger that -O1. The difference in speed for the executable using -O1 instead of -O2 ends up being negligible. The bug in ld has been reported to DEC engineering. -- Mark Charette |Save plants and animals. Eat a vegetarian Fisher Engineering Systems |today. charette@ultoe.det.dec.com | (313) 280-0703 |