This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCHv2 1/9] Support for type-generic libm function implementations libm
- From: "Paul E. Murphy" <murphyp at linux dot vnet dot ibm dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 19 Sep 2016 13:23:22 -0500
- Subject: Re: [PATCHv2 1/9] Support for type-generic libm function implementations libm
- Authentication-results: sourceware.org; auth=none
- References: <cover.1471377663.git.murphyp@linux.vnet.ibm.com> <80b93b62bf3f7bb4b055dd828ed7ec404fa070ae.1471377663.git.murphyp@linux.vnet.ibm.com> <878tunakhu.fsf@linux-m68k.org>
On 09/19/2016 12:05 PM, Andreas Schwab wrote:
> On Aug 16 2016, "Paul E. Murphy" <murphyp@linux.vnet.ibm.com> wrote:
>
>> @@ -265,6 +269,29 @@ extra-objs += libieee.a ieee-math.o
>>
>> include ../Rules
>>
>> +generated += $(addsuffix .c,$(call type-foreach,$(gen-libm-calls))) \
>> + gen-libm-templates.stmp
>> +
>> +# Create wrappers in the math build directory.
>> +$(objpfx)gen-libm-templates.stmp:
>> + for gcall in $(gen-libm-calls); do \
>> + func=$${gcall%F*}$${gcall#*F}; \
>> + for type in $(foreach t,$(types),$(t)__$(type-$(t)-suffix)); do \
>> + suff=$${type#*__}; \
>> + type=$${type%__*}; \
>> + file=$(objpfx)$${gcall%F*}$${suff}$${gcall#*F}.c; \
>> + ( \
>> + echo "#include <math-type-macros-$${type}.h>"; \
>> + echo "#include <$${func}_template.c>"; \
>> + ) > $${file}; \
>> + done; \
>> + done; \
>> + echo > $(@)
>
> That should probably depend on Makefile so that it is rerun when
> gen-libm-calls changes.
>
> Andreas.
>
Indeed. I'll post a patch once I commit the three pending patches, one
of which adds a dependency for the output directory too.