[PATCH] Make copy of <bits/std_abs.h> from GCC 7 [BZ #21573]
H.J. Lu
hjl.tools@gmail.com
Thu Sep 7 17:29:00 GMT 2017
On Tue, Jun 13, 2017 at 1:21 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Tue, Jun 13, 2017 at 1:13 PM, Florian Weimer <fweimer@redhat.com> wrote:
>> On 06/13/2017 01:54 PM, H.J. Lu wrote:
>>> - echo "#include <$1>" | $CXX -M -MP -x c++ - | sed -n "/$1:/{s/:\$//;p}"
>>> + echo "#include <$1>" | $CXX -M -MP -x c++ - | sed -n "\,$1:,{s/:\$//;p}"
>>> }
>>> CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)"
>>> + # Also make a copy of <bits/std_abs.h> from GCC 7 to prevent it from
>>> + # including /usr/include/stdlib.h.
>>> + CXX_CSTDLIB_HEADER="$CXX_CSTDLIB_HEADER $(find_cxx_header bits/std_abs.h)"
>>
>> I think the attached patch is needed to suppress the error message if
>> the header does not exist. (Regenerated configure file not shown in the
>> patch.)
>>
>
> LGTM.
>
Here is a patch to backport these 2 patches to 2.25 branch. Any
comments?
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-copy-of-bits-std_abs.h-from-GCC-7-BZ-21573.patch
Type: text/x-patch
Size: 4059 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20170907/7dc80e31/attachment.bin>
More information about the Libc-alpha
mailing list