This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: GCC 4.8 and -ftree-loop-distribute-patterns.
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Rich Felker <dalias at aerifal dot cx>
- Cc: Adhemerval Zanella <azanella at linux dot vnet dot ibm dot com>, <libc-alpha at sourceware dot org>
- Date: Fri, 19 Apr 2013 16:49:34 +0000
- Subject: Re: GCC 4.8 and -ftree-loop-distribute-patterns.
- References: <511D4F82 dot 3080604 at redhat dot com> <515F4565 dot 6030301 at linux dot vnet dot ibm dot com> <20130405215301 dot GG20323 at brightrain dot aerifal dot cx>
On Fri, 5 Apr 2013, Rich Felker wrote:
> When building "part of the implementation" such a libc, -ffreestanding
> should be passed to the compiler to let it know it cannot assume the
> existence of an underlying hosted implementation. This should disable
> all such optimizations. If it doesn't, it's a bug in the compiler.
-ffreestanding is documented to require memcpy, memmove, memset, memcmp
and in certain circumstances abort, in addition to libgcc functions, from
the runtime environment.
--
Joseph S. Myers
joseph@codesourcery.com