🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #734

One more optimizer option?

#734
From: Steve Murphy
Date: Thu, 19 Oct 1989 14:55
15 lines
1043 bytes

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
Technical Details
Message-ID: <8910191455.AA06760@dingus.sun.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!CS.UTEXAS.EDU!oakhill!dingus!murf

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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