Fix '#pragma GCC trailing_semicolon' for the cases from gdb.base/compile.exp.
 - Not sure how many more cases will need a similar patch.