This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Creating a va_list dynamically?
- To: dewar at gnat dot com, jsm28 at cam dot ac dot uk
- Subject: Re: Creating a va_list dynamically?
- From: dewar at gnat dot com (Robert Dewar)
- Date: Mon, 9 Oct 2000 14:23:40 -0400 (EDT)
- Cc: gcc at gcc dot gnu dot org, ghazi at caip dot rutgers dot edu
<<For hosted implementations, fprintf is a reserved identifier in ISO C. If
you specify -ffreestanding, that implies -fno-builtin and so will turn off
this optimization.
>>
OK, so most certainly it *is* ok to do this optimization. I must say I
wonder how often constant arguments appear in fprinft. It would
be nice to measure whether this opimtization ever is worth while.