Path: utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!CS.UTEXAS.EDU!oakhill!dingus!murf From: oakhill!dingus!murf@CS.UTEXAS.EDU (Steve Murphy) Newsgroups: gnu.gcc.bug Subject: One more optimizer option? Message-ID: <8910191455.AA06760@dingus.sun.com> Date: 19 Oct 89 14:55:48 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 15 The idea occurred to me: Would it not be good if static functions that are unreference within a file be deleted by the optimizer? I know the compiler knows they are unreferenced; it issues messages about them if -Wunused is specified. If this makes people nervous, how about the option -fdelUnrefdStatFuncs or some such? I've got autogenerated code where this would drop nearly a quarter meg from the size of the binary! I know, it's stupid, I think so too, but it's machine generated, and of course, I don't have any access to the source for the generator. They are generated "just in case", but not used in most files. murf