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

Re: [Minios-devel] [PATCH ARM v9 1/3] mini-os: fix compiling with debug=n



On 25 Jun 2015, at 16:49, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote:
> 
> On Thu, 2015-06-25 at 14:48 +0100, Thomas Leonard wrote:
>> Without -fno-tree-loop-distribute-patterns, gcc -O3 recognises that our
>> "memset" is doing a memset operation and tries to make it call the
>> standard "memset", creating a loop.
> 
> Isn't this what -nostdlib and such like are for?
> 
> In any case if we are to go down this route I think we'd be better off
> applying it only to lib/string.c or even better just to the memset
> function, if there is a way to do that.

I think -nostdlib is distinct from -fno-builtins.  If the issue is
convincing GCC to not replace the memset with a builtin one, would
-fno-builtin-memset be more appropriate here?

-anil


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/minios-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.