This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Optimize sprintf(buffer,"foo")
- From: Roger Sayle <roger at eyesopen dot com>
- To: Richard Sandiford <rsandifo at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 23 Jun 2003 13:51:43 -0600 (MDT)
- Subject: Re: [PATCH] Optimize sprintf(buffer,"foo")
Hi Richard,
> > Does anyone know why some of the gcc.c-torture/execute/string-opts-*.c
> > were moved to gcc.c-torture/execute/builtins and the others weren't?
> > Clearly static-after-extern wasn't the only consideration as almost
> > all of the remaining string-opts-*.c tests use this idiom.
>
> The idea was to move only those that had to be moved ("to avoid
> unncessary disruption"). Tests like the one above are supposed
> to fail, so it doesn't really matter how the failure happens.
Ah. Thanks for the explanation. That makes sense.
Roger
--