https://gcc.gnu.org/g:fdbe017bc15f8cf6f211a056c1822bc1a933ae85
commit r15-9254-gfdbe017bc15f8cf6f211a056c1822bc1a933ae85 Author: Jakub Jelinek <ja...@redhat.com> Date: Mon Apr 7 14:25:49 2025 +0200 cobol: sed portability fix Apparently Darwin sed doesn't like 's/\(foo\|bar\|baz\)/qux/' syntax, simplified by using a pattern which matches all libgcobol header names except possible config.h. 2025-04-07 Jakub Jelinek <ja...@redhat.com> * Make-lang.in (cobol/charmaps.cc, cobol/valconv.cc): Use a BRE only sed regex. Diff: --- gcc/cobol/Make-lang.in | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gcc/cobol/Make-lang.in b/gcc/cobol/Make-lang.in index d14190f07957..422ebe28b213 100644 --- a/gcc/cobol/Make-lang.in +++ b/gcc/cobol/Make-lang.in @@ -90,9 +90,7 @@ cobol1_OBJS = \ # so that the .h files can be found. cobol/charmaps.cc cobol/valconv.cc: cobol/%.cc: $(LIB_SOURCE)/%.cc - -l='ec\|common-defs\|io\|gcobolio\|gfileio\|charmaps'; \ - l=$$l'\|valconv\|exceptl'; \ - sed -e '/^#include/s,"\('$$l'\)\.h","../../libgcobol/\1.h",' $^ > $@ + sed -e '/^#include/s,"\([^"]*[^g"].h\)","../../libgcobol/\1",' $^ > $@ LIB_SOURCE_H=$(wildcard $(LIB_SOURCE)/*.h)