This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] strlenopt improvements


On Wed, Nov 02, 2011 at 01:41:30PM +0100, Eric Botcazou wrote:
> > 2011-10-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
> >
> > 	* gcc.dg/strlenopt-22.c: New testcase.
> 
> This doesn't link if you don't have stpcpy in the libc, e.g. on Solaris.  
> 
> Here's an excerpt from the Linux man pages:
> 
> CONFORMING TO
>        This  function  is  not  part of the C or POSIX.1 standards, and is not
>        customary on Unix systems, but is not a GNU invention either.   Perhaps
>        it comes from MS-DOS.

The man page is outdated, stpcpy is a standard POSIX2008 function.
Anyway, in the other gcc.dg/strlenopt-* testcases for USE_GNU I was using
the convention that the name ended with g (i.e. strlenopt-22g.c) and
the test would start with:
/* This test needs runtime that provides stpcpy function.  */
/* { dg-do run { target *-*-linux* } } */
instead of just
/* { dg-do run } */

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]