Article View: gnu.gcc.bug
Article #2104unused literal constants
From: Ken Raeburn
Date: Sun, 01 Jan 1989 09:10
Date: Sun, 01 Jan 1989 09:10
14 lines
906 bytes
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!raeburnShow 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