* [PATCH] remove invalid "tail +16c"
@ 2016-11-23 6:26 ma.jiang
2016-12-01 23:03 ` Jeff Law
0 siblings, 1 reply; 4+ messages in thread
From: ma.jiang @ 2016-11-23 6:26 UTC (permalink / raw)
To: gcc-patches
Hi all,
In "config/acx.m4", there are still some "tail +16c" which are invalid
on POSIX systems.
In my opinion, all "tail +16c" should be changed to "tail -c +16"
directly, as most systems has accept the latter.
And, to skip first 16 bytes, we should use "tail -c +17" instead of
"tail -c +16".
* config/acx.m4:Change "tail +16c" to "tail -c +17".
* configure: Regenerate.
--- gcc-6.2.0/config/acx.m4 2011-12-18 17:58:37.000000000 +0800
+++ gcc-6.2.0-bak/config/acx.m4 2016-11-23 10:56:21.065817691 +0800
@@ -404,7 +404,7 @@ AC_DEFUN([ACX_PROG_CMP_IGNORE_INITIAL],
[AC_CACHE_CHECK([how to compare bootstrapped objects],
gcc_cv_prog_cmp_skip,
[ echo abfoo >t1
echo cdfoo >t2
- gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 >
tmp-foo2; cmp tmp-foo1 tmp-foo2'
+ gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 >
tmp-foo2; cmp tmp-foo1 tmp-foo2'
if cmp t1 t2 2 2 > /dev/null 2>&1; then
if cmp t1 t2 1 1 > /dev/null 2>&1; then
:
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] remove invalid "tail +16c"
2016-11-23 6:26 [PATCH] remove invalid "tail +16c" ma.jiang
@ 2016-12-01 23:03 ` Jeff Law
2016-12-02 10:29 ` ma.jiang
0 siblings, 1 reply; 4+ messages in thread
From: Jeff Law @ 2016-12-01 23:03 UTC (permalink / raw)
To: ma.jiang, gcc-patches
On 11/22/2016 11:22 PM, ma.jiang@zte.com.cn wrote:
> Hi all,
> In "config/acx.m4", there are still some "tail +16c" which are invalid
> on POSIX systems.
> In my opinion拢卢 all "tail +16c" should be changed to "tail -c +16"
> directly, as most systems has accept the latter.
> And, to skip first 16 bytes, we should use "tail -c +17" instead of
> "tail -c +16".
>
> * config/acx.m4:Change "tail +16c" to "tail -c +17".
> * configure: Regenerate.
Thanks. I've installed this on the trunk after bootstrap & regression
testing on x86_64-linux-gnu.
jeff
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] remove invalid "tail +16c"
2016-12-01 23:03 ` Jeff Law
@ 2016-12-02 10:29 ` ma.jiang
0 siblings, 0 replies; 4+ messages in thread
From: ma.jiang @ 2016-12-02 10:29 UTC (permalink / raw)
To: Jeff Law; +Cc: gcc-patches, Alan Modra
On 11/22/2016 11:22 PM, ma.jiang@zte.com.cn wrote:
> Hi all,
> In "config/acx.m4", there are still some "tail +16c" which are
invalid
> on POSIX systems.
> In my opinion, all "tail +16c" should be changed to "tail -c +16"
> directly, as most systems has accept the latter.
> And, to skip first 16 bytes, we should use "tail -c +17" instead of
> "tail -c +16".
>
> * config/acx.m4:Change "tail +16c" to "tail -c +17".
> * configure: Regenerate.
>Thanks. I've installed this on the trunk after bootstrap & regression
>testing on x86_64-linux-gnu.
>
>jeff
>
>Thanks
Hi Jeff,
Thanks for your attention. I can now close the bug in
binuitls---https://sourceware.org/bugzilla/show_bug.cgi?id=20823.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] remove invalid "tail +16c"
@ 2016-11-28 2:49 ma.jiang
0 siblings, 0 replies; 4+ messages in thread
From: ma.jiang @ 2016-11-28 2:49 UTC (permalink / raw)
To: gcc-patches
Hi all,
In "config/acx.m4", there are still some "tail +16c" which are invalid
on POSIX systems.
In my opinion, all "tail +16c" should be changed to "tail -c +16"
directly, as most systems has accept the latter.
And, to skip first 16 bytes, we should use "tail -c +17" instead of
"tail -c +16".
* config/acx.m4:Change "tail +16c" to "tail -c +17".
* configure: Regenerate.
--- gcc-6.2.0/config/acx.m4 2011-12-18 17:58:37.000000000 +0800
+++ gcc-6.2.0-bak/config/acx.m4 2016-11-23 10:56:21.065817691 +0800
@@ -404,7 +404,7 @@ AC_DEFUN([ACX_PROG_CMP_IGNORE_INITIAL],
[AC_CACHE_CHECK([how to compare bootstrapped objects],
gcc_cv_prog_cmp_skip,
[ echo abfoo >t1
echo cdfoo >t2
- gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 >
tmp-foo2; cmp tmp-foo1 tmp-foo2'
+ gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 >
tmp-foo2; cmp tmp-foo1 tmp-foo2'
if cmp t1 t2 2 2 > /dev/null 2>&1; then
if cmp t1 t2 1 1 > /dev/null 2>&1; then
:
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-12-02 10:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-23 6:26 [PATCH] remove invalid "tail +16c" ma.jiang
2016-12-01 23:03 ` Jeff Law
2016-12-02 10:29 ` ma.jiang
2016-11-28 2:49 ma.jiang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).