bootstrap/119513 - fix cobol bootstrap with --enable-generated-files-in-srcdir
This adds gcc/cobol/parse.o to compare_exclusions and makes sure to ignore errors when copying generated files, like it's done when copying gengtype-lex.cc. PR bootstrap/119513 * configure.ac (compare_exclusions): Add gcc/cobol/parse\$(objext). * configure: Regenerated. gcc/cobol/ * Make-lang.in (cobol.srcextra): Use cp instead of ln, ignore errors.
This commit is contained in:
parent
4981d8dfcf
commit
dcb7009efc
3 changed files with 3 additions and 1 deletions
1
configure
vendored
1
configure
vendored
|
@ -20030,6 +20030,7 @@ compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
|
|||
compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
|
||||
compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
|
||||
compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
|
||||
compare_exclusions="$compare_exclusions | gcc/cobol/parse\$(objext)"
|
||||
case "$target" in
|
||||
hppa*64*-*-hpux*) ;;
|
||||
powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
|
||||
|
|
|
@ -4207,6 +4207,7 @@ compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
|
|||
compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
|
||||
compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
|
||||
compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
|
||||
compare_exclusions="$compare_exclusions | gcc/cobol/parse\$(objext)"
|
||||
case "$target" in
|
||||
hppa*64*-*-hpux*) ;;
|
||||
powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
|
||||
|
|
|
@ -272,7 +272,7 @@ cobol/scan.o: cobol/scan.cc \
|
|||
# output, and do not require those tools to be installed.
|
||||
#
|
||||
cobol.srcextra: cobol/parse.cc cobol/cdf.cc cobol/scan.cc
|
||||
ln -f $^ cobol/parse.h cobol/cdf.h $(srcdir)/cobol/
|
||||
-cp -p $^ cobol/parse.h cobol/cdf.h $(srcdir)/cobol/
|
||||
|
||||
|
||||
# And the cobol1 front end
|
||||
|
|
Loading…
Add table
Reference in a new issue