Use "sed -n …" instead of "sed s/…/p -e d" in s-header-vars

Olivier Hainque hainque@adacore.com
Mon Apr 30 16:56:00 GMT 2012


Hello,

"sed s/…/p -e d" as used in s-header-vars doesn't work on
at least ia64-hpux, where s/.../p only prints out if -n was
requested as well.

The attached patch fixes this by using '-n' instead of a
trailing '-e d'

We have been using this on all our gcc-4.5 based configurations
for a couple of years now. Bootstrapped and regtested with mainline
on x86_64-linux-gnu.

OK to commit ?

Thanks in advance,

With Kind Regards,

Olivier


2012-04-30  Olivier Hainque  <hainque@adacore.com>

        * Makefile.in (s-header-vars): Resort to -n instead of trailing
        -e d in sed invocation.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sed-n.dif
Type: video/x-dv
Size: 1093 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120430/3231e9a0/attachment.bin>


More information about the Gcc-patches mailing list