contrib: modernize gen_autofdo_event.py
authorXi Ruoyao <xry111@xry111.site>
Mon, 27 Jun 2022 06:15:22 +0000 (14:15 +0800)
committerXi Ruoyao <xry111@xry111.site>
Sat, 27 Aug 2022 03:44:13 +0000 (11:44 +0800)
commit152895769581468e98807bbb8835ef63cc07727d
treec0e4664ea956694cd77cc854c5b8f67f94230321
parent16f542d6b866828e23e699e294e617ca428b04ee
contrib: modernize gen_autofdo_event.py

Python 2 has been EOL'ed for two years.  egrep has been deprecated
for many years and the next grep release will start to print warning if
it is used.

-E option may be unsupported by some non-POSIX grep implementations, but
gcc-auto-profile won't work on non-Linux systems anyway.

contrib/ChangeLog:

* gen_autofdo_event.py: Port to Python 3, and use grep -E
instead of egrep.

gcc/ChangeLog:

* config/i386/gcc-auto-profile: Regenerate.
contrib/gen_autofdo_event.py
gcc/config/i386/gcc-auto-profile