This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Optimize sprintf into strcpy if possible (take 3)
- To: Richard Henderson <rth at redhat dot com>
- Subject: Re: [PATCH] Optimize sprintf into strcpy if possible (take 3)
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Thu, 19 Apr 2001 19:06:27 +0100 (BST)
- cc: Jakub Jelinek <jakub at redhat dot com>, <gcc-patches at gcc dot gnu dot org>
On Wed, 18 Apr 2001, Richard Henderson wrote:
> On Wed, Apr 18, 2001 at 08:06:54PM +0100, Joseph S. Myers wrote:
> > > + printf ("%d\n" - 1, i); /* { dg-warning ...
> >
> > Is this a PLUS_EXPR with negative addend, or a MINUS_EXPR?
>
> Should be the former.
Running in the debugger says it is a MINUS_EXPR (and so not testing the
relevant case in the patch - which '"%d\n" + -1' would test).
--
Joseph S. Myers
jsm28@cam.ac.uk