This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/2] soft-fp: Automatically create KF files from TF ones
- From: Michael Meissner <meissner at linux dot vnet dot ibm dot com>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: Tulio Magno Quites Machado Filho <tuliom at linux dot vnet dot ibm dot com>, libc-alpha at sourceware dot org, munroesj at linux dot vnet dot ibm dot com, meissner at linux dot vnet dot ibm dot com, Ulrich dot Weigand at de dot ibm dot com, dje dot gcc at gmail dot com, jakub at redhat dot com, carlos at redhat dot com
- Date: Mon, 26 Oct 2015 14:44:11 -0400
- Subject: Re: [PATCH 1/2] soft-fp: Automatically create KF files from TF ones
- Authentication-results: sourceware.org; auth=none
- References: <cover dot 1445882428 dot git dot tuliom at linux dot vnet dot ibm dot com> <8e65d35c381c163cad808f089d8a94666aa0c2a6 dot 1445882428 dot git dot tuliom at linux dot vnet dot ibm dot com> <alpine dot DEB dot 2 dot 10 dot 1510261815450 dot 3065 at digraph dot polyomino dot org dot uk>
On Mon, Oct 26, 2015 at 06:16:38PM +0000, Joseph Myers wrote:
> On Mon, 26 Oct 2015, Tulio Magno Quites Machado Filho wrote:
>
> > Use a sed script to automatically generate KF files based on their
> > respective TF.
> >
> > 2015-10-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
> > Michael Meissner <meissner@linux.vnet.ibm.com>
> >
> > * soft-fp/Makefile: Generate KF files from TF.
> > * soft-fp/.gitignore: Ignore auto-generated files.
>
> Even in GCC, creating generated files like that in the source directory
> would be wrong. If you can create them with a sed script, you can do so
> at build time and put the files in the build directory, not the source
> directory (which should be able to be on a read-only filesystem).
In my original patch for libgcc, it places the created .c files in the build
directory. I tend to think it is better to put it in the build directory.
--
Michael Meissner, IBM
IBM, M/S 2506R, 550 King Street, Littleton, MA 01460-6245, USA
email: meissner@linux.vnet.ibm.com, phone: +1 (978) 899-4797