davidmalcolm / gcc-python-plugin

GCC plugin that embeds CPython inside the compiler
GNU General Public License v3.0
197 stars 58 forks source link

gcc-python-pretty-printer: fix GCC 8.3 compatibility #175

Closed jackrosenthal closed 5 years ago

jackrosenthal commented 5 years ago

GCC 8.3 eliminated the prefix parameter as well as GCC 9. This patch is based on the diff posted by @doko42 in davidmalcolm#173.

davidmalcolm commented 5 years ago

Notes to self: the relevant backport to gcc 8 was: https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=ab20c73c24e3bfaca702129d991bb04f692a0a79

davidmalcolm commented 5 years ago

Notes to self: backport was r268910 on gcc 8 branch. 8.2 was r262992; 8.3 was r269116, hence 8.3 is indeed the first version with the backport.

davidmalcolm commented 5 years ago

Thanks for the patch!