Re: MIPS GCC always generates outline memcpy when optimizing for size?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2014-02-02 at 14:19 +0200, Anders Montonen wrote:
> Hi,
> 
> It seems that GCC configured for MIPS will always generate a call to memcpy when
> optimizing for size, is this expected behaviour? I have encountered this both with
> a self-built GCC 4.8.1 (configured for mipsel-sde-elf) and Microchip's XC32 compiler,
> which is based on GCC 4.5.2.

This is related to the MIPS -mmemcpy flag.  Try using -mno-memcpy with
-Os and you should get inlined code for your __builtin_memcpy use.

Steve Ellcey






[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux