Path: utzoo!utgpu!watserv1!watmath!att!rutgers!cs.utexas.edu!swrinde!ucsd!ucbvax!bloom-beacon!eru!luth!sunic!nuug!ifi!fiol.UiB.NO!edmbv From: edmbv@fiol.UiB.NO (Bjorn Asle Valde) Newsgroups: comp.sys.next Subject: cc -O makes strings none-writeable? Keywords: gnu cc, O-flag, writable-strings Message-ID: <3321@ifi.uio.no> Date: 10 Jul 90 13:28:46 GMT Sender: news@ifi.uio.no Organization: University of Bergen, Norway. Lines: 14 Installing Larry Wall's "rrn", version 44, on the Cube gave me some odd minutes. It turns out that the -O flag to cc overrides the -fwritable-strings flag, at least that's what I observed. So, if that's the case you can't optimize if the programs tries to write into string constant? [Ok, writing into string constants is an bad idea in the first place, but so what? That's the way it's done!] Anyway, I don't like this -- combining the -O and -fwritable-strings should work... Any comments? Bjorn Asle -- Bjorn Asle Valde bav@fiol.uib.no +47 5 544214 Edb-Senteret, University of Bergen, EDMBV@NOBERGEN.EARN Fax: 544299 Thorm.gt.55, N-5008 Bergen, Norway. S=valde;OU=cc;O=uib;P=uninett;C=no