Synchronize GCC compile plugin headers

This patch copies some changes to the compile headers from GCC's
include/ directory.  It is the gdb equivalent of the GCC commit
bc0e18a9 -- however, while that commit also necessarily touched
libcc1, this one of course does not.

Tested by rebuilding and also running the gdb.compile tests.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31397
This commit is contained in:
Tom Tromey
2024-02-20 17:15:03 -07:00
parent 4b067447e1
commit f9771d0e80
3 changed files with 26 additions and 4 deletions

View File

@@ -483,7 +483,11 @@ struct gcc_cp_context
/* The type of the initialization function. The caller passes in the
desired base version and desired C-specific version. If the
request can be satisfied, a compatible gcc_context object will be
returned. Otherwise, the function returns NULL. */
returned. In particular, this may return a context object with a higher
actual version number than was requested, provided the higher version is
fully compatible.
Otherwise, the function returns NULL. */
typedef struct gcc_cp_context *gcc_cp_fe_context_function
(enum gcc_base_api_version,