[gnu.gcc.bug] optimization request

glenne@HPLSLA.HP.COM (Glenn Engel) (08/12/89)

When code gets optimized all variable allocation and function
invokations can be removed from the executable, However, all
char strings are kept.  Is is possible to also eliminate
char strings ?

Here's an example.

#define debug 0

main()
{
  if (debug)
   {
       int i;
       double d;
       printf("wonderful and useful information, %d, %f \n", i, d, 3.14);
   }
}

Compiling this with -O yields

#NO_APP
gcc_compiled.:
.text
LC0:
	.ascii "wonderful and useful information, %d, %f \12\0"
	.even
.globl _main
_main:
	link a6,#0
	unlk a6
	rts

--
 |  Glenn R. Engel
 |  Hewlett-Packard 
 |  (206) 335-2066
 |  glenne%hplsla@hplabs.hp.com