This started as a patch to fix the libcc1 failure pointed out in PR libcc1/113977. However, investigating that pointed out some other issues, which are also fixed in this series.
I tested this on x86-64 Fedora 38 against two versions of gdb: one patched to fix the gdb side of the bug, and one that was not. In both cases gdb's "gdb.compile" tests were run. --- Tom Tromey (3): Change 'v1' float and int code to fall back to v0 Fix version negotiation in libcc1 plugins Fix PR libcc1/113977 include/ChangeLog | 10 ++++++++++ include/gcc-c-fe.def | 13 ++++++++++++- include/gcc-c-interface.h | 11 +++++++++-- include/gcc-cp-interface.h | 6 +++++- libcc1/ChangeLog | 21 +++++++++++++++++++++ libcc1/libcc1.cc | 7 ++++--- libcc1/libcc1plugin.cc | 45 ++++++++++++++++++++++++++++----------------- libcc1/libcp1.cc | 2 +- 8 files changed, 90 insertions(+), 25 deletions(-) --- base-commit: 1e2a3b278d7770db6b5ca869756b1375fc3a77d6 change-id: 20240226-gdb-compile-align-f31c69137d6a Best regards, -- Tom Tromey <t...@tromey.com>