Path: 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 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 gets a number of strings, regardless of which (if any) of the stream i/o operations are used.