Skip to content

Commit 0dbfde7

Browse files
committed
Various GCC 4.0 regenerations
1 parent 736d796 commit 0dbfde7

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

steps/gcc-4.0.4/pass1.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
# SPDX-License-Identifier: GPL-3.0-or-later
66

7-
EXTRA_DISTFILES="automake-1.16.3.tar.xz"
8-
97
src_prepare() {
108
default
119
# This is needed for building with TCC
@@ -45,9 +43,18 @@ src_prepare() {
4543
libtoolize
4644
cp ../automake-1.16.3/lib/config.sub .
4745

46+
# Rebuild files generated by GCC build system
47+
rm gcc/c-parse.y libiberty/functions.texi
48+
rm libiberty/obstacks.texi
49+
touch libiberty/obstacks.texi
50+
51+
# Rebuild libcpp/ucnid.h
52+
rm libcpp/ucnid.h
53+
perl libcpp/ucnid.pl < libcpp/ucnid.tab > libcpp/ucnid.h
54+
4855
# Rebuild bison files
4956
# Workaround for bison being too new
50-
sed -i 's/YYLEX/yylex()/' gcc/c-parse.y
57+
sed -i 's/YYLEX/yylex()/' gcc/c-parse.in
5158
rm gcc/c-parse.c
5259
rm gcc/gengtype-yacc.c gcc/gengtype-yacc.h
5360
rm intl/plural.c

steps/gcc-4.0.4/pass2.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,18 @@ src_prepare() {
4444
libtoolize
4545
cp ../automake-1.16.3/lib/config.sub .
4646

47+
# Rebuild files generated by GCC build system
48+
rm gcc/c-parse.y libiberty/functions.texi
49+
rm libiberty/obstacks.texi
50+
touch libiberty/obstacks.texi
51+
52+
# Rebuild libcpp/ucnid.h
53+
rm libcpp/ucnid.h
54+
perl libcpp/ucnid.pl < libcpp/ucnid.tab > libcpp/ucnid.h
55+
4756
# Rebuild bison files
4857
# Workaround for bison being too new
49-
sed -i 's/YYLEX/yylex()/' gcc/c-parse.y
58+
sed -i 's/YYLEX/yylex()/' gcc/c-parse.in
5059
rm gcc/c-parse.c
5160
rm gcc/gengtype-yacc.c gcc/gengtype-yacc.h
5261
rm intl/plural.c

0 commit comments

Comments
 (0)