Apply CRC regen to GCC 4.7

CRC generated table is regenerated using the same method as GCC 10.

Closes #243
This commit is contained in:
fosslinux 2023-02-13 22:15:58 +11:00
parent 946dd8ee33
commit c170152d14
2 changed files with 11 additions and 1 deletions

View file

@ -81,6 +81,16 @@ src_prepare() {
# Rebuild flex generated files
rm gcc/gengtype-lex.c
# Regenerate crc table in libiberty/crc32.c
pushd libiberty
sed -n -e '39,66p' crc32.c > crcgen.c
gcc -o crcgen crcgen.c
head -n 70 crc32.c > crc32.c.new
./crcgen >> crc32.c.new
tail -n +139 crc32.c >> crc32.c.new
mv crc32.c.new crc32.c
popd
# Remove translation catalogs
find . -name '*.gmo' -delete