Disable auto-generation of strncpy on ppc?

2007-02-13 Thread Etienne Lorrain
Hello, [EMAIL PROTECTED] /cygdrive/x $ cat tmp.c typedef unsigned size_t; char *strncpy (char *pDest, const char *pSrc, size_t n) { return pDest; } [EMAIL PROTECTED] /cygdrive/x $ powerpc-eabi-gcc -v Using built-in specs. Target: powerpc-eabi Configured with: ../gcc-4.1.1/configure

Re: Disable auto-generation of strncpy on ppc?

2007-02-13 Thread Etienne Lorrain
Sorry please ignore, not enough coffee... Etienne. ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des

Re: Disable auto-generation of strncpy on ppc?

2007-02-13 Thread Ian Lance Taylor
Etienne Lorrain [EMAIL PROTECTED] writes: Is there a magic flag? I want to test the source for null pointer... This question would be appropriate on the mailing list [EMAIL PROTECTED], not on [EMAIL PROTECTED] Please take any followups gcc-help. Thanks. I don't actually understand the

Re: Disable auto-generation of strncpy on ppc?

2007-02-13 Thread Etienne Lorrain
--- Ian Lance Taylor [EMAIL PROTECTED] wrote: I don't actually understand the question. gcc is compiling the function as you wrote it. What do you want it to do differently? This has been resolved today by: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30785 I was adding code to test a