This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [libgfortran,committed] Fix syntax that IRIX sed doesn't like


On Thu, 2007-11-08 at 19:17 +0000, FranÃois-Xavier Coudert wrote:

> I committed (rev. 130015) the patch below as obvious after noticing
> that the IRIX sed didn't like the previous one (introduced by my patch
> dated 2007-10-26). Bootstrap now progresses further on
> mips-sgi-irixi6.5, and still works on x86_64-linux.

> -               | sed 's/ *TRANSFER *// ; s/_.*//'`
> +               | sed 's/ *TRANSFER *//' | sed 's/_.*//'`

This is perhaps a bit of a micro-optimisation, but would it not be
faster to use sed -e 's/ *TRANSFER *//' -e 's/_.*//' instead of two seds
in a pipeline?

Ben



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]