aboutsummaryrefslogtreecommitdiff
path: root/include/gcc-cp-interface.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2024-02-20 17:15:03 -0700
committerTom Tromey <tom@tromey.com>2024-02-29 15:34:38 -0700
commitf9771d0e80c3a98e865c7ee5139cadf9d73db436 (patch)
tree8aaa399ed59ae4bb3bd5bb4633403bf46093b1d7 /include/gcc-cp-interface.h
parent4b067447e1b70dcf834ad65f03fd953178c30850 (diff)
downloadbinutils-f9771d0e80c3a98e865c7ee5139cadf9d73db436.zip
binutils-f9771d0e80c3a98e865c7ee5139cadf9d73db436.tar.gz
binutils-f9771d0e80c3a98e865c7ee5139cadf9d73db436.tar.bz2
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
Diffstat (limited to 'include/gcc-cp-interface.h')
-rw-r--r--include/gcc-cp-interface.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/gcc-cp-interface.h b/include/gcc-cp-interface.h
index 2f95072..15b911c 100644
--- a/include/gcc-cp-interface.h
+++ b/include/gcc-cp-interface.h
@@ -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,