🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2104

unused literal constants

#2104
From: Ken Raeburn
Date: Sun, 01 Jan 1989 09:10
14 lines
906 bytes
Although keeping unreferenced string variables is sometimes a
reasonable thing (as in the case of RCS ident strings), it would
probably be useful to eliminate strings referenced only in unused
static inline functions.  For example, the file

    static inline frob (int a, int b, int c) {
	printf ("%d %d %d\n", a, b, c);
	return 7;
    }

results in an object file containing one string; any C++ file which
uses <stream.h> gets a number of strings, regardless of which (if any)
of the stream i/o operations are used.
Technical Details
Message-ID: <8901010910.AA02003@MULTICS.MIT.EDU>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!uunet!tut.cis.ohio-state.edu!ATHENA.MIT.EDU!raeburn

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!uunet!tut.cis.ohio-state.edu!ATHENA.MIT.EDU!raeburn
From: raeburn@ATHENA.MIT.EDU (Ken Raeburn)
Newsgroups: gnu.gcc.bug
Subject: unused literal constants
Message-ID: <8901010910.AA02003@MULTICS.MIT.EDU>
Date: 1 Jan 89 09:10:15 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 14