]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Fix build failure on Windows machines
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 14 Feb 2026 23:00:55 +0000 (00:00 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 26 May 2026 13:16:55 +0000 (15:16 +0200)
The -E switch is not recognized by old versions of GNU sed, so remove it as
well as the pipe since it hides error messages.

gcc/ada/ChangeLog:

* gcc-interface/Makefile.in ($(RTSDIR)/s-intnam.ads): Change recipe
to use a basic invocation of 'sed'.

gcc/ada/gcc-interface/Makefile.in

index 2f5029080fe60d30fe69ff157b2f70e763d4c576..ccd44caa5518f4bc828e25dc72d2adbc1a8b5cbf 100644 (file)
@@ -647,7 +647,7 @@ $(RTSDIR)/a-intnam.ads: ../stamp-gnatlib1-$(RTSDIR)
        touch $@
 
 $(RTSDIR)/s-intnam.ads: $(fsrcdir)/ada/xsintnam.sed $(RTSDIR)/a-intnam.ads
-       sed -E -f $(fsrcdir)/ada/xsintnam.sed $(RTSDIR)/a-intnam.ads | cat -s > $@
+       sed -f $(fsrcdir)/ada/xsintnam.sed $(RTSDIR)/a-intnam.ads > $@
 
 gnatlib: ../stamp-gnatlib1-$(RTSDIR) ../stamp-gnatlib2-$(RTSDIR) $(RTSDIR)/s-oscons.ads $(RTSDIR)/s-intnam.ads
        test -f $(RTSDIR)/s-oscons.ads || exit 1